View Full Version : Getting Exact Movie Length in TDA Edit ... How to Count Frames?
rkr1958
31st August 2006, 03:14
In TDA if, for example, the run time displayed for an encoded NTSC video file under the edit screen: 1:29:15;11 (where ;11 is frame 11) is the total running time 1:29:(15+11/29.97) > 1:29:15.3670 or is it 1:29:(15+12/29.97) > 1:29:15.4004? In other words do you add in frame 0 to get the fraction for seconds?
I often use the timewarp function in Goldwave to ensure that the audio stream is the same length as the video stream. For this calcuation I've been using the former method (i.e., not including frame 0).
Zeul
31st August 2006, 08:13
You're frame 11 will be 11/30 -> actual play time is 30fps, encoded is 29.97 but with drop frame. So 11f = 0.366s
rkr1958
31st August 2006, 10:37
You're frame 11 will be 11/30 -> actual play time is 30fps, encoded is 29.97 but with drop frame. So 11f = 0.366s
Thanks. The drop frame didn't occur to me. In terms of considering the drop frame is the following logic correct?
hr:min:sec;fn
if sec != 0 && int(min/10)*10 != min
sec' = sec + fn/30
else
sec' = sec + fn/28
end
mpucoder
3rd September 2006, 23:32
To convert drop-frame timecode to actual frames, assuming a continuous timecode, use the following:
frames = 107892*hr + 17982*int(min/10) + 1798*mod(min,10) + 30*sec +fn
which is equivalent to:
frames = 107892*hr + 2*int(min/10) + 1798*min + 30*sec +fn
This accounts for the 2 frame counts dropped on every minute not a multiple of 10, which is 18 per 10 minute period, 108 per hour.
To convert the frame number to time do not use 29.97fps, but the true DVD rate of 30000/1001, ie
seconds = (frames * 1001) / 30000
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.