After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 797037 - decklink: Only use drop-frame flag for 29.97 and 59.94 FPS
decklink: Only use drop-frame flag for 29.97 and 59.94 FPS
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-08-28 12:06 UTC by Vivia Nikolaidou
Modified: 2018-08-28 13:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
decklink: Only use drop-frame flag for 29.97 and 59.94 FPS (1.66 KB, patch)
2018-08-28 12:06 UTC, Vivia Nikolaidou
none Details | Review
decklink: Only use drop-frame flag for 29.97 and 59.94 FPS (1.70 KB, patch)
2018-08-28 12:09 UTC, Vivia Nikolaidou
none Details | Review
decklink: Only use drop-frame flag for 29.97 and 59.94 FPS (2.04 KB, patch)
2018-08-28 12:20 UTC, Vivia Nikolaidou
committed Details | Review

Description Vivia Nikolaidou 2018-08-28 12:06:45 UTC
See commit message
Comment 1 Vivia Nikolaidou 2018-08-28 12:06:50 UTC
Created attachment 373481 [details] [review]
decklink: Only use drop-frame flag for 29.97 and 59.94 FPS

Otherwise it can cause errors in gstvideotimecode.c because drop-frame
is not defined for any other frame rate (e.g. 24000/101)

https://blog.frame.io/2017/07/17/timecode-and-frame-rates/
Comment 2 Vivia Nikolaidou 2018-08-28 12:09:12 UTC
Created attachment 373482 [details] [review]
decklink: Only use drop-frame flag for 29.97 and 59.94 FPS

Otherwise it can cause errors in gstvideotimecode.c because drop-frame
is not defined for any other frame rate (e.g. 24000/101)

https://blog.frame.io/2017/07/17/timecode-and-frame-rates/
Comment 3 Sebastian Dröge (slomo) 2018-08-28 12:16:47 UTC
Review of attachment 373482 [details] [review]:

::: sys/decklink/gstdecklinkvideosrc.cpp
@@ +760,3 @@
               GST_VIDEO_TIME_CODE_FLAGS_INTERLACED);
+        if (bmode->fps_d == 1001) {
+          if (bmode->fps_n == 30000 || bmode->fps_n == 60000)

These two framerates also exist non-drop-frame. Please add a comment here why we nonetheless always assume them to be drop-frame.

Otherwise seems fine
Comment 4 Vivia Nikolaidou 2018-08-28 12:20:12 UTC
Created attachment 373483 [details] [review]
decklink: Only use drop-frame flag for 29.97 and 59.94 FPS

Otherwise it can cause errors in gstvideotimecode.c because drop-frame
is not defined for any other frame rate (e.g. 24000/101)

https://blog.frame.io/2017/07/17/timecode-and-frame-rates/
Comment 5 Vivia Nikolaidou 2018-08-28 12:27:05 UTC
Review of attachment 373483 [details] [review]:

commit 4ca76e0c123b37175dd76057dbb45c96b47e7477 (HEAD -> upstream_master, upstream/master)
Author: Vivia Nikolaidou <vivia@ahiru.eu>
Date:   Tue Aug 28 15:04:53 2018 +0300

    decklink: Only use drop-frame flag for 29.97 and 59.94 FPS

    Otherwise it can cause errors in gstvideotimecode.c because drop-frame
    is not defined for any other frame rate (e.g. 24000/101)

    https://blog.frame.io/2017/07/17/timecode-and-frame-rates/

    https://bugzilla.gnome.org/show_bug.cgi?id=797037