1qingfeng-1 / ffmpeg-android-build

FFmpeg is compiled using Android NDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFmpeg is compiled using Android NDK

中文文档:

  1. 目前该脚本支持armeabi-v7a arm64-v8a,支持libx264,libmp3lame,mediacodec,目前我对FFmpeg裁剪了很多目前编译出来的库5.8M,音视频开发常见的功能都包含进去了,要满足日常开发最低可以裁剪到3M左右,如果需求你们可以自行去掉一些配置
  2. ffmpeg 版本5.1.1
  3. NDK版本r14b,下载地址:https://developer.android.com/ndk/downloads/older_releases (这个是Google的需要科学上网, 我下载了一份放到了我的服务器上:https://www.raoyunsoft.com/public/android-ndk-r14b-darwin-x86_64.zip)
  4. build目录下是已经编译好的, 如果不能编译就先用着吧
  5. 编译环境Mac 12.6(理论上其它环境也可以使用这个脚本编译)

FFMpeg下载地址: http://ffmpeg.org/download.html

Build

必备软件:autoconf automake libtool pkg-config curl cmake gcc gperf texinfo yasm nasm bison autogen

  1. cd ffmpeg and run ./configure
  2. edit build_android.sh NDK path
  3. $ ./build_android.sh
  4. libffmpeg.so will be built to build/ffmpeg/android/{armeabi-v7a arm64-v8a}/

编译好的工程地址:https://github.com/bookzhan/ffmpeg-android-build.git

我开源的音视频处理库:https://github.com/bookzhan/bzmedia 目前正在整理代码,会相继开源编码,解码,音视频编辑功能,欢迎持续关注


English documentation:

  1. At present, the script supports armeabi-v7a arm64-v8a, libx264, libmp3lame, mediacodec. At present, I have cut a lot of the currently compiled library 5.8M for FFmpeg, and the common functions of audio and video development are included. To meet the daily development requirements, the minimum Cut to about 3M, if you need, you can remove some configurations by yourself.
  2. ffmpeg version 5.1.1
  3. NDK version r14b, download address: https://developer.android.com/ndk/downloads/older_releases
  4. The build directory is already compiled, if you can't compile, use it first
  5. Compile environment Mac 12.6 (other environments can also use this script to compile)

FFMpeg download address: http://ffmpeg.org/download.html

Build

Essential software:autoconf automake libtool pkg-config curl cmake gcc gperf

  1. cd ffmpeg and run ./configure
  2. edit build_android.sh NDK path
  3. $ ./build_android.sh
  4. libffmpeg.so will be built to build/ffmpeg/android/{armeabi-v7a arm64-v8a}/

Compiled project address:https://github.com/bookzhan/ffmpeg-android-build.git

My open source audio and video processing library: https://github.com/bookzhan/bzmedia is currently finishing the code, will have open source encoding, decoding, audio and video editing functions, welcome continuous attention

About

FFmpeg is compiled using Android NDK


Languages

Language:C 88.8%Language:Assembly 7.1%Language:Makefile 1.8%Language:Shell 0.8%Language:C++ 0.7%Language:HTML 0.4%Language:Objective-C 0.1%Language:Perl 0.1%Language:Python 0.1%Language:Cuda 0.1%Language:Roff 0.0%Language:M4 0.0%Language:Pascal 0.0%Language:Metal 0.0%Language:VBScript 0.0%Language:Batchfile 0.0%Language:CSS 0.0%Language:Awk 0.0%Language:Ruby 0.0%Language:Verilog 0.0%