ffmpeg metadata
<?php function duration($videofile) { ob_start(); passthru("ffmpeg.exe -i \"". $videofile . "\" 2>&1"); $duration = ob_get_contents(); ob_end_clean(); preg_match('/Duration: (.*?),/', $duration, $matches); $duration = $matches[1]; return($duration); } ?>
use bellow function
Comments
Add your comment