EzenwakaKaycee/android-ffmpeg-java


Android Java wrapper around ffmpeg command line binary https://dev.guardianproject.info/projects/android-ffmpeg-java

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.EzenwakaKaycee:android-ffmpeg-java:'
	}
	dependencies {
		implementation("com.github.EzenwakaKaycee:android-ffmpeg-java:")
	}
	<dependency>
	    <groupId>com.github.EzenwakaKaycee</groupId>
	    <artifactId>android-ffmpeg-java</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.EzenwakaKaycee" % "android-ffmpeg-java" % ""
        
        

                            
    :dependencies [[com.github.EzenwakaKaycee/android-ffmpeg-java ""]]
        
        

Readme


FFMPEG Library for Android

This project is a Java wrapper around an ffmpeg command line binary for use in Android applications. It depends on the android-ffmpeg project to provide the ffmpeg binary.

For ease of developer use, we've included the FFMPEG and Sox binaries in the project, however, we strongly recommend you compile them yourselves using the steps below.

It is licensed under the GPLv3.

Building

Ensure NDK_BASE env variable is set to the location of your NDK, example:

export NDK_BASE=/path/to/android-ndk

Then execute:

git submodule update --init --recursive
cd external/android-ffmpeg
./configure_make_everything.sh

Once compiled, you will find the binaries at:

external/android-ffmpeg/ffmpeg/ffmpeg external/android-ffmpeg/data/data/info.guardianproject.ffmpeg/app_opt/bin/sox

You should replace the files in res/raw with these.

Then build the project in Eclipse.