forked from numberwolf/FFmpeg-QuQi-Analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_build.sh
29 lines (26 loc) · 2.37 KB
/
test_build.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
#!/bin/bash
##### TEST BUILD FOR MAC
set -x
mode=${1:-"all"} # all: configure+make+install; or make+install
platform=${2:-"linux"} # mac win
prefix=output
if [ ! -d output ]; then
mkdir -p output
else
rm -rf output/*
fi
make clean
#./configure --prefix=./output --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --enable-ffplay --enable-gnutls --enable-gpl --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-videotoolbox --enable-libsoxr --enable-debug --disable-x86asm
if [ "${mode}" == "all" ]; then
if [ "${platform}" == "linux" ]; then
# export LD_LIBRARY_PATH=$FFMPEGPATH/output/lib
#./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-debug --disable-optimizations --enable-shared --enable-pthreads
./configure --enable-ffplay --enable-ffprobe --enable-gpl --enable-nonfree --enable-debug --disable-optimizations --enable-shared --enable-pthreads
else
# ./configure --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --enable-ffplay --enable-gnutls --enable-gpl --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-videotoolbox --enable-libsoxr --enable-debug --disable-x86asm
# --prefix=/usr/local/ffmpeg
./configure --enable-ffplay --enable-ffprobe --enable-gpl --enable-nonfree --enable-debug --disable-optimizations --enable-shared --enable-pthreads --enable-libx264 --enable-libx265 --enable-muxer=mp3 --enable-encoder=libmp3lame --enable-libmp3lame --enable-libfdk-aac --enable-demuxer=rtsp --enable-demuxer=rtmp --enable-filter=aresample
fi
fi
sudo make
sudo make install