Real-time playback implementation scheme of webcam RTSP video stream WEB side

default-user-image.png

How to play the IPC video stream in the WEB browser in real time, the video stream format is RTSP.

Below I have sorted out the solutions I implemented and some solutions I saw on the Internet

1. FFmpeg + nginx will transfer hls to play through video.js in browsers that support h5 (I implemented it)

See also: Nginx+FFmpeg realizes rtsp streaming to hls stream, and realizes video playback through H5 video in WEB

Insufficient: hls delay is larger than rtmp, http-flv

2. FFmpeg + nginx-rtmp-module + h5 video, rtsp to rtmp playback

https://ift.tt/jIQHonU

https://ift.tt/C8HPZf6

Note: Play rtmp stream via video.js. The code needs to be put on the server, the local windows computer cannot play

Disadvantage: Requires browser to open flash

3. FFmpeg + nginx-http-flv-module + flv.js, rtsp to rtmp, play flv format directly

Based on nginx-rtmp-module, rtmp is converted to flv through configuration, and finally played through flv.js.

https://ift.tt/6ijdDwT

https://ift.tt/LXhUwfH

https://ift.tt/EBFq2LY

This way is the most ideal solution I have found so far. Of course, it just means that you don’t want to spend money on a charging plan.

4. WebRTC

https://ift.tt/TEJOdC8

https://ift.tt/h5te7Lq

Five, streamedian

https://ift.tt/9mw4OLv

https://ift.tt/Vy7QNuc

This article is reprinted from https://blog.p2hp.com/archives/8498
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.