Making transparent video on iOS
I have two mp4 movies. One that has the actual video and one with the alpha values. My intention is that the first movie will get a transparent look, by merging it with the second one, where the second one will be the mask of the first one.
I know how to do this: with the CGImage alpha and blending tools. But I don't know how t开发者_如何学运维o get the exact frames of the videos. Can anyone point me in the right direction? Or does somebody have an alternative idea?
Thanks!
Dries
You may want to look into some of the augmented reality sample apps out there. They are doing real-time calculations based on each frame.
This link is a good place to start.
Try this link - great framework for creating image filters. In this framework you also can create video stream filtering from camera or filter already recorded video. Hope this help.
精彩评论