增强现实:在标记之上渲染视频
我想在标记上渲染视频(可以是任何格式,只要它有效),但我不知道如何做到这一点。我使用 Artoolkit 进行桌面 AR,使用 QCAR 进行移动 AR。最终我想在两个系统上完成它,因此我最好寻找一个可以在两个平台上使用的视频库。
基本上我知道必须完成的步骤:
- load video file
- extract image according to current time
- use image as texture
- apply marker's transformation matrix to textured rectangle
我可以使用哪些库来实现前两个步骤?
I'd like to render a video (can be any format as long as it works) on top of a marker, but I am not sure how to do this. I am using Artoolkit for desktop-based AR and QCAR for mobile AR. Eventually I want to get it done for both systems, therefore I am preferably looking for a video-library that I could use on both platforms.
Basically I know the steps that have to be done:
- load video file
- extract image according to current time
- use image as texture
- apply marker's transformation matrix to textured rectangle
Which libraries could I use to achieve the first two steps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 libavcodec 库(您可以此处启动),但要考虑到它相当复杂。
Take a look into the libavcodec library (you can start here), but take into account that it is quite complex.