RTSP地址格式

针对主流厂商RTSP地址格式整理。

一、大华

1.1 实时码流格式

rtsp://username:password@ip:port/cam/realmonitor?channel=1&subtype=0

格式说明:

  • username : 用户名。例如admin。
  • password : 密码。例如admin。
  • ip : 为设备IP。例如 10.7.8.122。
  • port : 端口号。默认为554,若为默认可不填写。
  • channel : 通道号,起始为1。例如通道2,则为channel=2。
  • subtype : 码流类型,主码流为0(即subtype=0),辅码流为1(即subtype=1)。

使用示例:

rtsp://admin:admin@10.12.4.84:554/cam/realmonitor?channel=2&subtype=1

1.2 回放码流格式:

rtsp://username:password@ip:port/cam/playback?channel=1&subtype=0&starttime=2018_03_08_02_54_46&endtime=2018_03_08_03_54_46

二、海康

2.1 实时码流格式

旧版格式:

rtsp://username:password@ip:port/<videoType>/<channelNumber>/<streamType>

格式说明:

  • username : 用户名。默认:admin。
  • password : 密码。例如 12345。
  • ip : 为设备IP。例如 192.0.0.64。
  • port : 端口号默认为554,若为默认可不填写。
  • videoType : 有h264、MPEG-4、mpeg4这几种。
  • channelNumber : 通道号,起始为1。例如通道1,则为ch1。
  • streamType : 码流类型,主码流为main/avstream,辅码流为sub/avstream。

使用示例:

rtsp://admin:12345@183.62.243.173:554/h264/1/main/av_stream

新版格式:

rtsp://username:password@ip:port/Streaming/channels/<id>[?parm1=value1&parm2=vlaue2]

格式说明:

  • username:用户名。默认:admin。
  • password:密码。默认:admin。
  • ip:为设备IP。
  • port:端口号默认为554,若为默认可不填写。
  • id:编号。101:通道1主码流、102:通道1子码...1701:通道17主码流

使用示例:

rtsp://admin:12345@222.161.231.2:554/Streaming/channels/101?transportmode=unicast

2.2 回放码流格式:

rtsp://username:password@ip:port/Streaming/tracks/101?starttime=20180308T025446Z&endtime=20180308T035446Z&name=02000000382000000&size=1064373772
  • 4
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值