Recherche avancée

Médias (91)

Autres articles (87)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (12266)

  • PHP : Video file is located in s3, need to find duration a video using getid3 php module

    14 mars 2019, par kaliyappan
       $request = $s3Client->createPresignedRequest($cmd, '+20 minutes');
       echo $presignedUrl = (string)$request->getUri();

       echo "\n";
       //$mp3File = '/home/kaliyappan/test-HD.mov';
       $getId3 = new GetId3();
       $audio = $getId3->analyze($presignedUrl);
       //echo '<pre>';
       print_r($audio);
       exit;
    </pre>

    I have a video file located in s3, using PHP "phansys/getid3" : "^2.1@dev" module need to calculate duration. Created pre-signed URL try to access that file but it returns "could not open that file".

    [GETID3_VERSION] => 1.9.4-20120530
    [error] => Array
       (
           [0] => Could not open "

    Please suggest any other way to do this, but if I directly give video file path which is in my server that’s work perfectly.

  • How to convert .mp4 video file to .yuv (YUV420) and vice-versa using FFmpeg and subprocess module in python ?

    7 avril 2020, par Ann Baiju

    I have to convert a .mp4 video file to .yuv (YUV420) and vice versa in my python program. How do you do this using FFmpeg and subprocess module in python ?

    &#xA;

  • From Python, piping images to FFMPEG process with audio input, "-shortest" flag causes output file to contain only 1 frame of video and entire audio

    7 novembre 2023, par b_yang

    From Python, I run FFMPEG and write images to its stdin via pipe, the FFMPEG process has an audio file as input too. Everything works fine like this :

    &#xA;

    cmd = [&#x27;ffmpeg&#x27;, &#x27;-hide_banner&#x27;, &#x27;-y&#x27;, &#x27;-loglevel&#x27;, &#x27;error&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#xA;&#x27;-pix_fmt&#x27;, &#x27;bgr24&#x27;, &#x27;-video_size&#x27;, &#x27;720x1280&#x27;, &#x27;-r&#x27;, &#x27;30.0&#x27;, &#x27;-an&#x27;, &#x27;-i&#x27;, &#x27;-&#x27;,&#xA;&#x27;-i&#x27;, &#x27;audio.aac&#x27;, &#x27;-acodec&#x27;, &#x27;copy&#x27;, &#xA;&#x27;-crf&#x27;, &#x27;14&#x27;, &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;, &#x27;output.mp4&#x27;]&#xA;proc = subprocess.Popen(cmd, **popen_params)&#xA;

    &#xA;

    Because the audio duration might be longer than the video duration, I added a '-shortest' flag (before '-crf') :

    &#xA;

    cmd = [&#x27;ffmpeg&#x27;, &#x27;-hide_banner&#x27;, &#x27;-y&#x27;, &#x27;-loglevel&#x27;, &#x27;error&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#xA;&#x27;-pix_fmt&#x27;, &#x27;bgr24&#x27;, &#x27;-video_size&#x27;, &#x27;720x1280&#x27;, &#x27;-r&#x27;, &#x27;30.0&#x27;, &#x27;-an&#x27;, &#x27;-i&#x27;, &#x27;-&#x27;,&#xA;&#x27;-i&#x27;, &#x27;audio.aac&#x27;, &#x27;-acodec&#x27;, &#x27;copy&#x27;, &#xA;&#x27;-shortest&#x27;, &#x27;-crf&#x27;, &#x27;14&#x27;, &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;, &#x27;output.mp4&#x27;]&#xA;proc = subprocess.Popen(cmd, **popen_params)&#xA;

    &#xA;

    However, with the '-shortest' flag, the resulting output.mp4 contains the entire audio, but only 1 frame of video data. What is going on here ?

    &#xA;