Can I add UIImage or CGImageRef to video?

2019-09-18 14:59发布

I want to add an image in between videos, just like smiley or clip art. Smiley and Clip art most probably has animation.

I referred to Find assets in library - add to a AVMutableComposition - export = crash and also Apple's ALAssetLibrary. but could not get any ideas to complete my requirement.

Is there any functionality to add UIImages and CGImageRefs to an AVMutableComposition?

How can I add an image into a video?

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-09-18 15:35

it has been done with CALayer.

If anyone wants to add UIImage in video file than please add as a CALayer,

also add textlayer..

many thanks to this Link

Cheers..... :)

查看更多
登录 后发表回答