AVVideoCompositionCoreAnimationTool not work --没有显示CALayer
生活随笔
收集整理的這篇文章主要介紹了
AVVideoCompositionCoreAnimationTool not work --没有显示CALayer
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在視頻合成的時候 設置了AVVideoCompositionCoreAnimationTool 但是在合成視頻 無AnimationLayer 的顯示
你可以能需要更改
open var instructions: [AVVideoCompositionInstructionProtocol] public protocol AVVideoCompositionInstructionProtocol : NSObjectProtocol {/* If NO, indicates that post-processing should be skipped for the duration of this instruction.See +[AVVideoCompositionCoreAnimationTool videoCompositionToolWithPostProcessingAsVideoLayer:inLayer:].*/var enablePostProcessing: Bool { get }/* If YES, rendering a frame from the same source buffers and the same composition instruction at 2 differentcompositionTime may yield different output frames. If NO, 2 such compositions would yield thesame frame. The media pipeline may me able to avoid some duplicate processing when containsTweening is NO */var containsTweening: Bool { get }需要自定義的 實現 AVVideoCompositionInstructionProtocol 協議的 實例對象設置
enablePostProcessing = true官方文檔這句話 需要注意一下
If NO, indicates that post-processing should be skipped for the duration of this instruction.
See +[AVVideoCompositionCoreAnimationTool videoCompositionToolWithPostProcessingAsVideoLayer:inLayer:].
總結
以上是生活随笔為你收集整理的AVVideoCompositionCoreAnimationTool not work --没有显示CALayer的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 三维点云数据处理软件供技术原理说明_三维
- 下一篇: 得到app文稿导出_我是如何使用得到Ap