-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathDockerfile.ffmpeg
63 lines (58 loc) · 2.05 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
FROM --platform=$TARGETPLATFORM ubuntu:jammy AS ffmpeg-build
LABEL org.opencontainers.image.title webrtcperf-ffmpeg
LABEL org.opencontainers.image.description FFmpeg build with VMAF support.
LABEL org.opencontainers.image.source https://github.com/vpalmisano/webrtcperf
LABEL org.opencontainers.image.authors Vittorio Palmisano <[email protected]>
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ninja-build \
python3 \
python3-pip \
build-essential \
meson \
nasm \
yasm \
wget \
libfontconfig-dev \
libfribidi-dev \
libharfbuzz-dev \
libspeex-dev \
libtesseract-dev \
libvorbis-dev \
libvpx-dev \
libwebp-dev \
libx264-dev \
libzimg-dev \
libx265-dev \
libssl-dev \
libzmq3-dev
ENV VMAF_VERSION=3.0.0
ENV FFMPEG_VERSION=7.1
RUN \
mkdir -p /src \
&& cd /src \
&& wget -q https://github.com/Netflix/vmaf/archive/refs/tags/v${VMAF_VERSION}.tar.gz \
&& tar -xzf v${VMAF_VERSION}.tar.gz \
&& cd vmaf-${VMAF_VERSION}/libvmaf \
&& meson build --prefix /usr \
&& ninja -vC build \
&& ninja -vC build install \
&& mkdir -p /usr/share/model \
&& cp -R ../model/* /usr/share/model
RUN \
mkdir -p /src \
&& cd /src \
&& wget -q https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n${FFMPEG_VERSION}.tar.gz \
&& tar -xzf n${FFMPEG_VERSION}.tar.gz \
&& cd FFmpeg-n${FFMPEG_VERSION} \
&& ./configure --prefix=/usr \
--enable-version3 --disable-shared --enable-gpl --enable-nonfree --enable-static \
--enable-pthreads --enable-filters --enable-openssl --enable-runtime-cpudetect \
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libspeex \
--enable-libtesseract --enable-libfreetype --enable-fontconfig --enable-libzimg \
--enable-libvmaf --enable-libvorbis --enable-libwebp --enable-libfribidi --enable-libharfbuzz \
--enable-libzmq \
&& make -j$(nproc) \
&& make install
RUN rm -rf /src