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 776447 - videotimecode: New GstVideoTimeCodeDiff type, ability to add to a GstVideoTimeCode
videotimecode: New GstVideoTimeCodeDiff type, ability to add to a GstVideoTim...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 774209
 
 
Reported: 2016-12-23 16:20 UTC by Vivia Nikolaidou
Modified: 2017-01-11 00:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-videotimecode-New-GstVideoTimeCodeDiff-type-ability-.patch (8.87 KB, patch)
2016-12-23 16:20 UTC, Vivia Nikolaidou
none Details | Review
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch (9.66 KB, patch)
2016-12-23 16:43 UTC, Vivia Nikolaidou
none Details | Review
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch (9.69 KB, patch)
2016-12-29 12:44 UTC, Vivia Nikolaidou
none Details | Review
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch (9.70 KB, patch)
2016-12-30 17:05 UTC, Vivia Nikolaidou
none Details | Review
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch (9.72 KB, patch)
2016-12-30 18:22 UTC, Vivia Nikolaidou
none Details | Review
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch (9.86 KB, patch)
2017-01-09 16:50 UTC, Vivia Nikolaidou
committed Details | Review
0001-videotimecode-Added-unit-test-for-GstVideoTimeCodeIn.patch (2.61 KB, patch)
2017-01-10 14:38 UTC, Vivia Nikolaidou
committed Details | Review

Description Vivia Nikolaidou 2016-12-23 16:20:19 UTC
Sometimes there is a human-oriented timecode that represents a
difference between two other timecodes. It corresponds to the human
perception of "add X hours" or "add X seconds" to a specific timecode,
taking drop-frame oddities into account. This difference-representing
timecode is now a GstVideoTimeCodeDiff. Also added function to add it to
a GstVideoTimeCode.
Comment 1 Vivia Nikolaidou 2016-12-23 16:20:59 UTC
Created attachment 342422 [details] [review]
0001-videotimecode-New-GstVideoTimeCodeDiff-type-ability-.patch
Comment 2 Tim-Philipp Müller 2016-12-23 16:34:34 UTC
What's the usual term to refer to this then? Is it time code difference? Or maybe it should be GstVideoTime[Code]Interval ?
Comment 3 Vivia Nikolaidou 2016-12-23 16:43:41 UTC
Created attachment 342423 [details] [review]
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch

Thanks, interval sounds much better! :)

Also clarified a bit the documentation for gst_video_time_code_add_interval
Comment 4 Jan Schmidt 2016-12-29 12:27:19 UTC
Review of attachment 342423 [details] [review]:

One typo, otherwise looks fine to me.

::: gst-libs/gst/video/gstvideotimecode.c
@@ +713,3 @@
+ */
+GstVideoTimeCodeInterval *
+gst_video_time_code_interval_new_from_string (const gchar * tc_str)

tc_str -> tc_diff_str

@@ +719,3 @@
+  gchar **parts;
+
+  parts = g_strsplit (tc_diff_str, ":", 4);

The parameter name in the function definition is wrong, so this line doesn't compile.
Comment 5 Vivia Nikolaidou 2016-12-29 12:44:02 UTC
Created attachment 342573 [details] [review]
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch

Thanks, fixed the typo.
Comment 6 Vivia Nikolaidou 2016-12-30 17:05:11 UTC
Created attachment 342631 [details] [review]
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch

Another typo fixed!
Comment 7 Vivia Nikolaidou 2016-12-30 18:22:50 UTC
Created attachment 342636 [details] [review]
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch

(sorry for the noise, should be OK now)
Comment 8 Sebastian Dröge (slomo) 2017-01-09 16:35:57 UTC
Review of attachment 342636 [details] [review]:

::: gst-libs/gst/video/gstvideotimecode.c
@@ +719,3 @@
+  gchar **parts;
+
+  parts = g_strsplit (tc_inter_str, ":", 4);

Same comment here as for https://bugzilla.gnome.org/show_bug.cgi?id=772764#c8

Should this also get all the GValue/GstValue functions?
Comment 9 Vivia Nikolaidou 2017-01-09 16:50:17 UTC
Created attachment 343169 [details] [review]
0001-videotimecode-New-GstVideoTimeCodeInterval-type-abil.patch
Comment 10 Vivia Nikolaidou 2017-01-10 14:38:00 UTC
Created attachment 343248 [details] [review]
0001-videotimecode-Added-unit-test-for-GstVideoTimeCodeIn.patch
Comment 11 Jan Schmidt 2017-01-11 00:35:01 UTC
Thanks, pushed:

commit eefa0d8cf5f843f3af72bf07ad57bfbbc06ca54d
Author: Vivia Nikolaidou <vivia@ahiru.eu>
Date:   Tue Jan 10 16:36:08 2017 +0200

    videotimecode: Added unit test for GstVideoTimeCodeInterval
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776447

commit 629e8229a7b9de1632222f92cd69a9245b5f0494
Author: Vivia Nikolaidou <vivia@toolsonair.com>
Date:   Thu Dec 29 14:42:52 2016 +0200

    videotimecode: New GstVideoTimeCodeInterval type, ability to add to a GstVideoTimeCode
    
    Sometimes there is a human-oriented timecode that represents an
    interval between two other timecodes. It corresponds to the human
    perception of "add X hours" or "add X seconds" to a specific timecode,
    taking drop-frame oddities into account. This interval-representing
    timecode is now a GstVideoTimeCodeInterval. Also added function to add it to
    a GstVideoTimeCode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776447