1
0
intel-media-ffmpeg/Dockerfile.solution
James Ketrenos 4f66be365b Updated container to isolate solution components and try and get it building
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
2019-09-17 11:58:28 -07:00

42 lines
1.2 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
# Install git and build tools, clone ffmpeg, and get ready to build it
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -q -y install \
git build-essential
# 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/agama/ffmpeg
# Install all required common packages:
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -q -y install \
libva-dev=$LIBVA_DEV_VERSION \
libmfx-dev=$LIBMFX_DEV_VERSION \
libmfx1=$LIBMFX1_VERSION \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-cache policy libmfx1 \
&& apt-cache policy libmfx-dev \
&& apt-cache search libmfx
ENV LIBVA_DRIVER_NAME=iHD
# Build FFmpeg
WORKDIR /home/agama/ffmpeg
RUN ./configure --arch=x86_64 --disable-yasm --enable-vaapi --enable-libmfx \
&& make \
&& make install