6 if test -f "$BUILD"/ffmpeg_options
; then
7 USER_OPTS
=$
(cat "$BUILD"/ffmpeg_options
)
9 OPTIONS
=" --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-x11grab --enable-libpulse --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb $USER_OPTS"
11 # optional flags for encoding
12 OPTIONS
="$OPTIONS --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid "
14 echo Using ffmpeg options
: $OPTIONS
16 mkdir
-p "$BUILD"/ffmpeg_build
17 cd "$BUILD"/ffmpeg_build
18 "$BUILD"/ffmpeg
/configure
--extra-libs="-ldl" $OPTIONS