- Set environment variable
export ANDROID_NDK={Android NDK Base Path}
- Run following commands to compile ffmpeg
sudo apt-get --quiet --yes install build-essential git autoconf libtool pkg-config gperf gettext yasm
./init_update_libs.sh
./android_build.sh
- To update submodules and libraries you can use
./init_update_libs.sh
command
- Find the executable binary in build directory.
- If you want to use FONTCONFIG then you need to specify your custom fontconfig config file
FONTCONFIG_FILE=/sdcard/fonts.conf ./ffmpeg --version
where /sdcard/fonts.conf is location of your FONTCONFIG configuration file
- You can download prebuilt binaries from releases page.