@junshengy I also faced this issue. Pipeline works when config-file-path
is not set, but hangs when I pass a config file to config-file-path
.
Here’s config file (nvstreamux.txt
):
[property]
algorithm-type=1
batch-size=1
overall-max-fps-n=120
overall-max-fps-d=1
overall-min-fps-n=5
overall-min-fps-d=1
max-same-source-frames=1
adaptive-batching=1
max-fps-control=0
All parameters are default according to Gst-nvstreammux New — DeepStream documentation 6.4 documentation
The pipeline:
docker run \
--name test \
--gpus all \
--entrypoint gst-launch-1.0 \
-v "$(pwd):/test" \
-e USE_NEW_NVSTREAMMUX=yes \
-e GST_DEBUG=GST_SCHEDULING:5,nvstreammux:5 \
-e GST_DEBUG_NO_COLOR=1 \
nvcr.io/nvidia/deepstream:6.4-samples-multiarch \
--eos-on-shutdown \
nvstreammux name=mux batch-size=1 config-file-path=/test/nvstreamux.txt ! \
fakesink sync=false qos=false enable-last-sample=false async=false \
videotestsrc ! \
'video/x-raw,width=1280,height=720,framerate=30/1' ! \
nvvideoconvert ! \
'video/x-raw(memory:NVMM),width=1280,height=720,framerate=30/1' ! \
mux.sink_0
Logs when config-file-path
is specified:
nvstreammux-with-config.log (878.9 KB)
Only one buffer reached fakesink
:
0:00:00.488622344 1 0x570cf09b9a40 DEBUG GST_SCHEDULING gstpad.c:4443:gst_pad_chain_data_unchecked:<fakesink0:sink> calling chainfunction &gst_base_sink_chain with buffer buffer: 0x570cf09d2b40, pts 0:00:00.033333333, dts 99:99:99.999999999, dur 99:99:99.999999999, size 64, offset none, offset_end none, flags 0x0
0:00:00.488665485 1 0x570cf09b9a40 DEBUG GST_SCHEDULING gstpad.c:4449:gst_pad_chain_data_unchecked:<fakesink0:sink> called chainfunction &gst_base_sink_chain with buffer 0x570cf09d2b40, returned ok
Logs when config-file-path
is not specified:
nvstreammux-no-config.log (2.4 MB)
All buffers reach fakesink
:
0:00:01.322831795 1 0x629873576980 DEBUG GST_SCHEDULING gstpad.c:4443:gst_pad_chain_data_unchecked:<fakesink0:sink> calling chainfunction &gst_base_sink_chain with buffer buffer: 0x629873596d80, pts 0:00:06.266666604, dts 99:99:99.999999999, dur 99:99:99.999999999, size 64, offset none, offset_end none, flags 0x0
0:00:01.322882590 1 0x629873576980 DEBUG GST_SCHEDULING gstpad.c:4449:gst_pad_chain_data_unchecked:<fakesink0:sink> called chainfunction &gst_base_sink_chain with buffer 0x629873596d80, returned ok
0:00:01.328078046 1 0x629873576980 DEBUG GST_SCHEDULING gstpad.c:4443:gst_pad_chain_data_unchecked:<fakesink0:sink> calling chainfunction &gst_base_sink_chain with buffer buffer: 0x629873596c60, pts 0:00:06.299999937, dts 99:99:99.999999999, dur 99:99:99.999999999, size 64, offset none, offset_end none, flags 0x0
0:00:01.328110948 1 0x629873576980 DEBUG GST_SCHEDULING gstpad.c:4449:gst_pad_chain_data_unchecked:<fakesink0:sink> called chainfunction &gst_base_sink_chain with buffer 0x629873596c60, returned ok