-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-ffmpeg
executable file
·65 lines (59 loc) · 1.29 KB
/
build-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
64
65
#!/usr/bin/env bash -e
#
# FFmpeg
# https://git.ffmpeg.org/ffmpeg.git
#
cd "$(dirname "$0")"
set -a; source build.env; set +a
pkgname="ffmpeg"
pkgdir="${STOWDIR}/${pkgname}"
srcdir="src/ffmpeg"
cd "${srcdir}"
./configure \
--prefix="${pkgdir}" \
--arch="$(uname -m)" \
--cpu=host \
--cc=clang \
--enable-shared \
--enable-lto=thin \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--enable-lcms2 \
--enable-libass \
--enable-libbluray \
--enable-libdav1d \
--enable-libdvdnav \
--enable-libdvdread \
--enable-libfreetype \
--enable-libfribidi \
--enable-libharfbuzz \
--enable-libjxl \
--enable-libopus \
--enable-libplacebo \
--enable-libshaderc \
--enable-libsvtav1 \
--enable-libvpx \
--enable-libwebp \
--enable-libx264 \
--enable-libx265 \
--enable-libxml2 \
--disable-static \
--disable-debug \
--disable-doc \
--disable-sdl2 \
--disable-libxcb \
--disable-xlib \
--disable-hwaccels \
--enable-hwaccel=av1_videotoolbox \
--enable-hwaccel=h264_videotoolbox \
--enable-hwaccel=hevc_videotoolbox \
--enable-hwaccel=mpeg4_videotoolbox \
--enable-hwaccel=prores_videotoolbox \
--enable-hwaccel=vp9_videotoolbox \
"$@"
make -j4
rm -rf "${pkgdir}"
make install
rm -rf "${pkgdir}"/share
stow -Rd "${STOWDIR}" "${pkgname}"