恩code系列影像到视频 [英] Encode a series of Images into a Video

查看:107
本文介绍了恩code系列影像到视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建从一系列Android上的图像/照片的视频文件? 可这与当前的SDK来完成?或者,我需要一个codeC库?

How can I create a video file from a series of images/photos on Android? Can this be done with the current SDK? or do I need a codec library?

感谢。

推荐答案

我同意马克。其中C / C ++库的ffmpeg 这里或X264的此处。我必须说,我没有带发现他们还是Android NDK易于使用,但认为可能是因为我真的不知道很多关于C / C ++和JNI。如果你有兴趣在这条路的话,RockPlayer的免费应用程序的Andr​​oid已经从FFMPEG准备在Android上使用pre-内置共享库。他们声称这些库只使用LGPL组件,但你必须要满足自己这一点,我想。至于Java中,有所谓的ffmpeg,勿庸置疑的端口(排序),jffmpeg你可以在这里访问但它仍然呼吁出许多现有的ffmpeg的框架,让你回到NDK的土地。是可能的一系列的图像转换成与Java媒体框架(JMF)的视频,但它有以下缺点:

I agree with Mark. Among the C/C++ libraries are ffmpeg here or X264 here. I have to say I havn't found them or the Android NDK easy to use but that's probably because I don't really know much about C/C++ and JNI. If you're interested in this route, then the RockPlayer free app for Android has the pre-built shared libraries from ffmpeg ready for use on Android. They claim these libraries only use LGPL components but you'd have to satisfy yourself on this, I guess. With regards to Java, there is a port (of sorts) of ffmpeg called, unsurprisingly, jffmpeg which you can access here but it still calls out to much of the existing ffmpeg framework, so you're back in NDK land. It is possible to convert a series of images to video with the Java Media Framework (JMF) but it has the following drawbacks:

  1. 视频格式数量有限。
  2. 在不产生视频可以播放大多数(如果不是全部)Android手机如: H264或MPEG4。
  3. 的JMF code是现在很老了,已经在很长一段时间没有进展,是臃肿,没有得到很好的结构性所以有可能是未在Android的包装其他Java的依赖关系。

我已经看到了使用的另一种选择是Adobe AIR的,但它是一个17MB的有效载荷其中一些用户抱怨。

Another option I've seen used is Adobe Air, but it's a 17Mb payload which some users complain about.

有很多关于ffmpeg的和其他的问题在这里对堆栈溢出的Andr​​oid NDK。

There are lots of other questions here on Stack Overflow regarding ffmpeg and Android NDK.

好运气的项目。

这篇关于恩code系列影像到视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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