Minimal FFmpeg Docker image built on Alpine Linux including SRT to use as a SRT->RTMP Twitch proxy
2.8K
Current FFmpeg version: 6.0
This container is mostly meant to be used as a Proxy between a set stream and twitch.tv like this:
docker run bardiir/ffmpeg-srt -i "srt://:1234?mode=listener&transtype=live&latency=3000000&ffs=128000&rcvbuf=100058624" -c copy -f flv "rtmp://live-cdg.twitch.tv/app/yourStreamKey"
See https://obsproject.com/wiki/Streaming-With-SRT-Or-RIST-Protocols for further information. You should also replace live-cdg.twitch.tv with the appropriate stream ingest server for your region: https://help.twitch.tv/s/twitch-ingest-recommendation
But you can of course also use the container for the usual ffmpeg stuff:
$ docker run bardiir/ffmpeg-srt -i http://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > test.webm
To encode a local file, you can mount the current path on the Docker host's filesystem as a volume inside the container like this:
$ docker run -v=`pwd`:/tmp/ffmpeg bardiir/ffmpeg-srt -i localfile.mp4 out.webm
You can create an alias so you use the Docker container like if FFmpeg is installed on your computer:
In ~/.bashrc:
alias ffmpeg='docker run -v=`pwd`:/tmp/ffmpeg bardiir/ffmpeg-srt‘
Now we can execute FFmpeg with just:
$ ffmpeg -buildconf
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r10) 20220924
configuration: --enable-version3 --enable-libsrt --enable-gpl --enable-nonfree --enable-small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-libass --enable-libwebp --enable-librtmp --enable-postproc --enable-libfreetype --enable-openssl --disable-debug
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
configuration:
--enable-version3
--enable-libsrt
--enable-gpl
--enable-nonfree
--enable-small
--enable-libmp3lame
--enable-libx264
--enable-libx265
--enable-libvpx
--enable-libtheora
--enable-libvorbis
--enable-libopus
--enable-libass
--enable-libwebp
--enable-librtmp
--enable-postproc
--enable-libfreetype
--enable-openssl
--disable-debug
Content type
Image
Digest
sha256:c32725049…
Size
73.3 MB
Last updated
almost 3 years ago
docker pull bardiir/ffmpeg-srt