forked from sonysuqin/WasmVideoPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_decoder.sh
executable file
·20 lines (20 loc) · 1005 Bytes
/
build_decoder.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
echo "Beginning Build:"
rm -r dist
mkdir -p dist
cd ../ffmpeg
echo "emconfigure"
emconfigure ./configure --cc="emcc" --cxx="em++" --ar="emar" --ranlib="emranlib" --prefix=$(pwd)/../WasmVideoPlayer/dist --enable-cross-compile --target-os=none \
--arch=x86_32 --cpu=generic --enable-gpl --enable-version3 --disable-avdevice --disable-swresample --disable-postproc --disable-avfilter \
--disable-programs --disable-logging --disable-everything --enable-avformat --enable-decoder=hevc --enable-decoder=h264 --enable-decoder=aac \
--disable-ffplay --disable-ffprobe --disable-ffserver --disable-asm --disable-doc --disable-devices --disable-network --disable-hwaccels \
--disable-parsers --disable-bsfs --disable-debug --enable-protocol=file --enable-demuxer=mov --enable-demuxer=flv --disable-indevs --disable-outdevs
if [ -f "Makefile" ]; then
echo "make clean"
make clean
fi
echo "make"
make
echo "make install"
make install
cd ../WasmVideoPlayer
./build_decoder_wasm.sh