Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

android.sh

Taner Sener edited this page May 28, 2018 · 22 revisions

android.sh builds FFmpeg for Android platform.

By default five Android ABIs (armeabi-v7a, armeabi-v7a-neon, arm64-v8a, x86 and x86_64) are built without any external libraries enabled.

Options can be used to disable ABIs and/or enable external libraries.

Usage: ./android.sh [OPTION]...

Options:
  -h, --help			display this help and exit
  -V, --version			display version information and exit

Platforms:
  --disable-arm-v7a		do not build arm-v7a platform
  --disable-arm-v7a-neon	do not build arm-v7a-neon platform
  --disable-arm64-v8a		do not build arm64-v8a platform
  --disable-x86			do not build x86 platform
  --disable-x86-64		do not build x86-64 platform

Libraries:
  --full			enables all external libraries
  --enable-android-media-codec	build with built-in media codec
  --enable-android-zlib		build with built-in zlib
  --enable-fontconfig		build with fontconfig
  --enable-freetype		build with freetype
  --enable-fribidi		build with fribidi
  --enable-gnutls		build with gnutls
  --enable-gmp			build with gmp
  --enable-kvazaar		build with kvazaar
  --enable-lame			build with lame
  --enable-libass		build with libass
  --enable-libiconv		build with libiconv
  --enable-libtheora		build with libtheora
  --enable-libvorbis		build with libvorbis
  --enable-libvpx		build with libvpx
  --enable-libwebp		build with libwebp
  --enable-libxml2		build with libxml2
  --enable-opencore-amr		build with opencore-amr
  --enable-shine		build with shine
  --enable-speex		build with speex
  --enable-wavpack		build with wavpacks
  --reconf-LIBRARY		run autoreconf before building LIBRARY

Example Usage

1. Default build

android.sh is called without any options. FFmpeg is built for all five platforms without any external library support.

2. Full build

android.sh is called with --full option. FFmpeg is built for all five platforms with all external libraries enabled.

3. Custom build

android.sh is called with a series of --enable-*, --disable-* and --reconf-* options. Options define which platforms and libraries will be built, which libraries will be reconfigured.

Clone this wiki locally