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 Link to comment https://forums.phpfreaks.com/topic/120732-getting-the-length-of-a-movie/ 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... ??? Link to comment https://forums.phpfreaks.com/topic/120732-getting-the-length-of-a-movie/#findComment-622173 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. Link to comment https://forums.phpfreaks.com/topic/120732-getting-the-length-of-a-movie/#findComment-622178 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. Link to comment https://forums.phpfreaks.com/topic/120732-getting-the-length-of-a-movie/#findComment-622183 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/ Link to comment https://forums.phpfreaks.com/topic/120732-getting-the-length-of-a-movie/#findComment-622193 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 Link to comment https://forums.phpfreaks.com/topic/120732-getting-the-length-of-a-movie/#findComment-622217 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.