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

查看:126
本文介绍了在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中浏览会话视频时,在图形和媒体下查找会话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天全站免登陆