1
0
intel-media-ffmpeg/Dockerfile.solution.rhel-8.0
James Ketrenos d9c9978faf Updated to latest xe-solutions base
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2019-11-13 11:51:10 -08:00

55 lines
1.7 KiB
Docker

# Docker.solution based on the Intel-Media-SDK instructions available here:
#
# https://github.com/Intel-Media-SDK/MediaSDK/wiki/Build-and-use-ffmpeg-with-MediaSDK
#
# This should really be part of a multi-stage build so the final
# image isn't polluted with build artifacts
#
# NOTE: This image will only work with Ubuntu 19.04 (disco) and newer
FROM user-stage AS solution-build
# Install git and build tools, clone ffmpeg, and get ready to build it
RUN dnf groupinstall -y 'Development Tools'
# Clone ffmpeg
# NOTE: This explicitly clones the FFMPEG_TAG_VERSION (see SOLUTIONS)
RUN git clone --depth 1 --branch $FFMPEG_TAG_VERSION https://github.com/ffmpeg/ffmpeg /ffmpeg
# Install all required common packages:
# Adapted from
RUN dnf install -y \
libva-devel$LIBVA_DEV_VERSION \
intel-mediasdk-devel$INTEL_MEDIASDK_DEVEL_VERSION \
libva-utils$LIBVA_UTILS_VERSION \
&& dnf clean all
ENV LIBVA_DRIVER_NAME=iHD
# Build FFmpeg
WORKDIR /ffmpeg
RUN ./configure --arch=x86_64 --disable-yasm --enable-vaapi --enable-libmfx \
&& make -j $(nproc --all) \
&& make install
FROM user-stage
ENV LIBVA_DRIVER_NAME=iHD
# Update and install the Mesa, OpenCL, and Media from repositories.intel.com
#
# NOTE: libva requires libpciaccess0, however it doesn't depend on it
# so explicitly install it.
# intel-media-va-driver-non-free$INTEL_MEDIA_VA_DRIVER_NON_FREE_VERSION \
RUN dnf install -y \
intel-media$INTEL_MEDIA_VERSION \
libva$LIBVA_VERSION \
intel-mediasdk$INTEL_MEDIASDK_VERSION \
libva-utils$LIBVA_UTILS_VERSION \
libpciaccess \
pciutils \
&& dnf clean all
# Copy ffmpeg and ffprobe from build container
COPY --from=solution-build /usr/local/bin/ /usr/local/bin/