Skip to content

diegoperini/ffmpeg-android-java

 
 

Repository files navigation

!!! Deprecated !!!

This project is discontinued. There is a much better alternative by bravobit which incorporates good parts of this fork and also attempts to solve some existing issues. I'll be keeping a close eye to its issue tracker and contribute there instead.

About the fork

Installation

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.9'

Applied fixes

  • Added whenFFmpegIsReady() to properly wait for ffmpeg state.
  • Fixed killRunningProcesses() to properly kill the execution.
  • Added a FFmpeg.getInstance() overload to work with a ContextProvider 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)

Help needed

  • to update ffmpeg binary versions for all architectures
  • to test the fixes
  • to build and publish the fork somewhere more common

License

GPLv3


Join the chat at https://gitter.im/hiteshsondhi88/ffmpeg-android-java

About

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:

Supported Architecture

  • armv7
  • armv7-neon
  • x86

Sample

http://i.imgur.com/cP4WhLn.gif

JavaDoc

License

  • 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.

HIRE US

Bitdeli Badge

About

Deprecated - See the better alternative -

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 53.2%
  • Makefile 44.4%
  • Shell 1.6%
  • C 0.8%