Posted By

erraja_07 on 07/04/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

fabienthomas


PHP - Code to find the Duration of a Video file using FFMPEG (WAMP5)


 / Published in: PHP
 

URL: http://www.kushu.net/604.html?lang=en

  1. function getVideoLength($file_path)
  2. {
  3. extension_loaded('ffmpeg');
  4. // F: Mv 1.wmv video file path.
  5. $ffmpegInstance = new ffmpeg_movie($file_path);
  6. return $ffmpegInstance->getDuration();
  7. }

Report this snippet  

You need to login to post a comment.