录制时逐帧处理 Android 视频
我想做的是创建一个应用程序,在录制时为视频添加效果。有没有办法让回调方法接收帧,然后对其应用效果并记录下来。目前 Android 市场上有一个应用程序(Videocam Illusion)声称它是唯一可以执行此操作的应用程序。有人知道 Videocam Illusion 是如何做到这一点的,或者有一些概述 Android 视频处理的可能教程的链接吗?
这是一个未回答的类似问题:
What I am attempting to do is create an application that adds effects to videos while recording. Is there any way to have a callback method receive the frame, then apply an effect to it and have that recorded. There is currently an application on the Android Market (Videocam Illusion) that claims it is the only application that can do this. Anyone know how Videocam Illusion does this or have some links to possible tutorials outlining video processing for Android?
This is a similar question that is unanswered:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,(除非我不知道 API 提供的其他方法)这样做的方式是使用到相机的直接流并通过使用某种本机代码来修改流来操作它。我之前在开发眼球追踪器时做过类似的事情 - 所以我会告诉你它基本上是如何工作的。
您必须注意的一件事是数据包的加载和发送以及数据包的加载和发送。每帧图像发生时间约为 1/30 秒。所以代码必须极度优化。
Unfortunately, (unless I'm unaware of some other method provided by the API) the way this is done is using a direct stream to the camera and manipulating it by using some sort of Native Code to modify the stream. I've done something similar to this before when I was working on an eyetracker - So I'll tell you how it works basically.
One thing that you have to be mindful of is the load and send of the packets & images happen in about 1/30th of a second for each frame. So the code has to be extremely optimized.