将叠加图形渲染到相机视频中
我想制作一个应用程序,它从相机获取视频,添加额外的视觉信息(叠加)并从中创建一个视频文件,稍后可以将其上传到服务器。 怎么做呢?
如果没有执行此类任务的经验,我假设有两种选择:
- 屏幕捕获和编码为视频文件。但是,生成的帧速率可能不够。
- 将视频录制到 SD 卡,稍后使用添加的叠加层重新编码。不需要实时编码,因此编码过程比实时慢是可以的。
I want to make an app which takes a video from the camera, adds additional visual info (overlays) and creates a video file from it which can later be uploaded to a server.
How to do that?
Without prior experience with such tasks, I assume there are 2 options:
- screen-capture and encoding to video file. However the resulting framerate may not be sufficient.
- record the video to sdcard and reencode later with added overlays. Live encoding is not needed, thus it's ok for the encoding process to be slower then realtime.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将不得不求助于使用 ffmpeg 和 NDK 来编码您自己的视频。那里有很多例子,但仍然有点麻烦。
You will have to resort to using for instance ffmpeg and the NDK to encode your own video. There's plenty of examples out there, but it's still somewhat cumbersome.
希望这有帮助:
来源:http://osdir.com/ml/Android-Developers/ 2010-03/msg00077.html
Hope this helps:
Source: http://osdir.com/ml/Android-Developers/2010-03/msg00077.html