Use sdp in order to playback rtp stream

Sebastian Dröge sebastian at centricular.com
Mon May 2 14:52:43 UTC 2016


On Mo, 2016-05-02 at 14:23 +0000, Paixao Julien wrote:
> Hi,
> 
> On the network I have a server which will start RTP streaming with G711 or G722 data (dynamically chosen).
> On client side I would like to be able to playback the RTP stream whether it is G711 or G722 data.
> 
> In order to achieve that, I needed to make available in some ways the media stream information.
> I decided to use SDP, an SDP file will be available on the server which will contain the information about the media stream.
> This file will be dynamically changed depending on the codec the server will use.
> 
> On client side I tried the element uridecodebin with the uri property pointing to the SDP file on the server:
> - uridecodebin uri=http://<server-ip>:<server-port>/media.sdp ! fakesink
> 
> But this is not working, it gives an error that the type of the stream could not be determined:
> ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstTypeFindElement:typefindelement0: Could not determine type of stream.
> Additional debug info:
> gsttypefindelement.c(911): gst_type_find_element_chain_do_typefinding (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstTypeFindElement:typefindelement0

Can you show an example SDP? This means that it's not detected as SDP
by GStreamer for whatever reason.

Independent of that you will run into this bug with sdpdemux:
https://bugzilla.gnome.org/show_bug.cgi?id=702495

To work around that there is sdpsrc now, and you can build a static
pipeline with sdpdemux.

> 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.

-- 
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/20160502/a5fcc118/attachment.sig>


More information about the gstreamer-devel mailing list