如何在Android Project上使用libffmpeg.so [英] How to use libffmpeg.so on Android Project

查看:76
本文介绍了如何在Android Project上使用libffmpeg.so的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想使用预编译的libffmpeg制作Android Media Player,但我不知道如何在互联网上找到任何有用的帮助,如果本网站的任何用户都知道如何为了做到这一点,拜托,我需要他帮助我解决这个问题,谢谢......

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

推荐答案

改变是,你不能,你不应该。首先,您需要了解.so的含义。这是共享对象,可执行文件,在Microsoft域中称为DLL的东西。该文件具有特定OS的可执行文件格式,并将已编译的某些库的代码呈现给目标CPU的目标指令集。大多数可执行文件格式在许多操作系统之间共享,但存在差异。您只能使用此.so如果有人将其构建为您的确切系统。我不确定是不是这样。



关于共享对象的使用,请参阅:

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在你的程序中使用FFMPeg(我没有提到在单独的进程中只产生一个实用程序的明显可能性;如果你在询问),你需要一些C / C ++编程。请参阅:

http://developer.android.com/tools/sdk /ndk/index.html [ ^ ]。



你可以考虑这个编译器和IDE: https://play.google.com/store/apps/details?id=com.n0n3m4.droidc [ ^ ]。



然后,您可以使用FFMPeg或libavcodec(FFMpeg包含)的源代码:

http: //en.wikipedia.org/wiki/Ffmpeg [ ^ ],

http://ffmpeg.org/ [ ^ ],

http://en.wikipedia.org/wiki/Libavcodec [ ^ ],

http://libav.org/ [ ^ ]。



祝你好运,

-SA
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


这篇关于如何在Android Project上使用libffmpeg.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆