FFmpeg for Android compiled with x264, Libass, Fontconfig, FreeType and Fribidi

Source: Internet
Author: User

Android is going to use FFmpeg's DrawText, but FreeType is a third-party library, so you need to compile FreeType first, and then compile FFmpeg

Found a good tutorial on the Internet:

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

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

Compilation process:

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 the./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 the location of the 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.