预览可以使用RTSP协议进行取流 就是一个取流的URL
rtsp://username:password@
:/Streaming/Channels/(?parm1=value1&parm2-=value2…)
注:VLC 可以支持解析URL 里的用户名密码,实际发给设备的RTSP 请求不支持带用户名密码。 详细描述: 举例说明: 通道01 主码流:
rtsp://admin:12345@172.6.22.234:554/Streaming/Channels/101?transportmode=unicast
通道01 子码流:
rtsp://admin:12345@172.6.22.234:554/Streaming/Channels/102?transportmode=unicast
通道01 三码流:
rtsp://admin:12345@172.6.22.234:554/Streaming/Channels/103?transportmode=unicast
DS-9016HF-ST 的模拟通道01 子码流:
rtsp://admin:12345@172.6.22.106:554/Streaming/Channels/102?transportmode=unicast
(单播)
rtsp://admin:12345@172.6.22.106:554/Streaming/Channels/102?transportmode=multicast
(多播) rtsp://admin:12345@172.6.22.106:554/Streaming/Channels/102
(?后面可省略,默认单播) DS-9016HF-ST 的零通道主码流(零通道无子码流):
rtsp://admin:12345@172.6.22.106:554/Streaming/Channels/001
DS-2DF7274-A 的第三码流:
rtsp://admin:12345@172.6.10.11:554/Streaming/Channels/103
注:前面老URL,NVR(>=64 路的除外)的IP 通道从33 开始;新URL,通道号全部按顺序从1 开始。
主码流
rtsp://admin:a1234567@169.254.96.199:port/cam/realmonitor?channel=1&subtype=0
通道01 子码流:
rtsp://admin:a1234567@169.254.96.199:port/cam/realmonitor?channel=1&subtype=1
主码流的视频素质好于子码流
————————————————