From f6714ee5832bdb042f1f4f09e5c99b853c1a56e3 Mon Sep 17 00:00:00 2001 From: Artur Date: Thu, 18 Sep 2025 21:41:44 +0300 Subject: [PATCH] small opts --- compose-gstreamer.sh | 8 +++----- gstPlayback.sh | 4 ++-- l_nvfull.sh | 3 +++ 3 files changed, 8 insertions(+), 7 deletions(-) mode change 100644 => 100755 compose-gstreamer.sh diff --git a/compose-gstreamer.sh b/compose-gstreamer.sh old mode 100644 new mode 100755 index 8cfae16..3c8f12e --- a/compose-gstreamer.sh +++ b/compose-gstreamer.sh @@ -1,7 +1,7 @@ #!/bin/bash gst-launch-1.0 \ - compositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_1::xpos=1920 sink_1::ypos=0 ! \ + compositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_1::xpos=1920 sink_1::ypos=0 ! nvvideoconvert ! \ 'video/x-raw(memory:NVMM),width=3840,height=1080,framerate=60/1,format=I420' ! \ nvv4l2h264enc bitrate=10000000 control-rate=1 idrinterval=1 tuning-info-id=3 preset-id=1 profile=0 ! \ h264parse config-interval=1 ! \ @@ -10,11 +10,9 @@ gst-launch-1.0 \ udpsink host=239.239.239.3 port=2055 auto-multicast=true sync=false async=false qos=false \ \ decklinkvideosrc device-number=0 connection=1 mode=1080p60 drop-no-signal-frames=true ! \ - nvvideoconvert ! \ - 'video/x-raw(memory:NVMM),format=I420' ! \ + 'video/x-raw,format=(string)UYVY' ! \ comp.sink_0 \ \ decklinkvideosrc device-number=1 connection=1 mode=1080p60 drop-no-signal-frames=true ! \ - nvvideoconvert ! \ - 'video/x-raw(memory:NVMM),format=I420' ! \ + 'video/x-raw,format=(string)UYVY' ! \ comp.sink_1 \ No newline at end of file diff --git a/gstPlayback.sh b/gstPlayback.sh index 35ae884..388f2f4 100755 --- a/gstPlayback.sh +++ b/gstPlayback.sh @@ -10,8 +10,8 @@ gst-launch-1.0 -v \ udpsrc uri="udp://239.239.239.3:8889" ! \ "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T" ! \ rtpmp2tdepay ! \ - tsdemux ! \ + tsdemux latency=0 ! \ h264parse ! \ - avdec_h264 ! \ + avdec_h264 qos=false ! \ videoconvert ! \ autovideosink sync=false diff --git a/l_nvfull.sh b/l_nvfull.sh index 3cbafb6..91d106e 100755 --- a/l_nvfull.sh +++ b/l_nvfull.sh @@ -12,3 +12,6 @@ GST_DEBUG_COLOR_MODE=off \ mpegtsmux ! \ rtpmp2tpay ! \ udpsink host=239.239.239.3 port=8889 auto-multicast=true sync=false async=false qos=false + +# tune decklinkvideosrc buffer-size = 1 as a workaround +# \ No newline at end of file