Follow Us

海康摄像机rtsp地址格式汇总(2020年)_海康摄像头rtsp取流地址

目前海康录像机、网络摄像机,网络球机的RTSP单播取流格式如下(车载录像机不支持RTSP取流):

rtsp://用户名:密码@IP:554/Streaming/Channels/101

→录像机示例:

取第1个通道的主码流预览

rtsp://admin:hik12345@10.16.4.25:554/Streaming/Channels/101

取第1个通道的子码流预览

rtsp://admin:hik12345@10.16.4.25:554/Streaming/Channels/102

取第1个通道的第三码流预览

rtsp://admin:hik12345@10.16.4.25:554/Streaming/Channels/103

取第12个通道的主码流预览

rtsp://admin:hik12345@10.16.4.25:554/Streaming/Channels/1201

→网络摄像机/网络球机示例:

取主码流的URL:

rtsp://admin:hik123456@192.168.1.64:554/Streaming/Channels/101

如果是多播取流的话,则使用以下路径

rtsp://用户名:密码@IP:554/Streaming/Channels/101?transportmode=unicast

→录像机示例:

取第1个通道的主码流预览

rtsp://admin:hik12345@10.16.4.25:554/Streaming/Channels/101?transportmode=unicast

★2012年之前的设备URL规定:

rtsp://username:password@//ch/

路径后面不能有空格、回车等符号,否则会连接失败。

→举例说明:

主码流取流:

rtsp://admin:12345@192.0.0.64:554/h264/ch1/main/av_stream

子码流取流:

rtsp://admin:12345@192.0.0.64:554/h264/ch1/sub/av_stream

零通道取流:

rtsp://admin:12345@192.0.0.64:554/h264/ch0/main/av_stream

如果摄像机密码是a12345678,IP是192.168.1.,64,RTSP端口默认554未做改动,是H.264编码,那么

主码流取流:

rtsp://admin:a12345678@192.168.1.64:554/h264/ch1/main/av_stream

子码流取流:

rtsp://admin:a12345678@192.168.1.64:554/h264/ch1/sub/av_stream

【如果是H.265编码的,那么将H.264替换成H.265即可】

注意:URL中“:”“?”“&”等符号均为英文半角。

补充:

  1. 实时摄像头流
    旧URL:rtsp://[username]:[password]@[ipaddress]/[videotype]/ch[number]/[streamtype] 如:rtsp://admin:12345@192.168.25.64:554/h264/ch1/main/av_stream
    新URL:rtsp://[username]:[password]@[IP]:554/Streaming/Channels/[channelID][streamID] 如:rtsp://admin:12345@192.168.25.64:554/Streaming/Channels/101
  2. 录像机RTSP地址格式
    录像机其实和摄像机基本一样,旧URL中摄像头的ch[number]中number为1,录像中这个为录像机中每个摄像头通道编号,如1、2、等,小于64路的录像机或混合录像机的IP通道从33开始;大于等于64路的录像机的IP通道从1开始
    旧URL:rtsp://[username]:[password]@[ipaddress]/[videotype]/ch[number]/[streamtype] 如:rtsp://admin:12345@192.168.25.64:554/h264/ch2/main/av_stream
    新URL,通道号全部按顺序从1开始。 新URL:rtsp://[username]:[password]@[IP]:554/Streaming/Channels/[channelID][streamID] 如:rtsp://admin:12345@192.168.25.64:554/Streaming/Channels/101
  3. RTSP协议回放
    rtsp://[username]:[password]@[IP]:554/Streaming/tracks/[channelID][streamID]?starttime=YYYYMMDD”T”HHmmSS”Z” &endtime=YYYYMMDD”T”HHmmSS”Z” 表示以单播形式回放通道1 中的录像文件,时间范围是starttime 到endtime,其中starttime 和endtime 的格式要符合ISO 8601 。具体格式是YYYYMMDD”T”HHmmSS”Z” ,Y 是年,M 是月,D 是日,T 是时间分格符,H 是小时,M 是分,S 是秒,Z 是可选的、表示Zulu (GMT) 时间。
    注意:摄像头系统配置了时间和时区,获取回放视频流的时候,需要根据时区,才能获取到正确时间的流 个人猜测:海康在存储视频的时候是根据配置的时间和时区,根据UTC时间来存储的,请求的时候,需要根据本地的时区来自行获取
    示例1:规定起始时间和结束时间 rtsp://username:password@192.168.25.64:554/Streaming/tracks/101?starttime=20190703T105010Z&endtime=20190703T115010Z
    示例2:只规定起始时间 rtsp://username:password@192.168.25.64:554/Streaming/tracks/101?starttime=20190703T105010Z
    示例3:只规定起始时间,并且按照北京(+8区的时间显示)* rtsp://username:password@192.168.25.64:554/Streaming/tracks/101?starttime=20190703T105010+08:00
    ————————————————
    版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
    原文链接:https://blog.csdn.net/qinbo1234567890/article/details/131527473

Our Services

Worpress

Lorem ipsum dolor amet consectetur adipiscing elit. Nunc mi dui placerat eu faucibus vel, efficitur quis magna. Pellentesque habitant morbi tristique senectus et netus et malesuada.

Read More

Web Design

Lorem ipsum dolor amet consectetur adipiscing elit. Nunc mi dui placerat eu faucibus vel, efficitur quis magna. Pellentesque habitant morbi tristique senectus et netus et malesuada.

Read More

Ecommerce

Lorem ipsum dolor amet consectetur adipiscing elit. Nunc mi dui placerat eu faucibus vel, efficitur quis magna. Pellentesque habitant morbi tristique senectus et netus et malesuada.

Brand Now

SEO

Lorem ipsum dolor amet consectetur adipiscing elit. Nunc mi dui placerat eu faucibus vel, efficitur quis magna. Pellentesque habitant morbi tristique senectus et netus et malesuada.

Read More

Our Team

zahera

Zahera

(HR)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean vel tempor sem. Vestibulum suscipit faucibus sem ut porta. Integer ut justo euismod, auctor turpis et

Alex

Alex

(CEO)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean vel tempor sem. Vestibulum suscipit faucibus sem ut porta. Integer ut justo euismod, auctor turpis et

Alex

Sara

(CCO)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean vel tempor sem. Vestibulum suscipit faucibus sem ut porta. Integer ut justo euismod, auctor turpis et

Mark

Mark

(Manager)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean vel tempor sem. Vestibulum suscipit faucibus sem ut porta. Integer ut justo euismod, auctor turpis et

Testimonials

  • Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
    Safira
    (Quia, CEO)
  • At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
    Alana
    (Wirate, PA)
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Sara
    (Yahoo, Manager)

Our Partners