hno Posted June 14, 2011 Share Posted June 14, 2011 Hi every one I want to get a video's duration via php , How can I do this . I have diffrent type of videos , like mog , avi , flv , 3gp , .... How can I do so ? thanks Link to comment https://forums.phpfreaks.com/topic/239343-get-a-video-duration/ Share on other sites More sharing options...
mikesta707 Posted June 14, 2011 Share Posted June 14, 2011 I don't believe PHP has this capability alone without having to use some sort of library. I believe the ffmpeg PHP library would be able to do what you want. Try doing a google search for "ffmpeg PHP" and try that out Link to comment https://forums.phpfreaks.com/topic/239343-get-a-video-duration/#findComment-1229545 Share on other sites More sharing options...
Psycho Posted June 14, 2011 Share Posted June 14, 2011 This third party class should work: getID3(), http://getid3.sourceforge.net/ It will work for a multitude of media formats (see link), but maybe not all formats you are looking for though. Link to comment https://forums.phpfreaks.com/topic/239343-get-a-video-duration/#findComment-1229556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.