forked from zhangpeihao/goffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·73 lines (67 loc) · 1.63 KB
/
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
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
66
67
68
69
70
71
#!/bin/sh
git submodule init
git submodule sync
git submodule update
cd vo-aacenc
autoreconf -ivfi || exit 1
./configure --prefix=/usr --disable-dependency-tracking --disable-shared --enable-static --with-pic || exit 1
make clean || exit 1
make install || exit 1
cd ..
#wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz || exit 1
#tar zxvf yasm-0.7.0.tar.gz
#cd yasm-0.7.0
#./configure --prefix=/usr || exit 1
#make clean || exit 1
#make install || exit 1
cd ffmpeg
./configure --prefix=/usr \
--extra-cflags="-O3 -fpic -fasm" \
--disable-shared \
--disable-everything \
--disable-encoders \
--disable-decoders \
--disable-muxers \
--disable-avdevice \
--disable-avfilter \
--disable-demuxers \
--disable-debug \
--disable-logging \
--disable-doc \
--disable-ffplay \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--enable-nonfree \
--enable-version3 \
--enable-memalign-hack \
--enable-libvo-aacenc \
--enable-protocol=tcp \
--enable-protocol=file \
--enable-hwaccel=h264_vaapi \
--enable-hwaccel=h264_vaapi \
--enable-hwaccel=h264_dxva2 \
--enable-demuxer=h264 \
--enable-muxer=h264 \
--enable-decoder=h264 \
--enable-encoder=h264 \
--enable-parser=h264 \
--enable-decoder=aac \
--enable-encoder=aac \
--enable-decoder=flv \
--enable-encoder=flv \
--enable-demuxer=flv \
--enable-muxer=flv \
--enable-protocol=rtmp \
--enable-protocol=rtmpt \
--enable-decoder=nellymoser \
--enable-hwaccels \
--enable-avformat \
--enable-avcodec \
--enable-avresample \
--enable-zlib || exit 1
make clean || exit 1
make install || exit 1
echo -e "\033[32mBuild success\033[0m"
exit 0