10K+
A minimal, LGPL-licensed FFmpeg build packaged as a Docker image.
ffmpeg binary, without compilers or build tools.Run FFmpeg on files in the current directory:
docker run --rm -v "$(pwd):/workspace" onerahmet/ffmpeg:n9.1 -i input.mp4 -vn -c:a flac output.flac
Use it as a build layer in another image:
FROM onerahmet/ffmpeg:n9.1 AS ffmpeg
FROM debian:bookworm-slim
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
COPY --from=ffmpeg /usr/local/share/doc/ffmpeg /usr/local/share/doc/ffmpeg
The binary is built on Debian bookworm and runs on any glibc-based image with glibc 2.35 or newer.
| Platforms | linux/amd64, linux/arm64 |
| Programs | ffmpeg (no ffprobe or ffplay) |
| Input/output | Local files and pipes; network protocols are disabled |
| Audio decoding | AAC, MP3, FLAC, Opus, Vorbis, ALAC, PCM |
| Video decoding | H.264, HEVC, VP9, MPEG-4, MJPEG |
| Encoding | AAC, FLAC, MP2, PCM, MPEG-4, MJPEG, FFV1 |
External libraries such as libx264, libmp3lame or libdav1d are not included.
Image tags follow FFmpeg release tags, for example n9.1 or n7.1. latest points to the most recent release. Per-architecture tags such as n9.1-amd64 and n9.1-arm64 are also published; they are used to assemble the multi-platform tags.
docker build --build-arg FFMPEG_VERSION=n9.1 -t onerahmet/ffmpeg:n9.1 .
FFMPEG_VERSION is required and must be an FFmpeg release tag.
Pushing a git tag named after an FFmpeg release (for example n9.1) builds the image natively on amd64 and arm64 runners, publishes it to Docker Hub as that tag and latest, and then creates a GitHub release.
The files in this repository are licensed under the MIT License, see LICENCE.
The published image contains FFmpeg, licensed under the LGPL v2.1 or later:
--enable-gpl and --enable-nonfree. Enabling either, or adding external libraries, changes the license of the binary./usr/local/share/doc/ffmpeg/.FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project.
Content type
Image
Digest
sha256:637d9a52a…
Size
34.7 MB
Last updated
3 days ago
docker pull onerahmet/ffmpeg