專案介紹:前端時間做了一個專案用qt 撰寫軟體獲取海康攝像頭rtsp視頻流,實作實時顯示,當時采用的是VLC-Qt播放RTSP流這種方式(參考:https://blog.csdn.net/caoshangpa/article/details/53158571),花了一段時間研究也做出來了,可是發現了一個無法解決的問題,即無法解決視頻延遲的問題,差不多延遲1秒左右,后面果斷
放棄了,采用FFmpeg+rtsp這種方式,最終發現還是這種方式效果最好,解決了延遲問題,至少肉眼看不出,下面對此專案做個大致介紹,文章最后附上專案開發相關資料,
提示:使用rtsp方式獲取海康攝像頭影像需要開啟海康的onvif功能,
參考連接:http://zh-cjh.com/anfangwulianwang/1394.html
開發介紹:
開發軟體:qt5.14.2
構建:MinGW64 bit
ffmpeg版本:3.4-win64
軟體介紹:
軟體截圖:

海康攝像頭:

現在網路攝像頭很多都支持rtsp方式顯示影像,通過這種方式一個軟體可以顯示很多廠家的攝像頭,兼容性更強,
提供不同廠家攝像頭的rtsp地址:
一、海康、中威攝像機
格式1:
主碼流:rtsp://admin:[email protected]:554/Streaming/Channels/1
子碼流:rtsp://admin:[email protected]:554/Streaming/Channels/2
第三碼流:rtsp://admin:[email protected]:554/Streaming/Channels/3
格式2:
rtsp://admin:[email protected]:554/ch1/main/av_stream
二、大華
rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
三、英飛拓
球機:
單播和組播地址一致
高碼流(主碼流)RTSP地址:rtsp://admin:[email protected]/1/1080p
低碼流(子碼流)RTSP地址:rtsp://admin:[email protected]/1/D1
半球和槍機:(亭子、車道)
單播:
高碼流(主碼流)RTSP地址:rtsp://192.168.1.64:554/1/h264major
低碼流(子碼流)RTSP地址:rtsp://192.168.1.64:554/1/h264minor
組播:
高碼流(主碼流)RTSP地址:rtsp://192.168.1.64:554/1/h264major/multicast
低碼流(子碼流)RTSP地址:rtsp://192.168.1.64:554/1/h264minor/multicast
四、三星
單播:
高碼流rtsp地址:
rtsp://admin:[email protected]:554/onvif/profile2/media.smp(720P)
低碼率rtsp地址
rtsp://admin:[email protected]:554/onvif/profile3/media.smp
組播:
高碼流rtsp地址:
rtsp://admin:[email protected]:554/onvif/multicast/profile2/media.smp (720p)
低碼流rtsp地址:
rtsp://admin:[email protected]:554/onvif/multicast/profile3/media.smp
五、宇視:
rtsp://admin:[email protected]/media/video1/multicast
六、LG
單播和組播地址一致
高碼流(主碼流)RTSP地址:rtsp://admin:[email protected]:554/Master-0
低碼流(子碼流)RTSP地址:rtsp://admin:[email protected]:554/Slave-0
七、派爾高網路攝像機:
RTSP主碼流地址為:rtsp://192.168.1.64/h264
第一從碼流RTSP地址為:rtsp://192.168.1.64/h264_2
第二從碼流RTSP地址為:rtsp://192.168.1.64/h264_3
八、安訊士網路攝像機:
單播:
rtsp://root:[email protected]/axis-media/media.amp?videocodec=h264&resolution=1280x720&fps=25
組播:
rtsp://root:[email protected]/onvif-media/media.amp?profile=profile_1_h264&streamtype=multicast
http://root:123456@192.168.1.64/axis-cgi/alwaysmulti.sdp?camera=1
九、非凡
rtsp://admin:[email protected]:554/streaming/channels/101
十、金三立
rtsp://Admin:[email protected]/stream/av0_0
以上是專案的大致介紹;提供開發資料如下鏈接地址:
鏈接:https://pan.baidu.com/s/1SqF-w86mNFtJyh24mGxYcA?pwd=ms3g 提取碼:ms3g
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/499343.html
標籤:其他
下一篇:Git
