Commit 80aca1bd authored by Linshizhi's avatar Linshizhi

Trim unused components

parent 8f39fb6c
......@@ -16,20 +16,20 @@ run-all() {
install-deps
build-zlib
build-x264
build-x265
build-libvpx
build-wavpack
#build-x265
#build-libvpx
#build-wavpack
build-lame
build-fdk-aac
build-ogg
build-vorbis
build-theora
build-opus
build-libwebp
build-freetype2
build-fribidi
build-harfbuzz
build-libass
#build-fdk-aac
#build-ogg
#build-vorbis
#build-theora
#build-opus
#build-libwebp
#build-freetype2
#build-fribidi
#build-harfbuzz
#build-libass
#build-aom # disabled as it is extremely slow
configure-ffmpeg
build-ffmpeg
......
......@@ -21,7 +21,7 @@ FLAGS=(
-I. -I./fftools -I$BUILD_DIR/include
-Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Lharfbuzz -Llibass -Lfribidi -Llibpostproc -Llibswscale -Llibswresample -L$BUILD_DIR/lib
-Wno-deprecated-declarations -Wno-pointer-sign -Wno-implicit-int-float-conversion -Wno-switch -Wno-parentheses -Qunused-arguments
-lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lpostproc -lm -lharfbuzz -lfribidi -lass -lx264 -lx265 -lvpx -lwavpack -lmp3lame -lfdk-aac -lvorbis -lvorbisenc -lvorbisfile -logg -ltheora -ltheoraenc -ltheoradec -lz -lfreetype -lopus -lwebp
-lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lpostproc -lm -lx264 -lmp3lame -lz
fftools/ffmpeg_opt.c fftools/ffmpeg_filter.c fftools/ffmpeg_hw.c fftools/cmdutils.c fftools/ffmpeg.c
-s USE_SDL=2 # use SDL2
-s INVOKE_RUN=0 # not to run the main() in the beginning
......
......@@ -5,23 +5,33 @@ source $(dirname $0)/var.sh
FLAGS=(
"${FFMPEG_CONFIG_FLAGS_BASE[@]}"
--disable-everything
--disable-network
--disable-autodetect
--enable-small
--enable-decoder=mp3*,h264
--enable-demuxer=mp3,mov
--enable-muxer=mp3,mp4
--enable-protocol=file
--enable-encoder=libmp3lame,libx264
--enable-filter=abuffer,amix,abuffersink,aresample
--enable-gpl # required by x264
--enable-nonfree # required by fdk-aac
--enable-zlib # enable zlib
#--enable-zlib # enable zlib
--enable-libx264 # enable x264
--enable-libx265 # enable x265
--enable-libvpx # enable libvpx / webm
--enable-libwavpack # enable libwavpack
--enable-libmp3lame # enable libmp3lame
--enable-libfdk-aac # enable libfdk-aac
--enable-libtheora # enable libtheora
--enable-libvorbis # enable libvorbis
--enable-libfreetype # enable freetype
--enable-libopus # enable opus
--enable-libwebp # enable libwebp
--enable-libass # enable libass
--enable-libfribidi # enable libfribidi
# --enable-libaom # enable libaom
#--enable-libx265 # enable x265
#--enable-libvpx # enable libvpx / webm
#--enable-libwavpack # enable libwavpack
--enable-libmp3lame # enable libmp3lame
#--enable-libfdk-aac # enable libfdk-aac
#--enable-libtheora # enable libtheora
#--enable-libvorbis # enable libvorbis
#--enable-libfreetype # enable freetype
#--enable-libopus # enable opus
#--enable-libwebp # enable libwebp
#--enable-libass # enable libass
#--enable-libfribidi # enable libfribidi
#--enable-libaom # enable libaom
)
echo "FFMPEG_CONFIG_FLAGS=${FLAGS[@]}"
emconfigure ./configure "${FLAGS[@]}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment