UDP Streaming in SDK

Sebastian Dröge sebastian at centricular.com
Tue Oct 25 10:51:32 UTC 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161025/0702e400/attachment.sig>


More information about the gstreamer-devel mailing list