我想在标记上渲染一个视频(可以是任何格式,只要它可以工作),但我不知道该怎么做。我将 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
我可以使用哪些库来实现前两个步骤?