mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-26 00:38:37 +00:00
update ffmpeg
This commit is contained in:
parent
5ffa56ff95
commit
22ffbc5b9c
@ -1,10 +1,21 @@
|
|||||||
ffmpeg:
|
youtube:
|
||||||
image: vimagick/ffmpeg
|
image: vimagick/ffmpeg
|
||||||
entrypoint: sh
|
entrypoint: sh
|
||||||
command:
|
command:
|
||||||
- -c
|
- -c
|
||||||
- ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i $$RTMP_DEV -tune zerolatency -vcodec mpeg4 -pix_fmt + -c:v copy -c:a aac -f flv $$RTMP_URI
|
- 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
|
||||||
environment:
|
environment:
|
||||||
- RTMP_DEV=rtsp://10.50.254.197/live
|
- RTMP_URI=rtsp://10.50.254.197/live
|
||||||
- RTMP_URI=rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx
|
- RTMP_URI=rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user