rtsp vlc交互实例
rtsp://127.0.0.1:8554
accept client;client ip:127.0.0.1,client port:52770
---------------C->S--------------
OPTIONS rtsp://127.0.0.1:8554 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, SETUP, PLAY
---------------C->S--------------
DESCRIBE rtsp://127.0.0.1:8554 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Accept: application/sdp
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://127.0.0.1:8554
Content-type: application/sdp
Content-length: 125
v=0
o=- 91593403991 1 IN IP4 127.0.0.1
t=0 0
a=control:*
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=control:track0
---------------C->S--------------
SETUP rtsp://127.0.0.1:8554/track0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP;unicast;client_port=50464-50465
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 4
Transport: RTP/AVP;unicast;client_port=50464-50465;server_port=55532-55533
Session: 66334873
---------------C->S--------------
PLAY rtsp://127.0.0.1:8554 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Session: 66334873
Range: npt=0.000-
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 5
Range: npt=0.000-
Session: 66334873; timeout=60
---------------C->S--------------
TEARDOWN rtsp://127.0.0.1:8554 RTSP/1.0
CSeq: 6
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Session: 66334873
accept client;client ip:127.0.0.1,client port:52771
---------------C->S--------------
OPTIONS rtsp://127.0.0.1:8554 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, SETUP, PLAY
---------------C->S--------------
DESCRIBE rtsp://127.0.0.1:8554 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Accept: application/sdp
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://127.0.0.1:8554
Content-type: application/sdp
Content-length: 125
v=0
o=- 91593404002 1 IN IP4 127.0.0.1
t=0 0
a=control:*
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=control:track0
---------------C->S--------------
SETUP rtsp://127.0.0.1:8554/track0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 4
Transport: RTP/AVP;unicast;client_port=0-1;server_port=55532-55533
Session: 66334873
---------------C->S--------------
PLAY rtsp://127.0.0.1:8554 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.2.8 (LIVE555 Streaming Media v2016.02.22)
Session: 66334873
Range: npt=0.000-
---------------S->C--------------
RTSP/1.0 200 OK
CSeq: 5
Range: npt=0.000-
Session: 66334873; timeout=60
---------------C->S--------------
$parse err