Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 6.3
• JetPack Version (valid for Jetson only) 5.1.3
• 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)
I am using this code to create source
def create_source_bin(uri: str, index: int) -> Gst.Bin:
"""Create a Gstreamer Source Bin
Args:
uri (str): input uri
index (int): index of the source bin
Raises:
Exception: if unable to create source bin
Exception: if unable to create uri decode bin
Returns:
Gst.Bin: Gstreamer Source Bin
"""
logger.info("Creating source bin")
bin_name = f"source-bin-{index:02d}"
logger.info(bin_name)
nbin = Gst.Bin.new(bin_name)
if not nbin:
logger.error(" Unable to create source bin \n")
raise Exception("Unable to create source bin")
uri_decode_bin = Gst.ElementFactory.make("nvurisrcbin", "uri-decode-bin")
uri_decode_bin.set_property("file-loop", 0)
uri_decode_bin.set_property("cudadec-memtype", 0)
uri_decode_bin.set_property('latency', 0)
uri_decode_bin.set_property("rtsp-reconnect-interval", 10)
# uri_decode_bin.set_property("rtsp-reconnect-attempts", 50)
if not uri_decode_bin:
logger.error(" Unable to create uri decode bin \n")
raise Exception("Unable to create uri decode bin")
uri_decode_bin.set_property("uri", uri)
uri_decode_bin.connect("pad-added", cb_newpad, nbin)
uri_decode_bin.connect("child-added", decodebin_child_added, nbin)
Gst.Bin.add(nbin, uri_decode_bin)
bin_pad = nbin.add_pad(
Gst.GhostPad.new_no_target("src", Gst.PadDirection.SRC)
)
if not bin_pad:
logger.error(" Failed to add ghost pad in source bin \n")
return None
return nbin
but it is not able to reconnect the camera, even the camera was up, and I have verified it using cv2.
2025-04-28 07:15:48,288 : INFO: PID 1: PERF: {0: 0.0, 1: 17.05}
2025-04-28 07:16:08,289 : INFO: PID 1: PERF: {0: 0.0, 1: 17.05}
Resetting source rtsp://root:optera123@10.8.207.117/axis-media/media.amp?fps=18
2025-04-28 07:16:28,290 : INFO: PID 1: PERF: {0: 0.0, 1: 17.05}
2025-04-28 07:16:48,291 : INFO: PID 1: PERF: {0: 0.0, 1: 17.05}
2025-04-28 07:17:08,291 : INFO: PID 1: PERF: {0: 0.0, 1: 17.05}
Resetting source rtsp://root:optera123@10.8.207.117/axis-media/media.amp?fps=18
2025-04-28 07:17:28,292 : INFO: PID 1: PERF: {0: 0.0, 1: 17.05}
2025-04-28 07:17:48,292 : INFO: PID 1: PERF: {0: 0.0, 1: 17.05}