码迷,mamicode.com
首页 > 移动开发 > 详细

FFmpeg for Android compiled with x264, libass, fontconfig, freetype and fribidi

时间:2015-09-10 14:26:25      阅读:323      评论:0      收藏:0      [点我收藏+]

标签:

android下打算使用ffmpeg的 drawtext ,不过需要 --enable-libfreetype  但是freetype是个第三方库,所以需要先编译freetype,然后再编译ffmpeg

在网上找了个好的教程:

https://github.com/hiteshsondhi88/ffmpeg-android.git

网址:https://github.com/hiteshsondhi88/ffmpeg-android

编译流程:

Instructions

  • Set environment variable
    1. export ANDROID_NDK={Android NDK Base Path}
  • Run following commands to compile ffmpeg
    1. sudo apt-get --quiet --yes install build-essential git autoconf libtool pkg-config gperf gettext yasm
    2. ./init_update_libs.sh
    3. ./android_build.sh
  • To update submodules and libraries you can use ./init_update_libs.sh command
  • Find the executable binary in build directory.
  • If you want to use FONTCONFIG then you need to specify your custom fontconfig config file (e.g - "FONTCONFIG_FILE=/sdcard/fonts.conf ./ffmpeg --version", where /sdcard/fonts.conf is location of your FONTCONFIG configuration file).
  • You can also download prebuilt-binaries.zip prebuilt-binaries.tar.gz here.

FFmpeg for Android compiled with x264, libass, fontconfig, freetype and fribidi

标签:

原文地址:http://www.cnblogs.com/wainiwann/p/4797722.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!