rtsp protocol (9)

来源:互联网 发布:量子理论 知乎 编辑:程序博客网 时间:2024/06/10 08:09
c->s
OPTIONS rtsp://192.168.0.118:554/cam/realmonitor?channel=1&subtype=1 RTSP/1.0
CSeq: 1


s->c
RTSP/1.0 401 Unauthorized
WWW-Authenticate: Basic realm="test"
Server: AAA Rtsp Server
Content-Length: 0
CSeq: 1




c->s
OPTIONS rtsp://192.168.0.118:554/cam/realmonitor?channel=1&subtype=1 RTSP/1.0
CSeq: 2
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
Content-Length: 0
CSeq: 2
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,SET_PARAMETER




c->s
DESCRIBE rtsp://192.168.0.118:554/cam/realmonitor?channel=1&subtype=1 RTSP/1.0
Accept: application/sdp
CSeq: 3
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
CSeq: 3
Content-Base: rtsp://192.168.0.118:554/cam/realmonitor?channel=1&subtype=1/
Content-Type: application/sdp
Content-Length: 410
Cache-Control: must-revalidate
x-Accept-Dynamic-Rate: 1




s->c
#<sdp content>
v=0
o=- 2251938206 2251938206 IN IP4 0.0.0.0
s=RTSP Session of ZheJiang Dahua Technology CO.,LTD.
c=IN IP4 0.0.0.0
t=0 0
a=control:*
a=range:now-
a=packetization-supported:DH
m=video 0 RTP/AVP 96
a=control:trackID=0
a=framerate:25.000000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=428015;sprop-parameter-sets=Z0KAFdoFglJUgAAAAwCAAAAZMCAAfP4AAqL/e98LwiEagA==,aM48gA==




c->s
SETUP rtsp://192.168.0.118:554/cam/realmonitor?channel=1&subtype=1/trackID=0 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
x-Dynamic-Rate: 0
CSeq: 4
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
Content-Length: 0
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=00B09FCE
x-dynamic-rate: 1
Session: 1366407441259860;timeout=90




c->s
PLAY rtsp://192.168.0.118:554/cam/realmonitor?channel=1&subtype=1/ RTSP/1.0
Range: npt=0.000-
CSeq: 5
Session: 1366407441259860
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
RTP-Info: url=trackID=0;seq=5113;rtptime=254520
Range: npt=0.000000-
Content-Length: 0
CSeq: 5
Session: 1366407441259860




c->s
OPTIONS * RTSP/1.0
CSeq: 6
Session: 1366407441259860
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
Content-Length: 0
CSeq: 6
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,SET_PARAMETER
Session: 1366407441259860




c->s
OPTIONS * RTSP/1.0
CSeq: 7
Session: 1366407441259860
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
Content-Length: 0
CSeq: 7
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,SET_PARAMETER
Session: 1366407441259860




c->s
OPTIONS * RTSP/1.0
CSeq: 8
Session: 1366407441259860
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
Content-Length: 0
CSeq: 8
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,SET_PARAMETER
Session: 1366407441259860




c->s
OPTIONS * RTSP/1.0
CSeq: 9
Session: 1366407441259860
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
Content-Length: 0
CSeq: 9
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,SET_PARAMETER
Session: 1366407441259860




c->s
OPTIONS * RTSP/1.0
CSeq: 10
Session: 1366407441259860
Authorization: Basic YWRtaW46YWRtaW4=


s->c
RTSP/1.0 200 OK
Server: Dahua Rtsp Server
Content-Length: 0
CSeq: 10
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,SET_PARAMETER
Session: 1366407441259860




原创粉丝点击