-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.ffmpeg
51 lines (47 loc) · 1.46 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
FROM ruby:2.4
MAINTAINER Louise Yang ([email protected])
# FFMPEG Installation START ================
# Add multimedia sources so we can install FFMPEG
RUN echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list && \
echo "deb-src http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list
RUN apt-get update && apt-get -y --force-yes install deb-multimedia-keyring
# Can get rid of openjpeg??
# All the required libraries needed to support FFMPEG
RUN apt-get install -y --force-yes \
build-essential \
libvorbis-dev \
libfdk-aac-dev \
yasm \
pkg-config \
libfaac-dev \
libx264-dev \
libmp3lame-dev
# Build and install FFMPEG
RUN mkdir ffmpeg_extracted && \
cd ffmpeg_extracted && \
wget http://ffmpeg.org/releases/ffmpeg-3.2.2.tar.bz2 && \
cd .. && \
mkdir ffmpeg_src && \
cd ffmpeg_src && \
tar xvjf ../ffmpeg_extracted/ffmpeg-3.2.2.tar.bz2 && \
cd ffmpeg-3.2.2 && \
./configure \
--enable-gpl \
--enable-postproc \
--enable-swscale \
--enable-avfilter \
--enable-libvorbis \
--enable-libx264 \
--enable-shared \
--enable-pthreads \
--enable-libfdk-aac \
--enable-libmp3lame \
--enable-nonfree && \
make && \
make install && \
echo "include /usr/local/lib/" >> /etc/ld.so.conf && \
ldconfig && \
FFMPEG_PATH="$(which ffmpeg)" && \
cd .. && \
rm -rf ffmpeg_extracted && \
rm -rf ffmpeg_src