我正在尝试使用 UIVideoEditorController 来编辑我的视频,但它似乎失去了我的视频分辨率。我原来的视频是720 x 1280
,但是用了之后UIVideoEditorController
,质量就变了360 x 640
。
我试图将 设置为videoQuality
甚至UIImagePickerControllerQualityTypeHigh
,UIImagePickerControllerQualityTypeIFrame1280x720
但这没有帮助。
我在 iPad 上工作,这是我的代码:
self.editorController = [[[UIVideoEditorController alloc] init] autorelease];
self.editorController.videoPath = self.tempVideoPath;
self.editorController.delegate = self;
self.editorController.videoQuality = UIImagePickerControllerQualityTypeHigh;
CKLog(@"%d", self.editorController.videoQuality);
self.popOverController = [[[UIPopoverController alloc] initWithContentViewController:self.editorController] autorelease];
self.popOverController.delegate = self;
self.popOverController.popoverContentSize = CGSizeMake(700, 700);
[self.popOverController presentPopoverFromRect:CGRectMake(0, 0, 1, 1) inView:self.videoView permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];