Recherche avancée

Médias (91)

Autres articles (68)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (11531)

  • How to convert mp4 files into mp3 on button click using ffmpeg/php ?

    4 juin 2019, par flash

    I am working on a php code as shown below where I am converting mp4 files into mp3 using system command ffmpeg (in the case statement below).

    <?php

    $mp4_files = preg_grep('~\.(mp4)$~', scandir($src_dir));

    foreach ($mp4_files as $f)
    {

        $parts = pathinfo($f);
        switch ($parts['extension'])
        {
            case 'mp4' :
                $filePath = $src_dir . DS . $f;
                system('ffmpeg -i ' . $filePath . ' -map 0:2 -ac 1 ' . $destination_dir . DS . $parts['filename'] . '.mp3', $result);  // Through this command conversion happens.
        }
    }

    $mp3_files = preg_grep('/^([^.])/', scandir($destination_dir));

    ?>

    After conversion, mp3 files goes into destination_dir. If new mp4 file arrives in $src_dir, the conversion usually happen on refresh of a page.

    Once the conversion is complete, I am parsing everything into table as shown below :

    <table>
      <tr>
         <th style="width:8%; text-align:center;">House Number</th>
         <th style="width:8%; text-align:center;">MP4 Name</th>
         <th style="width:8%; text-align:center;">Action/Status</th>
      </tr>
      &lt;?php
         $mp4_files = array_values($mp4_files);
         $mp3_files = array_values($mp3_files);
         foreach ($programs as $key => $program)    {
            $file = $mp4_files[$key];    
            $file2 = $mp3_files[$key];   // file2 is in mp3 folder
         ?>
      <tr>
         <td style="width:5%; text-align:center;"><span style="border: 1px solid black; padding:5px;">&lt;?php echo basename($file, ".mp4"); ?></span></td>
         <td style="width:5%; text-align:center;"><span style="border: 1px solid black; padding:5px;">&lt;?php echo basename($file); ?></span></td>              
         <td style="width:5%; text-align:center;"><button style="width:90px;" type="button" class="btn btn-outline-primary">Gotd>  
      </button></td></tr>
      &lt;?php } ?>
    </table>

    Problem Statement :

    I am wondering what changes I should make in the php code above that on click of a Go button, conversion of individual mp4 into mp3 happen.

    On clicking of Go button, individual mp3 file (from an mp4) belonging to an individual row should go inside destination directory ($destination_dir).

    enter image description here

  • ffmpeg-python : cannot get video info on macos after scaling

    6 août 2022, par Harun Sasmaz

    I am using ffmpeg-python 0.2.0 to scale a video on MacOS. However, after I run the following command :

    &#xA;

    ffmpeg.input(path).filter("scale",720,1280).filter("fps",30).output(out).overwrite_output().run()&#xA;

    &#xA;

    I cannot see codec, duration, resolution info of the produced video when I right click on "Get Info" option.

    &#xA;

    It looks like this

    &#xA;

    I expect to see something like this

    &#xA;

    Did I miss some commands ?

    &#xA;

  • FFmpeg capture, mkvtimestamp_v2 and timecode don't play nice

    24 mai 2021, par Bouke

    Trying to capture and modify the TC in-file afterwards.&#xA;I've found a nice way to store the timestamps from the capture.&#xA;Gyan's brillant filterchain

    &#xA;

    This works fine using this line :

    &#xA;

    ffmpeg -hide_banner -f "decklink" -queue_size "1073741824" -raw_format "auto" -format_code "Hi50" -video_input "sdi" -i "bm mini One" -filter_complex "settb=1/1000,setpts=RTCTIME/1000-1500000000000,mpdecimate,split[out][ts];[out]setpts=N/25/TB[out]" -map "[out]" -c:a "copy" -c:v "prores" -profile:v "1" -vendor "ap10" -pix_fmt "yuv422p10le" "/Volumes/Data/tst1.mov" -map "[ts]" -f mkvtimestamp_v2 "/Volumes/Data/time.txt" -vsync 0&#xA;

    &#xA;

    But, when I add -timecode "00:00:00:00" (to force a TC atom in the output), horrible things happen.

    &#xA;

    ffmpeg -f "decklink" -queue_size "1073741824" -raw_format "auto" -format_code "Hi50" -video_input "sdi" -i "bm mini One" -filter_complex "settb=1/1000,setpts=RTCTIME/1000-1500000000000,mpdecimate,split[out][ts];[out]setpts=N/25/TB[out]" -map "[out]" -timecode "00:01:00:00" -c:a "copy" -c:v "prores" -profile:v "1" -vendor "ap10" -pix_fmt "yuv422p10le" "/Volumes/Data/tst1.mov" -map "[ts]" -f mkvtimestamp_v2 "/Volumes/Data/time.txt" -vsync 0&#xA;

    &#xA;

    The timecode does not run at the video speed, skips a frame or two here and there, and the image freezes after a random amount of time (between 10 seconds and a minute or so).

    &#xA;

    How come the timecode can mess up stuff that much ? From what I understand it's just a couple of atoms in the moov atom, and a reference where the actual TC value (as frames) is stored in the mdat.

    &#xA;

    I highly suspect the -vsync 0 to also work on the video, and I've had issues with that before. If I omit that, the video is fine, the TC is fine, but there is no metadata output, just the # timecode format v2

    &#xA;