Click here to Skip to main content
15,881,744 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, I want to make an Android Media Player using the precompiled libffmpeg on it, but I don´t know how, and can´t find any useful help in internet to do that, if any user in this website knows how to make that, please, i need him to help me in this problem, thanks...
Posted

1 solution

Changes are, you cannot and you should not. First of all, you need to understand what ".so" means. This is "shared object", executable file, same thing called "DLL" in Microsoft domain. The file has the executable file format of the particular OS and presents the code of some library already compiled to the target instruction set of a target CPU. Most executable file formats are shared between many OS, but there are differences. You can only use this .so if someone has built it targeting your exact system. I'm not sure if this is the case or not.

On the use of shared objects, please see:
http://www.cplusplus.com/forum/unices/33532[^],
http://www.akkadia.org/drepper/dsohowto.pdf[^],
http://stackoverflow.com/questions/58058/using-c-classes-in-so-libraries[^].

To use FFMPeg in your program (I am not mentioning apparent possibility of spawning just a utility in a separate process; if you are asking about ), you need at some C/C++ programming. Please see:
http://developer.android.com/tools/sdk/ndk/index.html[^].

You could consider this compiler and IDE: https://play.google.com/store/apps/details?id=com.n0n3m4.droidc[^].

And then, you can use the source code of FFMPeg or libavcodec (which FFMpeg includes):
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].

Good luck,
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900