FFmpeg Docker container compiled to be compatible with LGPL starting from AmazonLinux2.
FFmpeg has been compiled as a single static binary to use it with AWS Lambda Layers.
This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here.
A copy of the LGPLv2.1 is also available in this repository here.
FFmpeg source code has NOT been modified for this software.
FFmpeg has been compiled with the following configuration.
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (GCC)
configuration: --prefix=/opt/ffmpeg_build --pkg-config-flags=--static --extra-cflags='-I/opt/ffmpeg_build/include -static' --extra-ldflags='-L/opt/ffmpeg_build/lib -static' --disable-debug --disable-doc --disable-ffplay --disable-network --bindir=/opt/bin
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
FFmpeg has been compiled without --enable-gpl
and --enable-nonfree
in order to comply with the terms of LGPLv2.1.
Additionally, this release has been compiled witn --disable-network
for advanced security requirements.
You can have further details on the compilation process in the Dockerfile and in the local build script
You can check that the ffmpeg
single binary has no dynamic dependencies by
Admin:~/environment $ ldd ./ffmpeg
not a dynamic executable
Standalone Binaries for FFmpeg and FFprobe compiled on Amazonlinux2 are available here.
These have been compiled with the same configuration set.
You can find an achive with both FFmpeg and FFprobe static binaries for AmazonLinux2 here.
You can pull this image from DockerHub by doing the following
docker pull giusedroid/ffmpeg-lgpl:amazonlinux2-no-network
If you found this useful, please feel free to buy me a beer or a coffee.
Monzo
You can find me on Twitter as giusedroid