How to use libffmpeg.so in Android project?

你说的曾经没有我的故事 提交于 2020-01-12 08:08:37

问题


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


回答1:


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




回答2:


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,



来源:https://stackoverflow.com/questions/10797773/how-to-use-libffmpeg-so-in-android-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!