How to play rtp stream with playbin?

Sebastian Dröge sebastian at centricular.com
Thu Feb 4 23:53:05 UTC 2016


On Do, 2016-02-04 at 17:59 +0900, Taeho Oh wrote:
> Hi.
> 
> I have a rtp streaming source. The following command works well in my
> environment.
> 
> gst-launch-1.0 udpsrc uri=udp://aaa.bbb.ccc.ddd:eee
> caps='application/x-rtp,media=(string)video,clock-
> rate=(int)90000,payload=(int)33' ! rtpbin ! rtpmp2tdepay ! decodebin
> name=decodebin decodebin. ! autovideosink decodebin. ! autoaudiosink
> 
> I tried to play rtp stream with playbin as follows.
> 
> gst-launch-1.0 playbin uri=udp://aaa.bbb.ccc.ddd:eee

RTP requires additional configuration data out of band, that is not
available inside the stream itself. In your first pipeline you provide
those as caps on udpsrc.

If you use the udp:// URI scheme, it will just use an udpsrc and try to
guess the type of the stream, which does not work for RTP.

Take a look at this bug for new elements that provide an URI scheme for
RTP to provide this configuration data:
https://bugzilla.gnome.org/show_bug.cgi?id=703111

More work is needed before that can be merged though, see the comments
there.

-- 
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: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160205/057dce38/attachment.sig>


More information about the gstreamer-devel mailing list