将重叠图形渲染成相机视频 [英] render overlay graphics into camera video
本文介绍了将重叠图形渲染成相机视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想制作一个应用程序,该应用程序可以从相机中获取视频,增加额外的视觉信息(叠加层),并创建一个视频文件,以便稍后将其上传到服务器。
如何做?
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:
- 屏幕捕获和编码到视频文件。但是,所得到的帧速率可能不足。
- 将视频记录到sdcard,然后在添加的叠加层中重新编码。实时编码是不需要的,因此编码过程比实时更慢。
推荐答案
p>您将不得不诉诸于使用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.
这篇关于将重叠图形渲染成相机视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文