Use sdp in order to playback rtp stream

Sebastian Dröge sebastian at centricular.com
Tue May 3 07:24:54 UTC 2016


On Di, 2016-05-03 at 07:18 +0000, Paixao Julien wrote:
> 
> > Can you show an example SDP? This means that it's not detected as
> > SDP by GStreamer for whatever reason.
> > 
> v=0
> o=user 53655765 2353687637 IN IP4 10.20.1.250
> s=-
> c=IN IP4 10.20.1.39
> t=0 0
> m=audio 3001 RTP/AVP 0
> a=rtpmap:0 PCMU/8000

Which version of GStreamer are you using? 1.8.1 is detecting this as
valid SDP.

> > > On client side, I also tried the sdpdemux element, but the
> > > problem with that element is that it "only" provides the RTP raw
> > > data, but
> > no information about the media stream properties (G711 or G722).
> > > 
> > > So I cannot know which rtp depayloader to attach to the rtp raw
> > > data...
> > > 
> > > Would you know a way of achieving the needed playback of such an
> > > RTP stream containing G711 or G722?
> > The application/x-rtp caps on the streams that come out of sdpdemux
> > have all the relevant information from the SDP, including the
> > encoding name.
> > 
> Indeed, it should do the job, I will attach the correct rtp
> depayloader and decoder depending on the caps in the application/x-
> rtp of the stream.

You can also use decodebin for example, it will automatically pick a
depayloader for you based on the caps.

> FYI I am now trying to get it working with a multicast IP in the SDP. For the moment I get an error, I will dig into it (no bug report found).
> ERROR: from element /GstPipeline:pipeline0/GstSDPDemux:sdpdemux0/GstUDPSrc:udpsrc0: Could not get/set settings from/on resource.
> Additional debug info:
> gstudpsrc.c(916): gst_udpsrc_start (): /GstPipeline:pipeline0/GstSDPDemux:sdpdemux0/GstUDPSrc:udpsrc0:
> could add membership: Error joining multicast group: No such device

Can you file a bug about this with the SDP and a debug log with
GST_DEBUG=udpsrc:6? Do you have multiple network devices and a specific
one has to be used for this multicast group?

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160503/885185f3/attachment.sig>


More information about the gstreamer-devel mailing list