FFmpeg4Android icon indicating copy to clipboard operation
FFmpeg4Android copied to clipboard

请问下一下,是不是 ndk编译成so了,就可以直接在android java项目中用了?

Open stonyz opened this issue 6 years ago • 3 comments

如题,如果是这样,那为何大家不直接把自己编译好的ffmpeg编译好的so共享一下,然后写个使用说明,就可以了。不用大家都去自己编译了。

我猜测我理解是错误的,请帮忙澄清指正一下

stonyz avatar Feb 02 '18 08:02 stonyz

抱歉,现在才看到这条消息!理论上来讲,ffmpeg编译出来的so库是每个人可以公用的,但是,不同的人可能对ffmpeg的需求不一样,将它的一些功能进行了剪裁。但是,编译出来的只是一个so库,有点 像我们平时说的jar包,但so库是c或者C++写的,这就需要用的JNI来链接。以前我们使用JNI都会在as中进行编译,在编译的时候会根据你的包名生成相应的文件,比如demo中我说不要复制的那三个(事实上 如果你知道这个文件的生成规律,也可以直接更改),不过我们现在都是用CMake方式+动态注册方法,从某种意义上讲,就是更加提高了“so库直接在java项目中的应用”性了!

在 2018年2月2日 下午4:19,Stony Zhang [email protected]写道:

如题,如果是这样,那为何大家不直接把自己编译好的ffmpeg编译好的so共享一下,然后写个使用说明,就可以了。不用大家都去自己编译了。

我猜测我理解是错误的,请帮忙澄清指正一下

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/moushao/FFmpeg4Android/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AQmVCyDTn8-I3c2WKnu6uGcoTGauL9kXks5tQsUPgaJpZM4R206e .

moushao avatar Mar 14 '18 03:03 moushao

请问如果我想要编译其他版本的包 该怎么改呢? 在android studio3.0上

460817183 avatar Mar 23 '18 03:03 460817183

如果你想编译其他库,只能自己按照网上的教程,一个一个配置,然后编译出来.

460817183 [email protected] 于2018年3月23日周五 上午11:43写道:

请问如果我想要编译其他版本的包 该怎么改呢? 在android studio3.0上

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/moushao/FFmpeg4Android/issues/1#issuecomment-375535660, or mute the thread https://github.com/notifications/unsubscribe-auth/AQmVC7BI-7Rj-gt0HSTcM6Zx9Nv5HF_qks5thG9rgaJpZM4R206e .

moushao avatar Sep 07 '18 01:09 moushao