在 iPhone 上录制自定义叠加层 [英] Recording custom overlay on iPhone

查看:19
本文介绍了在 iPhone 上录制自定义叠加层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣录制带有自定义叠加层的视频,该叠加层最终会出现在视频本身中.它们可能是 UIImage 甚至更好,一个 OpenGL 视口,现在在任何 iPhone 设备/SDK 上是否有这种可能性?

I'm interested in recording a video with a custom overlay which would end up in the video itself. They could be UIImage or even better, an OpenGL viewport, is there even such possibility right now on any iPhone devices/SDK ?

谢谢

推荐答案

在 iPhone 上是可能的;该功能可以在 AVFoundation 框架中找到.您感兴趣的类是 AVMutableVideoComposition 和 AVVideoCompositionCoreAnimationTool.使用 AVMutableVideoComposition 的 animationTool 属性,您可以使用 AVVideoCompositionCoreAnimationTool 在视频顶部添加核心动画层.

This is possible on the iPhone; the capability can be found in the AVFoundation framework. The classes of interest to you are AVMutableVideoComposition and AVVideoCompositionCoreAnimationTool. Using the AVMutableVideoComposition's animationTool property, you can use a AVVideoCompositionCoreAnimationTool to add a Core Animation layer on top of your video.

这些视频编辑功能是在 iOS 4.0 中添加的,并在 WWDC 2010 上题为使用 AV Foundation 编辑媒体的会议上重点介绍.如果您是注册的 Apple 开发者,您可以通过 http:/上的链接观看本次会议视频/developer.apple.com/videos/wwdc/2010/.在 iTunes 中浏览会话视频时,请在 Graphics and Media 下查找会话 407.

These video editing capabilities were added in iOS 4.0, and highlighted at WWDC 2010 in the session titled Editing Media with AV Foundation. If you are a registered Apple developer, you can view this session video by following the link at http://developer.apple.com/videos/wwdc/2010/. When browsing the session videos in iTunes, look for session 407 under Graphics and Media.

这篇关于在 iPhone 上录制自定义叠加层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆