10

I have a simple task to make a video from multiple images and an audio file, After searching a lot found that its possible with FFMPEG, Unfortunately there are no updated tutorials for FFMPEG, there are few but outdated and most of them are not working. As I have compiled FFMPEG for Android using NDK android-ndk-r10e and ffmpeg-2.8.6 on my MAC with Android Studio following the tutorial http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ It makes the .so files as files generated from ffmpeg

Now I can't understand what should I do to integrate this in my Android project, I have also checked,

How to use Ffmpeg in android studio?

how to use ffmpeg in android?

FFmpeg on Android

and mainly this,

http://www.roman10.net/how-to-build-android-applications-based-on-ffmpeg-by-an-example/

https://github.com/roman10/android-ffmpeg-tutorial

But its not working and having errors with no way to resolve this. Can anyone please mention some steps that should be followed to use FFMPEG .so files as in image attached.

Community
  • 1
  • 1
arslan haktic
  • 3,470
  • 4
  • 20
  • 35

1 Answers1

8

There's a very easy solution for this, There's a precompiled library for android, as below https://github.com/WritingMinds/ffmpeg-android-java Simply include this as a gradle project in your code and add few methods as per their documentation and you are done with FFMPEG commands in android. This library is not very updated and have some missing features but still its good to use for many simple tasks.

arslan haktic
  • 3,470
  • 4
  • 20
  • 35
  • 1
    I have tried this suggested lib, but its not working for higher versions, as it failed in Lollipop – Narendra Singh Sep 12 '16 at 14:44
  • @King You sure ? Cause i have used this for developing an application that works even on Marshmallow 6.0. – arslan haktic Sep 21 '16 at 08:03
  • 1
    if you want to use pre compiled lib see this https://github.com/bravobit/FFmpeg-Android `Uses FFmpeg release n4.0-39-gda39990` – S.R Jun 02 '19 at 10:41