Deepstream 6.0 RTSP Re-Connection Issue

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 6.0
• JetPack Version (valid for Jetson only) 4.6
• TensorRT Version 7

The system has one source after running the pipeline 10+ hours the RTSP connect close. We add into the configuration (rtsp-reconnect-interval-sec=50) and we use method (watch_source_status) from (deepstream_app_config_parser.c) class to open thread to monitoring the stream. The issue if the RTSP connection close their is no re-connect to the stream again and the system is not closing only appear a 0 FPS without any re-connection. As shown in the figures below.



configuration.ini (3.9 KB)

Sorry the method (watch_source_status) from (deepstream_source_bin.c) class

Did your rtsp source always disconnect? Could you try to disconnect your rtsp source and connect it again and see if the deepstream can reconnect OK?

Yes is always disconnected. I try to do it and their is no re-connection.

I tested the rtsp source in my env with the deepstream 6.1. When I disconnected the net, it tried to reconnect every 50 sec.
Are you sure your rtsp source is connected after the disconnection? You can try to ping it.

If the RTSP source connection was disconnected again (for the second time) their is no retrying even when the connection up again.
The system will work without any frame (0 FPS).

Which Jetson platform do you use? Could you try to update to our latest version:6.1 and test it? Thanks

Jetson AGX. No I cannot my solution should be work on Deeptsream 6.0

I compared deepstream version 6.0 with 6.1. It reconnects well with 6.1 version, but doesn’t with the 6.0. So we suggeset you to update to the latest version cause we will not support the old version alone. You can also compare the relevant source codes of our two versions and modify it by yourself.

This is the deepstream_source_bin.c and the system reconnect only one time then doesn’t reconnect again if stream disconnected (
deepstream_source_bin.c (52.1 KB)
).

This class I compare it with deepstream 6.1 and nothing change.
So the issue appear in both versions.

The difference between the two versions is not only in the code of deepstream only, but also in GStreamer(from 1.14 to 1.16). If you don’t want to update the deepstream version, you may need to update the gstreamer version in your env too.

1- How can I update my GStreamer?

2- And why pipeline stream does disconnected everyday at 5 AM? is their a specific configuration? I face this issue only in DeepStream 6.0 before version(5.0, 5.1, 4.0) wasn’t have this issue.

=====>1- How can I update my GStreamer?
You should download the gstreamer1.16 source code and build it with the same toolchain that deepstream used. So it’s very complex. We still suggeset you to update to the latest version 6.1.
====>2- And why pipeline streeam…
Just from the picture you attached, your server is disconnected. Could not connect to server

Regarding your second answer as attached picture the camera connection is up is not close. The RTSP stream is closed even when their is no any problem in our server.
Everyday in specific time (in our case every 5AM) the RTSP stream is close with 0 FPS and unfortunately we cannot re-connect.

1- So, How can we solve the re-connect problem in deepStream 6.0?

2- and what is the method in class ( deepstream_source_bin.c) can help us to customize it for re-connecting RTSP stream?

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

1.We still suggest you update to the latest version. We will not provide patches for specific problems on the old version.
2.If you want resove it on 6.0 version, you can add logs to locate the problem by yourself and compare with the latest version of the code.

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