如何在videoCompositionWithAsset:applyingCIFiltersWithHandler方法中使用图层指令?
Answer to: How to Use Layer Instructions with videoCompositionWithAsset:applyingCIFiltersWithHandler:
Based on insights from the engineering team, here's the key information you need to know:
- Core Image filters and layer-instruction-based composition are mutually exclusive when using
+[videoCompositionWithAsset:applyingCIFiltersWithHandler:]to initialize anAVMutableVideoComposition. Any layer instructions you add to this composition will not execute—they'll be ignored entirely. - If you require layer-related functionality in this scenario, you must migrate that layer logic directly into the handler block passed to the method, instead of adding layer instructions to the
AVMutableVideoCompositioninstance itself.
内容的提问来源于stack exchange,提问作者Hit_Var
相关产品推荐
相关产品推荐

