【視頻】海康威視攝像頭RTSP協議格式

參考博客:使用rtsp協議訪問海康IP攝像頭
海康威視IP攝像頭rtsp協議地址如下:

rtsp://[username]:[passwd]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream

說明:
username:用戶名,例如admin
passwd:密碼,例如12345
ip:設備的ip地址,例如192.0.0.64
port:端口號默認554,若爲默認可以不寫
codec:有h265、h264、MPEG-4、mpeg4這幾種(新的攝像頭支持h265)
channel:通道號,起始爲1
subtype:碼流類型,主碼流爲main,子碼流爲sub

例如,請求海康IP攝像機通道1的碼流,url如下:
主碼流:

rtsp://admin:[email protected]:554/h265/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]/h265/ch1/sub/av_stream
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章