IPC視頻流怎麼實時在WEB瀏覽器播放,視頻流格式是RTSP。下麵我整理了自己實現的方案以及網上看到的一些方案 一、FFmpeg + nginx 將轉 hls 通過 video.js 在支持h5瀏覽器播放(我實現的) 參見:Nginx+FFmpeg實現rtsp流轉hls流,在WEB通過H5 vide ...
IPC視頻流怎麼實時在WEB瀏覽器播放,視頻流格式是RTSP。
下麵我整理了自己實現的方案以及網上看到的一些方案
一、FFmpeg + nginx 將轉 hls 通過 video.js 在支持h5瀏覽器播放(我實現的)
參見:Nginx+FFmpeg實現rtsp流轉hls流,在WEB通過H5 video實現視頻播放
不足:hls延遲較rtmp、http-flv大
直達:請關註,微信公眾號:如其所斯
,回覆:rtsp
,獲取完整資料下載鏈接。
二、FFmpeg + nginx-rtmp-module + h5 video,rtsp轉rtmp播放
https://blog.csdn.net/gui66497/article/details/78590190
https://blog.csdn.net/LLittleF/article/details/81111713
註:通過video.js播放rtmp流。需要將代碼放到伺服器,本地windows電腦無法播放
不足:需要瀏覽器開啟flash
三、FFmpeg + nginx-http-flv-module + flv.js,rtsp轉rtmp,直接播放flv格式
基於nginx-rtmp-module,通過配置將rtmp轉為flv,最後通過flv.js播放。
https://github.com/winshining/nginx-http-flv-module/blob/master/README.CN.md
https://segmentfault.com/a/1190000016043297
https://blog.csdn.net/qq_22633333/article/details/96288603#comments
這種方式是最理想的,我目前找到的方案。當然單指不想花錢買收費方案的。
四、WebRTC
https://github.com/lulop-k/kurento-rtsp2webrtc
https://www.jianshu.com/p/1ddfa72de165
五、streamedian
https://github.com/Streamedian/html5_rtsp_player
https://streamedian.com/
https://streamedian.com/#demo
https://blog.csdn.net/u011489205/article/details/79327275
六、h5stream
https://www.linkingvision.com/
https://github.com/liweilup/h5stream
https://blog.csdn.net/Dnison/article/details/81663137
七、liveqing
找到我
微信公眾號:如其所斯
0人點贊 開發工具