-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (44 loc) · 1.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM debian:bullseye
# setup timezone
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# get and install building tools + ffmpeg
RUN sed -i "s#debian bullseye main#debian bullseye main contrib non-free#g" /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
git \
ninja-build \
python3 \
python3-coverage \
python3-flake8 \
python3-matplotlib \
python3-pandas \
ca-certificates \
pkg-config \
yasm \
libva-dev libva2 \
libssl-dev \
libx264-dev libx264-160 \
libx265-dev libx265-192 \
libvpx-dev libvpx6 \
i965-va-driver-shaders \
mesa-va-drivers \
wget \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists
# retrieve source code
RUN git clone --branch v1.3.15 --depth 1 https://github.com/Netflix/vmaf.git /vmaf
RUN git clone --branch n4.1.4 --depth 1 https://github.com/FFmpeg/FFmpeg.git /ffmpeg
# build vmaf + ffmpeg
RUN cd /vmaf && make -j $(nproc --all) && make install
RUN cd /ffmpeg && \
./configure --enable-version3 --enable-gpl --enable-nonfree --enable-small \
--enable-openssl \
--enable-libvmaf --enable-vaapi \
--enable-libvpx --enable-libx264 --enable-libx265 && \
make -j $(nproc --all)
# setup env
ENV PATH=/ffmpeg:$PATH
WORKDIR /root/data/