Pipeline cannot get frame from rtsp when uri-list=NULL

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)
• DeepStream Version 6.3
• TensorRT 8.5.3.1
• NVIDIA GPU Driver Version 535.113.01
• Issue Type(bugs)

When I do not set “uri-list” and “sensor-id-list” of nvmultiurisrcbin, with “rtsp-reconnect-interval”=10, I add the first camera from curl, the pipeline need to wait 10 seconds to get frames. If “rtsp-reconnect-interval”=0, the camera was added in the pipeline but cannot get frames and do not show any WARN messages.
I use gst-launch-1.0 and with both case and these WARN appear:

GST_DEBUG=3 gst-launch-1.0 nvmultiurisrcbin port=9000 ip=localhost batched-push-timeout=33333 max-batch-size=10 drop-pipeline-eos=1 live-source=1 width=1280 height=720 rtsp-reconnect-interval=10 ! fakesink

Wait for 10 seconds:

After 10 seconds:

GST_DEBUG=3 gst-launch-1.0 nvmultiurisrcbin port=9000 ip=localhost batched-push-timeout=33333 max-batch-size=10 drop-pipeline-eos=1 live-source=1 width=1280 height=720 rtsp-reconnect-interval=0 ! fakesink

I see STATE change from PAUSED to PLAY when “rtsp-reconnect-interval”=10 and just change from READY to PAUSED when “rtsp-reconnect-interval”=0

I believe this is normal.

1.rtsp-reconnect-interval must be bigger than 0, otherwise it won’t work.
If pipeline don’t reconnect, there will be no data.
You can get the following description after run gst-inspect-1.0 nvmultiurisrcbin

rtsp-reconnect-interval: Timeout in seconds to wait since last data was received from an RTSP source before forcing a reconnection. 0=disable timeout
  1. If you set rtsp-reconnect-interval=10 but there are no uri when the pipeline start, It will be reconnect after 10 seconds. then the pipeline get frames.
1 Like

@junshengy Hi, when I use GST_DEBUG=3 gst-launch-1.0 nvmultiurisrcbin width=1280 height=720 rtsp-reconnect-interval=10 ! fakesink and then I add a disconnected camera by curl. After few seconds, the camera reconnected successfully but the stream did not open, just “Sent PLAY request”.
Could you reproduce and show me how to fix this, I think it can be solve in gstdsnvmultiurisrcbin.cpp.
Thanks a lot.

This problem is similar to your other topic.

Although your rtsp camera is disconnected, reconnection is taking effect.

Judging from this log, I think the reconnection was not successful, which is normal.