video: accept timecode of 119.88 (120/1.001) FPS
authorRuslan Khamidullin <ruslank@borisfx.com>
Wed, 12 Jul 2023 22:45:28 +0000 (22:45 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 19 Jul 2023 15:05:06 +0000 (16:05 +0100)
commitaded70efaf6eb1c3b7c64d0df7bcd833b6dfc8f1
treef900e2723720606eb74f7531cfd2b8e831298598
parent6910a24c1437a0e49c21a51d147d66688fa5336c
video: accept timecode of 119.88 (120/1.001) FPS

The drop-frame rules are specified in “SMPTE ST 12-3:2016” and are
consistent with the traditional ones:



To minimize fractional time deviation from real time, the first two
super-frame numbers (00 and 01) shall be omitted from the count at the
start of each minute except minutes 00, 10, 20, 30, 40, and 50. Thus the
first eight frame numbers (0 through 7) are omitted from the count at
the start of each minute except minutes 00, 10, 20, 30, 40, and 50.


Where “super-frame” is a group of 4 frames for 120 FPS.

Fixes #2797

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5061>
subprojects/gst-plugins-base/gst-libs/gst/video/gstvideotimecode.c