rtspsrc regression
Hi,
I'm unable to receive an rtsp stream from a camera using gstreamer 1.18.x, it works fine in 1.16.x, here is what happen with 1.18
OPTIONS rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60 RTSP/1.0
CSeq: 1
User-Agent: GStreamer/1.18.4
User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: 00000000-0000-0000-0000-000000000000
RegionData: 0
PlayerStarttime: [28/03/2003:22:50:23 00:00]
ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586
Date: Tue, 07 Sep 2021 11:09:49 GMT
RTSP/1.0 200 OK
Server: Linux/2.6.35.14_nl-xarina+ Ze-PRO
CSeq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, OPTIONS, SET_PARAMETER, GET_PARAMETER
DESCRIBE rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60 RTSP/1.0
CSeq: 2
User-Agent: GStreamer/1.18.4
Accept: application/sdp
Date: Tue, 07 Sep 2021 11:09:49 GMT
RTSP/1.0 200 OK
Server: Linux/2.6.35.14_nl-xarina+ Ze-PRO
CSeq: 2
Content-Length: 320
Content-Type: application/sdp
Content-Base: rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60/
v=0
o=- 12345 1 IN IP4 156.215.169.201
s=Sony RTSP Server
t=0 0
a=range:npt=now-
c=IN IP4 0.0.0.0
m=video 0 RTP/AVP 105
a=rtpmap:105 H264/90000
a=control:trackID=1
a=framerate:8.0
a=fmtp:105 packetization-mode=1; profile-level-id=4d6029; sprop-parameter-sets=Z01gKY1oB4AiflwFsgAAB9IAAD6AHihFQA==,KO4JJIAAAA==
SETUP rtsp://156.215.169.201/profile/trackID=1?token=media_profile1&SessionTimeout=60 RTSP/1.0
CSeq: 3
User-Agent: GStreamer/1.18.4
Transport: RTP/AVP;unicast;client_port=41512-41513
Date: Tue, 07 Sep 2021 11:09:49 GMT
RTSP/1.0 404 Not Found
Server: Linux/2.6.35.14_nl-xarina+ Ze-PRO
CSeq: 3
while with 1.16.3:
OPTIONS rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60 RTSP/1.0
CSeq: 1
User-Agent: GStreamer/1.16.3
Date: Tue, 07 Sep 2021 10:58:54 GMT
RTSP/1.0 200 OK
Server: Linux/2.6.35.14_nl-xarina+ Ze-PRO
CSeq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, OPTIONS, SET_PARAMETER, GET_PARAMETER
DESCRIBE rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60 RTSP/1.0
CSeq: 2
User-Agent: GStreamer/1.16.3
Accept: application/sdp
Date: Tue, 07 Sep 2021 10:58:54 GMT
RTSP/1.0 200 OK
Server: Linux/2.6.35.14_nl-xarina+ Ze-PRO
CSeq: 2
Content-Length: 322
Content-Type: application/sdp
Content-Base: rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60/
v=0
o=- 12345 1 IN IP4 156.215.169.201
s=Sony RTSP Server
t=0 0
a=range:npt=now-
c=IN IP4 0.0.0.0
m=video 0 RTP/AVP 105
a=rtpmap:105 H264/90000
a=control:trackID=1
a=framerate:8.0
a=fmtp:105 packetization-mode=1; profile-level-id=4d6029; sprop-parameter-sets=Z01gKY1oB4AiflwFsgAAB9IAAD6AHihFQA==,KO4JJIAAAA==
SETUP rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60/trackID=1 RTSP/1.0
CSeq: 3
User-Agent: GStreamer/1.16.3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Date: Tue, 07 Sep 2021 10:58:55 GMT
RTSP/1.0 200 OK
Server: Linux/2.6.35.14_nl-xarina+ Ze-PRO
CSeq: 3
Session: 5ef55b70
Cache-Control: must-revalidate
Transport: RTP/AVP/TCP;interleaved=0-1;ssrc=B90BDB89
PLAY rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60/ RTSP/1.0
CSeq: 4
User-Agent: GStreamer/1.16.3
Range: npt=now-
Session: 5ef55b70
Date: Tue, 07 Sep 2021 10:58:55 GMT
RTSP/1.0 200 OK
Server: Linux/2.6.35.14_nl-xarina+ Ze-PRO
CSeq: 4
Session: 5ef55b70
RTP-Info: url=trackID=1;seq=5451;rtptime=0
as you can see gstreamer 1.18.4 sends
SETUP rtsp://156.215.169.201/profile/trackID=1?token=media_profile1&SessionTimeout=60 RTSP/1.0
and the camera replies with 404, while gstreamer 1.16.3 sends
SETUP rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60/trackID=1 RTSP/1.0
I think that the issue is that the camera replies with
Content-Base: rtsp://156.215.169.201/profile?token=media_profile1&SessionTimeout=60/
and so trackID=1
should be added at the end, gstreamer 1.18 seems to ignore the final /
Edited by Nicola