libspeex is now supported

ffmpeg_4.4.2
Javernaut 5 years ago
parent acf3c9573d
commit 74fd1aa207
  1. 2
      .travis.yml
  2. 24
      scripts/libspeex/build.sh
  3. 9
      scripts/libspeex/download.sh
  4. 3
      scripts/parse-arguments.sh

@ -17,4 +17,4 @@ install:
- curl http://archive.ubuntu.com/ubuntu/pool/universe/n/nasm/nasm_2.14.02-1_amd64.deb --output $HOME/nasm_2.14.02-1_amd64.deb - curl http://archive.ubuntu.com/ubuntu/pool/universe/n/nasm/nasm_2.14.02-1_amd64.deb --output $HOME/nasm_2.14.02-1_amd64.deb
- sudo dpkg -i $HOME/nasm_2.14.02-1_amd64.deb - sudo dpkg -i $HOME/nasm_2.14.02-1_amd64.deb
script: script:
- ./ffmpeg-android-maker.sh -dav1d -mp3lame -aom -opus -wavpack -twolame -android=18 - ./ffmpeg-android-maker.sh -dav1d -mp3lame -aom -opus -wavpack -twolame -speex -android=18

@ -0,0 +1,24 @@
#!/usr/bin/env bash
ADDITIONAL_FLAGS=
if [[ $ANDROID_ABI = "x86" ]] || [[ $ANDROID_ABI = "x86_64" ]]; then
ADDITIONAL_FLAGS=--enable-sse
fi
./configure \
--prefix=${INSTALL_DIR} \
--host=${TARGET} \
--with-sysroot=${SYSROOT_PATH} \
--disable-shared \
--enable-static \
--with-pic \
CC=${FAM_CC} \
AR=${FAM_AR} \
RANLIB=${FAM_RANLIB} \
${ADDITIONAL_FLAGS} || exit 1
export FFMPEG_EXTRA_LD_FLAGS="${FFMPEG_EXTRA_LD_FLAGS} -lm"
${MAKE_EXECUTABLE} clean
${MAKE_EXECUTABLE} -j${HOST_NPROC}
${MAKE_EXECUTABLE} install

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source ${SCRIPTS_DIR}/common-functions.sh
SPEEX_VERSION=1.2.0
downloadTarArchive \
"libspeex" \
"https://ftp.osuosl.org/pub/xiph/releases/speex/speex-${SPEEX_VERSION}.tar.gz"

@ -85,6 +85,9 @@ for argument in "$@"; do
--enable-libtwolame|-twolame) --enable-libtwolame|-twolame)
EXTERNAL_LIBRARIES+=( "libtwolame" ) EXTERNAL_LIBRARIES+=( "libtwolame" )
;; ;;
--enable-libspeex|-speex)
EXTERNAL_LIBRARIES+=( "libspeex" )
;;
*) *)
echo "Unknown argument $argument" echo "Unknown argument $argument"
;; ;;

Loading…
Cancel
Save