Tags: ffmpeg

Sort by: Date / Title /

  1. 5 months ago by macks
    usando la libreria ffmpeg
    1. import commands
    2. import os
    3.  
    4. def execute():
    5.         cmd = 'c:/ffmpeg/ffmpeg.exe -y -itsoffset -4 -i c:/input.mpg -vframes 1 -s 100x90 -f image2 c:/uploads/img_gen.jpg'
    6.         #c = commands.getoutput(cmd) # linux
    7.         c = os.system(self.cmd) #windows
    8.         return c
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2058"></script>
  2. 6 months ago by cyo
    1. $videofile = "fichier.flv";
    2.  
    3. passthru("ffmpeg -i "{$videofile}" 2>&1");
    4. $duration = ob_get_contents();
    5.  
    6. $search='/Duration: (.*?),/';
    7. $duration=preg_match($search, $duration, $matches, PREG_OFFSET_CAPTURE, 3);
    8.  
    9. echo $matches[1][0];
    10.  
    11.  
    12. Pour récupérer la durée, en seconde, on peut utiliser cette fonction :
    13.  
    14. echo hms2sec($matches[1][0]);
    15.  
    16.  
    17. function hms2sec ($hms) {
    18.         list($h, $m, $s) = explode (":", $hms);
    19.         $seconds = 0;
    20.         $seconds += (intval($h) * 3600);
    21.         $seconds += (intval($m) * 60);
    22.         $seconds += (intval($s));
    23.         return $seconds;
    24. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2052"></script>
  3. 1 year ago by jemini_fr
    Kino DV permet de faire un montage à partir de vidéos au format DV uniquement
    1. ffmpeg -i video.avi -target pal-dv video.dv
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1333"></script>
  4. sponsorised links
  5. 2 years ago by davidbrcz and saved by 1 other
    It works only on linux.
    ffmpeg -i fichiervideo.flv -vn -f mp3 fichierson.mp3
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/576"></script>

First / Previous / Next / Last / Page 1 of 1 (4 posteets)