How do I rotate a video from UIImagePickerController before uploading to a webserver
问题 I'm uploading videos to a web server after choosing the video using the UIImagePickerController. However, videos shot with the camera in landscapeRight orientation are inverted on the server. I want to use AVFoundation to rotate the video before uploading. I've figured out how to get the size and preferredRotation of the video using AVAsset. Now I need to apply an affine transform to the video before uploading. Here's an example of the size and transform from a landscapeRight video: 2011-01