Skip to content

rabbitknight/ffmpeg_build_android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

ffmpeg_build_android

FFmpeg Build Shell Script

Download NDK

You can get the ndk from NDK 下载  |  Android NDK  |  Android Developers

or Just using SDK Manager like this 安装及配置 NDK 和 CMake  |  Android 开发者  |  Android Developers

Download FFmpeg

FFmpeg Github Repo is https://github.com/FFmpeg/FFmpeg

or Just Get it from ffmpeg.org

Setup Script

// 0. export ndk path
$ export ANDROID_NDK_HOME=/path/to/ndk 

// 1.  move the script into ffmpeg root path
$ mv build_ffmpeg.sh ./ffmpeg/

// 2. open the dir
$ cd ./ffmpeg/

Compile

$ ./build_ffmpeg.sh ./ $ANDROID_NDK_HOME darwin-x86_64

WARN!!!

the script has 3 params!!

  1. 1 for ffmpeg path;
  2. 2 for ndk home;
  3. 3 for host platform,like linux-x86_64 or darwin-x86_64;

Fetch Libs

if success,go to ./android-libs to get the libs

What's More

The Script is From ExoPlayer/Ffmpeg@build_ffmpeg.sh

Releases

No releases published

Packages

No packages published

Languages