forked from pinarakyazi/codec_compare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·86 lines (77 loc) · 2.59 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM ubuntu:16.04
WORKDIR /codec_compare
# DEPENDENCIES
RUN apt-get update && apt-get install -y \
wget \
unzip \
g++ \
make \
patchelf \
bzip2 \
pkg-config \
yasm \
subversion \
python \
imagemagick
# JPEG
RUN mkdir -p /tools && \
cd /tools && \
wget -O jpeg.zip https://jpeg.org/downloads/jpegxt/reference1367abcd89.zip && \
unzip jpeg.zip -d jpeg && \
rm -f jpeg.zip && \
cd jpeg && \
./configure && \
make
# KAKADU
RUN mkdir -p /tools && \
cd /tools && \
wget -O kakadu.zip http://kakadusoftware.com/wp-content/uploads/2014/06/KDU7A2_Demo_Apps_for_Ubuntu-x86-64_170827.zip && \
unzip kakadu.zip -d kakadu && \
rm -f kakadu.zip && \
patchelf --set-rpath '$ORIGIN/' /tools/kakadu/KDU7A2_Demo_Apps_for_Ubuntu-x86-64_170827/kdu_compress && \
patchelf --set-rpath '$ORIGIN/' /tools/kakadu/KDU7A2_Demo_Apps_for_Ubuntu-x86-64_170827/kdu_expand && \
patchelf --set-rpath '$ORIGIN/' /tools/kakadu/KDU7A2_Demo_Apps_for_Ubuntu-x86-64_170827/kdu_v_compress && \
patchelf --set-rpath '$ORIGIN/' /tools/kakadu/KDU7A2_Demo_Apps_for_Ubuntu-x86-64_170827/kdu_v_expand
# WEBP
RUN mkdir -p /tools && \
cd /tools && \
wget -O libwebp.tar.gz https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.0.0-linux-x86-64.tar.gz && \
tar xvzf libwebp.tar.gz && \
rm -f libwebp.tar.gz
RUN apt-get install libglu1 -y
RUN apt-get install libxi6 -y
# HEVC
RUN mkdir -p /tools && \
cd /tools && \
svn checkout https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/tags/HM-16.18+SCM-8.7/ && \
cd HM-16.18+SCM-8.7/build/linux && \
make
# VMAF, FFMPEG
RUN mkdir -p /tools && \
cd /tools && \
wget -O vmaf.zip https://github.com/Netflix/vmaf/archive/v1.3.1.zip && \
unzip vmaf.zip && \
rm -f vmaf.zip && \
cd vmaf-1.3.1 && \
make && \
make install && \
cd /tools && \
wget -O ffmpeg.tar.bz2 http://ffmpeg.org/releases/ffmpeg-3.4.1.tar.bz2 && \
tar -vxjf ffmpeg.tar.bz2 && \
rm ffmpeg.tar.bz2 && \
cd ffmpeg-3.4.1 && \
./configure --enable-libvmaf && \
make install
# DIFFTEST_NG
RUN mkdir -p /tools && \
cd /tools && \
wget -O difftest_ng-master.zip https://github.com/thorfdbg/difftest_ng/archive/master.zip && \
unzip difftest_ng-master.zip && \
rm -f difftest_ng-master.zip && \
cd difftest_ng-master && \
./configure && \
make && \
make install
# TO ADD ANOTHER
# ADD /local/path/to/bin /tools/bin
# ^ This will add the file from the host machine into the container. In this case the bin is accessible at: `/tools/bin`.