This repo contains build scripts to build FFmpeg executable binary for Android and also publish prebuilt files here. There are two build flavors: FULL and LITE
armeabi
(Android 16+)armeabi-v7a
, armeabi-v7a-neon
, (Android 16+)x86
(Android 16+)arm64-v8a
(Android 21+)x86_64
(Android 21+)mips
(Android 16+)mips64
(Android 21+)libmp3lame
, libshine
, libopus
, libvorbis
armeabi
(Android 21+)armeabi-v7a
, armeabi-v7a-neon
, (Android 21+)x86
(Android 21+)arm64-v8a
(Android 21+)x86_64
(Android 21+)LITE
version, plus with: libfdk-aac
(non-free), libx264
, openssl
(thanks to leenjewel/openssl_for_ios_and_android)Prerequisites:
export NDK=path/to/android-ndk
Build:
export NDK=path/to/android-ndk
cd build_scripts
FLAVOR=full # or "lite"
TARGET=armv7-a # Support targets: "arm", "armv7-a", "arm-v7n", "arm64-v8a", "i686", "x86_64"
BUILD_DIR=$(pwd)/build_dir
FINAL_DIR=$(pwd)/final/$TARGET
./build_ffmpeg.sh $TARGET $FLAVOR $BUILD_DIR $FINAL_DIR
The ffmpeg
binary should in folder $FINAL_DIR/$TARGET/$FLAVOR/ffmpeg
after build succeed.
This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here.
Media Converter Android: