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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.