Build FFmpeg scripts for iOS and Android with x264 and fdk-aac.
-
Launch Ubuntu. (Test version: ubuntu-18.04.3-live-server-amd64.iso)
-
Download NDK: Build suppport:
-
Unzip
android-ndk-r10e-linux-x86_64.zip
orandroid-ndk-r16b-linux-x86_64.zip
to~/ffmpeg/packages/
folder.$ sudo apt install unzip $ sudo apt-get install make $ sudo apt-get install build-essential $ sudo apt-get install nasm $ cd ~ $ mkdir ffmpeg $ cd ffmpeg $ mkdir packages $ cd packages $ wget https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
-
Copy Android scripts to
~/ffmpeg
, Result:ffmpeg |_ packages | |_ android-ndk-r10e |_ scripts |_ fdkaac-build.sh |_ ffmpeg-build-single.sh |_ full-build.sh |_ x264-build.sh
- Run:
bash full-build.sh
- Run:
- Go to
iOS/scripts
folder. - Run
sh full-build.sh
.
-
For Android x86, "libffmpeg.so has text relocations"
Set
--disable-asm
for x264、fdk-aac and android configure.