Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (51)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

  • À propos des documents

    21 juin 2013, par

    Que faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
    Document bloqué en file d’attente ?
    Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (3475)

  • How to crop a video in the shape of a square, but crop the square itself at different positions in the video via ffmpeg ?

    28 juin 2022, par Ilya Pesterev
      

    • I have about 100 videos
    • 


    • All the videos have the same length — 17 seconds.
    • 


    • In the first part of the video from 0 to 5 seconds I need to crop a square in one position
    • 


    • In the second part of the video from 5 to 17 seconds I need to crop a square in a different position
    • 


    


    I have attached an image for clarity.

    


    How can I automate this process via ffmpeg ?

    


    Image for clarification

    


  • Shall_exec() is not working in Cent OS 6.5 with php 5.5

    5 décembre 2014, par hitesh

    It is the follow up from the question here. I was not sure if it was good idea to edit that question, So I am asking a new question here

    As explained in my previous question I am using ffmpeg for getting screenshot from video.it seems to working fine in my local but in my Cent OS 6.5 server it is not working, it throws error that
    ffmpeg extension is not enabled.

    "Error in Loading ffmpeg"

    To debug this, I commented the line

     extension_loaded('ffmpeg') or die('Error in loading ffmpeg');

    and I found out that in Cent OS terminal, ffmpeg command were working but if I use it with full path as I am doing in windows it did not work.So i deleted full path and used ffmpeg alone, I am not sure what was the reason behind this.

    Here is my new command

     $cmd = "ffmpeg -i $vid -an -ss $getfromsecond -s $size -vframes 1 $imageFile";
       $cmd2 = "ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size -vframes 1 $imageFile2 ";
       echo $cmd ."<br />";
       echo $cmd2."<br />";
    exec($cmd, $output, $return);
    echo '$output :' ; print_r($output); echo "<br />";echo '$return' . $return . "<br />";

    if ($return != 0) {
       // an error occurred
       echo "Error in EXEC command ";
    }

    if(!shell_exec($cmd2)){
       echo "Remote video Thumbnail created". "<br />";
    }else{
       echo "Error Creating Remote video thumbnail". "<br />";
    }

    now again it was not working in server, but when I tried both command

    `     echo $cmd ."<br />";

           echo $cmd2."<br />";`

    in dev terminal, it got executed successfully I could see the screenshot.

    So while searching for the problem, I found this question here based on this answer here. I understood that some server may not allow it so I checked it.

    if (isEnabled('shell_exec')) {
       echo "Shell_exec is enabled "."<br />";
       shell_exec('echo "hello world"');
       echo "<br />";
    }else{

       echo "shell exec command is not allowed";
    }

    I got the output "Shell_exec is enabled " but shell_exec('echo "hello world"'); does not seems to work, Also when I run the command directly in terminal it works.

    Help me find the issue here, is it issue with shall_exec() or something else ?

    Any help is appreciated. Thanks

  • Tips for encoding a live stream to IIS Media Services (or Azure Live Media Services) with FFMPEG ?

    6 mars 2014, par user3104748

    We're trying to encode assets, either live or static, in a live stream to IIS Media Services using ffmpeg. Can anyone provide pointers for exactly what kinds of parameters we should be using and setting ?

    As part of our test, just to see if we can get things to work, we have a standard plain-old MP4 video static asset that we're trying to stream to the server. It seems to work on the client side, but when we try to view the video on the receiving end, we get nothing.

    Here's an example of the command we're using, where gg.mp4 is the static MP4 video (obviously (hostname) is the name of our host and not the actual word in parenthesis :)...

    ffmpeg -y -re -i gg.mp4 -movflags isml+frag_keyframe -f ismv -threads 0 -c:a libvo_aacenc -ac 2 -b:a 64k -c:v libx264 -preset fast -profile:v baseline -g 48 -keyint_min 48 -map 0:v -b:v:0 477k -s:v:0 368x152 -map 0:v -b:v:1 331k -s:v:1 288x120 -map 0:v -b:v:2 230k -s:v:2 224x92 -map 0:a:0 http://(hostname)/ingest.isml/Streams(video)