forked from homebridge/ffmpeg-for-homebridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.windows
52 lines (46 loc) · 1.19 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
49
50
51
52
ARG BASE_IMAGE
FROM --platform=amd64 ${BASE_IMAGE:-ubuntu:latest}
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
autoconf \
autoconf-archive \
autogen \
automake \
bison \
bzip2 \
clang \
cmake \
curl \
cvs \
ed \
flex \
g++ \
gcc \
git \
gperf \
libtool \
make \
meson \
nasm \
p7zip-full \
pax \
pkg-config \
python-is-python3 \
python3 \
python3-setuptools \
ragel \
subversion \
texinfo \
unzip \
wget \
yasm \
zlib1g-dev
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=n --build-ffmpeg-static=y --disable-nonfree=n --build-intel-qsv=y --compiler-flavors=win64 --enable-gpl=y \
&& mkdir -p $OUTPUTDIR \
&& cp -R -f ./sandbox/win64/ffmpeg_git_with_fdk_aac/ffmpeg.exe $OUTPUTDIR/ffmpeg.exe \
&& cp -R -f ./sandbox/win64/ffmpeg_git_with_fdk_aac/ffprobe.exe $OUTPUTDIR/ffprobe.exe \
&& cp -R -f ./sandbox/win64/ffmpeg_git_with_fdk_aac/ffplay.exe $OUTPUTDIR/ffplay.exe