Deepstream-test3-app fail to run with rtsp stream

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version 6.1
• JetPack Version (valid for Jetson only)
• TensorRT Version 8.4.3
**• NVIDIA GPU Driver Version (valid for GPU only)**11.7
• Issue Type( questions, new requirements, bugs) 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)

Hi,
I got a trouble with “rtsp” stream when i ran “deepstream-test3-app”(all load model, …etc done but fail at playing stream). My rtsp stream is ok when I open with VLC.
Here is my bugs:

Decodebin child added: source
Running…
ERROR from element source: Unauthorized
Error details: gstrtspsrc.c(6540): gst_rtspsrc_send (): /GstPipeline:dstest3-pipeline/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Unauthorized (401)
Returned, stopping playback
Deleting pipeline

Thanks for your help!!!

GST_DEBUG=rtspsrc:5 app to get more logs.

gst-launch-1.0 --gst-debug=rtspsrc:5 rtspsrc location=rtsp://xxx:xxx@10.1.135.118:554/profile2/media.smp debug=1 ! rtph264depay ! fakesink

0:00:00.022154236 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:9063:gst_rtspsrc_uri_set_uri: parsing URI
0:00:00.022167955 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:9070:gst_rtspsrc_uri_set_uri: configuring URI
0:00:00.022173748 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:9086:gst_rtspsrc_uri_set_uri: set uri: rtsp://admin:vti@1357@10.1.135.118:554/profile2/media.smp
0:00:00.022176509 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:9087:gst_rtspsrc_uri_set_uri: request uri is: rtsp://1357@10.1.135.118:554/profile2/media.smp
Setting pipeline to PAUSED …
0:00:00.024338205 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:8836:gst_rtspsrc_start: starting
0:00:00.024376470 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5942:gst_rtspsrc_loop_send_cmd: sending cmd OPEN
0:00:00.024382327 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5979:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd unknown
Pipeline is live and does not need PREROLL …
0:00:00.024490520 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:8783:gst_rtspsrc_thread: got command OPEN
0:00:00.024502229 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5093:gst_rtspsrc_connection_flush: set flushing 0
0:00:00.024512640 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:4959:gst_rtsp_conninfo_connect: creating connection (rtsp://admin:vti@1357@10.1.135.118:554/profile2/media.smp)…
Progress: (open) Opening Stream
0:00:00.024608291 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:4970:gst_rtsp_conninfo_connect: sanitized uri rtsp://1357@10.1.135.118:554/profile2/media.smp
0:00:00.024620550 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5004:gst_rtsp_conninfo_connect: connecting (rtsp://admin:vti@1357@10.1.135.118:554/profile2/media.smp)…
Progress: (connect) Connecting to rtsp://admin:vti@1357@10.1.135.118:554/profile2/media.smp
0:00:00.027109874 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:7767:gst_rtspsrc_retrieve_sdp: create options… (async)
0:00:00.027117826 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:7776:gst_rtspsrc_retrieve_sdp: send options…
0:00:00.027138159 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:522:default_before_send: default handler
0:00:00.027143297 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:522:default_before_send: default handler
0:00:00.027146392 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6371:gst_rtspsrc_try_send: sending message
Progress: (open) Retrieving server options
0:00:00.035275931 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6273:gst_rtsp_src_receive_response: received response message
0:00:00.035319434 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6292:gst_rtsp_src_receive_response: got response message 401
0:00:00.035358109 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6188:gst_rtspsrc_setup_auth: Attempting authentication using credentials from the URL
0:00:00.035379303 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6217:gst_rtspsrc_setup_auth: Attempting Digest authentication
0:00:00.035408750 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:522:default_before_send: default handler
0:00:00.035426935 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:522:default_before_send: default handler
0:00:00.035443469 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6371:gst_rtspsrc_try_send: sending message
0:00:00.043060589 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6273:gst_rtsp_src_receive_response: received response message
0:00:00.043105200 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6292:gst_rtsp_src_receive_response: got response message 401
0:00:00.043162933 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6193:gst_rtspsrc_setup_auth: Attempting authentication using credentials from the properties
0:00:00.043192683 2237332 0x55cbc1345b60 WARN rtspsrc gstrtspsrc.c:6540:gst_rtspsrc_send: error: Unauthorized
0:00:00.043213338 2237332 0x55cbc1345b60 WARN rtspsrc gstrtspsrc.c:6540:gst_rtspsrc_send: error: Unauthorized (401)
0:00:00.043300778 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:7939:gst_rtspsrc_retrieve_sdp: free connection
0:00:00.043323062 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5060:gst_rtsp_conninfo_close: closing connection…
0:00:00.043407107 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5066:gst_rtsp_conninfo_close: freeing connection…
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Unauthorized
Additional debug info:
gstrtspsrc.c(6540): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Unauthorized (401)
0:00:00.043441592 2237332 0x55cbc1345b60 WARN rtspsrc gstrtspsrc.c:7973:gst_rtspsrc_open: can’t get sdp
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
0:00:00.043572895 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:8783:gst_rtspsrc_thread: got command LOOP
0:00:00.043594645 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5093:gst_rtspsrc_connection_flush: set flushing 0
0:00:00.043616867 2237332 0x55cbc1345b60 WARN rtspsrc gstrtspsrc.c:6032:gst_rtspsrc_loop: we are not connected
0:00:00.043635398 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:6040:gst_rtspsrc_loop: pausing task, reason flushing
0:00:00.043652639 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5942:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
0:00:00.043675670 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5967:gst_rtspsrc_loop_send_cmd: cancel previous request LOOP
0:00:00.043692404 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5974:gst_rtspsrc_loop_send_cmd: connection flush busy LOOP
0:00:00.043710165 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5093:gst_rtspsrc_connection_flush: set flushing 1
0:00:00.043792187 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5942:gst_rtspsrc_loop_send_cmd: sending cmd CLOSE
0:00:00.043837212 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5974:gst_rtspsrc_loop_send_cmd: connection flush busy WAIT
0:00:00.043855971 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5093:gst_rtspsrc_connection_flush: set flushing 1
0:00:00.044338437 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:8783:gst_rtspsrc_thread: got command CLOSE
0:00:00.044392444 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:5093:gst_rtspsrc_connection_flush: set flushing 0
0:00:00.044419302 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:7994:gst_rtspsrc_close: TEARDOWN…
0:00:00.044438514 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:7999:gst_rtspsrc_close: not ready, doing cleanup
0:00:00.044450688 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:8063:gst_rtspsrc_close: closing connection…
0:00:00.044462042 2237332 0x55cbc1345b60 DEBUG rtspsrc gstrtspsrc.c:2336:gst_rtspsrc_cleanup: cleanup
0:00:00.044667217 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:8867:gst_rtspsrc_stop: stopping
0:00:00.044714239 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5942:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
0:00:00.044732381 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5974:gst_rtspsrc_loop_send_cmd: connection flush busy WAIT
0:00:00.044754712 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:5093:gst_rtspsrc_connection_flush: set flushing 1
0:00:00.044829851 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:7994:gst_rtspsrc_close: TEARDOWN…
0:00:00.044851201 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:7999:gst_rtspsrc_close: not ready, doing cleanup
0:00:00.044863942 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:8063:gst_rtspsrc_close: closing connection…
0:00:00.044876008 2237332 0x55cbc15a12c0 DEBUG rtspsrc gstrtspsrc.c:2336:gst_rtspsrc_cleanup: cleanup
Freeing pipeline …

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

seems you need enable user/pwd for accessing this rtsp stream, like Gstreamer got fails in streaming when enable Auth/TLS - Stack Overflow
This should be a general GStreamer issue, you could also search on Ethernet.

Thanks!

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