Transform wrong when using both AVComposition and AVVideoComposition
问题 I am creating an AVMutableComposition . I need the asset to be flipped horizontally, so I am setting the transform of the composition track like this: compositionTrack.preferredTransform = assetTrack.preferredTransform.scaledBy(x: -1, y: 1) If I export this (I use AVAssetPreset960x640 as my preset), this works as expected. However, I also need to add an AVMutableVideoComposition overlay to be rendered with this copmosition. This overlay shouldn't be flipped horizontally. I specify this like