FORUMS TUTORIALS FEATURES VIDEOS PODCASTS EVENTS SERVICES NEWSLETTER NEWS BLOGS
 APPLE FINAL CUT PRO: Home FCP Forum FCP X FCPX Techniques FCP Tutorials FC Server Basics Forum Podcast FAQ

# Re: QT calculation - Converting frames to milliseconds, coding question

COW Forums : Apple Final Cut Pro

 Re: QT calculation - Converting frames to milliseconds, coding questionby Ariane Fisher on Mar 23, 2011 at 3:09:54 am

To my surprise, beer really did help. I was still slightly off on some calculations, but figured I'd post my results for your amusement:

Here are my calculations for duration:
Sample 1 is NTSC 24fps (23.976 fps). The clip was 00:00:46:12 seconds duration. Using the formula listed above:
((46*24)+12)*1000/23976=46.547 seconds
mediainfo read 46.549 seconds

sample 2 is NTSC 30fps (29.97). the clip was 00:00:27;11.
((27*30)+11)*100/2997=27.394
mediainfo got 27.413

sample 3 is NTSC 30fps (29.97). the clip was 00:00:33;21.
((33*30)+21)*100/2997=33.734
mediainfo got 27.749

sample 4 is NTSC 30fps (29.97). the clip was 00:00:14:08.
((14*30)+8)*100/2997=14.281
mediainfo got 14.250

sample 5 is NTSC FALSE 30fps, meaning 30 (however you wish me to say it). the clip was 00:00:10:04.
((10*30)+4)/30=10.133
mediainfo got 10.133

Needless to say I liked the last one the best. Samples 1, 4, and 5 are non-drop-frame; although I wouldn't think that would affect duration calculation. Any thoughts on what could have caused my slight error?