Recherche avancée

Médias (91)

Autres articles (41)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (7462)

  • FFMPEG show encoding progress

    18 janvier 2016, par Mick Jack

    I am using ffmpeg to convert a video file large files take a long time to get encode. i will like to show a progress bar with a percentage/time remaining

    i saw and tried this example example but progress bar is not showing

    FFMPEG script and autorefresh both in upload.php

       <?php
    shell_exec("C:\\ffmpeg\\bin\\ffmpeg.exe -y -i ".$target_file." -c:v libx264 -s:v 854x480 -c:a copy \"{$newFileName}\" > logfile.txt 2>&1");

            ?>

           <code class="echappe-js">&lt;script src=&quot;https://code.jquery.com/jquery-2.1.1.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script&gt;<br />
           $(document).ready(function(){<br />
           setInterval(function(){<br />
           $(&quot;#screen&quot;).load('progress.php')<br />
           }, 10000);<br />
           });<br />
           &lt;/script&gt;

    Progress.php

    &lt;?php

    $content = @file_get_contents('logfile.txt');

               if($content){
               //get duration of source
               preg_match("/Duration: (.*?), start:/", $content, $matches);

               $rawDuration = $matches[1];

               //rawDuration is in 00:00:00.00 format. This converts it to seconds.
               $ar = array_reverse(explode(":", $rawDuration));
               $duration = floatval($ar[0]);
               if (!empty($ar[1])) $duration += intval($ar[1]) * 60;
               if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60;

               //get the time in the file that is already encoded
               preg_match_all("/time=(.*?) bitrate/", $content, $matches);

               $rawTime = array_pop($matches);

               //this is needed if there is more than one match
               if (is_array($rawTime)){$rawTime = array_pop($rawTime);}

               //rawTime is in 00:00:00.00 format. This converts it to seconds.
               $ar = array_reverse(explode(":", $rawTime));
               $time = floatval($ar[0]);
               if (!empty($ar[1])) $time += intval($ar[1]) * 60;
               if (!empty($ar[2])) $time += intval($ar[2]) * 60 * 60;

               //calculate the progress
               $progress = round(($time/$duration) * 100);

               echo "Duration: " . $duration . "<br />";
               echo "Current Time: " . $time . "<br />";
               echo "Progress: " . $progress . "%";

    }

    ?>

    ffmpeg

    shell_exec("C:\\ffmpeg\\bin\\ffmpeg.exe -y -i ".$target_file." -c:v libx264 -s:v 854x480 -c:a copy \"{$newFileName}\" > logfile.txt 2>&amp;1");
  • Show commands used thru ffmpeg when video was encoded ?

    25 juillet 2023, par John

    I have some videos I am trying to remember what CRF value I used to encode them. I thought thru mediainfo I've seen screen shots from others where there is a value that shows the commands used to make the encode but not seeing that on mine. Is there a way to see this ?

    &#xA;

  • FFMPEG : Position images in video when creating slide show

    29 décembre 2015, par Jimmy

    I’m using FFMPEG shell utility in an Android app to convert users pictures to video, here’s an example command :

    cat *.jpg | ffmpeg -f image2pipe -r 10  -vcodec mjpeg -i - -vcodec libx264 -s 1280x720 -preset ultrafast slideshow.mp4

    I used to crop images when the user import it in the app but now I would like to allow the user to reposition the image later, here’s an example :

    enter image description here

    So the user could drag or zoom the image to position it in the clear area (video ratio).

    So using the ffmpeg shell command can I specify the image coordinate for each image and position the image in the video.