zoukankan      html  css  js  c++  java
  • FFmpeg for Android compiled with x264, libass, fontconfig, freetype and fribidi

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

    在网上找了个好的教程:

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

    https://github.com/farsitel/android_external_fribidi

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

    网址2:https://github.com/julienr/libfreetype-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.
  • 相关阅读:
    jquery.autocomplete插件完美应用
    java原生 简单缓存工具类
    免费的内网穿透分享
    文献笔记6
    文献笔记4
    文献笔记7
    文献笔记9
    文献笔记1
    文献笔记2
    文献笔记8
  • 原文地址:https://www.cnblogs.com/wainiwann/p/4797722.html
Copyright © 2011-2022 走看看