Ffmpeg for android (using the tutorial: "ffmpeg and Android.mk")

I am trying to compile ffmpeg for android. I found some posts on this topic, but it does not seem to work. If you tried to build ffmpeg as it is published on [1]. Has anyone successfully compiled ffmpeg using a thesis tutorial? I am not sure how to implement steps 4 through 5.

STEP4: setup ...

STEP5: cd to the NDK root directory, type make TARGET_ARCH = arm APP = ffmpeg-org

It seems to me that in order to create an application, as described in the lesson in step 5, it is necessary to follow some previous steps. Unfortunately, I do not have the application in the folder. I am using the current version of Android ndk 3 and have checked the actual ffmpeg releases from [3] and [4]. I am grateful for every advice.

[one] http://slworkthings.wordpress.com/ <sh> [2] http://gitorious.org/~olvaffe/ffmpeg/ffmpeg-android
[3] http://ffmpeg.org/download.html

+48
android ffmpeg android-ndk cross-compiling android-ffmpeg
Apr 15 '10 at 12:11
source share
4 answers

By looking around the net. The only working solution I found was provided by Bambuser, which ported ffmpeg for use in their Android app.

The code is here: http://bambuser.com/opensource

Basically you copy the .so files to the jni / lib directory along with any .h files you might need, create a JNI wrapper via javah and it works.

EDIT:

Since this post was written by several packaged ffmpeg popup projects, one of the easiest to compile and use is here: https://github.com/guardianproject/android-ffmpeg .

It takes the approach of static compiling a binary (rather than a library) that runs through a shell command at runtime. Search github for ' android ffmpeg ' for forks and related projects.

Could not find a well-implemented package-based JNI implementation.

+20
Oct 28 '10 at 10:28
source share

I found the ffmpeg manual on android here: http://rxwen.blogspot.com/2010/05/use-ffmpeg-to-setup-streaming-server-on.html

He explains in another post how he had to do his own Android programming to install ffmpeg. Hope this helps.

+4
Dec 20 '10 at 9:31
source share

In NDK r3, when you use the make , NDK will simply use the folder name in the apps folder for the name of your project. It is assumed that you have the source files FFmpeg and android.mk somewhere inside NDK/apps/ffmpeg-org/jni/

In other words, make sure your folder name is set to ffmpeg-org .

EDIT: Maybe you should use NDK r4, which changes make to ndk-build . In this new NDK, you don’t need to set up your project in any specific way, since ndk-build just looks for your project for android.mk files to tell it what to compile.

+3
Jul 05 2018-10-10T00:
source share

I have provided a more updated list of sources that will explain how to create, and in some cases even use FFMPEG on Android.

I liked this guide most of all: http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/

If you need more options, you can take a look at them which are equally good:

+3
Mar 08 '14 at 14:28
source share



All Articles