开发者

iphone 4 - How do I record the video overlay on top of the video also?

开发者 https://www.devze.com 2023-01-09 13:19 出处:网络
Does anyone know how to do this开发者_如何学JAVA? Is anyone able to provide an example? I believe this is out of NDA now as was available in version 4.0 ?Take a look to AVFoundation framework , speci

Does anyone know how to do this开发者_如何学JAVA?

Is anyone able to provide an example? I believe this is out of NDA now as was available in version 4.0 ?


Take a look to AVFoundation framework , specially to avcapture avsession avinputdevice, etc. You can find some listings in the iPhone dev center forums: search "avcapture" AVFoundation is the framework you want to use to record, modify raw frames, show them, an offcourse add some overlay

If you want to do only overlay then, UIImagePickerController should b enough.


If i understand, what you are trying to do corectly, you have set up video capture someting like suggested by Apple in this Q&A:http://developer.apple.com/iphone/library/qa/qa2010/qa1702.html

From there it shouldn't be much of a Problem to use the method described in this answer:blend two uiimages based on alpha/transparency of top image to blend the preview with your overlay, provided you draw it in a UIImage first. Feed the resulting images to a buffer and save it accordingly.

Though, this method most certainly wouldn't give you a lot of frames per second.

0

精彩评论

暂无评论...
验证码 换一张
取 消