get all the prject files and submodules
git clone --recursive https://github.com/falahati1987/ffmpeg4Android
cd to the clonned project: cd ffmpeg4Android
open buid_ffmpeg_for_android.sh in a editor and edit the following function in line 6, so as to it target to your NDK
getNDK(){
echo "$HOME/Android/ndk" #root to your NDK
}
Now, all you need to do is :
./build_ffmpeg_for_android.sh
The shared libraries will be placed in build-ffmpeg folder.
Enjoy!
Inspired from https://github.com/WritingMinds/ffmpeg-android