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 726416 - rtph263pay/-depay: add framesize SDP attribute
rtph263pay/-depay: add framesize SDP attribute
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal blocker
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-15 14:44 UTC by Sebastian Rasmussen
Modified: 2015-04-08 09:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch correctly(?) introducing the framesize SDP attribute for the H263 pay/depay. (5.28 KB, patch)
2014-03-15 14:46 UTC, Sebastian Rasmussen
none Details | Review
Proposed patch introducing H263-specific framesize SDP attribute for the H263 pay/depay. (6.23 KB, patch)
2014-07-08 02:15 UTC, Sebastian Rasmussen
none Details | Review
Proposed patch introducing H263-specific framesize SDP attribute for the H263 pay/depay. (6.14 KB, patch)
2015-04-02 09:08 UTC, Sebastian Rasmussen
committed Details | Review
gstrtph263depay: fix to parse framesize SDP attribute and succeed in elements/rtp-payloading unit test (1.40 KB, patch)
2015-04-08 08:31 UTC, Hyunjun Ko
none Details | Review

Description Sebastian Rasmussen 2014-03-15 14:44:05 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=726415 removes the framesize attribute from the JPEG RTP payloader because http://tools.ietf.org/html/rfc6064 defines the attribute for H.263 and not for JPEG.

This proposed patch adds the framesize attribute in the H.263 payloader.
Please pay attention to that the format of the attribute is defined as:

a=framesize:<payload type number> <width>-<height>

Which includes the payload type number. This likely means that a patch is necessary in gst-rtp-server to add the payload type. I'll whip up such a patch if the change in this bug is considered good.
Comment 1 Sebastian Rasmussen 2014-03-15 14:46:49 UTC
Created attachment 272013 [details] [review]
Proposed patch correctly(?) introducing the framesize SDP attribute for the H263 pay/depay.
Comment 2 Sebastian Rasmussen 2014-03-18 00:21:33 UTC
Oh and an additional note -- the attached patch does _not_ include <payload type number> as of right now. As I understood the discussion payloaders should not do this and this is by design. I'm not sure I understand why though (why is <payload type number> treated any different than the dash between width and height)?
Comment 3 Olivier Crête 2014-03-18 02:12:54 UTC
I think you should include the pt in this case, I don't think it applies to generic "a-.." parameters, only to specific ones like fmtp or rtcp-fb that the SDP parser/generator knows.
Comment 4 Sebastian Rasmussen 2014-03-18 02:45:29 UTC
(In reply to comment #3)
> I think you should include the pt in this case,

if the SDP parser/generator doesn't know -- absolutely
, but...

> I don't think it applies to generic "a-.." parameters, only to specific
> ones like fmtp or rtcp-fb that the SDP parser/generator knows.

...I guess the question is rather:
should the parser/generator know about the framerate attribute too?
Comment 5 Olivier Crête 2014-03-18 04:30:35 UTC
It's h.263 specific, so I'd vote no, but Wim may have an different opinion ?
Comment 6 Sebastian Rasmussen 2014-03-19 00:26:28 UTC
(In reply to comment #5)
> It's h.263 specific, so I'd vote no, but Wim may have an different opinion ?

do I read you right if I assume that you'd vote no to that the rtsp-server should prepend pt..? how about the concept of adding the attribute to the H.263 payloader at all?
Comment 7 Olivier Crête 2014-07-08 00:37:35 UTC
I was saying that if it's a h.263 specific attribute, then it should be handled in the h263 element ideally and the other code should just treat it generically.
Comment 8 Sebastian Rasmussen 2014-07-08 02:15:18 UTC
Created attachment 280099 [details] [review]
Proposed patch introducing H263-specific framesize SDP attribute for the H263 pay/depay.

Update format after Oliviers comments. Also attempted to improve the parsing somewhat.
Comment 9 Sebastian Rasmussen 2015-04-02 09:08:57 UTC
Created attachment 300803 [details] [review]
Proposed patch introducing H263-specific framesize SDP attribute for the H263 pay/depay.

Amended patch now that http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/commit/?id=9dadaed2fd598a0abe146d042177086fdbeaed4a has been accepted.
Comment 10 Nicolas Dufresne (ndufresne) 2015-04-02 23:45:51 UTC
(didn't realize the Fixes in from of HTTP breaks git-bz)

commit cf54d4cc67e687605aba05e5d184cf381d768593
Author: Sebastian Rasmussen <sebras@hotmail.com>
Date:   Sat Mar 15 15:23:01 2014 +0100

    rtph263pay/-depay: add framesize SDP attribute
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726416
Comment 11 Tim-Philipp Müller 2015-04-06 12:39:28 UTC
This breaks the elements/rtp-payloading unit test (not-negotiated).
Comment 12 Hyunjun Ko 2015-04-08 08:31:50 UTC
Created attachment 301103 [details] [review]
gstrtph263depay: fix to parse framesize SDP attribute and succeed in elements/rtp-payloading unit test
Comment 13 Edward Hervey 2015-04-08 09:19:57 UTC
Pushed a saner fix

commit 5e0329235e6e0fb8ab849b68ff583546b0d940a7
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Wed Apr 8 11:17:31 2015 +0200

    rtph263depay: Fix framesize parsing
    
    The string passed to the parsing function only contains a framesize, and
    not <pt> + <framesize>
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726416