Edit your project's build.gradle (not app) like this. (important line is jitpack)
allprojects {
repositories {
jcenter()
mavenCentral()
...
maven {
url 'https://jitpack.io'
}
}
}
Add below line to your app's build.gradle dependencies.
compile 'com.github.diegoperini:ffmpeg-android-java:v0.4.7'
- Added
whenFFmpegIsReady()
to properly wait for ffmpeg state. - Fixed
killRunningProcesses()
to properly kill the execution. - Added a
FFmpeg.getInstance()
overload to work with aContextProvider
instead of a context. It is a fix for a common memory leak caused by storing the context internally. Old factory method is still supported but marked as deprecated. - Fixed
isFFmpegCommandRunning()
to properly return running state status. (thanks to @pawaom)
- to update ffmpeg binary versions for all architectures
- to test the fixes
- to build and publish the fork somewhere more common
GPLv3
FFmpeg Android java is a java library that simplifies your task of using ffmpeg in Android project which I've compiled using FFmpeg-Android
These are two basic methods of this library:
loadBinary(FFmpegLoadBinaryResponseHandler ffmpegLoadBinaryResponseHandler) throws FFmpegNotSupportedException
execute(String cmd, FFmpegExecuteResponseHandler ffmpegExecuteResponseHandler) throws FFmpegCommandAlreadyRunningException
For examples and usage instructions head over to:
- [writingminds.github.io/ffmpeg-android-java] (http://writingminds.github.io/ffmpeg-android-java/)
- armv7
- armv7-neon
- x86
- Check file LICENSE.GPLv3 and Make sure to follow the licensing terms and conditions of the project and the software used to build the project.
- Get in touch with us - http://www.writingminds.com