我想在标记上渲染视频(可以是任何格式,只要它有效),但我不确定如何执行此操作。我将 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
我可以使用哪些库来实现前两个步骤?
最佳答案
Which libraries could I use to achieve the first two steps?
查看 libavcodec 库(您可以从 here 开始),但要考虑到它非常复杂。
关于c++ - 增强现实 : Render Video on top of a marker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7758641/