forked from Eyevinn/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ffmpeg
86 lines (86 loc) · 3.08 KB
/
Dockerfile.ffmpeg
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:18.04
MAINTAINER BGz <[email protected]>
RUN apt-get -y update
RUN apt-get install -y autoconf
RUN apt-get install -y --allow-change-held-packages automake
RUN apt-get install -y --allow-change-held-packages build-essential
RUN apt-get install -y --allow-change-held-packages pkg-config
RUN apt-get install -y --allow-change-held-packages libtool
RUN apt-get install -y --allow-change-held-packages wget
RUN apt-get install -y --allow-change-held-packages yasm
RUN apt-get install -y --allow-change-held-packages libx264-dev
RUN mkdir /root/source
RUN mkdir /root/source/ffmpeg
RUN cd /root/source/ffmpeg && \
wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master && \
tar xzvf fdk-aac.tar.gz && \
cd mstorsjo-fdk-aac* && \
autoreconf -fiv && \
./configure --disable-shared && \
make && \
make install && \
make distclean
RUN apt-get install -y --allow-change-held-packages git
RUN apt-get install -y --allow-change-held-packages cmake
RUN apt-get install -y --allow-change-held-packages python2.7
RUN mkdir -p /root/source/ffmpeg/libaom && \
cd /root/source/ffmpeg/libaom && \
git clone https://aomedia.googlesource.com/aom && \
cmake ./aom && \
make && \
make install
RUN apt-get install -y --allow-change-held-packages python3 python3-pip ninja-build
RUN pip3 install meson
RUN cd /root/source/ffmpeg && \
wget https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.bz2 && \
tar xjvf nasm-2.15.05.tar.bz2 && \
cd nasm-2.15.05 && \
./configure --prefix=/usr && \
make && \
make install
RUN cd /root/source/ffmpeg && \
git clone https://code.videolan.org/videolan/dav1d.git && \
cd dav1d && \
meson build --buildtype release && \
ninja -C build && \
ninja -C build install && \
ldconfig
RUN apt-get install -y --allow-change-held-packages libvpx-dev
RUN apt-get install -y --allow-change-held-packages libssl-dev
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-change-held-packages tclsh
RUN cd /root/source/ffmpeg && \
git clone https://github.com/Haivision/srt.git && \
cd srt && \
./configure && \
make && make install && \
ldconfig
RUN apt-get install -y --allow-change-held-packages libx265-dev libnuma-dev
RUN apt-get install -y --allow-change-held-packages libfreetype6-dev
RUN apt-get install -y --allow-change-held-packages libopus-dev
RUN apt-get install -y --allow-change-held-packages openssl
RUN apt-get install -y --allow-change-held-packages libssl-dev
RUN apt-get install -y --allow-change-held-packages libmp3lame-dev
RUN cd /root/source/ffmpeg && \
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
tar xjvf ffmpeg-snapshot.tar.bz2 && \
cd ffmpeg && \
./configure \
--pkg-config-flags="--static" \
--enable-gpl \
--enable-libfdk-aac \
--enable-libx264 \
--enable-libaom \
--enable-libdav1d \
--enable-libvpx \
--enable-libsrt \
--enable-libx265 \
--enable-libfreetype \
--enable-libopus \
--enable-libmp3lame \
--enable-version3 \
--enable-openssl \
--enable-nonfree && \
make && \
make install && \
make distclean && \
hash -r