docker: Enable vaapi on aarch64

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2022-07-19 11:28:40 -04:00
parent e68f80b44a
commit 7d6e176cab
No known key found for this signature in database
GPG Key ID: C638974D64792D67
2 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,8 @@ ENV DEBIAN_FRONTEND=noninteractive
# Install packages for apt repo # Install packages for apt repo
RUN apt-get -qq update \ RUN apt-get -qq update \
&& apt-get -qq install --no-install-recommends -y \ && apt-get -qq install --no-install-recommends -y \
# VAAPI drivers for Intel hardware accel
libva-drm2 libva2 vainfo mesa-vdpau-drivers mesa-va-drivers mesa-vdpau-drivers libdrm-radeon1 \
# ffmpeg runtime dependencies # ffmpeg runtime dependencies
libgomp1 \ libgomp1 \
# runtime dependencies # runtime dependencies

View File

@ -79,6 +79,7 @@ RUN buildDeps="autoconf \
python \ python \
libssl-dev \ libssl-dev \
yasm \ yasm \
libva-dev \
linux-headers-raspi2 \ linux-headers-raspi2 \
libomxil-bellagio-dev \ libomxil-bellagio-dev \
zlib1g-dev" && \ zlib1g-dev" && \
@ -444,6 +445,7 @@ RUN \
--enable-libkvazaar \ --enable-libkvazaar \
--enable-libaom \ --enable-libaom \
--extra-libs=-lpthread \ --extra-libs=-lpthread \
--enable-vaapi \
--enable-rkmpp \ --enable-rkmpp \
--enable-libdrm \ --enable-libdrm \
# --enable-omx \ # --enable-omx \
@ -483,4 +485,9 @@ ENTRYPOINT ["ffmpeg"]
COPY --from=build /usr/local /usr/local/ COPY --from=build /usr/local /usr/local/
RUN \
apt-get update -y && \
apt-get install -y --no-install-recommends libva-drm2 libva2 mesa-va-drivers && \
rm -rf /var/lib/apt/lists/*
# Run ffmpeg with -c:v h264_v4l2m2m to enable HW accell for decoding on raspberry pi4 64-bit # Run ffmpeg with -c:v h264_v4l2m2m to enable HW accell for decoding on raspberry pi4 64-bit