I'm making a video gallery and would like to pull some info about the video for displaying. Does anyone know how I would go about retrieving the video duration using ffmpeg? Is it possible to get this info using HTML5?
Thanks.
I'm making a video gallery and would like to pull some info about the video for displaying. Does anyone know how I would go about retrieving the video duration using ffmpeg? Is it possible to get this info using HTML5?
Thanks.
I would recommend PHPVideoToolkit...
Use exec function in php
http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/9448/how-to-get-video-duration-with-ffmpeg-and-php
What I do (on Linux) is this:
tcprobe -i $FILE | tail -n1 | cut -d '=' -f3
tcprobe is from the transcode Debian package.
If you're on Windows there's a tool called MediaInfo, but I haven't tried it so I can't remark on its effectiveness.