当前位置:网站首页>Implementation scheme of RTSP video stream real-time playing on web end of webcam

Implementation scheme of RTSP video stream real-time playing on web end of webcam

2022-06-09 14:04:00 51CTO

IPC How to stream video in real time WEB Browser play , The video stream format is RTSP.
Now I have sorted out my own implementation scheme and some schemes seen on the Internet

One 、FFmpeg + nginx Will turn hls adopt video.js In support of h5 Browser play ( I realized )

See :Nginx+FFmpeg Realization rtsp The circulation hls flow , stay WEB adopt H5 video Realize video playing

Insufficient :hls Delay ratio rtmp、http-flv Big

Two 、FFmpeg + nginx-rtmp-module + h5 video,rtsp turn rtmp Play

notes : adopt video.js Play rtmp flow . You need to put the code on the server , Local windows The computer cannot play

Insufficient : Need browser to open flash

3、 ... and 、FFmpeg + nginx-http-flv-module + flv.js,rtsp turn rtmp, Play directly flv Format

be based on nginx-rtmp-module, By configuring rtmp To flv, Finally through flv.js Play .
​​ ​ https://github.com/winshining/nginx-http-flv-module/blob/master/README.CN.md​​​

This is the best way , What I have found so far . Of course, it only refers to those who do not want to spend money on the charging scheme .

Four 、WebRTC

 ​https://github.com/lulop-k/kurento-rtsp2webrtc​​ https://www.jianshu.com/p/1ddfa72de165

5、 ... and 、streamedian

 ​https://github.com/Streamedian/html5_rtsp_player​​​ https://streamedian.com/
https://streamedian.com/#demo

6、 ... and 、h5stream

 ​https://www.linkingvision.com/​​​ https://github.com/liweilup/h5strea

7、 ... and 、liveqing

 ​https://www.liveqing.com​

Other reference :

  • JAVA Realize Dahua camera WEB Display video in real time ,H5 The way of interface display .
  • Browser play rtsp Video streaming solutions
  • javaCV Develop a detailed explanation of 2: The streamer implements , Push the local camera video to the streaming media server and realize the camera recording video function ( be based on javaCV-FFMPEG、javaCV-openCV)
原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206091232335797.html