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 <ron@hybridgroup.com>
  • Loading branch information
deadprogram committed Oct 1, 2024
1 parent 03b21a4 commit 0903489
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile.opencv-static
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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 --enable-nonfree \
--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 @@ -126,7 +127,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 --enable-nonfree \
--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 0903489

Please sign in to comment.