Answers for "how to get video duration in php"

PHP
2

how to get video duration in php

include_once('pathto/getid3.php');
$getID3 = new getID3;
$file = $getID3->analyze($filename);
echo("Duration: ".$file['playtime_string'].
" / Dimensions: ".$file['video']['resolution_x']." wide by ".$file['video']['resolution_y']." tall".
" / Filesize: ".$file['filesize']." bytes<br />");
Posted by: Guest on September-03-2020

Code answers related to "how to get video duration in php"

Browse Popular Code Answers by Language