Skip to content

Commit

Permalink
docker: disable HW acceleration features for ffmpeg dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Oct 1, 2024
1 parent 03b21a4 commit 50d21aa
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions Dockerfile.opencv-static
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@

FROM --platform=linux/amd64 golang:1.22-bullseye AS opencv-base-amd64
LABEL maintainer="hybridgroup"
RUN echo "deb http://ftp.debian.org/debian bullseye main non-free" | tee -a /etc/apt/sources.list && \
apt-get update && apt-get -y install \
RUN apt-get update && apt-get -y install \
autoconf automake libass-dev libgnutls28-dev \
libmp3lame-dev libsdl2-dev libtool \
libva-dev libvdpau-dev \
libmp3lame-dev libtool \
libvorbis-dev libxcb1-dev \
libxcb-shm0-dev libxcb-xfixes0-dev \
meson ninja-build pkg-config \
texinfo wget yasm \
zlib1g-dev libx264-dev libx265-dev libnuma-dev libvpx-dev \
libfdk-aac-dev libopus-dev libdav1d-dev \
libopus-dev libdav1d-dev \
git build-essential cmake pkg-config unzip libgtk-3-dev \
curl ca-certificates libcurl4-openssl-dev libssl-dev \
libharfbuzz-dev libfreetype6-dev \
Expand All @@ -34,7 +32,8 @@ RUN wget -O ffmpeg-5.0.tar.bz2 "https://www.ffmpeg.org/releases/ffmpeg-5.0.3.tar
tar -xf ffmpeg-5.0.tar.bz2

RUN cd ffmpeg-5.0.3 && \
./configure --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx --enable-zlib --enable-nonfree && \
./configure --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx --enable-zlib \
--disable-sdl2 --disable-vaapi --disable-vdpau --disable-v4l2-m2m && \
make -j $(nproc --all) && make install && ldconfig

FROM --platform=linux/amd64 opencv-base-amd64 AS opencv-build-amd64
Expand Down Expand Up @@ -105,17 +104,15 @@ RUN cd opencv-${OPENCV_VERSION} && \
FROM --platform=linux/arm64 golang:1.22-bullseye AS opencv-base-arm64
LABEL maintainer="hybridgroup"

RUN echo "deb http://ftp.debian.org/debian bullseye main non-free" | tee -a /etc/apt/sources.list && \
apt-get update && apt-get -y install \
RUN apt-get update && apt-get -y install \
autoconf automake libass-dev libgnutls28-dev \
libmp3lame-dev libsdl2-dev libtool \
libva-dev libvdpau-dev \
libmp3lame-dev libtool \
libvorbis-dev libxcb1-dev \
libxcb-shm0-dev libxcb-xfixes0-dev \
meson ninja-build pkg-config \
texinfo wget yasm \
zlib1g-dev libx264-dev libx265-dev libnuma-dev libvpx-dev \
libfdk-aac-dev libopus-dev libdav1d-dev \
libopus-dev libdav1d-dev \
git build-essential cmake pkg-config unzip libgtk-3-dev \
curl ca-certificates libcurl4-openssl-dev libssl-dev \
libharfbuzz-dev libfreetype6-dev \
Expand All @@ -126,7 +123,8 @@ RUN wget -O ffmpeg-5.0.tar.bz2 "https://www.ffmpeg.org/releases/ffmpeg-5.0.3.tar
tar -xf ffmpeg-5.0.tar.bz2

RUN cd ffmpeg-5.0.3 && \
./configure --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx --enable-zlib --enable-nonfree && \
./configure --enable-shared --enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx --enable-zlib \
--disable-sdl2 --disable-vaapi --disable-vdpau --disable-v4l2-m2m && \
make -j $(nproc --all) && make install && ldconfig

FROM --platform=linux/arm64 opencv-base-arm64 AS opencv-build-arm64
Expand Down

0 comments on commit 50d21aa

Please sign in to comment.