GstRTSPSrc:source: Could not receive message

Please provide complete information as applicable to your setup.

• Hardware Platform (jetson xavier nx devkit)
• DeepStream Version5.0
• JetPack Version (valid for Jetson only)4.4
• TensorRT Version7.1

Hi, I’m using a Dahua ipc camera, I can play it with VLCplayer, but when I feed the rtsp link to deepstream-python-test-3, I got :

Error: gst-resource-error-quark: Could not read from resource. (9): gstrtspsrc.c(5917): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstBin:source-bin-01/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)

so, how to fix the problem? I only have one ipc camera:)

Can you try “gst-launch-1.0 uridecodebin uri=rtsp://xxxxx” first to check if rtsp connection is OK with GStreamer in the board?

Hi, I have the same problem.
It seems that rtsp connection is not ok. \What should I do?

$ gst-launch-1.0 uridecodebin uri=rtsp://192.168.X.XX.XXXX

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.X.XX.XXXX
Progress: (open) Retrieving server options
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5917): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline

Any updates on this problem? I have the same issue with all Dahua cameras.

By default rtsp links in Dahua generated in this way (input in this provided command):

gst-launch-1.0 uridecodebin uri=rtsp://admin:password@IP:port/cam/realmonitor?channel=1&subtype=0

However, I suppose this command shows

Progress: (connect) Connecting to rtsp://admin:password@IP:port/cam/realmonitor?channel=1

without subtype number. It’s definately related to Dahua’s cameras or their standart links since Hikvision’s Cameras are working well.

The link used above is working and checked in VLC player.

still not work…
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:password@IP:port/cam/realmonitor?channel=1&subtype=0
Progress: (open) Retrieving server options
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5917): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

and I tried “Connecting to rtsp://admin:password@IP:port/cam/realmonitor?channel=1” mentioned by @ jamshid.khakimjanov, it’s not work too:
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:password@IP:port/cam/realmonitor?channel=1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not open resource for reading.
Additional debug info:
gstrtspsrc.c(5829): gst_rtspsrc_setup_auth (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
No supported authentication protocol was found
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

“No supported authentication protocol was found” means the client can not identify the authorization type from the server’s response. Need to check the RSTP server part.

RTSP authorization is working fine if we are using VLC player or OpenRTSP. Dahua cameras fails only with deepstream-app, any updates on it? Please

Hi jamshid.khakimjanov,

Please help to open a new topic for your issue. Thanks

Hi, i meet the same problem, but i found that HDBW4433R of dahua ip camera works fine~~~, HDBW1230R would fail, and the opencv(cpu) can open it.

1 Like

Hi, guys and everyone, i found the solution, run the command ‘’ sudo apt remove gstreamer1.0-plugins-ugly’', the dahua ip cameras works fine, the solutions come from RTSP Gstreamer Simple Recieve and Store in File - #12 by Honey_Patouceul, the " techguyz" gives the sulotion.

7 Likes