forked from FFmpeg/FFmpeg
-
Notifications
You must be signed in to change notification settings - Fork 4
/
exmg-lls-osx-configure.sh
executable file
·37 lines (30 loc) · 1.99 KB
/
exmg-lls-osx-configure.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
33
34
35
36
37
#!/bin/bash
# Bash setup (exit on error)
set -e
# Build Dependencies
# ==================
#
# https://trac.ffmpeg.org/wiki/CompilationGuide/macOS suggests:
# $ brew install automake fdk-aac git lame libass libtool libvorbis libvpx opus sdl shtool texi2html theora wget x264 x265 xvid nasm
#
# I've reduced that to the following:
# - nasm For compilation
# - x264 For MP4 encoding
# - freetype For drawtext filter
# - fontconfig For drawtext filter
# - pkg-config For drawtext filter
brew install nasm x264 freetype fontconfig pkg-config
# Configure
# =========
#
# OS X FFmpeg static builds (https://evermeet.cx/ffmpeg/) use the following arguments:
# --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
#
# I've reduced that to the following:
# --cc=/usr/bin/clang To refer to C compiler?
# --enable-gpl --enable-libx264 For MP4 encoding
# --pkg-config-flags=--static To produce a static build which can be easily shared
# --disable-ffplay To prevent needless building
# --enable-libfreetype For drawtext filter
# --enable-fontconfig For drawtext filter
./configure --cc=/usr/bin/clang --enable-gpl --enable-libx264 --pkg-config-flags=--static --disable-ffplay --enable-libfreetype --enable-fontconfig