2024/10/4

vlc open rtsp fail, server side error message

[INFO  rtsp_demo.c:408:rtsp_new_client_connection] new rtsp client 10.42.0.1:47890 comming
[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
SETUP rtsp://10.42.0.63:554/live/0 RTSP/1.0
CSeq: 0
Transport: RTP/AVP;unicast;client_port=9298-9299

[DEBUG rtsp_demo.c:950:rtsp_handle_SETUP]
[WARN  rtsp_demo.c:980:rtsp_handle_SETUP] rtsp urlpath:/live/0 err
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 461 Unsupported Transport
CSeq: 0
Date: Fri Oct  4 16:17:52 2024
Server: rtsp_demo

[INFO  rtsp_demo.c:408:rtsp_new_client_connection] new rtsp client 10.42.0.1:47902 comming
[DEBUG rtsp_demo.c:1158:rtsp_recv_msg] peer closed
[INFO  rtsp_demo.c:427:rtsp_del_client_connection] delete client 86 from 10.42.0.1
[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
OPTIONS rtsp://10.42.0.63:554 RTSP/1.0
CSeq: 1
User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
PlayerStarttime: [28/03/2003:22:50:23 00:00]
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: 00000000-0000-0000-0000-000000000000
RegionData: 0
ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586

[WARN  rtsp_msg.c:888:rtsp_msg_parse_from_array] unknown line: ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
[WARN  rtsp_msg.c:888:rtsp_msg_parse_from_array] unknown line: PlayerStarttime: [28/03/2003:22:50:23 00:00]
[WARN  rtsp_msg.c:888:rtsp_msg_parse_from_array] unknown line: CompanyID: KnKV4M4I/B2FjJ1TToLycw==
[WARN  rtsp_msg.c:888:rtsp_msg_parse_from_array] unknown line: GUID: 00000000-0000-0000-0000-000000000000
[WARN  rtsp_msg.c:888:rtsp_msg_parse_from_array] unknown line: RegionData: 0
[WARN  rtsp_msg.c:888:rtsp_msg_parse_from_array] unknown line: ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586
[DEBUG rtsp_demo.c:725:rtsp_handle_OPTIONS]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 1
Date: Fri Oct  4 16:17:53 2024
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: rtsp_demo

[DEBUG rtsp_demo.c:1158:rtsp_recv_msg] peer closed
[INFO  rtsp_demo.c:427:rtsp_del_client_connection] delete client 87 from 10.42.0.1

OK 的版本,使用 ffplay
ffplay "rtsp://10.42.0.254/live/0"
server 端 log
[INFO  rtsp_demo.c:408:rtsp_new_client_connection] new rtsp client 10.42.0.1:35114 comming
[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
OPTIONS rtsp://10.42.0.254:554/live/0 RTSP/1.0
CSeq: 1
User-Agent: Lavf60.16.100

[DEBUG rtsp_demo.c:725:rtsp_handle_OPTIONS]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 1
Date: Fri Jan  1 12:16:08 2021
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: rtsp_demo

[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
DESCRIBE rtsp://10.42.0.254:554/live/0 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Lavf60.16.100

[DEBUG rtsp_demo.c:746:rtsp_handle_DESCRIBE]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 2
Date: Fri Jan  1 12:16:08 2021
Server: rtsp_demo
Content-Type: application/sdp
Content-Length: 479

v=0
o=- 0 0 IN IP4 0.0.0.0
s=rtsp_demo
t=0 0
a=control:rtsp://10.42.0.254:554/live/0
a=range:npt=0-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H265/90000
a=fmtp:96 sprop-vps=QAEMAf//AWAAAAMAgAAAAwAAAwCWvAk=;sprop-sps=QgEBAWAAAAMAgAAAAwAAAwCWoAEgIAURY2+7ymbgICAggAAAAwCAAAAMhA==;sprop-pps=RAHAcoaNQTZA
a=control:rtsp://10.42.0.254:554/live/0/track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
a=rtpmap:97 PCMA/8000/2
a=control:rtsp://10.42.0.254:554/live/0/track2
[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
SETUP rtsp://10.42.0.254:554/live/0/track1 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 3
User-Agent: Lavf60.16.100

[DEBUG rtsp_demo.c:950:rtsp_handle_SETUP]
[INFO  rtsp_demo.c:894:rtsp_new_rtp_connection] new rtp over tcp for video ssrc:2234567c peer_addr:10.42.0.1 interleaved:0-1
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 3
Date: Fri Jan  1 12:16:08 2021
Session: 1234567A
Transport: RTP/AVP/TCP;ssrc=2234567C;interleaved=0-1
Server: rtsp_demo

[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
SETUP rtsp://10.42.0.254:554/live/0/track2 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
CSeq: 4
User-Agent: Lavf60.16.100
Session: 1234567A

[DEBUG rtsp_demo.c:950:rtsp_handle_SETUP]
[INFO  rtsp_demo.c:894:rtsp_new_rtp_connection] new rtp over tcp for audio ssrc:2234567d peer_addr:10.42.0.1 interleaved:2-3
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 4
Date: Fri Jan  1 12:16:08 2021
Session: 1234567A
Transport: RTP/AVP/TCP;ssrc=2234567D;interleaved=2-3
Server: rtsp_demo

[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
PLAY rtsp://10.42.0.254:554/live/0 RTSP/1.0
Range: npt=0.000-
CSeq: 5
User-Agent: Lavf60.16.100
Session: 1234567A

[DEBUG rtsp_demo.c:1037:rtsp_handle_PLAY]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 5
Date: Fri Jan  1 12:16:08 2021
Session: 1234567A
Server: rtsp_demo

[ntp.c][rkipc_ntp_update]:connect error
[DEBUG rtsp_msg.c:865:rtsp_msg_parse_from_array]
OPTIONS rtsp://10.42.0.254:554/live/0 RTSP/1.0
CSeq: 6
User-Agent: Lavf60.16.100
Session: 1234567A

[DEBUG rtsp_demo.c:725:rtsp_handle_OPTIONS]
[DEBUG rtsp_msg.c:998:rtsp_msg_build_to_array]
RTSP/1.0 200 OK
CSeq: 6
Date: Fri Jan  1 12:16:38 2021
Session: 1234567A
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: rtsp_demo

沒有留言:

張貼留言