Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recording custom overlay on iPhone

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 ?

Thanks

like image 571
Marc Avatar asked Mar 14 '10 20:03

Marc


1 Answers

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.

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.

like image 118
Matt Rubin Avatar answered Oct 13 '22 01:10

Matt Rubin