RTSP Stream failure

Hi I am using Z3 encoder which is based on qualcomm q603 chipset.
I am able to view the stream in VLC and ONVIF client tools.
With gstreamer, it failed (used own application and gst-launch) same error coming from rtspsrc element. Checked with discoverer, same error.

Pasting the logs, replaced the actual IP address with “IP”
getting service unavilable message from SETUP response.

when I checked the other players (VLC, onvif client) logs, I observed one thing.
they are setting the uri in setup call as
‘rtsp://IP/stream-1.sdp/streamid=0’
gstreamer side ‘rtsp://IP/streamid=0’
Please provide your observations. Is it gstreamer issue or encoder side issue?

C:\gstreamer\1.0\msvc_x86_64\bin>gst-discoverer-1.0.exe rtsp://IP/stream-1.sdp
Analyzing rtsp://IP/stream-1.sdp
rtspext gstrtspext.c:102:gst_rtsp_ext_list_get: added extension interface for ‘rtspwms0’
rtspext gstrtspext.c:102:gst_rtsp_ext_list_get: added extension interface for ‘rtspreal0’
rtspsrc gstrtspsrc.c:9673:gst_rtspsrc_uri_set_uri: parsing URI
rtspsrc gstrtspsrc.c:9680:gst_rtspsrc_uri_set_uri: configuring URI
rtspsrc gstrtspsrc.c:9696:gst_rtspsrc_uri_set_uri: set uri: rtsp://IP/stream-1.sdp
rtspsrc gstrtspsrc.c:9698:gst_rtspsrc_uri_set_uri: request uri is: rtsp://IP/stream-1.sdp
rtspsrc gstrtspsrc.c:9423:gst_rtspsrc_start: starting
rtspsrc gstrtspsrc.c:6294:gst_rtspsrc_loop_send_cmd: sending cmd OPEN
rtspsrc gstrtspsrc.c:6332:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd unknown
rtspsrc gstrtspsrc.c:6294:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
rtspsrc gstrtspsrc.c:9370:gst_rtspsrc_thread: got command OPEN
rtspsrc gstrtspsrc.c:5441:gst_rtspsrc_connection_flush: set flushing 0
rtspsrc gstrtspsrc.c:6319:gst_rtspsrc_loop_send_cmd: cancel previous request LOOP
rtspsrc gstrtspsrc.c:5304:gst_rtsp_conninfo_connect: creating connection (rtsp://IP/stream-1.sdp)…
rtspsrc gstrtspsrc.c:6332:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd OPEN
rtspsrc gstrtspsrc.c:5315:gst_rtsp_conninfo_connect: sanitized uri rtsp://IP/stream-1.sdp
rtspsrc gstrtspsrc.c:6294:gst_rtspsrc_loop_send_cmd: sending cmd PLAY
rtspsrc gstrtspsrc.c:5352:gst_rtsp_conninfo_connect: connecting (rtsp://IP/stream-1.sdp)…
rtspsrc gstrtspsrc.c:6332:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd OPEN
rtspsrc gstrtspsrc.c:8213:gst_rtspsrc_retrieve_sdp: create options… (async)
rtspsrc gstrtspsrc.c:8222:gst_rtspsrc_retrieve_sdp: send options…
rtspwms gstrtspwms.c:47:gst_rtsp_wms_before_send: before send
rtspsrc gstrtspsrc.c:564:default_before_send: default handler
rtspsrc gstrtspsrc.c:6736:gst_rtspsrc_try_send: sending message
rtspsrc gstrtspsrc.c:10018:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10021:gst_rtspsrc_print_rtsp_message: RTSP request message 0000009A1DCFF4E0
rtspsrc gstrtspsrc.c:10022:gst_rtspsrc_print_rtsp_message: request line:
rtspsrc gstrtspsrc.c:10024:gst_rtspsrc_print_rtsp_message: method: ‘OPTIONS’
rtspsrc gstrtspsrc.c:10025:gst_rtspsrc_print_rtsp_message: uri: ‘rtsp://IP/stream-1.sdp’
rtspsrc gstrtspsrc.c:10027:gst_rtspsrc_print_rtsp_message: version: ‘1.0’
rtspsrc gstrtspsrc.c:10028:gst_rtspsrc_print_rtsp_message: headers:
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘User-Agent’, value: ‘GStreamer/1.22.5’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘User-Agent’, value: ‘RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘ClientChallenge’, value: ‘9e26d33f2984236010ef6253fb1887f7’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘CompanyID’, value: ‘KnKV4M4I/B2FjJ1TToLycw==’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘GUID’, value: ‘00000000-0000-0000-0000-000000000000’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘RegionData’, value: ‘0’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘PlayerStarttime’, value: ‘[28/03/2003:22:50:23 00:00]’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘ClientID’, value: ‘Linux_2.4_6.0.9.1235_play32_RN01_EN_586’
rtspsrc gstrtspsrc.c:10030:gst_rtspsrc_print_rtsp_message: body:
rtspsrc gstrtspsrc.c:10110:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10018:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10040:gst_rtspsrc_print_rtsp_message: RTSP response message 0000009A1DCFF540
rtspsrc gstrtspsrc.c:10041:gst_rtspsrc_print_rtsp_message: status line:
rtspsrc gstrtspsrc.c:10042:gst_rtspsrc_print_rtsp_message: code: ‘200’
rtspsrc gstrtspsrc.c:10043:gst_rtspsrc_print_rtsp_message: reason: ‘OK’
rtspsrc gstrtspsrc.c:10045:gst_rtspsrc_print_rtsp_message: version: '1.0
rtspsrc gstrtspsrc.c:10046:gst_rtspsrc_print_rtsp_message: headers:
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘CSeq’, value: ‘1’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Public’, value: ‘DESCRIBE’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Public’, value: ‘SETUP’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Public’, value: ‘PLAY’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Public’, value: ‘TEARDOWN’
rtspsrc gstrtspsrc.c:10049:gst_rtspsrc_print_rtsp_message: body: length 0
rtspsrc gstrtspsrc.c:10110:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:6638:gst_rtsp_src_receive_response: received response message
rtspsrc gstrtspsrc.c:6657:gst_rtsp_src_receive_response: got response message 200
rtspreal rtspreal.c:195:rtsp_ext_real_after_send: Could not find challenge tag.
rtspwms gstrtspwms.c:68:gst_rtsp_wms_after_send: after send
rtspsrc gstrtspsrc.c:8235:gst_rtspsrc_retrieve_sdp: Now using version: 1.0
rtspsrc gstrtspsrc.c:8242:gst_rtspsrc_retrieve_sdp: create describe…
rtspsrc gstrtspsrc.c:8259:gst_rtspsrc_retrieve_sdp: send describe…
rtspwms gstrtspwms.c:47:gst_rtsp_wms_before_send: before send
rtspsrc gstrtspsrc.c:564:default_before_send: default handler
rtspsrc gstrtspsrc.c:6736:gst_rtspsrc_try_send: sending message
rtspsrc gstrtspsrc.c:10018:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10021:gst_rtspsrc_print_rtsp_message: RTSP request message 0000009A1DCFF4E0
rtspsrc gstrtspsrc.c:10022:gst_rtspsrc_print_rtsp_message: request line:
rtspsrc gstrtspsrc.c:10024:gst_rtspsrc_print_rtsp_message: method: ‘DESCRIBE’
rtspsrc gstrtspsrc.c:10025:gst_rtspsrc_print_rtsp_message: uri: ‘rtsp://IP/stream-1.sdp’
rtspsrc gstrtspsrc.c:10027:gst_rtspsrc_print_rtsp_message: version: ‘1.0’
rtspsrc gstrtspsrc.c:10028:gst_rtspsrc_print_rtsp_message: headers:
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘User-Agent’, value: ‘GStreamer/1.22.5’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Accept’, value: ‘application/sdp’
rtspsrc gstrtspsrc.c:10030:gst_rtspsrc_print_rtsp_message: body:
rtspsrc gstrtspsrc.c:10110:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10018:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10040:gst_rtspsrc_print_rtsp_message: RTSP response message 0000009A1DCFF540
rtspsrc gstrtspsrc.c:10041:gst_rtspsrc_print_rtsp_message: status line:
rtspsrc gstrtspsrc.c:10042:gst_rtspsrc_print_rtsp_message: code: ‘200’
rtspsrc gstrtspsrc.c:10043:gst_rtspsrc_print_rtsp_message: reason: ‘OK’
rtspsrc gstrtspsrc.c:10045:gst_rtspsrc_print_rtsp_message: version: '1.0
rtspsrc gstrtspsrc.c:10046:gst_rtspsrc_print_rtsp_message: headers:
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘CSeq’, value: ‘2’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Content-Base’, value: ‘rtsp://IP/stream-1.sdp’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Content-Type’, value: ‘application/sdp’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Content-Length’, value: ‘432’
rtspsrc gstrtspsrc.c:10049:gst_rtspsrc_print_rtsp_message: body: length 433
rtspsrc gstrtspsrc.c:10052:gst_rtspsrc_print_rtsp_message: v=0
o=- 1699980269 1 IN IP4 IP
s=streaming video
i=stream-1.sdp
t=0 0
a=range:npt=0-
m=video 0 RTP/AVP 96
a=control:streamid=0
c=IN IP4 IP
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=64002A;sprop-parameter-sets=Z2QAKqy0A8ARPyykBBgFAH8oFTuaygCNoUJq,aO4G4sA=
m=application 0 RTP/AVP 98
a=control:streamid=2
c=IN IP4 IP
a=recvonly
a=rtpmap:98 vnd.onvif.metadata/90000
(433)
rtspsrc gstrtspsrc.c:10110:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:6638:gst_rtsp_src_receive_response: received response message
rtspsrc gstrtspsrc.c:6657:gst_rtsp_src_receive_response: got response message 200
rtspwms gstrtspwms.c:68:gst_rtsp_wms_after_send: after send
rtspsrc gstrtspsrc.c:8317:gst_rtspsrc_retrieve_sdp: parse SDP…
rtspsrc gstrtspsrc.c:10186:gst_rtspsrc_print_sdp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10187:gst_rtspsrc_print_sdp_message: sdp packet 000001D865BEEDA0:
rtspsrc gstrtspsrc.c:10188:gst_rtspsrc_print_sdp_message: version: ‘0’
rtspsrc gstrtspsrc.c:10189:gst_rtspsrc_print_sdp_message: origin:
rtspsrc gstrtspsrc.c:10191:gst_rtspsrc_print_sdp_message: username: ‘-’
rtspsrc gstrtspsrc.c:10193:gst_rtspsrc_print_sdp_message: sess_id: ‘1699980269’
rtspsrc gstrtspsrc.c:10195:gst_rtspsrc_print_sdp_message: sess_version: ‘1’
rtspsrc gstrtspsrc.c:10197:gst_rtspsrc_print_sdp_message: nettype: ‘IN’
rtspsrc gstrtspsrc.c:10199:gst_rtspsrc_print_sdp_message: addrtype: ‘IP4’
rtspsrc gstrtspsrc.c:10200:gst_rtspsrc_print_sdp_message: addr: ‘IP’
rtspsrc gstrtspsrc.c:10202:gst_rtspsrc_print_sdp_message: session_name: ‘streaming video’
rtspsrc gstrtspsrc.c:10203:gst_rtspsrc_print_sdp_message: information: ‘stream-1.sdp’
rtspsrc gstrtspsrc.c:10204:gst_rtspsrc_print_sdp_message: uri: ‘(NULL)’
rtspsrc gstrtspsrc.c:10224:gst_rtspsrc_print_sdp_message: connection:
rtspsrc gstrtspsrc.c:10226:gst_rtspsrc_print_sdp_message: nettype: ‘(NULL)’
rtspsrc gstrtspsrc.c:10228:gst_rtspsrc_print_sdp_message: addrtype: ‘(NULL)’
rtspsrc gstrtspsrc.c:10230:gst_rtspsrc_print_sdp_message: address: ‘(NULL)’
rtspsrc gstrtspsrc.c:10231:gst_rtspsrc_print_sdp_message: ttl: ‘0’
rtspsrc gstrtspsrc.c:10232:gst_rtspsrc_print_sdp_message: addr_number: ‘0’
rtspsrc gstrtspsrc.c:10245:gst_rtspsrc_print_sdp_message: key:
rtspsrc gstrtspsrc.c:10246:gst_rtspsrc_print_sdp_message: type: ‘(NULL)’
rtspsrc gstrtspsrc.c:10247:gst_rtspsrc_print_sdp_message: data: ‘(NULL)’
rtspsrc gstrtspsrc.c:10251:gst_rtspsrc_print_sdp_message: attributes:
rtspsrc gstrtspsrc.c:10256:gst_rtspsrc_print_sdp_message: attribute ‘range’ : ‘npt=0-’
rtspsrc gstrtspsrc.c:10262:gst_rtspsrc_print_sdp_message: medias:
rtspsrc gstrtspsrc.c:10264:gst_rtspsrc_print_sdp_message: media 0:
rtspsrc gstrtspsrc.c:10116:gst_rtspsrc_print_sdp_media: media: ‘video’
rtspsrc gstrtspsrc.c:10117:gst_rtspsrc_print_sdp_media: port: ‘0’
rtspsrc gstrtspsrc.c:10118:gst_rtspsrc_print_sdp_media: num_ports: ‘0’
rtspsrc gstrtspsrc.c:10119:gst_rtspsrc_print_sdp_media: proto: ‘RTP/AVP’
rtspsrc gstrtspsrc.c:10123:gst_rtspsrc_print_sdp_media: formats:
rtspsrc gstrtspsrc.c:10126:gst_rtspsrc_print_sdp_media: format ‘96’
rtspsrc gstrtspsrc.c:10130:gst_rtspsrc_print_sdp_media: information: ‘(NULL)’
rtspsrc gstrtspsrc.c:10134:gst_rtspsrc_print_sdp_media: connections:
rtspsrc gstrtspsrc.c:10140:gst_rtspsrc_print_sdp_media: nettype: ‘IN’
rtspsrc gstrtspsrc.c:10142:gst_rtspsrc_print_sdp_media: addrtype: ‘IP4’
rtspsrc gstrtspsrc.c:10144:gst_rtspsrc_print_sdp_media: address: ‘IP’
rtspsrc gstrtspsrc.c:10145:gst_rtspsrc_print_sdp_media: ttl: ‘0’
rtspsrc gstrtspsrc.c:10146:gst_rtspsrc_print_sdp_media: addr_number: ‘0’
rtspsrc gstrtspsrc.c:10161:gst_rtspsrc_print_sdp_media: key:
rtspsrc gstrtspsrc.c:10162:gst_rtspsrc_print_sdp_media: type: ‘(NULL)’
rtspsrc gstrtspsrc.c:10163:gst_rtspsrc_print_sdp_media: data: ‘(NULL)’
rtspsrc gstrtspsrc.c:10167:gst_rtspsrc_print_sdp_media: attributes:
rtspsrc gstrtspsrc.c:10172:gst_rtspsrc_print_sdp_media: attribute ‘control’ : ‘streamid=0’
rtspsrc gstrtspsrc.c:10172:gst_rtspsrc_print_sdp_media: attribute ‘rtpmap’ : ‘96 H264/90000’
rtspsrc gstrtspsrc.c:10172:gst_rtspsrc_print_sdp_media: attribute ‘fmtp’ : ‘96 packetization-mode=1;profile-level-id=64002A;sprop-parameter-sets=Z2QAKqy0A8ARPyykBBgFAH8oFTuaygCNoUJq,aO4G4sA=’
rtspsrc gstrtspsrc.c:10264:gst_rtspsrc_print_sdp_message: media 1:
rtspsrc gstrtspsrc.c:10116:gst_rtspsrc_print_sdp_media: media: ‘application’
rtspsrc gstrtspsrc.c:10117:gst_rtspsrc_print_sdp_media: port: ‘0’
rtspsrc gstrtspsrc.c:10118:gst_rtspsrc_print_sdp_media: num_ports: ‘0’
rtspsrc gstrtspsrc.c:10119:gst_rtspsrc_print_sdp_media: proto: ‘RTP/AVP’
rtspsrc gstrtspsrc.c:10123:gst_rtspsrc_print_sdp_media: formats:
rtspsrc gstrtspsrc.c:10126:gst_rtspsrc_print_sdp_media: format ‘98’
rtspsrc gstrtspsrc.c:10130:gst_rtspsrc_print_sdp_media: information: ‘(NULL)’
rtspsrc gstrtspsrc.c:10134:gst_rtspsrc_print_sdp_media: connections:
rtspsrc gstrtspsrc.c:10140:gst_rtspsrc_print_sdp_media: nettype: ‘IN’
rtspsrc gstrtspsrc.c:10142:gst_rtspsrc_print_sdp_media: addrtype: ‘IP4’
rtspsrc gstrtspsrc.c:10144:gst_rtspsrc_print_sdp_media: address: ‘IP’
rtspsrc gstrtspsrc.c:10145:gst_rtspsrc_print_sdp_media: ttl: ‘0’
rtspsrc gstrtspsrc.c:10146:gst_rtspsrc_print_sdp_media: addr_number: ‘0’
rtspsrc gstrtspsrc.c:10161:gst_rtspsrc_print_sdp_media: key:
rtspsrc gstrtspsrc.c:10162:gst_rtspsrc_print_sdp_media: type: ‘(NULL)’
rtspsrc gstrtspsrc.c:10163:gst_rtspsrc_print_sdp_media: data: ‘(NULL)’
rtspsrc gstrtspsrc.c:10167:gst_rtspsrc_print_sdp_media: attributes:
rtspsrc gstrtspsrc.c:10172:gst_rtspsrc_print_sdp_media: attribute ‘control’ : ‘streamid=2’
rtspsrc gstrtspsrc.c:10172:gst_rtspsrc_print_sdp_media: attribute ‘recvonly’ : ‘’
rtspsrc gstrtspsrc.c:10172:gst_rtspsrc_print_sdp_media: attribute ‘rtpmap’ : ‘98 vnd.onvif.metadata/90000’
rtspsrc gstrtspsrc.c:10269:gst_rtspsrc_print_sdp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:7926:gst_rtspsrc_parse_range: parsed range npt=0-
rtspsrc gstrtspsrc.c:7939:gst_rtspsrc_parse_range: range: type 0, min 0.000000 - type 2, max 0.000000
rtspsrc gstrtspsrc.c:7949:gst_rtspsrc_parse_range: range: min 0:00:00.000000000
rtspsrc gstrtspsrc.c:7968:gst_rtspsrc_parse_range: range: max 99:99:99.999999999
rtspsrc gstrtspsrc.c:7993:gst_rtspsrc_parse_range: not updating existing duration 99:99:99.999999999 from range 99:99:99.999999999
rtspsrc gstrtspsrc.c:2262:gst_rtspsrc_collect_payloads: mapping sdp session level attributes to caps
rtspsrc gstrtspsrc.c:2264:gst_rtspsrc_collect_payloads: mapping sdp media level attributes to caps
rtspsrc gstrtspsrc.c:2282:gst_rtspsrc_collect_payloads: looking at 0 pt: 96
rtspsrc gstrtspsrc.c:2428:gst_rtspsrc_create_stream: stream 0, (000001D865A0F1D0)
rtspsrc gstrtspsrc.c:2429:gst_rtspsrc_create_stream: port: 0
rtspsrc gstrtspsrc.c:2430:gst_rtspsrc_create_stream: container: 0
rtspsrc gstrtspsrc.c:2431:gst_rtspsrc_create_stream: control: streamid=0
rtspsrc gstrtspsrc.c:2458:gst_rtspsrc_create_stream: setup: rtsp://IP/streamid=0
rtspsrc gstrtspsrc.c:2262:gst_rtspsrc_collect_payloads: mapping sdp session level attributes to caps
rtspsrc gstrtspsrc.c:2264:gst_rtspsrc_collect_payloads: mapping sdp media level attributes to caps
rtspsrc gstrtspsrc.c:2282:gst_rtspsrc_collect_payloads: looking at 0 pt: 98
rtspsrc gstrtspsrc.c:2428:gst_rtspsrc_create_stream: stream 1, (000001D865A0F350)
rtspsrc gstrtspsrc.c:2429:gst_rtspsrc_create_stream: port: 0
rtspsrc gstrtspsrc.c:2430:gst_rtspsrc_create_stream: container: 0
rtspsrc gstrtspsrc.c:2431:gst_rtspsrc_create_stream: control: streamid=2
rtspsrc gstrtspsrc.c:2458:gst_rtspsrc_create_stream: setup: rtsp://IP/streamid=2
rtspwms gstrtspwms.c:146:gst_rtsp_wms_configure_stream: application/x-unknown, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)64002A, sprop-parameter-sets=(string)“Z2QAKqy0A8ARPyykBBgFAH8oFTuaygCNoUJq,aO4G4sA=” encoding-name: H264
rtspsrc gstrtspsrc.c:543:default_select_stream: default handler
rtspsrc gstrtspsrc.c:554:select_stream_accum: accum 1
rtspsrc gstrtspsrc.c:7603:gst_rtspsrc_setup_streams_start: doing setup of stream 000001D865A0F1D0 with rtsp://IP/streamid=0
rtspsrc gstrtspsrc.c:7618:gst_rtspsrc_setup_streams_start: protocols = 0x7, protocol mask = 0x1
rtspsrc gstrtspsrc.c:7081:gst_rtspsrc_create_transports_string: got transports (NULL)
rtspsrc gstrtspsrc.c:7111:gst_rtspsrc_create_transports_string: adding UDP unicast
rtspsrc gstrtspsrc.c:7138:gst_rtspsrc_create_transports_string: prepared transports RTP/AVP;unicast;client_port=%%u1-%%u2
rtspsrc gstrtspsrc.c:7633:gst_rtspsrc_setup_streams_start: replace ports in RTP/AVP;unicast;client_port=%%u1-%%u2
rtspsrc gstrtspsrc.c:2657:gst_rtspsrc_alloc_udp_ports: got RTP port 56655
rtspsrc gstrtspsrc.c:2665:gst_rtspsrc_alloc_udp_ports: RTP port not even
rtspsrc gstrtspsrc.c:2667:gst_rtspsrc_alloc_udp_ports: free RTP udpsrc
rtspsrc gstrtspsrc.c:2672:gst_rtspsrc_alloc_udp_ports: retry 1
rtspsrc gstrtspsrc.c:2657:gst_rtspsrc_alloc_udp_ports: got RTP port 56656
rtspsrc gstrtspsrc.c:2689:gst_rtspsrc_alloc_udp_ports: starting RTCP on port 56657
rtspsrc gstrtspsrc.c:7644:gst_rtspsrc_setup_streams_start: transport is now RTP/AVP;unicast;client_port=56656-56657
rtspwms gstrtspwms.c:47:gst_rtsp_wms_before_send: before send
rtspsrc gstrtspsrc.c:564:default_before_send: default handler
rtspsrc gstrtspsrc.c:6736:gst_rtspsrc_try_send: sending message
rtspsrc gstrtspsrc.c:10018:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10021:gst_rtspsrc_print_rtsp_message: RTSP request message 0000009A1DCFF400
rtspsrc gstrtspsrc.c:10022:gst_rtspsrc_print_rtsp_message: request line:
rtspsrc gstrtspsrc.c:10024:gst_rtspsrc_print_rtsp_message: method: ‘SETUP’
rtspsrc gstrtspsrc.c:10025:gst_rtspsrc_print_rtsp_message: uri: ‘rtsp://IP/streamid=0’
rtspsrc gstrtspsrc.c:10027:gst_rtspsrc_print_rtsp_message: version: ‘1.0’
rtspsrc gstrtspsrc.c:10028:gst_rtspsrc_print_rtsp_message: headers:
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘User-Agent’, value: ‘GStreamer/1.22.5’
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘Transport’, value: ‘RTP/AVP;unicast;client_port=56656-56657’
rtspsrc gstrtspsrc.c:10030:gst_rtspsrc_print_rtsp_message: body:
rtspsrc gstrtspsrc.c:10110:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10018:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:10040:gst_rtspsrc_print_rtsp_message: RTSP response message 0000009A1DCFF460
rtspsrc gstrtspsrc.c:10041:gst_rtspsrc_print_rtsp_message: status line:
rtspsrc gstrtspsrc.c:10042:gst_rtspsrc_print_rtsp_message: code: ‘503’
rtspsrc gstrtspsrc.c:10043:gst_rtspsrc_print_rtsp_message: reason: ‘Service Unavailable’
rtspsrc gstrtspsrc.c:10045:gst_rtspsrc_print_rtsp_message: version: '1.0
rtspsrc gstrtspsrc.c:10046:gst_rtspsrc_print_rtsp_message: headers:
rtspsrc gstrtspsrc.c:10002:dump_key_value: key: ‘CSeq’, value: ‘3’
rtspsrc gstrtspsrc.c:10049:gst_rtspsrc_print_rtsp_message: body: length 0
rtspsrc gstrtspsrc.c:10110:gst_rtspsrc_print_rtsp_message: --------------------------------------------
rtspsrc gstrtspsrc.c:6638:gst_rtsp_src_receive_response: received response message
rtspsrc gstrtspsrc.c:6657:gst_rtsp_src_receive_response: got response message 503
rtspwms gstrtspwms.c:68:gst_rtsp_wms_after_send: after send
rtspsrc gstrtspsrc.c:4325:gst_rtspsrc_stream_free_udp: free UDP source 0 for stream 000001D865A0F1D0
rtspsrc gstrtspsrc.c:4325:gst_rtspsrc_stream_free_udp: free UDP source 1 for stream 000001D865A0F1D0
rtspsrc gstrtspsrc.c:7871:gst_rtspsrc_setup_streams_start: error: Error (503): Service Unavailable
rtspsrc gstrtspsrc.c:8175:gst_rtspsrc_open_from_sdp: setup failed
rtspsrc gstrtspsrc.c:2538:gst_rtspsrc_cleanup: cleanup
discoverer gstdiscoverer.c:1552:handle_message: Got an error [debug:…/gst/rtsp/gstrtspsrc.c(7871): gst_rtspsrc_setup_streams_start (): /GstPipeline:Discoverer/GstURIDecodeBin:discoverer-uri/GstRTSPSrc:source:
Error (503): Service Unavailable], [message:Could not write to resource.]
rtspsrc gstrtspsrc.c:2473:gst_rtspsrc_stream_free: free stream 000001D865A0F1D0
rtspsrc gstrtspsrc.c:2473:gst_rtspsrc_stream_free: free stream 000001D865A0F350
rtspsrc gstrtspsrc.c:6294:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
rtspsrc gstrtspsrc.c:8431:gst_rtspsrc_open: can’t setup streaming from sdp
rtspsrc gstrtspsrc.c:6319:gst_rtspsrc_loop_send_cmd: cancel previous request PLAY
rtspsrc gstrtspsrc.c:6332:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd WAIT
rtspsrc gstrtspsrc.c:9370:gst_rtspsrc_thread: got command WAIT
rtspsrc gstrtspsrc.c:5441:gst_rtspsrc_connection_flush: set flushing 0
rtspsrc gstrtspsrc.c:6294:gst_rtspsrc_loop_send_cmd: sending cmd PAUSE
rtspsrc gstrtspsrc.c:6332:gst_rtspsrc_loop_send_cmd: not interrupting busy cmd WAIT
rtspsrc gstrtspsrc.c:6294:gst_rtspsrc_loop_send_cmd: sending cmd CLOSE
rtspsrc gstrtspsrc.c:9370:gst_rtspsrc_thread: got command PAUSE
rtspsrc gstrtspsrc.c:5441:gst_rtspsrc_connection_flush: set flushing 0
rtspsrc gstrtspsrc.c:9133:gst_rtspsrc_pause: PAUSE…
rtspsrc gstrtspsrc.c:8801:gst_rtspsrc_ensure_open: the stream was in error
rtspsrc gstrtspsrc.c:6319:gst_rtspsrc_loop_send_cmd: cancel previous request LOOP
rtspsrc gstrtspsrc.c:9215:gst_rtspsrc_pause: failed to open stream
rtspsrc gstrtspsrc.c:6327:gst_rtspsrc_loop_send_cmd: connection flush busy PAUSE
rtspsrc gstrtspsrc.c:5441:gst_rtspsrc_connection_flush: set flushing 1
rtspsrc gstrtspsrc.c:5444:gst_rtspsrc_connection_flush: connection flush
rtspsrc gstrtspsrc.c:9370:gst_rtspsrc_thread: got command CLOSE
rtspsrc gstrtspsrc.c:5441:gst_rtspsrc_connection_flush: set flushing 0
rtspsrc gstrtspsrc.c:5444:gst_rtspsrc_connection_flush: connection flush
rtspsrc gstrtspsrc.c:8453:gst_rtspsrc_close: TEARDOWN…
rtspsrc gstrtspsrc.c:8458:gst_rtspsrc_close: not ready, doing cleanup
rtspsrc gstrtspsrc.c:8522:gst_rtspsrc_close: closing connection…
rtspsrc gstrtspsrc.c:5408:gst_rtsp_conninfo_close: closing connection…
rtspsrc gstrtspsrc.c:5414:gst_rtsp_conninfo_close: freeing connection…
rtspsrc gstrtspsrc.c:2538:gst_rtspsrc_cleanup: cleanup
rtspsrc gstrtspsrc.c:9454:gst_rtspsrc_stop: stopping
rtspsrc gstrtspsrc.c:6294:gst_rtspsrc_loop_send_cmd: sending cmd WAIT
rtspsrc gstrtspsrc.c:6327:gst_rtspsrc_loop_send_cmd: connection flush busy WAIT
rtspsrc gstrtspsrc.c:5441:gst_rtspsrc_connection_flush: set flushing 1
rtspsrc gstrtspsrc.c:8453:gst_rtspsrc_close: TEARDOWN…
rtspsrc gstrtspsrc.c:8458:gst_rtspsrc_close: not ready, doing cleanup
rtspsrc gstrtspsrc.c:8522:gst_rtspsrc_close: closing connection…
rtspsrc gstrtspsrc.c:2538:gst_rtspsrc_cleanup: cleanup
Done discovering rtsp://IP/stream-1.sdp
An error was encountered while discovering the file
Could not write to resource.

Have you tried with the most recent stable GStreamer version as well? (1.22.10, or the 1.23.90 pre-release)

It looks like we might need to add the 503 return code as one of the codes where we do the fallback control url handling in rtspsrc for servers that don’t follow the spec correctly.

If you’re able to build GStreamer yourself it would be great if you could check if the patch in Draft: rtspsrc: Consider 503 Service Not Available when handling broken control urls (!6213) · Merge requests · GStreamer / gstreamer · GitLab fixes the issue for you.

Thank you, now I am able to view the stream.
Earlier, I verified in 1.22.10 version also, same error observed.