How to compile ffmpeg on android with external library

1.5k Views Asked by At

I would like to build ffmpeg using android ndk. The basic clean build is work fine for me. However, I would like to add librtmp,libfaac,libx264 into ffmpeg. Then I add --enable-libXXXXX in build file,but it fail to do so. So can anyone tell me how can I build those file for ffmpeg? Where and what file should I put into the ffmpeg file? Please give me a helping hand Thank you

1

There are 1 best solutions below

2
On

Checkout this git repository for a working compile with libx264: https://github.com/halfninja/android-ffmpeg-x264

Take special note of the Project/jni/Android.mk

Also, note that performance will be pretty slow as your codecs are all in software.