forked from FFmpeg/FFmpeg-Coverity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
192 lines (178 loc) · 4.25 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN \
sed -i 's/main/main contrib non-free/' /etc/apt/sources.list && \
apt-get -y update && \
apt-get -y install build-essential yasm nasm pkg-config git curl wget cmake unzip subversion autoconf automake libtool && \
apt-get -y install --no-install-recommends \
clang \
flite1-dev \
frei0r-plugins-dev \
ladspa-sdk \
libass-dev \
libavc1394-dev \
libbluray-dev \
libbs2b-dev \
libcaca-dev \
libcdio-cdda-dev \
libcdio-dev \
libcdio-paranoia-dev \
libcdparanoia-dev \
libchromaprint-dev \
libcrystalhd-dev \
libdc1394-22-dev \
libfdk-aac-dev \
libfontconfig1-dev \
libfreetype6-dev \
libfribidi-dev \
libgl1-mesa-dev \
libgcrypt20-dev \
libgme-dev \
libgnutls28-dev \
libgsm1-dev \
libiec61883-dev \
libleptonica-dev \
liblzma-dev \
libmfx-dev \
libmodplug-dev \
libmp3lame-dev \
libmysofa-dev \
libomxil-bellagio-dev \
libopenal-dev \
libopencore-amrnb-dev \
libopencore-amrwb-dev \
libopencv-dev \
libopenjp2-7-dev \
libopenmpt-dev \
libopus-dev \
libpulse-dev \
librtmp-dev \
librubberband-dev \
libsctp-dev \
libsdl2-dev \
libshine-dev \
libsmbclient-dev \
libsnappy-dev \
libsoxr-dev \
libspeex-dev \
libssh-dev \
libssl-dev \
libtesseract-dev \
libtheora-dev \
libtwolame-dev \
libv4l-dev \
libdrm-dev \
libva-dev \
libvdpau-dev \
libvo-amrwbenc-dev \
libvorbis-dev \
libvpx-dev \
libwebp-dev \
libx11-dev \
libx11-xcb-dev \
libx264-dev \
libx265-dev \
libxcb-shape0-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
libxv-dev \
libxvidcore-dev \
libxvmc-dev \
libzmq3-dev \
libzvbi-dev \
ocl-icd-opencl-dev \
zlib1g-dev && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN \
cd /root && \
git clone --depth=1 --recurse-submodules https://github.com/TimothyGu/libilbc.git libilbc && \
cd libilbc && \
mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
make -j"$(nproc)" && \
make install && \
cd /root && \
rm -rf libilbc
RUN \
cd /root && \
svn co https://svn.code.sf.net/p/xavs/code/trunk xavs && \
cd xavs && \
./configure --prefix=/usr && \
make -j"$(nproc)" && \
make install && \
cd /root && \
rm -rf xavs
RUN \
cd /root && \
git clone --recurse-submodules --depth=1 https://github.com/sekrit-twc/zimg.git zimg && \
cd zimg && \
./autogen.sh && \
./configure --prefix=/usr && \
make -j"$(nproc)" && \
make install && \
cd /root && \
rm -rf zimg
RUN \
cd /root && \
git clone --depth=1 https://github.com/cisco/openh264.git openh264 && \
cd openh264 && \
make -j"$(nproc)" PREFIX=/usr INCLUDE_PREFIX=/usr/include/wels && \
make install PREFIX=/usr INCLUDE_PREFIX=/usr/include/wels && \
cd /root && \
rm -rf openh264
RUN \
cd /root && \
git clone --depth=1 https://github.com/ultravideo/kvazaar.git kvazaar && \
cd kvazaar && \
./autogen.sh && \
./configure --prefix=/usr && \
make -j"$(nproc)" && \
make install && \
cd /root && \
rm -rf kvazaar
RUN \
cd /root && \
git clone --depth=1 https://gitlab.xiph.org/xiph/celt.git celt && \
cd celt && \
./autogen.sh && \
./configure --prefix=/usr && \
make -j"$(nproc)" && \
make install && \
cd /root && \
rm -rf celt
RUN \
cd /root && \
git clone --depth=1 https://github.com/georgmartius/vid.stab.git libvidstab && \
cd libvidstab && \
cmake -DCMAKE_INSTALL_PREFIX=/usr . && \
make -j"$(nproc)" && \
make install && \
cd /root && \
rm -rf libvidstab
RUN \
cd /root && \
git clone --depth=1 https://github.com/BtbN/decklink-sdk.git decklink-sdk && \
cd decklink-sdk && \
cp -v Linux/include/* /usr/include/ && \
cd /root && \
rm -rf decklink-sdk
RUN \
cd /root && \
git clone --depth=1 https://git.videolan.org/git/ffmpeg/nv-codec-headers.git nv-codec-headers && \
cd nv-codec-headers && \
make install PREFIX=/usr && \
cd /root && \
rm -rf nv-codec-headers
RUN \
cd /root && \
git clone --depth=1 https://github.com/AviSynth/AviSynthPlus.git avisynth && \
cd avisynth && \
mkdir avisynth-build && cd avisynth-build && \
cmake -DHEADERS_ONLY:bool=on -DCMAKE_INSTALL_PREFIX=/usr .. && \
make VersionGen install && \
cd /root && \
rm -rf avisynth
ADD build_script.sh /root/build_script.sh
ADD fake_ld.sh /root/fake_ld.sh
CMD ["/root/build_script.sh"]