Struggling to put together a working and generally best practice build of current FFmpeg. There seems to be no up-to-date documents or tutorials. What does exist is full of outdated links or build-scripts that do not work.
Depend on the speed of you Internet and the hardware specification of your computer, it may take 10~30 minutes to complete the compilation.
Type ./configure to create the configuration. A list of configure options is printed by running configure --help . configure can be launched from a directory different from the FFmpeg sources to build the objects out of tree. To do this, use an absolute path when launching configure , e.g. /ffmpegdir/ffmpeg/configure .
Download the latest NDK and run make_standalone_toolchain.py
./configure \
--cross-prefix=arm-linux-androideabi- \
--sysroot="${ANDROID_STANDALONE_NDK}/sysroot" \
--target-os=linux \
--arch=arm \
--cpu=cortex-a8 \
--enable-cross-compile \
--enable-pic \
--enable-shared \
--extra-cflags="-fpic"
Then of course
make -j4
You probably don't want to compile a lot of the components, so you'll need to see what to enable/disable in ./configure --help
Solution found!
Please check following links:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With