-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkjsl_build_macos.sh
executable file
·32 lines (28 loc) · 1.21 KB
/
kjsl_build_macos.sh
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
#!/bin/bash
# KJSL: script to build FFmpeg debug on MacOS
if [ ! -d /usr/local/Cellar/theora ]; then
brew install automake fdk-aac git lame libass libtool libvorbis libvpx opus sdl shtool texi2html theora wget x264 x265 xvid nasm yasm openssl rtmpdump freetype graphite2 harfbuzz fontconfig fribidi
fi
# build FFmpeg (with AV1, srt, tesseract and)
LDFLAGS="-Wl,-ld_classic,-framework,CoreFoundation -Wl,-framework,Security -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo" LIBFFI_CFLAGS=-I/usr/include/ffi LIBFFI_LIBS=-lffi ./configure --prefix=/usr/local --enable-gpl --enable-nonfree \
--pkgconfigdir=/usr/local/lib/pkg-config \
--enable-shared \
--enable-pthreads \
--enable-version3 \
--enable-videotoolbox --enable-audiotoolbox \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libfontconfig \
--enable-libfreetype \
--enable-libfribidi \
--enable-libharfbuzz \
--enable-libopus --enable-libtheora --enable-libvorbis \
--enable-libopenjpeg --enable-avfilter \
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-ffplay \
--enable-libtesseract \
--enable-libsrt \
--enable-librtmp \
--enable-libflite \
--disable-stripping
make -j$(($(nproc)+1))
sudo make install