海康RTSP格式

海康RTSP取流URL格式

 

一、预览取流

设备预览取流的RTSP URL有新老版本,2012年之前的设备(比如V2.0版本的Netra设
备)支持老的取流格式,之后的设备新老取流格式都支持。

RTSP.jpg


1、老版本

URL规定:

rtsp://username:password@<ipaddress>/<videotype>/ch<number>/<streamtype>

注:VLC可以支持解析URL里的用户名密码,实际发给设备的RTSP请求不支持带用户名密码。

 

 

举例说明:

DS-9016HF-ST的IP通道01主码流:

rtsp://admin:[email protected]:554/h264/ch33/main/av_stream

DS-9016HF-ST的模拟通道01子码流:

rtsp://admin:[email protected]:554/h264/ch1/sub/av_stream

DS-9016HF-ST的零通道主码流(零通道无子码流):

rtsp://admin:[email protected]:554/h264/ch0/main/av_stream

DS-2DF7274-A的第三码流:

 rtsp://admin:[email protected]:554/h264/ch1/stream3/av_stream

 

2、新版本

URL规定:

rtsp://username:password@<address>:<port>/Streaming/Channels/<id>(?parm1=value1&parm2-=value2…)

注:VLC可以支持解析URL里的用户名密码,实际发给设备的RTSP请求不支持带用户名密码。

 

详细描述:


 

举例说明:

DS-9632N-ST的IP通道01主码流:

rtsp://admin:[email protected]:554/Streaming/Channels/101?transportmode=unicast

DS-9016HF-ST的IP通道01主码流:

rtsp://admin:[email protected]:554/Streaming/Channels/1701?transportmode=unicast

DS-9016HF-ST的模拟通道01子码流:

rtsp://admin:[email protected]:554/Streaming/Channels/102?transportmode=unicast
(单播)

rtsp://admin:[email protected]:554/Streaming/Channels/102?transportmode=multicast
(多播)

rtsp://admin:[email protected]:554/Streaming/Channels/102 (?后面可省略,默认单播)

DS-9016HF-ST的零通道主码流(零通道无子码流):

rtsp://admin:[email protected]:554/Streaming/Channels/001

DS-2DF7274-A的第三码流:

rtsp://admin:[email protected]:554/Streaming/Channels/103

 

注:前面老URL,NVR(>=64路的除外)的IP通道从33开始;新URL,通道号全部按
顺序从1开始。

二、回放取流

URL规定:

rtsp://username:password@<address>:<port>/Streaming/tracks/<id>(?parm1=value1&parm2-=value2…)

注:VLC可以支持解析URL里的用户名密码,实际发给设备的RTSP请求不支持带用户名密码。

 

 

举例说明:

DS-9016HF-ST的模拟通道01:

rtsp://admin:[email protected]:554/Streaming/tracks/101?starttime=20120802t063812z&endtime=20120802t064816z

DS-9016HF-ST的IP通道01:

rtsp://admin:[email protected]:554/Streaming/tracks/1701?starttime=20131013t093812z&endtime=20131013t104816z

表示以单播形式回放指定设备的通道中的录像文件,时间范围是starttime到endtime,
其中starttime和endtime的格式要符合ISO 8601。具体格式是
YYYYMMDD”T”HHmmSS.fraction”Z” ,Y是年,M是月,D是日,T是时间分格符,H是小时,
M是分,S是秒,Z是可选的、表示Zulu (GMT) 时间。


猜你喜欢

转载自blog.csdn.net/zhouyongku/article/details/45073443