Analyzing URI timed out

I use Dahua IP cameras connected via a POE switch. I’ve successfully obtained RTSP stream formats and verified their accessibility with OpenCV. However, when attempting to use DeepStream in Python, I encountered an error: “Warning: gst-resource-error-quark: Could not read from resource”.

Upon inspecting the RTSP streams using gst-discoverer-1.0 "rtsp://username:password@ipaddress:port/cam/realmonitor?channel=1&subtype=0", I received a “Analyzing URI timed out” message.

Try with gst-play-1.0 rtsp://.... and if that exhibits the same issue (as I would expect it will), you can also try enabling the debug log, e.g. GST_DEBUG=*rtsp*:6 gst-play-1.0 rtsp://... that might provide some insights as to what is going on.

I assume the same rtsp URL works fine with other players on the same machine? (e.g. mpv, vlc or such)

$ GST_DEBUG=rtsp:6 gst-play-1.0 “rtsp://admin:Sieora123@192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif”
Press ‘k’ to see a list of keyboard shortcuts.
Now playing rtsp://admin:Sieora123@192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
0:00:00.049170775 8231 0x55a0925aa0 DEBUG rtspext gstrtspext.c:102:gst_rtsp_ext_list_get: added extension interface for ‘rtspwms0’
0:00:00.050204493 8231 0x55a0925aa0 DEBUG rtspext gstrtspext.c:102:gst_rtsp_ext_list_get: added extension interface for ‘rtspreal0’
0:00:00.050298765 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:8617:gst_rtspsrc_uri_set_uri: parsing URI
0:00:00.050379132 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:8624:gst_rtspsrc_uri_set_uri: configuring URI
0:00:00.050409288 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:8640:gst_rtspsrc_uri_set_uri: set uri: rtsp://admin:Sieora123@192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
0:00:00.050427362 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:8642:gst_rtspsrc_uri_set_uri: request uri is: rtsp://192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
0:00:00.050587417 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:8391:gst_rtspsrc_start: starting
0:00:00.050701377 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd OPEN
0:00:00.050729711 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd unknown
Pipeline is live.
0:00:00.050995497 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread: got command OPEN
0:00:00.051037009 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush: set flushing 0
0:00:00.051070811 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4614:gst_rtsp_conninfo_connect: creating connection (rtsp://admin:Sieora123@192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif)…
0:00:00.051630405 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
0:00:00.051670041 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5585:gst_rtspsrc_loop_send_cmd: cancel previous request LOOP
0:00:00.051688531 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd OPEN
0:00:00.051738897 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd PLAY
0:00:00.051765147 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd OPEN
0:00:00.051839315 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4625:gst_rtsp_conninfo_connect: sanitized uri rtsp://192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
0:00:00.051889837 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4659:gst_rtsp_conninfo_connect: connecting (rtsp://admin:Sieora123@192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif)…
0:00:00.118588861 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:7342:gst_rtspsrc_retrieve_sdp: create options… (async)
0:00:00.118633914 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:7351:gst_rtspsrc_retrieve_sdp: send options…
0:00:00.118706989 8231 0x55a092d280 DEBUG rtspwms gstrtspwms.c:45:gst_rtsp_wms_before_send: before send
0:00:00.118735427 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:476:default_before_send: default handler
0:00:00.118753917 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:476:default_before_send: default handler
0:00:00.118770532 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5964:gst_rtspsrc_try_send: sending message
0:00:00.118790167 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8737:gst_rtspsrc_print_rtsp_message: --------------------------------------------
0:00:00.118809543 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8740:gst_rtspsrc_print_rtsp_message: RTSP request message 0x7fa9c3e6e8
0:00:00.118825324 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8741:gst_rtspsrc_print_rtsp_message: request line:
0:00:00.118843085 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8743:gst_rtspsrc_print_rtsp_message: method: ‘OPTIONS’
0:00:00.118860898 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8744:gst_rtspsrc_print_rtsp_message: uri: ‘rtsp://192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif’
0:00:00.118881002 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8746:gst_rtspsrc_print_rtsp_message: version: ‘1.0’
0:00:00.118896471 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8747:gst_rtspsrc_print_rtsp_message: headers:
0:00:00.118915482 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘User-Agent’, value: ‘GStreamer/1.14.5’
0:00:00.118946056 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘User-Agent’, value: ‘RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)’
0:00:00.118966160 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘ClientChallenge’, value: ‘9e26d33f2984236010ef6253fb1887f7’
0:00:00.118985536 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘CompanyID’, value: ‘KnKV4M4I/B2FjJ1TToLycw==’
0:00:00.119006838 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘GUID’, value: ‘00000000-0000-0000-0000-000000000000’
0:00:00.119026422 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘RegionData’, value: ‘0’
0:00:00.119046683 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘PlayerStarttime’, value: ‘[28/03/2003:22:50:23 00:00]’
0:00:00.119066266 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘ClientID’, value: ‘Linux_2.4_6.0.9.1235_play32_RN01_EN_586’
0:00:00.119083037 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8749:gst_rtspsrc_print_rtsp_message: body:
0:00:00.119100069 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8829:gst_rtspsrc_print_rtsp_message: --------------------------------------------
0:00:00.125972074 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8737:gst_rtspsrc_print_rtsp_message: --------------------------------------------
0:00:00.126004471 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8759:gst_rtspsrc_print_rtsp_message: RTSP response message 0x7fa9c3e740
0:00:00.126024106 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8760:gst_rtspsrc_print_rtsp_message: status line:
0:00:00.126049367 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8761:gst_rtspsrc_print_rtsp_message: code: ‘401’
0:00:00.126070618 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8762:gst_rtspsrc_print_rtsp_message: reason: ‘Unauthorized’
0:00:00.126088899 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8764:gst_rtspsrc_print_rtsp_message: version: '1.0
0:00:00.126105202 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8765:gst_rtspsrc_print_rtsp_message: headers:
0:00:00.126124838 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘CSeq’, value: ‘1’
0:00:00.126145567 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘WWW-Authenticate’, value: ‘Digest realm=“Login to CD884A3CA7695B41”,nonce=“63b5aa92-363a-4924-9c33-c6bed0005219”’
0:00:00.126165151 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8768:gst_rtspsrc_print_rtsp_message: body: length 0
0:00:00.126182391 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8829:gst_rtspsrc_print_rtsp_message: --------------------------------------------
0:00:00.126200829 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5866:gst_rtsp_src_receive_response: received response message
0:00:00.126219631 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5885:gst_rtsp_src_receive_response: got response message 401
0:00:00.126240308 8231 0x55a092d280 DEBUG rtspreal rtspreal.c:194:rtsp_ext_real_after_send: Could not find challenge tag.
0:00:00.126259632 8231 0x55a092d280 DEBUG rtspwms gstrtspwms.c:66:gst_rtsp_wms_after_send: after send
0:00:00.126290882 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5785:gst_rtspsrc_setup_auth: Attempting authentication using credentials from the URL
0:00:00.126313383 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5814:gst_rtspsrc_setup_auth: Attempting Digest authentication
0:00:00.126355884 8231 0x55a092d280 DEBUG rtspwms gstrtspwms.c:45:gst_rtsp_wms_before_send: before send
0:00:00.126380624 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:476:default_before_send: default handler
0:00:00.126403697 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:476:default_before_send: default handler
0:00:00.126424687 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5964:gst_rtspsrc_try_send: sending message
0:00:00.126443333 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8737:gst_rtspsrc_print_rtsp_message: --------------------------------------------
0:00:00.126463490 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8740:gst_rtspsrc_print_rtsp_message: RTSP request message 0x7fa9c3e6e8
0:00:00.126481198 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8741:gst_rtspsrc_print_rtsp_message: request line:
0:00:00.126500001 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8743:gst_rtspsrc_print_rtsp_message: method: ‘OPTIONS’
0:00:00.126520991 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8744:gst_rtspsrc_print_rtsp_message: uri: ‘rtsp://192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif’
0:00:00.126542033 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8746:gst_rtspsrc_print_rtsp_message: version: ‘1.0’
0:00:00.126559950 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8747:gst_rtspsrc_print_rtsp_message: headers:
0:00:00.126581148 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘User-Agent’, value: ‘GStreamer/1.14.5’
0:00:00.126603961 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘User-Agent’, value: ‘RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)’
0:00:00.126626097 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘ClientChallenge’, value: ‘9e26d33f2984236010ef6253fb1887f7’
0:00:00.126648806 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘CompanyID’, value: ‘KnKV4M4I/B2FjJ1TToLycw==’
0:00:00.126670577 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘GUID’, value: ‘00000000-0000-0000-0000-000000000000’
0:00:00.126692192 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘RegionData’, value: ‘0’
0:00:00.126713755 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘PlayerStarttime’, value: ‘[28/03/2003:22:50:23 00:00]’
0:00:00.126735839 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘ClientID’, value: ‘Linux_2.4_6.0.9.1235_play32_RN01_EN_586’
0:00:00.126757818 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘Date’, value: ‘Thu, 14 Dec 2023 05:27:17 GMT’
0:00:00.126779954 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘User-Agent’, value: ‘RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)’
0:00:00.126801934 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘ClientChallenge’, value: ‘9e26d33f2984236010ef6253fb1887f7’
0:00:00.126824434 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘CompanyID’, value: ‘KnKV4M4I/B2FjJ1TToLycw==’
0:00:00.126846310 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘GUID’, value: ‘00000000-0000-0000-0000-000000000000’
0:00:00.126867508 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘RegionData’, value: ‘0’
0:00:00.126889331 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘PlayerStarttime’, value: ‘[28/03/2003:22:50:23 00:00]’
0:00:00.126911415 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8721:dump_key_value: key: ‘ClientID’, value: ‘Linux_2.4_6.0.9.1235_play32_RN01_EN_586’
0:00:00.126930269 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8749:gst_rtspsrc_print_rtsp_message: body:
0:00:00.126950478 8231 0x55a092d280 LOG rtspsrc gstrtspsrc.c:8829:gst_rtspsrc_print_rtsp_message: --------------------------------------------
0:00:20.148082315 8231 0x55a092d280 WARN rtspsrc gstrtspsrc.c:5917:gst_rtsp_src_receive_response: error: Could not receive message. (Timeout while waiting for server response)
0:00:20.149313537 8231 0x55a092d280 DEBUG rtspreal rtspreal.c:194:rtsp_ext_real_after_send: Could not find challenge tag.
0:00:20.149664689 8231 0x55a092d280 DEBUG rtspwms gstrtspwms.c:66:gst_rtsp_wms_after_send: after send
ERROR Could not read from resource. for rtsp://admin:Sieora123@192.168.1.78:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
ERROR debug information: gstrtspsrc.c(5917): gst_rtsp_src_receive_response (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)
0:00:20.150000268 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:6102:gst_rtspsrc_send: got error -14
0:00:20.151636966 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
0:00:20.151801084 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5585:gst_rtspsrc_loop_send_cmd: cancel previous request PLAY
0:00:20.151645560 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:7514:gst_rtspsrc_retrieve_sdp: free connection
0:00:20.152368907 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4715:gst_rtsp_conninfo_close: closing connection…
0:00:20.152019786 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd OPEN
0:00:20.153127151 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4721:gst_rtsp_conninfo_close: freeing connection…
0:00:20.153714297 8231 0x55a092d280 WARN rtspsrc gstrtspsrc.c:7548:gst_rtspsrc_open: can’t get sdp
0:00:20.153251372 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd PAUSE
0:00:20.154071491 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5598:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd WAIT
0:00:20.154521760 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread: got command PAUSE
0:00:20.154666086 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush: set flushing 0
0:00:20.154820672 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:8133:gst_rtspsrc_pause: PAUSE…
0:00:20.154941352 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:7858:gst_rtspsrc_ensure_open: the stream was in error
0:00:20.155031718 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:8215:gst_rtspsrc_pause: failed to open stream
0:00:20.155101199 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd CLOSE
0:00:20.155236461 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread: got command LOOP
0:00:20.155379225 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush: set flushing 0
0:00:20.155541884 8231 0x55a092d280 WARN rtspsrc gstrtspsrc.c:5628:gst_rtspsrc_loop: we are not connected
0:00:20.155677616 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5636:gst_rtspsrc_loop: pausing task, reason flushing
0:00:20.155782514 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
0:00:20.156130593 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd: connection flush busy LOOP
0:00:20.155808399 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5585:gst_rtspsrc_loop_send_cmd: cancel previous request LOOP
0:00:20.156257627 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush: set flushing 1
0:00:20.156769511 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd: connection flush busy WAIT
0:00:20.156903524 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush: set flushing 1
0:00:20.157044465 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:8346:gst_rtspsrc_thread: got command CLOSE
0:00:20.157340564 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush: set flushing 0
0:00:20.157512130 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:7569:gst_rtspsrc_close: TEARDOWN…
0:00:20.157660257 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:7574:gst_rtspsrc_close: not ready, doing cleanup
0:00:20.157804479 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:7637:gst_rtspsrc_close: closing connection…
0:00:20.157967607 8231 0x55a092d280 DEBUG rtspsrc gstrtspsrc.c:2058:gst_rtspsrc_cleanup: cleanup
0:00:20.157815000 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:8422:gst_rtspsrc_stop: stopping
0:00:20.158275269 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5567:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
0:00:20.158326833 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:5593:gst_rtspsrc_loop_send_cmd: connection flush busy WAIT
0:00:20.158446627 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:4748:gst_rtspsrc_connection_flush: set flushing 1
0:00:20.158716892 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:7569:gst_rtspsrc_close: TEARDOWN…
0:00:20.158791425 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:7574:gst_rtspsrc_close: not ready, doing cleanup
0:00:20.158836061 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:7637:gst_rtspsrc_close: closing connection…
0:00:20.158881947 8231 0x55a0925aa0 DEBUG rtspsrc gstrtspsrc.c:2058:gst_rtspsrc_cleanup: cleanup
Reached end of play list.

I assume the same rtsp URL works fine with other players on the same machine? (e.g. mpv, vlc or such)
yes, also works in cv2.VideoCapture()

Thanks for the details. GStreamer 1.14 is really quite ancient.

Does this also happen with current versions of GStreamer (1.22.x or newer)?

Actually, we are working with the Jetson Nano, which has GStreamer 1.14 installed. We are unable to test with a newer version.