Change rtsp from H264 to H265 during runtime time

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)

When the deepstream pipeline is running, I change my camera output format from H264 to H265.

And then I will get below connection issue and it can’t be recovered from reconnection.
I need fully understand this rtsp-reconnect-interval. How many times reconnection will it try? If I set rtsp-reconnect-interval =0, does it mean, it will never reconnect even if there is no data, or the camera dies. After camera is back, what will happen?

WARNING from element uri-decode-bin: No data from source rtsp://admin:1qaz2wsx@ since last 60 sec. Trying reconnection
Warning: No data from source rtsp://admin:1qaz2wsx@ since last 60 sec. Trying reconnection
WARNING from element src: Unhandled error
Warning: Unhandled error
WARNING from element src: Could not write to resource.
Warning: Could not write to resource.

ERROR from element uri-decode-bin: Failed to populate and link video elements
Error details: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvdsbins/gstdsnvurisrcbin.cpp(1706): cb_newpad_rtspsrc (): /GstPipeline:v2x-pipeline/GstBin:source-bin-00/GstDsNvUriSrcBin:uri-decode-bin
Resetting source rtsp://admin:1qaz2wsx@
Returned, stopping playback
[NvMultiObjectTracker] De-initialized
mqtt disconnected
Deleting pipeline

In this case, the pipeline needs to be restarted. Reconnecting cannot solve this case.

This sample is close to your usage scenario

rtsp-reconnect-interval means that if no data arrives within the specified time, the connection will be reconnected. If it is set to 0, nothing will be reconnected.