How to use this "gst_element_send_nvevent_new_stream_reset" to reconnect rtsp stream in python

How to use this “gst_element_send_nvevent_new_stream_reset” to reconnect rtsp stream in python

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)

• DeepStream Version

• JetPack Version (valid for Jetson only)

• TensorRT Version

• NVIDIA GPU Driver Version (valid for GPU only)

• Issue Type( questions, new requirements, bugs)

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Hardware —> GPU
Deepstream Version —> 6.1.1
TRT —>8.4

I want to reconnect my RTSP stream if it’s get down after certain time interval.
I show in documentation pyds has ““gst_element_send_nvevent_new_stream_reset”” Function
How to I reconnect the stream with out re-build the pipeline ??

please find rtsp_reconnect_attempts and rtsp-reconnect-interval in Deepstream SDK, it will include RTSP reconnecting logics.

I’m using python as a language … I did not fine any demo code for python to reconnect down stream into the same pipeline !
It will be helpful If you help me out with this !

rtsp_reconnect_attempts, rtsp-reconnect-interval This is have c++ But I did not find anything regarding python ! How I can reconnect any stream Which get down and It’s automatically added after some time interval ! If You can help me with this !

the C rtsp-reconnect mechanism can works fine, currently you might port it to python version.

I know c++ code it’s working But for python How we can do re-connect any down stream
if You give some idea this will better for me ! I’m stuck here !

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

please refer to rtspsrc_monitor_probe_func, you need to add a probe function to get buffer 's time, then add a watch_source_status to check if rtsp source is disconnected based on buffer’s time.

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