主要用于测试目的,系统是windows,使用的是docker desktop 3.5.1
1. rtsp-simple-server
官网:https://github.com/aler9/rtsp-simple-server
(1)下载解压缩
Centos7下载压缩包,然后启动rtsp服务器
tar zxvf rtsp-simple-server_v0.18.0_linux_amd64.tar.gz ./rtsp-simple-server
(2)推流
ffmpeg -re -stream_loop -1 -i test.mp4 -c copy -f rtsp rtsp://localhost:8554/stream
(3)播放 ffplay或vlc
ffplay -rtsp_transport tcp -i rtsp://localhost:8554/stream
2. happytime
参考:http://www.happytimesoft.com/products/rtsp-server/index.html
下载程序、解压,在命令行中运行RtspServer。
3. EasyDarwin
参考:https://github.com/EasyDarwin/EasyDarwin