bilibili / flv.js

HTML5 FLV Player
Apache License 2.0
22.83k stars 3.38k forks source link

Multi-user playback of RTSP live streams #481

Open oppo12312312 opened 4 years ago

oppo12312312 commented 4 years ago

I used ffmpeg to convert RTSP into FLV, and used websocket to push to FLVJS. When there were two users connected, I directly transmitted the stream from the first ffmpeg to the second user, and then the second user client FLVJS reported an error: non-flv, Unsupported media type!

colmaengus commented 4 years ago

Have you considered using a media server like nginx with nginx-http-flv-module? This would allow you to publish flv from ffmpeg and have any many consumers as you like. This would be using flv over http. If you really want websockets you could use node-media-server but I've found this to have a higher CPU load compared to nginx.