Determine the Video Duration


Using PHP, is there anyway we can know the length of a video (not size but duration of the video) that has been uploaded?

Any help is appreciated.


You can’t do it with PHP alone.

See these 2 links:

How To Get Video Duration With FFMPEG and PHP | LongTail Video | Home of the JW Player

phpvideotoolkit - This class is an Object Orientated PHP wrapper around FFmpeg, FLVTools2 and Mencoder. - Google Project Hosting


Thanks for sharing the links.