大家注意,我下面文章描述的都是海康老款錄影機的RTSP規則,現在新的DS-系列(錄影機型号為DS-開頭的)的錄影機RTSP規則為:http://blog.csdn.net/xiejiashu/article/details/71786187
海康:
rtsp://[username]:[password]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream
說明:
username: 使用者名。例如admin。
password: 密碼。例如12345。
ip: 為裝置IP。例如 192.0.0.64。
port: 端口号預設為554,若為預設可不填寫。
codec:有h264、MPEG-4、mpeg4這幾種。
channel: 通道号,起始為1。例如通道1,則為ch1。
subtype: 碼流類型,主碼流為main,輔碼流為sub。
例如,請求海康錄影機通道1的主碼流,Url如下
主碼流:
rtsp://admin:[email protected]:554/h264/ch1/main/av_stream
rtsp://admin:[email protected]:554/MPEG-4/ch1/main/av_stream
子碼流:
rtsp://admin:[email protected]/mpeg4/ch1/sub/av_stream
rtsp://admin:[email protected]/h264/ch1/sub/av_stream
大華:
rtsp://username:[email protected]: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)。
例如,請求某裝置的通道2的輔碼流,Url如下
rtsp://admin:[email protected]:554/cam/realmonitor?channel=2&subtype=1
通用錄影機RTSP取流URL位址規則
現在實際上現在已經不用再這麼複雜地擷取RTSP的取流位址了,因為大部分的IPC或者NVR都基本支援了Onvif協定,通過Onvif Device Test Tool或者EasyNVR這樣的工具,可以直接發現到裝置的RTSP流位址,不用再自己來拼接了,以EasyNVR為例:

✈ 更多視訊解決方案資源彙總
-
流媒體技術:
© EasyDarwin開源流媒體伺服器:http://www.easydarwin.org
© TSINGSEE視訊開放平台:http://open.tsingsee.com
-
視訊雲服務
© EasyDSS網際網路視訊雲服務:http://www.easydss.com
© EasyCVR安防視訊雲服務:http://www.easycvr.com
© EasyGBS國标視訊雲服務:http://www.easygbs.com
© EasyRTC線上視訊會議平台:http://www.easyrtc.cn
© EasyRTS即時通信雲服務:http://www.easyrts.com
-
邊緣計算:
© EasyNVR視訊邊緣計算網關:http://www.easynvr.com
© EasyNTS上雲網關:http://www.easynts.com
© TSINGSEE Team:http://www.tsingsee.com