FROM debian:bookworm RUN apt-get update RUN apt-get install -yqq autoconf \ automake \ build-essential \ cmake \ git-core \ libtool \ libunistring-dev \ meson \ ninja-build \ pkg-config \ texinfo \ wget \ yasm WORKDIR /opt/ffmpeg-sources RUN wget https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz && tar -xJvf ffmpeg-6.1.tar.xz WORKDIR /opt/ffmpeg-sources/ffmpeg-6.1 RUN ./configure --pkg-config-flags="--static" --extra-libs="-lpthread" --ld="g++" \ --prefix="/opt/ffmpeg-build" --enable-shared --disable-static \ --disable-doc --disable-network \ --disable-zlib --disable-lzma --disable-bzlib --disable-bsfs --disable-v4l2-m2m RUN make -j16 RUN make install