Video rotated after applying AVVideoComposition
问题 After applying an AVVideoComposition to my AVPlayerItem , the filter I apply does work, but the video gets rotated in the AVPlayerLayer . I know for a fact that the problem is not with the filtered frame because if I show the frame in a UIImageView , the frame is rendered 100% correctly. The video shows correctly until I apply a videoComposition . Setting the videoGravity on the AVPlayerLayer does not help. The video gets rotated 90º clockwise and gets stretched in the layer. Essentially, the