003 摄像头的配置

发布时间:2024年01月19日

string realm_s = “IP Camera(J4605)”;
需要根据摄像头的具体型号进行修改;
IP Camera(L3433) 张XX的摄像头

正常的启动信息
在这里插入图片描述
connect 0.
connect success.
-------------------------SEND OPTIONS------------------------------
OPTIONS rtsp://192.168.1.64:554/h264/ch1/main/av_stream RTSP/1.0
CSeq: 1
User-Agent: RTSP Client

-------------------------SEND OPTIONS------------------------------
-------------------------RECV OPTIONS------------------------------
RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS, DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN
Date: Sat, Feb 28 1970 09:57:28 GMT

-------------------------RECV OPTIONS------------------------------
-------------------------SEND DESCRIBE 1------------------------------
DESCRIBE rtsp://192.168.1.64:554/h264/ch1/main/av_stream RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: RTSP Client

-------------------------SEND DESCRIBE 1------------------------------
-------------------------RECV DESCRIBE 1------------------------------
RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Digest realm=“IP Camera(J4605)”, nonce=“14492b253dde68b2d94f5fcc4ac97060”, stale=“FALSE”
Date: Sat, Feb 28 1970 09:57:28 GMT

-------------------------RECV DESCRIBE 1------------------------------
-------------------------SEND DESCRIBE 2------------------------------
DESCRIBE rtsp://192.168.1.64:554/h264/ch1/main/av_stream RTSP/1.0
CSeq: 3
Authorization: Digest username=“admin”, realm=“IP Camera(J4605)”, nonce=“14492b253dde68b2d94f5fcc4ac97060”, uri=“rtsp://192.168.1.64:554/h264/ch1/main/av_stream”, response=“dcd12bc6f19b5e6e0d37ea2406f364bd”
User-Agent: RTSP Client
Accept: application/sdp

-------------------------SEND DESCRIBE 2------------------------------
-------------------------RECV DESCRIBE 2------------------------------
RTSP/1.0 200 OK
CSeq: 3
Content-Type: application/sdp
Content-Base: rtsp://192.168.1.64:554/h264/ch1/main/av_stream/
Content-Length: 750

v=0
o=- 5047048346346 5047048346346 IN IP4 192.168.1.64
s=Media Presentation
e=NONE
b=AS:5100
t=0 0
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:5000
a=recvonly
a=x-dimensions:1920,1080
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z00AKY2NQDwBE/LNwEBAUAAAcIAAFfkAQA==,aO48gA==
m=audio 0 RTP/AVP 8
c=IN IP4 0.0.0.0
b=AS:50
a=recvonly
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=2
a=rtpmap:8 PCMA/8000
a=Media_header:MEDIAINFO=494D4B48010300000400000111710110401F000000FA000000000000000000000000000000000000;
a=appversion:1.0
-------------------------RECV DESCRIBE 2------------------------------
-------------------------SEND SETUP------------------------------
SETUP rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=1 RTSP/1.0
Transport: RTP/AVP/UDP;unicast;client_port=8888-8889
CSeq: 4
User-Agent: RTSP Client
Accept: application/sdp

-------------------------SEND SETUP------------------------------
-------------------------RECV SETUP------------------------------
RTSP/1.0 200 OK
CSeq: 4
Session: 1439804934;timeout=60
Transport: RTP/AVP/UDP;unicast;client_port=8888-8889;server_port=8221-8222;ssrc=73f82185;mode=“play”
Date: Sat, Feb 28 1970 09:57:28 GMT

dia Presentation
e=NONE
b=AS:5100
t=0 0
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:5000
a=recvonly
a=x-dimensions:1920,1080
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z00AKY2NQDwBE/LNwEBAUAAAcIAAFfkAQA==,aO48gA==
m=audio 0 RTP/AVP 8
c=IN IP4 0.0.0.0
b=AS:50
a=recvonly
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=2
a=rtpmap:8 PCMA/8000
a=Media_header:MEDIAINFO=494D4B48010300000400000111710110401F000000FA000000000000000000000000000000000000;
a=appversion:1.0
-------------------------RECV SETUP------------------------------
-------------------------SEND PLAY------------------------------
PLAY rtsp://192.168.1.64:554/h264/ch1/main/av_stream RTSP/1.0
Range: npt=0.0000-
CSeq: 5
Authorization: Digest username=“admin”, realm=“IP Camera(J4605)”, nonce=“14492b253dde68b2d94f5fcc4ac97060”, uri=“rtsp://192.168.1.64:554/h264/ch1/main/av_stream”, response=“dcd12bc6f19b5e6e0d37ea2406f364bd”
Session: 1439804934
User-Agent: RTSP Client
Accept: application/sdp

-------------------------SEND PLAY------------------------------
-------------------------RECV PLAY------------------------------
RTSP/1.0 200 OK
CSeq: 5
Session: 1439804934
RTP-Info: url=rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=1;seq=43887;rtptime=4934250
Date: Sat, Feb 28 1970 09:57:28 GMT

:57:28 GMT

dia Presentation
e=NONE
b=AS:5100
t=0 0
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:5000
a=recvonly
a=x-dimensions:1920,1080
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z00AKY2NQDwBE/LNwEBAUAAAcIAAFfkAQA==,aO48gA==
m=audio 0 RTP/AVP 8
c=IN IP4 0.0.0.0
b=AS:50
a=recvonly
a=control:rtsp://192.168.1.64:554/h264/ch1/main/av_stream/trackID=2
a=rtpmap:8 PCMA/8000
a=Media_header:MEDIAINFO=494D4B48010300000400000111710110401F000000FA000000000000000000000000000000000000;
a=appversion:1.0
-------------------------RECV PLAY------------------------------
UDP init success
random: fast init done

文章来源:https://blog.csdn.net/qq_36666115/article/details/135698284
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。