【发布时间】:2016-09-13 17:42:55
【问题描述】:
我正在尝试实时解码视频 (30 fps) 并使用 OpenGL 显示/修改它。在 iPod touch 上,如果我对用相机拍摄的视频进行解码,解码一帧可能需要 1 秒以上,而 30 fps 最长应该是 0.03 秒。因此结果不是很好..
是否可以使用 AVAssetReader 来实现?例如,Instagram 在视频上实时应用过滤器(我认为是 GLSL 着色器),它们甚至可以在视频中导航。 Instagram 在 ipod touch 上运行良好。
可以在此处的答案中找到要解码的代码: Best way to access all movie frames in iOS
更具体地说:Hardware accelerated h.264 decoding to texture, overlay or similar in iOS
提前谢谢你
【问题讨论】:
标签: ios objective-c video opengl-es decoding