UDP Streaming in SDK

Emmett Palaima epalaima at berklee.edu
Tue Oct 25 15:45:41 UTC 2016


That makes sense. Just to make sure I am understanding this correctly,
would I just put the command line I am using to create the pipeline into
gst_parse_launch verbatim? So:

gst_parse_launch("gst-launch-1.0 udpsrc port=5001 ! application/x-rtp,
payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink
sync=false text-overlay=false", &errorptr);

Also, if I want to set up each element of the pipeline individually, how
would I read from a udp source? That was one of the main things I was
looking for and could not seem to find.

I will also definitely check out the Raspberry Pi link you posted. It seems
that your method is more robust.

Thank you for all your help!


On Tue, Oct 25, 2016 at 6:51 AM, Sebastian Dröge <sebastian at centricular.com>
wrote:

> On Mon, 2016-10-24 at 18:39 -0400, Emmett Palaima wrote:
> > [...]
> >
> > Is this the correct way of doing this? Thanks!
> >
> > Command Line Mac:
> > gst-launch-1.0 udpsrc port=5001 ! application/x-rtp, payload=96 !
> > rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink
> > sync=false text-overlay=false
>
> You could use the same pipeline and just use
>   gst_parse_launch()
> instead of
>   gst_element_factory_make()
>
> above. Or you manually build that pipeline step by step. Instead of the
> capsfilter, you can also set the caps on the "caps" property of udpsrc
> (note that the caps in your commandline there are syntax sugar for
> using the capsfilter element and setting that as the caps property).
>
> > Command Line Raspberry Pi:
> > raspivid -t 999999 -b 2000000 -o - | gst-launch-1.0 -e -vvv fdsrc !
> > h264parse ! rtph264pay pt=96 config-interval=5 ! udpsink host=(MAC's
> > IP Address) port=5000
>
> You probably want to use rpicamsrc instead of this duct-tape solution
> via piping: https://github.com/thaytan/gst-rpicamsrc
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161025/d60cf46f/attachment-0001.html>


More information about the gstreamer-devel mailing list