Avoid deepstream app from exiting if rtsp feed goes off for some time say 5 min, and resumes once rtsp feed gets available

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) GPU- 1650
• DeepStream Version 5.0.1
**• NVIDIA GPU Driver Version (valid for GPU only)**455.45

I have created deepstream app(python) with one camera, so if network is off for some time time, i dont want the application to exit. The pipeline should wait for network and if its available in some time say 5 min, it resumes. I need some pointer/ reference app in python related to this.

We have c/c++ sample of waiting for the data and reconnecting when timeout. Please refer to /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/

Hi Fiona, i tried sample app, deepstream-test3. it support around 15 seconds when stream is not available (network off) and resumes back without exiting the app. How can i extends this timeout. And how can i implement same in my python pipeline?

Have you read the code? In /opt/nvidia/deepstream/deepstream/sources/apps/apps-common/src/deepstream_source_bin.c, watch_source_status() thread will monitor the source status every second. Please read the code.

This is just a sample, nobody can predict how long the rtsp source will be ok. So it depends on you to write your own checking and waiting strategy according to your requirement.

Right Fiona, i seen /opt/nvidia/deepstream/deepstream/sources/apps/apps-common/src/deepstream_source_bin.c, and trying running deepstream-test5 to see it working. I want similar feature in python deepstream pipeline. need your suggestion to implement it. Any sample app/code reference in python would be very useful.

Unfortunately, there is no such python sample.