Seeking Help with DeepStream App for Handling Multiple RTSP Streams

• Hardware Platform (Jetson / GPU) Jetson AGX Orin 64gb Developer Kit
• DeepStream Version 6.3
• JetPack Version (valid for Jetson only) 5.1.2
• TensorRT Version 8.5.2.2.
• NVIDIA GPU Driver Version (valid for GPU only)

Hello everyone,

I’m working on a DeepStream application that’s running inside a Docker container. My objective is to run multiple RTSP streams without the application being disrupted when one or more streams stop due to bad connections or unavailability.

I’ve attempted several solutions but have yet to find success. The application needs to be resilient, pausing streams that are not available and continuing with the others, rather than stopping entirely.

Currently, if I disconnect a camera and then reconnect it, all streams are interrupted and only resume after about a minute. Sometimes, the app will “pause” some streams and keep others running, which I can tell from the exported file it creates. Eventually, the app freezes completely (no more logs are printed), and I’m forced to restart it.

The app is based on the deepstream-nvdsanalytics-test from the demo apps. I would greatly appreciate any advice or suggestions from the community on how to handle this issue.

Here’s my code:
app_main_v4.zip (8.4 KB)

Thanks in advance for your help!

here are some solutions.

  1. please refer to this topic. please refer to deepstream-app opensource code. It already supports RTSP reconnection functionality. deepstream-app uses rtspsrc_monitor_probe_func to monitor src’s data receiving. it will reconnect rtsp srouce in watch_source_status when not receiving data in a specific time.
  2. please refer to this topic. nvurisrcbin also supports RTSP reconnection functionality after set rtsp-reconnect-interval property.

Thank you for your assistance; it was quite beneficial. After some investigation, we identified the key issue
topic which significantly influenced the workflow. Once addressed, everything started functioning as expected.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.