cropsly/ffmpeg-android


FFmpeg for Android compiled with x264, libass, fontconfig, freetype, fribidi and lame (Supports Android 4.1+) http://writingminds.github.io/ffmpeg-android/

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.WritingMinds:ffmpeg-android:v0.3.0'
	}
	dependencies {
		implementation("com.github.WritingMinds:ffmpeg-android:v0.3.0")
	}
	<dependency>
	    <groupId>com.github.WritingMinds</groupId>
	    <artifactId>ffmpeg-android</artifactId>
	    <version>v0.3.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.WritingMinds" % "ffmpeg-android" % "v0.3.0"
        
        

                            
    :dependencies [[com.github.WritingMinds/ffmpeg-android "v0.3.0"]]
        
        

Readme


FFmpeg-Android Android Arsenal

  • FFmpeg for Android compiled with x264, libass, fontconfig, freetype and fribidi
  • Supports Android L
  • FFmpeg Android Library

Supported Architecture

  • armv7
  • armv7-neon
  • x86

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 python-lxml
    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 (Releases > Downloads > prebuilt-binaries[zip|tar.gz]).

License

check files LICENSE.GPLv3 and LICENSE

HIRE US

Get in touch with us - http://www.writingminds.com

Bitdeli Badge