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 726472 - rtpbasepayload: Implement video SDP attributes
rtpbasepayload: Implement video SDP attributes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal enhancement
: 1.7.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-16 19:01 UTC by Sebastian Rasmussen
Modified: 2015-10-02 14:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader. (7.24 KB, patch)
2014-03-16 19:02 UTC, Sebastian Rasmussen
needs-work Details | Review
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader. (6.44 KB, patch)
2014-03-19 00:23 UTC, Sebastian Rasmussen
none Details | Review
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader. (6.55 KB, patch)
2014-03-26 00:54 UTC, Sebastian Rasmussen
none Details | Review
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader. (7.36 KB, patch)
2014-07-08 00:31 UTC, Sebastian Rasmussen
none Details | Review
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader. (7.21 KB, patch)
2014-07-08 08:45 UTC, Sebastian Rasmussen
committed Details | Review

Description Sebastian Rasmussen 2014-03-16 19:01:15 UTC
This patch is an attempt to make the framerate SDP attribute defined for all video media in http://tools.ietf.org/html/rfc4566 available in GstRTPBasePayloader and therefore in all payloaders with video media. A test testing this newly introduced attribute has also been added.

To complete this I believe that GstRTPBaseDepayloader must also be updated as well, but I'm waiting for opinions on this approach before making those modifications. :)
Comment 1 Sebastian Rasmussen 2014-03-16 19:02:42 UTC
Created attachment 272085 [details] [review]
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader.
Comment 2 Olivier Crête 2014-03-16 19:15:46 UTC
Review of attachment 272085 [details] [review]:

::: gst-libs/gst/rtp/gstrtpbasepayload.c
@@ +416,3 @@
+    g_value_init (&value, G_TYPE_DOUBLE);
+    g_value_set_double (&value, framerate);
+    gst_structure_set_value (payload->priv->video_attributes, "a-framerate",

I think like all other SDP attributes, it should be string.

@@ +455,3 @@
+      s = gst_caps_get_structure (caps, 0);
+      if (g_str_has_prefix (gst_structure_get_name (s), "video")) {
+        parse_video_attributes (rtpbasepayload, s);

Any reason to check for video here? I'd just push a-framerate for any time which has "framerate" or "max-framerate" in the caps. You can also just get it from the current caps in set_outcaps?
Comment 3 Sebastian Rasmussen 2014-03-17 14:38:13 UTC
D'oh. That's pretty obvious. I'll fix that tonight.
Comment 4 Sebastian Rasmussen 2014-03-19 00:23:10 UTC
Created attachment 272336 [details] [review]
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader.

Ok, a bit late, but the patch is now updated.
Comment 5 Sebastian Rasmussen 2014-03-26 00:54:00 UTC
Created attachment 272934 [details] [review]
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader.

So the sinkpad need not have any caps, and if it doesn't there is no point in searching the missing caps for a media type or framerate attribute.
Comment 6 Sebastian Rasmussen 2014-07-08 00:31:11 UTC
Created attachment 280097 [details] [review]
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader.

Updated patch to apply on current git HEAD after implementation of basepayload caps renegotiation in May 2014.
Comment 7 Sebastian Rasmussen 2014-07-08 08:45:27 UTC
Created attachment 280124 [details] [review]
Proposed patch adding the video media SDP attribute framerate to the GstRTPBasePayloader.

Fixed review comment by Olivier.
Comment 8 Sebastian Dröge (slomo) 2015-10-02 14:45:05 UTC
commit 042e71a117649a3559d16e790020c4e89e8a6bf9
Author: Sebastian Rasmussen <sebras@hotmail.com>
Date:   Sat Mar 15 17:35:56 2014 +0100

    rtpbasepayload: Implement video SDP attributes
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726472