NVIDIA Jetson Xavier - Compositor GStreamer pipelines
Composition and Display
gst-launch-1.0 nvcompositor \ name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=1920 \ sink_0::height=1080 sink_1::xpos=0 sink_1::ypos=0 \ sink_1::width=1600 sink_1::height=1024 sink_2::xpos=0 \ sink_2::ypos=0 sink_2::width=1366 sink_2::height=768 \ sink_3::xpos=0 sink_3::ypos=0 sink_3::width=1024 \ sink_3::height=576 ! nvoverlaysink display-id=1 \ videotestsrc ! comp. \ videotestsrc ! comp. \ videotestsrc ! comp. \ videotestsrc ! comp. -e
Composition and Streaming
HOST=10.251.101.33 # Where the video will be received PORT=9000
Src:
gst-launch-1.0 nvcompositor \ name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=1920 \ sink_0::height=1080 sink_1::xpos=0 sink_1::ypos=0 \ sink_1::width=1600 sink_1::height=1024 sink_2::xpos=0 \ sink_2::ypos=0 sink_2::width=1366 sink_2::height=768 \ sink_3::xpos=0 sink_3::ypos=0 sink_3::width=1024 \ sink_3::height=576 ! \ nvvidconv ! omxh264enc ! rtph264pay config-interval=10 ! udpsink host=$HOST port=$PORT \ videotestsrc ! comp. \ videotestsrc ! comp. \ videotestsrc ! comp. \ videotestsrc ! comp. -e
Sink:
gst-launch-1.0 -v udpsrc port=$PORT ! 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! xvimagesink