Parse error message in deepstream pybindings

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.2
• Issue Type( questions, new requirements, bugs) question
• Language Python

is there a function to parse failed to connect error message and identify which stream caused the error (eg: in the below error stream 2)

Error: gst-resource-error-quark: Could not open resource for reading and writing. (7):: gstrtspsrc.c(7893): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstURIDecodeBin:source-bin-02/GstRTSPSrc:source:
Failed to connect. (Generic error)

No. You can parse the element name “source-bin-02” by yourself.

failed_to_connect_pattern = r'source-bin-(\d+)\/GstRTSPSrc:source:Failed to connect'
            match = re.search(failed_to_connect_pattern, str(debug))
            if match:
                number = int(match.group(1))
                logger.info(f"failed to connect {number}")

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