Video duration

Hi,
I need to get the video duration
and put it in the Db after the upload.
I found FFmpeg, is it a good choice ?

Bye

Maybe this will help:

http://www.longtailvideo.com/support/forum/General-Chat/16725/How-To-Get-Video-Duration-With-FFMPEG-and-PHP

Cheers!

This works fine


echo passthru('ffmpeg -i "Track 7.wav" 2>&1 | grep "Duration" | cut -d \\' \\' -f 4 | sed s/,//');