AVFoundation exporting orientation wrong
问题 I'm attempting to combine an image and a video. I have them combining and exporting however it's rotated side ways. Sorry for the bulk code paste. I've seen answers about applying a transform to compositionVideoTrack.preferredTransform however that does nothing. Adding to AVMutableVideoCompositionInstruction does nothing also. I feel like this area is where things start to go wrong. here here: // I feel like this loading here is the problem let videoTrack = videoAsset.tracksWithMediaType