# 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 Dockerfile requires the SUSE Development Tools Module be activated FROM xe-user-stage AS solution-build USER root # Install git and build tools, clone ffmpeg, and get ready to build it RUN zypper refresh \ && zypper install -y \ binutils \ gcc \ gcc-c++ \ make \ pkg-config \ gawk \ git-core # media development packages RUN zypper install -y \ libva-devel \ libva-utils \ libmfx-devel USER user # 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 /home/user/ffmpeg # Build FFmpeg WORKDIR /home/user/ffmpeg ENV LIBVA_DRIVER_NAME=iHD # && sudo make install # Disable libxcb -- we don't want/need all the X dependencies RUN ./configure --arch=x86_64 --disable-libxcb --disable-x86asm --enable-vaapi --enable-libmfx \ && make -j $(nproc --all) \ && sudo make install FROM xe-user-stage USER root # 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. RUN zypper install -y \ intel-media-driver \ libva2 \ libmfx1 \ libva-utils \ libpciaccess0 \ pciutils # Copy ffmpeg and ffprobe from build container COPY --from=solution-build /usr/local/bin/ /usr/local/bin/ RUN zypper clean --all # curl is needed by assets/test to download a media asset RUN zypper install -y curl ENV LIBVA_DRIVER_NAME=iHD USER user