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


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.