Ubuntu image with all dev-time dependencies required for building ffmpeg from source
1.2K
Compiling ffmpeg from source requires a lot of libraries (reference).
This image exists to provide the recommended libraries needed for building ffmpeg by simply starting a container with source mounted and calling make.
Usage example:
docker run -it --rm -v "${PWD}:/root/ffmpeg_sources" mshafer1/ffmpeg_compile_tools
mkdir -p /root/ffmpeg_sources/output
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--ld="g++" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-gnutls \
--enable-libaom \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libsvtav1 \
--enable-libdav1d \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-nonfree && \
PATH="$HOME/bin:$PATH" make && \
make install && \
hash -r
cp -f /root/bin/ffmpeg /root/ffmpeg_sources/output/
exit
Content type
Image
Digest
sha256:704d53e0d…
Size
1.2 GB
Last updated
8 months ago
docker pull mshafer1/ffmpeg_compile_tools