PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
jmangya
Forum Newbie
Posts: 2 Joined: Fri Mar 17, 2006 12:24 am
Post
by jmangya » Wed Mar 22, 2006 7:20 am
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
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Wed Mar 22, 2006 7:59 am
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Mar 22, 2006 9:30 am
ffmpeg may be of interest.