NVIDIA Jetson Xavier NX GStreamer streaming pipelines

From RidgeRun Developer Wiki



Previous: Gstreamer/Example_Pipelines/Decoding Index Next: Gstreamer/Example_Pipelines/Transforming





Problems running the pipelines shown on this page? Please see our GStreamer Debugging guide for help.

RTP Streaming

H.264

OMX Sender

CLIENT_IP=<IP_ADDRESS>
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! omxh264enc control-rate=2 bitrate=4000000 ! video/x-h264, stream-format=byte-stream ! rtph264pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

V4L2 Sender

CLIENT_IP=<IP_ADDRESS>
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! nvv4l2h264enc bitrate=8000000 insert-sps-pps=true ! rtph264pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

PC Client

gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! queue ! avdec_h264 ! xvimagesink sync=false async=false -e

H.265

OMX Sender

CLIENT_IP=<IP_ADDRESS>
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! omxh265enc control-rate=2 bitrate=8000000  ! video/x-h265, stream-format=byte-stream ! rtph265pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

V4L2 Sender

CLIENT_IP=<IP_ADDRESS>
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! nvv4l2h265enc bitrate=8000000 ! rtph265pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

PC Client

gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H265,payload=96 ! rtph265depay ! h265parse ! queue ! avdec_h265 ! xvimagesink sync=false async=false -e

VP9

OMX Sender

CLIENT_IP=<IP_ADDRESS>
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! omxvp9enc ! rtpvp9pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

V4L2 Sender

CLIENT_IP=<IP_ADDRESS>
gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! nvv4l2vp9enc ! rtpvp9pay mtu=1400 ! udpsink host=$CLIENT_IP port=5000 sync=false async=false

PC Client

gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=VP9,payload=96 ! rtpvp9depay ! queue ! avdec_vp9 ! xvimagesink sync=false async=false

RTSP Streaming

For RTSP streaming we use RidgeRun rtspsink element, for more information visit: RidgeRun GstRtspSink

H.264

OMX Sender

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! omxh264enc control-rate=2 bitrate=4000000 ! video/x-h264, mapping=/stream1 ! rtspsink service=5000

V4L2 Sender

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! nvv4l2h264enc bitrate=8000000 insert-sps-pps=true ! video/x-h264, mapping=/stream1 ! rtspsink service=5000

PC Client

IP_ADDRESS=<board IP address>
PORT=5000
MAPPING=/stream1

vlc rtsp://${IP_ADDRESS}:${PORT}/${MAPPING}


VP9

OMX Sender

gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! omxvp9enc ! video/x-vp9, mapping=/stream1 ! rtspsink service=5000

V4L2 Sender

gst-launch-1.0 -e nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! nvv4l2vp9enc ! video/x-vp9, mapping=/stream1 ! rtspsink service=5000

PC Client

IP_ADDRESS=<board IP address>
PORT=5000
MAPPING=/stream1

vlc rtsp://${IP_ADDRESS}:${PORT}/${MAPPING}


Previous: Gstreamer/Example_Pipelines/Decoding Index Next: Gstreamer/Example_Pipelines/Transforming