Giter VIP home page Giter VIP logo

ffmpegandroid's Introduction

FFmpegAndroid

本项目为简单的将FFmpeg + x264 + fdk-aac 编译成单个 libffmpeg.so 的脚本

ffmpeg.tar.gz: ffmpeg-3.3.3的源码 x264.tar.gz: libx264 源码 fdk-aac.tar.gz: fdk-aac-0.1.5源码

如果要更新源码,直接将压缩包替换即可

本项目仅仅是一个简单的编译脚本,如果想要做成可裁剪的自动化编译工具,可参考ijkplayer等开源库的实现方案。

使用

建议在Linux环境下编译 执行脚本前,需要更改自己的NDK路径

编译armeabi-v7a:

$ ./build_armeabi-v7a.sh

编译 arm64-v8a:

$ ./build_arm64-v8a.sh

其他平台如x86、x86-64暂无实现,有兴趣可自行实现

ffmpegandroid's People

Contributors

cainkernel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ffmpegandroid's Issues

编译失败

ffmpeg.c: In function 'sub2video_flush':
ffmpeg.c:302:9: warning: ignoring return value of 'av_buffersrc_add_frame', declared with attribute warn_unused_result [-Wunused-result]
av_buffersrc_add_frame(ist->filters[i]->filter, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
AR libavdevice/libavdevice.a
AR libavfilter/libavfilter.a
CC libavformat/os_support.o
In file included from libavformat/os_support.h:112:0,
from libavformat/os_support.c:29:
libavformat/os_support.c: In function 'ff_gai_strerror':
libavformat/os_support.c:230:10: error: 'ERROR_NOT_ENOUGH_MEMORY' undeclared (first use in this function)
case EAI_MEMORY:
^
libavformat/os_support.c:230:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [libavformat/os_support.o] Error 1
c:\Users\admin\AppData\Local\Android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-ld.exe: cannot find libavcodec/libavcodec.a: No such file or directory
libavfilter/libavfilter.a: member libavfilter/libavfilter.a(aeval.o) in archive is not an object

使用提供的文件(中间根据自己的配置改了sh的一些路径),也看了博文,改了配置文件,试过很多次,还是编译失败。不知道什么原因。

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.