Page 1 of 1

How to find length of a video file (wmv,avi,dat) ?

Posted: Wed Mar 22, 2006 7:20 am
by jmangya
Hello ,

I need to find the time for the particular uplaoded avi,dat,mpeg video file.
Is it possible to calculate the time by using PHP/PHP class .

What is the solution if clinet want to restrict users with the 2 mins video file only.

Thx in advance,
Mangesh

Posted: Wed Mar 22, 2006 7:59 am
by Benjamin
After the file is uploaded there is probably a Unix command you could run via exec and then grep the results to obtain the length of the video file.

Posted: Wed Mar 22, 2006 9:30 am
by feyd
ffmpeg may be of interest.