Docker FFmpeg Compiler is a simple way to compile the FFmpeg binary for your linux system.
This project requires Docker. See the Docker installation guide to get started.
The easiest way to get started is by using the Makefile
). Run make
to see the help.
📦 Container
Build container to compile ffmpeg for version snapshot
.
make compile VERSION="snapshot"
Note: You can substitute
snapshot
with the desired version, e.g.5.1.2
, to build an image for a specific release.
Start container (in detached mode).
make start VERSION="snapshot"
Stop container.
make stop VERSION="snapshot"
Remove container.
make remove VERSION="snapshot"
💻️ Host machine
Copy the FFmpeg, FFprobe and FFplay binaries from container to host machine.
make copy VERSION="snapshot"
Note: This will copy the binaries to the
$HOME/bin
directory on the host machine.
Install the package.list
on host machine.
make install
If you need either more or less libraries for your compiled binaries, you can edit the package.list
and Dockerfile
to your
needs before building the image.
Distributed under the MIT license. See LICENSE for more information.
Note: The purpose of this repository is purely to show on how to compile FFmpeg with several libraries, disregarding library specific licenses. Please check the FFmpeg License and Legal Considerations before compiling and/or using the compiled binary in production.