Log in

View Full Version : Timecode - How is a calculation to "milliseconds" done correctly ?


mbcd
13th April 2011, 16:41
Hi Guys

I want to write a small program for myself and I need to correct the given Timecode.

I have a video with a framerate of 24/1001.
How do I calculate the right way. I know that every 1001th frame is skipped.

If a video has a framerate of 24fps, the every frame is shown for 1000ms/24fps = 41,6666666 milliseconds

But what is with 24/1001 ? There are now two possibilities:
a) The frames are shown exactly the same time (41,66666) but every 1001th is skipped.
b) The Frames are shown only for 1000ms/23,976fps = 41,7083 and no frames are skipped.

I would like to synchronize to the exact point of the beginning of e.g. the 2475th frame (with 24/1001fps).

Could someone explain me this please?

Regards,
Marco

roozhou
13th April 2011, 19:14
The second way.

sneaker_ger
13th April 2011, 23:16
The second way.

This.

Mkvmerge does it the following way:
0
42
83
125
167
209
250
292
334
375
417
459
500
...