GNOME Bugzilla – Bug 733556
h264 payloader : append packetization-mode parameter for SDP
Last modified: 2014-08-08 12:46:37 UTC
SDP message from rtsp server doesn't contain the packetization mode. Append a packetization-mode for the SDP description.
Created attachment 281457 [details] [review] Append profile-level-i to SDP
Created attachment 281458 [details] [review] Append packetization mode to SDP
Created attachment 281459 [details] [review] Append packetization mode to SDP
Created attachment 282550 [details] [review] Append packetization mode to SDP Rebased with recent code.
Comment on attachment 282550 [details] [review] Append packetization mode to SDP >+#define DEFAULT_PACKETIZATION_MODE 1 This define does not really match our conventions. The other DEFAULT_FOO defines are for GObject properties, but what you're adding here is not a property. >+ packet_mode = g_strdup_printf ("%d", DEFAULT_PACKETIZATION_MODE); > ... > res = gst_rtp_base_payload_set_outcaps (basepayload, >+ "packetization-mode", G_TYPE_STRING, packet_mode, > "profile-level-id", G_TYPE_STRING, profile, > "sprop-parameter-sets", G_TYPE_STRING, sprops->str, NULL); If it's effectively a constant, you might just as well code it as such in the code, i.e. >+ "packetization-mode", G_TYPE_STRING, "1", That's shorter and more readable. I haven't checked yet if we conform to all the constraints implied by this mode yet though.
Created attachment 282711 [details] [review] Append packetization mode to SDP
Pushed, thanks: commit 421b00cd173d48ecb7f4dc52cddedf1ada85ae58 Author: Srimanta Panda <srimanta@axis.com> Date: Tue Aug 5 11:47:39 2014 +0200 rtph264pay: append packetization mode parameter to SDP Append packetization-mode parameter to SDP description. Packetization mode signals the properties of an RTP payload type. https://bugzilla.gnome.org/show_bug.cgi?id=733556