2011-12-31 81 views
10

我想使用UIVideoEditorController來編輯我的視頻,但它似乎失去了我的視頻分辨率。我的原始視頻是720 x 1280,但在使用UIVideoEditorController後,質量變爲360 x 640UIVideoEditorController失去了視頻分辨率

我試圖設置videoQualityUIImagePickerControllerQualityTypeHigh甚至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]; 
+5

您是否找到解決方案?我現在有同樣的問題。 – 2012-02-08 06:59:08

+1

我仍然有這個問題 - 它似乎發生,因爲我使用AVFoundation框架來記錄,然後使用UIVIdeoEditorController編輯 - 但它就像缺少某種類型的元數據,UIVideoEditorController需要 – 2012-12-16 20:53:25

+0

你好人解決這個問題?我使用@Louis相同 – Nitya 2015-04-01 11:09:18

回答

0

按照UIVideoEditorController文檔:

一個UIVideoEditorController對象或視頻編輯,管理 系統提供用戶從 開始和結束以前記錄的電影以及再編碼到 較低質量 ...

UIVideoEditorController類有一個名爲videoQuality的屬性。它允許我們在保存修剪後的視頻時選擇視頻質量。 (默認值爲UIImagePickerControllerQualityTypeLow

UIImagePickerControllerQualityTypeHigh使用支持設備上活動攝像頭的最高質量的視頻錄製。它看起來好多了,但似乎還是失去了一點原始分辨率。