docker run --name nginx-rtmp -d -p 1935:1935 -p 80:80 zhaiweiwei/rtmp
将本地文件目录挂载到容器内
docker run --name nginx-rtmp -d -p 1935:1935 -p 80:80 -v <stream_dir>:/opt/streams zhaiweiwei/rtmp
使用rtmp协议访问你的视频rtmp://localhost/vod/demo.mp4
配置文件目录 /usr/local/nginx/conf
媒体文件存放目录 /opt/stream
Content type
Image
Digest
Size
80.4 MB
Last updated
almost 8 years ago
docker pull zhaiweiwei/rtmp