开发者

Making transparent video on iOS

开发者 https://www.devze.com 2023-02-15 22:17 出处:网络
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 secon

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.

0

精彩评论

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