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.
  • 相关阅读:
    适配器
    策略
    oom的各种情况
    sql 优化//TODO
    聚簇索引和非聚簇索引
    Shard内部原理
    es集群健康状态
    转载 R语言颜色基础设置
    三维数据的展示
    python 文件保存 出错
  • 原文地址:https://www.cnblogs.com/wainiwann/p/4797722.html
Copyright © 2011-2022 走看看