FFmpeg4Android

by mabeijianxi

mabeijianxi /FFmpeg4Android
443 Stars 159 Forks Last release: Not found 21 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

FFmpeg2AndroidDemo

This is a compilation of Android available under the FFmpeg project, containing code examples.

中文说明

The project includes:

  • FFmpeg Full Platform Compilation Script
  • Libx264 Full Platform Compilation Script
  • Libx264 Full Platform Compilation Script
  • Compiled Good Version of the SO library (download in ffmpeg3.2.5 / android)
  • Compiled Rich Version of the SO library (download in ffmpeg3.2.5 / android_more)
  • CMake Compile FFmpeg as the script which can be command
  • Android command executes the interface of FFmpeg
  • Android Use Case

Script directory structure

  • ffmpeg-3.2.5
    • jianxiffmpegbuild_all.sh
    • jianxiffmpegarm64v8abuild.sh
    • jianxiffmpegarm_build.sh
    • jianxiffmpegarmv7abuild.sh
    • jianxiffmpegx8664build.sh
    • jianxiffmpegx86_build.sh
    • jianxiffmpegbuildallmore.sh
    • jianxiffmpegarm64v8abuild_more.sh
    • jianxiffmpegarmbuildmore.sh
    • jianxiffmpegarmv7abuild_more.sh
    • jianxiffmpegx8664build_more.sh
    • jianxiffmpegx86buildmore.sh
    • fdk-aac-0.1.5
      • fdkaacarm64v8abuild.sh
      • fdkaacarm_build.sh
      • fdkaacbuild_all.sh
      • fdkaacmips_build.sh
      • fdkaacx8664build.sh
      • fdkaacx86_build.sh
    • libx264
      • x264arm64v8a_build.sh
      • x264armbuild.sh
      • x264buildall.sh
      • x264mipsbuild.sh
      • x264x8664_build.sh
      • x264x86build.sh

Compile

  1. 、Download the project, find the above scripts under ffmpeg, and then change the address which NDK variable points to the address of local ndk catalogue. If you are not using mac system, you also need to modify the words

    darwin-x86_64
    to
    linux-x86_64
    .
  2. Compile Lite, cd into the ffmpeg catalogue, find the script you need to structure, and drag it into the command order if you need to implement the architecture. You can find it under “

    /jianxi_ffmpeg_build_all.sh
    ” in the android catalogue, this process is relatively long, so I recommend you to close other useless processes before execution.
  3. Compile the enhanced version, cd into the ffmpeg catalogue, find the script you need to structure, and drag it into the command order if you need to implement the architecture. You can find it under

    ./jianxi_ffmpeg_build_all_more.sh
    in the android catalogue, this process is relatively long, and so I recommend you to close other useless processes before execution.

Run this project:

Because I did not put FFmpeg into the project, so I can not specify the relative path. You need to find

CMakeLists.txt
, and fill your FFmpeg source catalogue inside
include_directories
.

Announcements

  • This project script is generic, but you may modify some of the paths defined in the script or keep my directory structure, otherwise it will be unsuccessful when executing
  • If you download from the official website, then you need to follow my blog or other online tutorials on FFmpeg and libfdk-aac to make the changes, or there may exit some problem

More

You can visit some of my related articles to access my ideas. Related articles are:编译Android下可用的FFmpeg(包含libx264与libfdk-aac)编译Android下可执行命令的FFmpeg

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.