How to use the latest FFMPEG in an android studio project?

I have a simple task to make a video of several images and audio files. After much searching that it is possible using FFMPEG, unfortunately, there are no updated manuals for FFMPEG, they are few but outdated, and most of them do not work. Since I compiled FFMPEG for android using the NDK android-ndk-r10e and ffmpeg-2.8.6 on my MAC device with Android Studio, following the tutorial http://www.roman10.net/how-to-build-ffmpeg-with -ndk-r9 / It makes .so files like files created from ffmpeg

Now I can’t understand what I have to do to integrate this into my Android project, I also checked

How to use ffmpeg in android studio?

how to use ffmpeg in android?

FFmpeg on Android

and basically this,

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

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

But it does not work and does not have errors, so as not to allow this. Can someone mention some steps that should be used to use the FFMPEG.so files, as with the attached image.

+7
android android-studio ffmpeg android-ndk video
source share
1 answer

There is a very simple solution. There is a pre-compiled library for android there, as shown below https://github.com/WritingMinds/ffmpeg-android-java Just include this as a gradle project in your code and add a few methods according to their documentation, and you will end with the commands FFMPEG in android. This library is not very updated and has some missing features, but it is still useful for many simple tasks.

+4
source share

All Articles