Skip to content

MateusZitelli/ffmpeg-android-java

 
 

Repository files navigation

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

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

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

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 53.1%
  • Makefile 44.5%
  • Shell 1.6%
  • C 0.8%