How to play rtp stream with playbin?

Taeho Oh ohhara at gmail.com
Wed Feb 24 03:00:05 UTC 2016


Thank you very much for the comment.

I checked the bugzilla issue you gave me and have successfully played rtp
url with playbin. I have implemented a custom plugin which supports a
custom protocol. In the plugin, it just simply connects udpsrc and rtpbin.
While developing the plugin, I referred to the rtpsrc source code in the
bugzilla issue.

I hope rtpsrc and rtpsink would be integrated into gstreamer mainline. It
would make many others' life easier.

Note that the plugin source code is available at
https://bitbucket.org/ohhara/ohmultivideoplayer/src/d8d4382b0de5ad990e8165a629caa7c641b34abd/omvp_gst_plugin_rtpsrc.c?fileviewer=file-view-default
.

Best regards,
Taeho


On Fri, Feb 5, 2016 at 8:53 AM, Sebastian Dröge <sebastian at centricular.com>
wrote:

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


-- 
Taeho Oh ( ohhara at postech.edu )
http://ohhara.sarang.net
Postech ( Pohang University of Science and Technology )
http://www.postech.edu
Alticast Corp.
http://www.alticast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160224/06400498/attachment.html>


More information about the gstreamer-devel mailing list