1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-29 18:21:24 +00:00
dockerfiles/ffmpeg/docker-compose.yml

11 lines
354 B
YAML
Raw Normal View History

2017-07-31 23:17:03 +00:00
ffmpeg:
image: vimagick/ffmpeg
entrypoint: sh
command:
- -c
- ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i $$RTMP_DEV -tune zerolatency -vcodec mpeg4 -pix_fmt + -c:v copy -an -f flv $$RTMP_URI
environment:
- RTMP_DEV=rtsp://10.50.254.197/live
- RTMP_URI=rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx
restart: always