DREAMER

[GStreamer] pipeline example 본문

프로그래밍/Linux

[GStreamer] pipeline example

연소민 2024. 9. 27. 09:42
728x90
반응형
  • nvarguscamerasrc -> waylandsink
gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=2 ! nvvidconv ! 'video/x-raw,format=(string)NV12,width=1920,height=1080' ! waylandsink

 

  • 2 nvarguscamerasrc -> nvcompositor -> waylandsink
gst-launch-1.0 nvcompositor name=mix sink_0::xpos=0 sink_0::width=960 sink_0::height=1080 sink_1::xpos=960 sink_1::width=960 sink_1::height=1080 ! \
'video/x-raw(memory:NVMM), width=1920, height=1080' ! nvvidconv ! 'video/x-raw,format=(string)NV12' ! \
waylandsink nvarguscamerasrc sensor-id=0 sensor-mode=2 ! \
nvvidconv ! 'video/x-raw(memory:NVMM), width=1920, height=1080' ! \
nvvidconv ! 'video/x-raw, width=960, height=1080, format=(string)RGBA' ! \
nvvidconv ! \
mix.sink_0 nvarguscamerasrc sensor-id=1 sensor-mode=2 ! \
nvvidconv ! 'video/x-raw(memory:NVMM), width=1920, height=1080' ! \
nvvidconv ! 'video/x-raw, width=960, height=1080, format=(string)RGBA' ! \
nvvidconv ! mix.sink_1

 

  • 2 nvarguscamerasrc -> nvcompositor -> multiudpsink
gst-launch-1.0 nvcompositor name=mix sink_0::xpos=0 sink_0::width=960 sink_0::height=1080 sink_1::xpos=960 sink_1::width=960 sink_1::height=1080 ! \
'video/x-raw(memory:NVMM), width=1920, height=1080' ! \
nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)NV12' ! \
nvv4l2h264enc bitrate=8000000 ! 'video/x-h264, stream-format=byte-stream' ! \
h264parse ! rtph264pay ! \
multiudpsink clients=192.168.10.13:10000 nvarguscamerasrc sensor-id=0 sensor-mode=2 ! \
nvvidconv ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=(string)RGBA' ! \
nvvidconv ! mix.sink_0 nvarguscamerasrc sensor-id=1 sensor-mode=2 ! \
nvvidconv ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=(string)RGBA' ! \
nvvidconv ! mix.sink_1

 

  • udpsrc -> xvimagesink
gst-launch-1.0 udpsrc port=10000 ! \
"application/x-rtp, media=video, clock-rate=90000, encoding-name=H264,payload=96" ! \
rtph264depay ! h264parse ! decodebin ! videoconvert ! \
xvimagesink render-rectangle='<0,0,960,540>'
728x90
반응형