开发者

How to make video wall with iPhone SDK

开发者 https://www.devze.com 2023-01-07 02:55 出处:网络
I need to generate video file with iphone SDK that looks like a wall of few smaller videos. Did somebody could help me with advice how to implement this? I am currently thinking of images with frames,

I need to generate video file with iphone SDK that looks like a wall of few smaller videos. Did somebody could help me with advice how to implement this? I am currently thinking of images with frames, that placed in UIView in needed order and then assemble them in one final video, but I can't find how to do it.

Here's how it should look:

| video1 | video2 |

| -------- | --------- |

| video3 | vide开发者_如何学Goo4 |

Thanks.


Well, if somebody interesting it could be done with AVVideoComposition. You add AVMutableVideoCompositionLayerInstruction to your VideoComposition and then use usual CGAffineTransform on that layer. But the maximum amount of videos on the screen is 4, so if you need more, then just do it in few steps.

0

精彩评论

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