Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / video duration

Author
Message
darzon
14
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 20th Aug 2017 11:09
hi,
I want to print the duration(in hour: minutes :seconds) of a Video mp4 , this video is lenght 0 hours, 11 minutes and 23 seconds

GetVideoDiration() return me 692.929993

if i divide 692 / 60 give me 11 and this are the minutes

but I don't understand how to obtain 23 second ?
there is a formula for this ?

thank you






Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 20th Aug 2017 12:09 Edited at: 20th Aug 2017 12:14
This seems to come pretty close, howeverI can't figure out how it can be 23 seconds. It doesn't seem to want to line up. 32 or 33 seconds work. I've tried different tools and methods and 32 seconds seems to work with the math.
darzon
14
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 20th Aug 2017 15:26
thak you very much Fluorescent
Fluorescent
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 1st Aug 2005
Location: Stockholm, Sweden
Posted: 21st Aug 2017 10:51
Even though my original answer seems to give the right answer, I think I prefer this version instead.


Altough, I haven't tries it yet. Typing this on my phone while at work.

Login to post a reply

Server time is: 2024-11-22 21:03:27
Your offset time is: 2024-11-22 21:03:27