forked from homebridge/ffmpeg-for-homebridge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.windows
48 lines (43 loc) · 1.17 KB
/
Dockerfile.windows
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
ARG BASE_IMAGE
FROM ${BASE_IMAGE:-library/ubuntu:19.04}
RUN apt-get update && \
apt-get install -y \
wget \
ed \
subversion \
curl \
texinfo \
g++ \
bison \
flex \
cvs \
yasm \
automake \
libtool \
autoconf \
gcc \
cmake \
git \
make \
pkg-config \
zlib1g-dev \
mercurial \
unzip \
pax \
nasm \
meson \
gperf \
autogen \
bzip2 \
autoconf-archive \
p7zip-full \
ragel \
python3-distutils
RUN git clone https://github.com/rdp/ffmpeg-windows-build-helpers.git /ffmpeg-windows-build-helpers
WORKDIR /ffmpeg-windows-build-helpers
ENV OUTPUTDIR=/build
CMD ./cross_compile_ffmpeg.sh --build-ffmpeg-shared=y --build-ffmpeg-static=y --disable-nonfree=n --build-intel-qsv=y --compiler-flavors=win64 --enable-gpl=y --high-bitdepth=n \
&& mkdir -p $OUTPUTDIR/workspace/bin \
&& cp -R -f ./sandbox/win64/ffmpeg_git_with_fdk_aac/ffmpeg.exe $OUTPUTDIR/workspace/bin/ffmpeg \
&& cp -R -f ./sandbox/win64/ffmpeg_git_with_fdk_aac/ffprobe.exe $OUTPUTDIR/workspace/bin/ffprobe \
&& cp -R -f ./sandbox/win64/ffmpeg_git_with_fdk_aac/ffplay.exe $OUTPUTDIR/workspace/bin/ffplay