android ffmpeg .so下载 [英] android ffmpeg .so download

查看:247
本文介绍了android ffmpeg .so下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我尝试过几次在windows-7上使用Android NDK $手动编译FFMPEG b $ b,但从未成功。



所以我认为使用预编译的lib最好,因为我已经在使用与之相同的技术:
< a href =https://github.com/guardianproject/SSCVideoProto> https://github.com/guardianproject/SSCVideoProto



但是ffmpeg这个项目中的lib非常老了。



任何帮助都非常感谢.......

解决方案

由于与 android-ndk-r9b 集成起来,它被构建为 ffmpeg 2.0 下载预建的* .so



设置* .so文件


1 - 添加文件夹jni / libs / *。所以



2 - 使用右键单击使用 - > Android工具 - >添加本地支持 - >设置文件的名称* .cpp



3 - 两个文件:* .cpp和Android.mk出现



4 - 使用Cygwin构建&将* .so编译到项目中。


如何在您的Android项目中加载另一个.so文件? a>。



@Sanket Excute命令在将参数传递给C ++方法之前需要先了解这一点:



< a href =https://stackoverflow.com/questions/22607042/unsatisfiedlinkerror-when-calling-c-method-in-c-file-from-java-file?noredirect=1#comment34431151_22607042> C ++中调用C ++方法来自Java文件的文件


Anybody knows from where to get compiled .so FFMPEG library for Android?

I tried thousand of times to compile the FFMPEG manually on windows-7 using Android NDK but never succeeded.

So I think it's better to use precompiled lib as I'm already using the same same technolgy that used in: https://github.com/guardianproject/SSCVideoProto

But the ffmpeg lib in this project is very old.

Any help is much appreciated.......

解决方案

It was built to ffmpeg 2.0 since integrate with android-ndk-r9b Download the prebuilt *.so.

set up *.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.

How to load another .so file in your android project?.

@Sanket Excute command need know this first before transfer parameters to the C++ method :

Calling C++ method in C++ file from Java file

这篇关于android ffmpeg .so下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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