2018-02-04 08:35:09 +02:00
|
|
|
youtube:
|
2017-08-01 01:17:03 +02:00
|
|
|
image: vimagick/ffmpeg
|
|
|
|
entrypoint: sh
|
|
|
|
command:
|
|
|
|
- -c
|
2018-02-04 08:35:09 +02:00
|
|
|
- ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i $$RTMP_URI -tune zerolatency -vcodec mpeg4 -pix_fmt + -c:v copy -c:a aac -f flv $$RTMP_URI
|
2017-08-01 01:17:03 +02:00
|
|
|
environment:
|
2018-02-14 16:15:39 +02:00
|
|
|
- RTSP_URI=rtsp://10.50.254.197/live
|
2017-08-01 01:17:03 +02:00
|
|
|
- RTMP_URI=rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx
|
|
|
|
restart: always
|
2018-02-04 08:35:09 +02:00
|
|
|
|
|
|
|
bilibili:
|
|
|
|
image: vimagick/ffmpeg
|
|
|
|
entrypoint: sh
|
|
|
|
command:
|
|
|
|
- -c
|
|
|
|
- ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i $$RTSP_URI -tune zerolatency -vcodec mpeg4 -pix_fmt + -c:v copy -f flv $$RTMP_URI
|
|
|
|
environment:
|
|
|
|
- RTSP_URI=rtsp://192.168.1.137/live
|
|
|
|
- RTMP_URI=rtmp://js.live-send.acg.tv/live-js/?streamname=xxxx&key=xxxx
|
|
|
|
restart: unless-stopped
|