-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
59 lines (53 loc) · 1.78 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
FROM ubuntu:14.04
### FFMPEG ###
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libx11-dev libxcb-shm0-dev libxcb-xfixes0-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev unzip yasm libx264-dev libmp3lame-dev libopus-dev
RUN mkdir ~/ffmpeg_sources
# Build libfdk-aac #
RUN cd ~/ffmpeg_sources && \
wget -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master && \
unzip fdk-aac.zip && \
cd mstorsjo-fdk-aac* && \
autoreconf -fiv && \
./configure --prefix="$HOME/ffmpeg_build" --disable-shared && \
make && \
make install && \
make distclean
# Build libvpx #
RUN cd ~/ffmpeg_sources && \
wget http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2 && \
tar xjvf libvpx-v1.3.0.tar.bz2 && \
cd libvpx-v1.3.0 && \
./configure --prefix="$HOME/ffmpeg_build" --disable-examples && \
make && \
make install && \
make clean
# Build ffmpeg
RUN cd ~/ffmpeg_sources && \
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
tar xjvf ffmpeg-snapshot.tar.bz2 && \
cd ffmpeg && \
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="/usr/bin" \
--enable-gpl \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-nonfree \
--enable-x11grab && \
make && \
make install && \
make distclean && \
hash -r
# Cleanup
RUN rm -rf ~/ffmpeg_sources
### END OF FFMPEG ###