我可以在视频中添加UIImage或CGImageRef吗? [英] Can I add UIImage or CGImageRef to video?
问题描述
我想在视频之间添加图像,就像笑脸或剪贴画一样.笑脸和剪贴画最有可能带有动画.
I want to add an image in between videos, just like smiley or clip art. Smiley and Clip art most probably has animation.
我提到了在图书馆中查找资产-添加到AVMutableComposition-export = crash 以及Apple的ALAssetLibrary
.但没有任何想法可以满足我的要求.
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.
是否有向AVMutableComposition
添加UIImage
和CGImageRef
的功能?
Is there any functionality to add UIImage
s and CGImageRef
s to an AVMutableComposition
?
如何将图像添加到视频中?
How can I add an image into a video?
推荐答案
已通过CALayer完成.
it has been done with CALayer.
如果有人要在视频文件中添加UIImage,请添加为CALayer,
If anyone wants to add UIImage in video file than please add as a CALayer,
还要添加文本图层.
非常感谢此链接
干杯.....:)
这篇关于我可以在视频中添加UIImage或CGImageRef吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!