开发者

How to create movie from images *with transitions between images*

开发者 https://www.devze.com 2023-04-01 12:33 出处:网络
There seem to be lots of iOS developers who want to create a movie from a set of images, b开发者_开发技巧ut I would like to include a transition between the images -- just a quick opacity ramp from on

There seem to be lots of iOS developers who want to create a movie from a set of images, b开发者_开发技巧ut I would like to include a transition between the images -- just a quick opacity ramp from one image to the next.

I've been googling and studying the docs, and can't see how this can be done with AVAssetWriter. It looks like I need to use AVMutableComposition to get the transitions.

Question: Is this correct? Or am I missing something with AVAssetWriter?

TIA: John


I've never tried, but how about Core Animation to do the transition (or any kind of animation)? You setup the animation, move the timeline, grab a "screenshot" of the animation and write it on the movie. Repeat it until the animation is completed.

0

精彩评论

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