大华RTSP交互流程包

RTSP


大华摄像机的RTSP OVER UDP 信令交互

OPTIONS rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)

RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Digest realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="1ae117ce84194f06b41c1557c008dc31"

OPTIONS rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 3
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="1ae117ce84194f06b41c1557c008dc31", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0", response="fcde779aa1c6a5b955823f59ca6e9df2"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)

RTSP/1.0 200 OK
CSeq: 3
Server: Rtsp Server/3.0
Public: OPTIONS, DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER

DESCRIBE rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 4
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="1ae117ce84194f06b41c1557c008dc31", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0", response="56d6ece37fbb6856aea8886c91a738b4"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 4
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/
Cache-Control: must-revalidate
Content-Length: 457
Content-Type: application/sdp

v=0
o=- 2251938508 2251938508 IN IP4 0.0.0.0
s=Media Server
c=IN IP4 0.0.0.0
t=0 0
a=control:*
a=packetization-supported:DH
a=rtppayload-supported:DH
a=range:npt=now-
m=video 0 RTP/AVP 96
a=control:trackID=0
a=framerate:10.000000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D4028;sprop-parameter-sets=Z01AKKaAeAIn5UAA,aO48gAA=
a=recvonly
m=audio 0 RTP/AVP 8
a=control:trackID=1
a=rtpmap:8 PCMA/8000
a=recvonly
SETUP rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/trackID=0 RTSP/1.0
CSeq: 5
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="1ae117ce84194f06b41c1557c008dc31", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="e0901e7c335f99d8c0131be90c045bb5"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP;unicast;client_port=60976-60977

RTSP/1.0 200 OK
CSeq: 5
Session: 335122569;timeout=60
Transport: RTP/AVP/UDP;unicast;client_port=60976-60977;server_port=44596-44597;ssrc=3EA9C9A3
x-Dynamic-Rate: 1

SETUP rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/trackID=1 RTSP/1.0
CSeq: 6
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="1ae117ce84194f06b41c1557c008dc31", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="e0901e7c335f99d8c0131be90c045bb5"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP;unicast;client_port=60978-60979
Session: 335122569

RTSP/1.0 200 OK
CSeq: 6
Session: 335122569;timeout=60
Transport: RTP/AVP/UDP;unicast;client_port=60978-60979;server_port=44598-44599;ssrc=29F9C6BB
x-Dynamic-Rate: 1

PLAY rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/ RTSP/1.0
CSeq: 7
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="1ae117ce84194f06b41c1557c008dc31", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="29eba2d73f6cecc494a66c378b7ea323"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Session: 335122569
Range: npt=0.000-

RTSP/1.0 200 OK
CSeq: 7
Session: 335122569
Range: npt=0.000000-
RTP-Info: url=trackID=0;seq=51619;rtptime=51619,url=trackID=1;seq=51619;rtptime=51619

TEARDOWN rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/ RTSP/1.0
CSeq: 8
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="1ae117ce84194f06b41c1557c008dc31", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="0d1d8a0b6b8f9c9eba16506a2fa9d4e2"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Session: 335122569

RTSP/1.0 200 OK
CSeq: 8
Session: 335122569

大华摄像机的RTSP OVER TCP 信令交互

OPTIONS rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)

RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Digest realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="8015fac2dde90c1eb73b15573beb8c0f"

OPTIONS rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 3
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="8015fac2dde90c1eb73b15573beb8c0f", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0", response="beef1f19984b707fbf45a8ffb45d4585"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)

RTSP/1.0 200 OK
CSeq: 3
Server: Rtsp Server/3.0
Public: OPTIONS, DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, TEARDOWN, SET_PARAMETER, GET_PARAMETER

DESCRIBE rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 4
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="8015fac2dde90c1eb73b15573beb8c0f", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0", response="43f6a748fb51d4180c9ac3829cf59ee0"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 4
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/
Cache-Control: must-revalidate
Content-Length: 457
Content-Type: application/sdp

v=0
o=- 2251938636 2251938636 IN IP4 0.0.0.0
s=Media Server
c=IN IP4 0.0.0.0
t=0 0
a=control:*
a=packetization-supported:DH
a=rtppayload-supported:DH
a=range:npt=now-
m=video 0 RTP/AVP 96
a=control:trackID=0
a=framerate:10.000000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D4028;sprop-parameter-sets=Z01AKKaAeAIn5UAA,aO48gAA=
a=recvonly
m=audio 0 RTP/AVP 8
a=control:trackID=1
a=rtpmap:8 PCMA/8000
a=recvonly
SETUP rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/trackID=0 RTSP/1.0
CSeq: 5
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="8015fac2dde90c1eb73b15573beb8c0f", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="4078ecccce27c25db0791a22d745aa6c"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1

RTSP/1.0 200 OK
CSeq: 5
Session: 463502316;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=1BF99F74
x-Dynamic-Rate: 1

SETUP rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/trackID=1 RTSP/1.0
CSeq: 6
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="8015fac2dde90c1eb73b15573beb8c0f", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="4078ecccce27c25db0791a22d745aa6c"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
Session: 463502316

RTSP/1.0 200 OK
CSeq: 6
Session: 463502316;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;ssrc=0E89114D
x-Dynamic-Rate: 1

PLAY rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/ RTSP/1.0
CSeq: 7
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="8015fac2dde90c1eb73b15573beb8c0f", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="0314831ae23c296720079aa96cf00968"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Session: 463502316
Range: npt=0.000-

RTSP/1.0 200 OK
CSeq: 7
Session: 463502316
Range: npt=0.000000-
RTP-Info: url=trackID=0;seq=40820;rtptime=40820,url=trackID=1;seq=40820;rtptime=40820

TEARDOWN rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/ RTSP/1.0
CSeq: 8
Authorization: Digest username="admin", realm="Login to be8c87b7ecbc1c2c89f8b4da109a4f78", nonce="8015fac2dde90c1eb73b15573beb8c0f", uri="rtsp://192.168.0.141:554/cam/realmonitor?channel=1&subtype=0/", response="0ef0735356527b0f51853cfab2014c84"
User-Agent: LibVLC/3.0.16 (LIVE555 Streaming Media v2016.11.28)
Session: 463502316
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值