-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
93 lines (91 loc) · 2.86 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
FROM barais/ffmpeg
MAINTAINER Olivier Barais: 0.1
WORKDIR /root/ffmpeg_sources
ENV CFLAGS="-O0 -Wall"
ENV CXXFLAGS="-O0 -Wall"
RUN tar xzvf yasm-1.3.0.tar.gz
WORKDIR /root/ffmpeg_sources/yasm-1.3.0
RUN sed -i 's/-O2/-O0/g' configure
RUN sed -i 's/-O1/-O0/g' configure
RUN sed -i 's/-O3/-O0/g' configure
RUN ./configure --prefix="/root/ffmpeg_build" --bindir="/root/bin"
RUN make
RUN make install
RUN make distclean
WORKDIR /root/ffmpeg_sources
RUN tar xjvf last_x264.tar.bz2
WORKDIR /root/ffmpeg_sources/x264-snapshot-20141218-2245
RUN sed -i 's/-O2/-O0/g' configure
RUN sed -i 's/-O1/-O0/g' configure
RUN sed -i 's/-O3/-O0/g' configure
RUN PATH="/root/bin:$PATH" ./configure --prefix="/root/ffmpeg_build" --bindir="/root/bin" --enable-static
RUN PATH="/root/bin:$PATH" make
RUN make install
RUN make distclean
WORKDIR /root/ffmpeg_sources
RUN unzip fdk-aac.zip
WORKDIR /root/ffmpeg_sources/mstorsjo-fdk-aac-83ac4a9
RUN autoreconf -fiv
RUN sed -i 's/-O2/-O0/g' configure
RUN sed -i 's/-O1/-O0/g' configure
RUN sed -i 's/-O3/-O0/g' configure
RUN ./configure --prefix="/root/ffmpeg_build" --disable-shared
RUN make
RUN make install
RUN make distclean
WORKDIR /root/ffmpeg_sources
RUN tar xzvf lame-3.99.5.tar.gz
WORKDIR /root/ffmpeg_sources/lame-3.99.5
RUN sed -i 's/-O2/-O0/g' configure
RUN sed -i 's/-O1/-O0/g' configure
RUN sed -i 's/-O3/-O0/g' configure
RUN ./configure --prefix="/root/ffmpeg_build" --enable-nasm --disable-shared
RUN make
RUN make install
RUN make distclean
WORKDIR /root/ffmpeg_sources
RUN tar xzvf opus-1.1.tar.gz
WORKDIR /root/ffmpeg_sources/opus-1.1
RUN sed -i 's/-O2/-O0/g' configure
RUN sed -i 's/-O1/-O0/g' configure
RUN sed -i 's/-O3/-O0/g' configure
RUN ./configure --prefix="/root/ffmpeg_build" --disable-shared
RUN make
RUN make install
RUN make distclean
WORKDIR /root/ffmpeg_sources
RUN tar xjvf libvpx-v1.3.0.tar.bz2
WORKDIR /root/ffmpeg_sources/libvpx-v1.3.0
RUN sed -i 's/-O2/-O0/g' configure
RUN sed -i 's/-O1/-O0/g' configure
RUN sed -i 's/-O3/-O0/g' configure
RUN PATH="/root/bin:$PATH" ./configure --prefix="/root/ffmpeg_build" --disable-examples
RUN PATH="/root/bin:$PATH" make
RUN make install
RUN make clean
WORKDIR /root/ffmpeg_sources
RUN tar xjvf ffmpeg-snapshot.tar.bz2
WORKDIR /root/ffmpeg_sources/ffmpeg
RUN sed -i 's/-O2/-O0/g' configure
RUN sed -i 's/-O1/-O0/g' configure
RUN sed -i 's/-O3/-O0/g' configure
RUN PATH="/root/bin:$PATH" PKG_CONFIG_PATH="/root/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="/root/ffmpeg_build" \
--extra-cflags="-I/root/ffmpeg_build/include" \
--extra-ldflags="-L/root/ffmpeg_build/lib" \
--bindir="/root/bin" \
--enable-gpl \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-nonfree
RUN PATH="/root/bin:$PATH" make
RUN make install
RUN make distclean
RUN hash -r