views:

263

answers:

2

I'm using UIImagePickerController to allow my user to select a video from the asset library.

When the user selects the "Choose" button on the second screen, the view displays a progress bar and a "Compressing Video..." message.

Why is this happening?

Is there some way I can avoid this compression operation?

A: 

I'm also having that same problem. any ideas?

Bernardo Assis
This should be added as a comment to the original question, not as an answer.
Avalanchis
A: 

Set the videoQuality property of the UIImagePickerController to "High" (UIImagePickerControllerQualityTypeHigh = 0)

From the SDK documentation: "If displaying a recorded movie in the image picker, specifies that you do not want to reduce the video quality of the movie."

http://developer.apple.com/iphone/library/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html#//apple_ref/doc/c_ref/UIImagePickerControllerQualityType

CDeutsch
Looks like on the iPhone 4 it will still compress even when set to "High" but the quality is much better then the default. I can see why they would compress at "High" since the original 720p video is encoded at more then 10 Mbit/sec!
CDeutsch
I have similar findings, even setting it to High results in some compression (and the 'Compressing Video' dialog).
Shizam