Tags: vidéo

Sort by: Date / Title /

  1. 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>
  2. 2 years ago by bobuse
    1. mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=400 -oac copy -o source.avi destination.avi
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/873"></script>

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