pianoman993 Posted August 21, 2008 Share Posted August 21, 2008 Hello, I am currently using ffmpeg to upload and convert movies in my website. However, I am having a heck of a time trying to figure out how to get the length of a movie before or after it was uploaded. If anyone knows how to get the length of a movie please respond. Any help would be greatly appreciated! Thanks a lot! Mark Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted August 21, 2008 Share Posted August 21, 2008 length in frames, total duration, file size or... ??? Quote Link to comment Share on other sites More sharing options...
pianoman993 Posted August 21, 2008 Author Share Posted August 21, 2008 Sorry for not being more specific. I was wondering if there was any way I could capture the time of a movie (seconds and minutes) and put into a variable to be stored in a database. If it is possible to capture the file size and length in frames I'd love to do it also but I"m not sure if it's possible. Quote Link to comment Share on other sites More sharing options...
trq Posted August 21, 2008 Share Posted August 21, 2008 You'll have to look at some options available to ffmpeg. PHP cannot help. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted August 21, 2008 Share Posted August 21, 2008 take a look at this: http://getid3.sourceforge.net/ Quote Link to comment Share on other sites More sharing options...
pianoman993 Posted August 21, 2008 Author Share Posted August 21, 2008 Thank you soo much! That solved all my questions 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.