GithubHelp home page GithubHelp logo

liuchaopan / ffmpeg4android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mabeijianxi/ffmpeg4android

0.0 1.0 0.0 105.08 MB

CMake 0.01% Java 0.01% C 78.86% Objective-C 3.08% C++ 6.11% Shell 1.21% Makefile 3.10% Perl 0.11% Assembly 5.34% CSS 0.01% Roff 2.11% M4 0.01% Verilog 0.01% Python 0.06% HTML 0.01%

ffmpeg4android's Introduction

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
    • jianxi_ffmpeg_build_all.sh
    • jianxi_ffmpeg_arm64_v8a_build.sh
    • jianxi_ffmpeg_arm_build.sh
    • jianxi_ffmpeg_arm_v7a_build.sh
    • jianxi_ffmpeg_x86_64_build.sh
    • jianxi_ffmpeg_x86_build.sh
    • jianxi_ffmpeg_build_all_more.sh
    • jianxi_ffmpeg_arm64_v8a_build_more.sh
    • jianxi_ffmpeg_arm_build_more.sh
    • jianxi_ffmpeg_arm_v7a_build_more.sh
    • jianxi_ffmpeg_x86_64_build_more.sh
    • jianxi_ffmpeg_x86_build_more.sh
    • fdk-aac-0.1.5
      • fdk_aac_arm64_v8a_build.sh
      • fdk_aac_arm_build.sh
      • fdk_aac_build_all.sh
      • fdk_aac_mips_build.sh
      • fdk_aac_x86_64_build.sh
      • fdk_aac_x86_build.sh
    • libx264
      • x264_arm64_v8a_build.sh
      • x264_arm_build.sh
      • x264_build_all.sh
      • x264_mips_build.sh
      • x264_x86_64_build.sh
      • x264_x86_build.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

ffmpeg4android's People

Contributors

mabeijianxi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.