Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use libffmpeg.so in Android project?

I am trying to create a screen recording app in Android. For this, i am using FFmpeg. I have created the libffmpeg.so file. Now i would like to use the same in Android project for calling it's native function. How can i do that..?

like image 465
Neernay Avatar asked May 29 '12 10:05

Neernay


2 Answers

This tutorial provides a detail explanation about this topic. How to Build Android Applications Based on FFmpeg by An Example

like image 106
Shaiful Avatar answered Sep 17 '22 08:09

Shaiful


You can find the example How to load another .so file in your android project?

That is the good way to show you how to load *.so file.

1 - Add folder jni/libs/*.so

2 - Use "Right-click mouse" -> Android Tools -> Add native support -> Set name of file *.cpp

3 - Two files : *.cpp and Android.mk appeared.

4 - Use Cygwin to build & compile *.so into the project.

Thanks,

like image 37
Huy Tower Avatar answered Sep 17 '22 08:09

Huy Tower