How to stream camera video to external devices.

The udpsink element sends udp-packages to a certain host(target) or by a multicast address. This is specified by parameters to the launch.sh command or to the executable itself.

Building the streamer

The GStreamerCameraAppSource is built with

jetson-scripts/build-gstreamer-camera-appsource

Running the app

Start the stream after you set up the viewer

The launch.sh is useful because it add the runtime library path to the environment before execution.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ubuntu/gstreamer-build/out/lib/

./launch.sh -udp 1234 10.13.0.106 100

Viewing the stream

The simplest way to wiew the stream on you target device is to use gst-launch-1.0. The following pipeline unwraps the stream to a autovideosink

gst-launch-1.0 udpsrc port=1234 ! "application/x-rtp, payload=127" ! rtph264depay ! decodebin ! autovideosink sync=false

This is basically just a reversal of the packaging to udpsink

Another option is to use glimagesink

gst-launch-1.0 udpsrc port=1234 ! "application/x-rtp, payload=127" ! rtph264depay ! decodebin ! glimagesink

This reports dropped buffers on my machine though.

commit: $Id: udp-streaming.md 550 2017-11-29 10:31:31Z elidim $