安装docker ffmpeg
https://blog.csdn.net/m1f2c3/article/details/93624289
docker pull jrottenberg/ffmpeg
docker run -it --entrypoint='bash' jrottenberg/ffmpeg
docker start ...
下载jsmpeg
npm install -g ws
npm install ws
npm install http-server -g
进入jsmpeg目录
node websocket-relay.js supersecret 8081 8082
再打开一个命令行启动推流
ffmpeg -i "rtspurl节目源地址" -q 0 -f mpegts -codec:v mpeg1video -s 1366x768 http://127.0.0.1:8081/supersecret
再打开一个命令行进入jsmpeg目录,输入:
http-server
用浏览器打开网址
http://ip:8080/view-stream.html