GstRTSPSrc:source: Could not receive message (System Error) (Deepstream Python Bindings)

Please provide complete information as applicable to your setup.

• Hardware Platform: Jetson NX Developer Kit
• DeepStream Version: 5.0
• JetPack Version: 4.4
• TensorRT Version: 7.1.0

Problem description:
Hi Sir/Madam:
There’s a problem I met during the running of Deepstream with Python Bindings. Here I connect NX with a surveillance camera. For this scenario, I did not use any DL models, but OpenCV. The system works, but it has probability to get the error below, and the system was shut down suddenly:

"
Warning: gst-resource-error-quark: Could not read from resource. (9): gstrtspsrc.c(5293): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Unhandled return value -7.
Error: gst-resource-error-quark: Could not read from resource. (9): gstrtspsrc.c(5361): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Could not receive message. (System error)
"

I think this error is from GstRTSPSrc, but I don’t understand the exact reason why it happened. Can you help to investigate?

Best
Yichao

To debug the rtspsrc problem, you can use a simple pipeline such as following:
gst-launch-1.0 --gst-debug=rtspsrc:5 rtspsrc location= rtsp://xxxxxxx ! rtph264depay ! queue ! fakesink

There are also a lot of open source rtsp analysis tools such as wireshark (Wireshark · Download) which can help to analysis the rtsp requests and response.

rtspsrc is just a RTSP client, sometimes the problem is caused by RTSP server. According to the error message you post, the client could not receive message from the server, you may need to check with your RTSP server(the surveillance camera).