/    Sign up×
Community /Pin to ProfileBookmark

Get video file total time of playing using php

hai friends
I have uploaded the video file to server .we need to get the total time of playing file duration and store the values to database. how can i get the total time for uploaded video file?

Please any one send me any idea.

Thanks

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@MrCoderJan 05.2007 — It depends on the format of the video, I would assume there is a third party piece of software for the OS of the web server that would handle the video files and be able to pass back the required information.
Copy linkTweet thisAlerts:
@vsspauthorJan 06.2007 — No is not a OS work.Just uploqad the video file to get tolal time this option available in flash but i need php
Copy linkTweet thisAlerts:
@MrCoderJan 06.2007 — I am pretty sure there is no such video handling system built in to PHP.

You would have to look at the video format(s) and write some PHP code to read the information you require from the files.
Copy linkTweet thisAlerts:
@vsspauthorJan 06.2007 — I need solution Please advise
Copy linkTweet thisAlerts:
@NightShift58Jan 07.2007 — MrCoder is right, there's nothing built in PHP for that purpose.

There is a package out there that works great on audio files and supports some video files. It may be what you need. You'll have to see if your formats are supported. See: http://getid3.sourceforge.net/

If not, you can look inside the code and maybe figure out ways to apply the techniques to the format you need.
Copy linkTweet thisAlerts:
@vsspauthorJan 08.2007 — Thanks for yopur replay I will check and let you know
×

Success!

Help @vssp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...