Skip to content

build ffmpeg for android

ck edited this page Sep 9, 2021 · 5 revisions

I write a script for build ffmpeg for android.

build on window

enviroment needed:

  1. install msys + git

  2. install android ndk, and export $ANDROID_NDK_HOME enviroment variable

  3. execute build_fanplayer_jni.sh script
    cd fanplayer/player-android/jni
    ./build_fanplayer_jni.sh

build on ubuntu

enviroment needed:

  1. install git, sudo apt-get install git-core

  2. download & install android ndk

  3. export $ANDROID_NDK_HOME enviroment variable

  4. execute build_fanplayer_jni.sh script
    cd fanplayer/player-android/jni
    ./build_fanplayer_jni.sh

you will get ffmpeg library files in _install directory.

Clone this wiki locally