-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.amd64
96 lines (88 loc) · 3.35 KB
/
Dockerfile.amd64
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
# Copyright (C) 2019 Christian Berger
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
FROM ubuntu:18.04
MAINTAINER Christian Berger "[email protected]"
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
software-properties-common && \
add-apt-repository ppa:chrberger/libcluon && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get dist-upgrade -y && \
apt-get install -y --no-install-recommends \
ca-certificates \
cmake \
build-essential \
git \
libcluon \
perl \
nasm \
yasm \
wget
# Install openh264 v1.8.0.
RUN cd /tmp && \
git clone --depth 1 --branch v1.8.0 https://github.com/cisco/openh264.git && \
cd openh264 && mkdir b && cd b \
make -j2 -f ../Makefile libraries && \
make -j2 -f ../Makefile binaries && make -f ../Makefile install && \
cp h264enc /usr/local/bin && \
cp h264dec /usr/local/bin && \
cd /tmp && rm -fr openh264
RUN cd /tmp && wget http://ciscobinary.openh264.org/libopenh264-1.8.0-linux64.4.so.bz2 && \
bunzip2 libopenh264-1.8.0-linux64.4.so.bz2 && \
cp libopenh264-1.8.0-linux64.4.so /usr/local/lib/libopenh264.so.1.8.0 && \
rm -f libopenh264-1.8.0-linux64.4*
# Install x264, stable.
RUN cd /tmp && \
git clone --depth 1 --branch stable http://git.videolan.org/git/x264.git && \
cd x264 && \
./configure --disable-opencl \
--disable-gpl \
--disable-avs \
--disable-swscale \
--disable-lavf \
--disable-ffms \
--disable-gpac \
--disable-lsmash \
--enable-pic \
--enable-static \
--enable-strip \
--prefix=/usr/local && \
make -j2 && make install && \
cd /tmp && rm -fr x264
# Install vpx, v1.7.0.
RUN cd /tmp && \
git clone --depth 1 --branch v1.7.0 https://github.com/webmproject/libvpx.git && \
mkdir build && cd build && \
../libvpx/configure --disable-docs \
--enable-tools \
--enable-vp8 \
--enable-vp9 \
--enable-libyuv \
--disable-unit-tests \
--disable-webm-io \
--disable-postproc && \
make -j4 && make install && \
cd /tmp && rm -fr libvpx build
# Install libyuv for picture quality.
RUN cd /tmp && \
git clone --depth 1 https://chromium.googlesource.com/libyuv/libyuv && \
cd libyuv &&\
make -f linux.mk psnr yuvconvert && cp psnr yuvconvert /usr/local/bin && \
cd /tmp && rm -fr libyuv
# Install imagemagick for picture quality.
RUN apt-get install -y --no-install-recommends \
imagemagick \
ffmpeg