fingergit / FFmpegBuildScript

Build FFmpeg scripts for iOS and Android with x264 and fdk-aac.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFmpegBuildScript

Build FFmpeg scripts for iOS and Android with x264 and fdk-aac.

Build for Android

Prepair

  • Launch Ubuntu. (Test version: ubuntu-18.04.3-live-server-amd64.iso)

  • Download NDK: Build suppport:

  • Unzip android-ndk-r10e-linux-x86_64.zip or android-ndk-r16b-linux-x86_64.zip to ~/ffmpeg/packages/ folder.

    $ sudo apt install unzip
    $ sudo apt-get install make
    $ sudo apt-get install build-essential
    $ sudo apt-get install nasm
    $ cd ~
    $ mkdir ffmpeg
    $ cd ffmpeg
    $ mkdir packages
    $ cd packages
    $ wget https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
    
  • Copy Android scripts to ~/ffmpeg, Result:

    ffmpeg
      |_ packages
      | |_ android-ndk-r10e
      |_ scripts
         |_ fdkaac-build.sh
         |_ ffmpeg-build-single.sh
         |_ full-build.sh
         |_ x264-build.sh
    • Run: bash full-build.sh

Build for iOS

  • Go to iOS/scripts folder.
  • Run sh full-build.sh.

Issues

  • For Android x86, "libffmpeg.so has text relocations"

    Set --disable-asm for x264、fdk-aac and android configure.

About

Build FFmpeg scripts for iOS and Android with x264 and fdk-aac.

License:MIT License


Languages

Language:Shell 100.0%