ONVIF流媒体播放流程
live55播放器:
rtsp://192.168.1.120:554/snl/live/1/3
单击播放按钮:
第一次:
OPTIONS rtsp://192.168.1.120:554/snl/live/1/3 RTSP/1.0
CSeq: 2 User-Agent: LibVLC/2.1.3 (LIVE555 Streaming Media v2014.01.21)
RTSP/1.0 200 OK
CSeq: 2
Date: Tue, Jul 22 2014 08:38:20 GMT
Public: DESCRIBE, PAUSE, PLAY, SETUP, TEARDOWN, OPTIONS, SET_PARAMETER
第二次:
DESCRIBE rtsp://192.168.1.120:554/snl/live/1/3 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.1.3 (LIVE555 Streaming Media v2014.01.21)
Accept: application/sdp
RTSP/1.0 200 OK
CSeq: 3
User-Agent: NVT
Content-Type: application/sdp
Content-Length: 405
Content-Base: rtsp://192.168.1.120/snl/live/1/3/
v=0 o=admin 38503 38504 IN IP4 192.168.1.120
s=NVT i=From NVT c=IN IP4 192.168.1.120
t=0 0 a=range:npt=now-
a=control:rtsp://192.168.1.120/snl/live/1/3/
m=video 0 RTP/AVP 26
b=AS:0
a=rtpmap:26 JPEG/90000
a=framesize:26 1280-960
a=framerate:4.0
a=control:trackID=0
a=recvonly m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=fmtp:0
octet-align=1;
decode_buf=400
a=control:trackID=1 a=recvonly
第三次:
SETUP rtsp://192.168.1.120/snl/live/1/3/trackID=0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.1.3 (LIVE555 Streaming Media v2014.01.21)
Transport: RTP/AVP;unicast;client_port=57764-57765
RTSP/1.0 200 OK
CSeq: 4 Date: Tue, Jul 22 2014 08:38:20 GMT
User-Agent: NVT
Session: 2721006597;
timeout=60
Transport: RTP/AVP;
unicast;
client_port=57764-57765;
server_port=2078-2079;
ssrc=32974f77;
mode=play
第四次:
SETUP rtsp://192.168.1.120/snl/live/1/3/trackID=1 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.1.3 (LIVE555 Streaming Media v2014.01.21)
Transport: RTP/AVP;unicast;client_port=57766-57767
Session: 2721006597
RTSP/1.0 200 OK
CSeq: 5 Date: Tue, Jul 22 2014 08:38:20 GMT
User-Agent: NVT
Session: 2721006597;
timeout=60 Transport:
RTP/AVP;unicast;
client_port=57766-57767;
server_port=2080-2081;ssrc=32974f77;
mode=play
第五次:
PLAY rtsp://192.168.1.120/snl/live/1/3/ RTSP/1.0
CSeq: 6
User-Agent: LibVLC/2.1.3 (LIVE555 Streaming Media v2014.01.21)
Session: 2721006597
Range: npt=0.000-
RTSP/1.0 200 OK
CSeq: 6
Date: Tue, Jul 22 2014 08:38:20 GMT
User-Agent: NVT RTP-Info:
url=rtsp://192.168.1.120/snl/live/1/3//trackID=0,url=rtsp://192.168.1.120/snl/live/1/3//trackI
D=1 Range: npt=now- Session: 2721006597
第六次:
TEARDOWN rtsp://192.168.1.120/snl/live/1/3/ RTSP/1.0
CSeq: 7
User-Agent: LibVLC/2.1.3 (LIVE555 Streaming Media v2014.01.21)
Session: 2721006597
RTSP/1.0 200 OK
CSeq: 7 Date: Tue, Jul 22 2014 08:41:52 GMT
User-Agent: NVT
解析:参照
http://www.cnblogs.com/zhangduan/archive/2012/12/28/2837664.html