FFmpeg Build Shell Script
You can get the ndk from NDK 下载 | Android NDK | Android Developers
or Just using SDK Manager like this 安装及配置 NDK 和 CMake | Android 开发者 | Android Developers
FFmpeg Github Repo is https://github.com/FFmpeg/FFmpeg
or Just Get it from ffmpeg.org
// 0. export ndk path
$ export ANDROID_NDK_HOME=/path/to/ndk
// 1. move the script into ffmpeg root path
$ mv build_ffmpeg.sh ./ffmpeg/
// 2. open the dir
$ cd ./ffmpeg/
$ ./build_ffmpeg.sh ./ $ANDROID_NDK_HOME darwin-x86_64
WARN!!!
the script has 3 params!!
- 1 for ffmpeg path;
- 2 for ndk home;
- 3 for host platform,like linux-x86_64 or darwin-x86_64;
if success,go to ./android-libs
to get the libs
The Script is From ExoPlayer/Ffmpeg
@build_ffmpeg.sh