Mark OLeary
Mark OLeary

Reputation: 41

AVFoundation to overlay two video clips with Alpha compositing in ios5?

I'm hoping to use IOS5 AV Foundation with or without Open GL to record video from the camera and overlay/merge another video clip on top using some form of alpha channel compositing / foreground matting.

A sample use case of the combined output may be a video of an animated character interacting with the the user's recorded video clip from the iPhone/iPad camera.

Is this possible right now with IOS5 or potentially with Brad Larson's GPUImage framework? Can the alpha channels of the two video sources be combined easily?

If anyone has any sample code they could share, or offer any guidance I'd be really appreciative.

Upvotes: 4

Views: 2882

Answers (1)

spring
spring

Reputation: 18487

The Apple AVEditDemo (+ accompanying WWDC 2010 video) would be a start. Doesn't show video overlays w/ alpha but if you haven't worked with AVFoundation before this is an excellent intro.

Here's another good walkthrough video-composition-with-ios

Upvotes: 1

Related Questions