Images loaded by UIImagePickerController don't always have .imageOrientation set to UIImage.Orientation.up. Transformations need to be applied accordingly before encoding them into the video.