Can I add UIImage or CGImageRef to video?

假如想象 提交于 2020-01-06 19:58:28

问题


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:


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..... :)



来源:https://stackoverflow.com/questions/11377917/can-i-add-uiimage-or-cgimageref-to-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!