NVIDIA Jetson Xavier - Compositor GStreamer pipelines

From RidgeRun Developer Wiki
Revision as of 17:52, 13 February 2023 by Spalli (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)




Previous: GStreamer_Pipelines/Maximum_Number_of_Simultaneous_Streams Index Next: Deep_Learning





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



Previous: GStreamer_Pipelines/Maximum_Number_of_Simultaneous_Streams Index Next: Deep_Learning