Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid Video compression while picking video using uiimagepickercontroller

I'm using UIImagePickerController to allow my user to select a video .

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

Is there some way I can avoid this compression operation?

like image 546
pop924 Avatar asked Oct 09 '22 23:10

pop924


1 Answers

Try to set the videoQuality property of UIImagePickerController

The video quality setting specified by this property is used during video recording. It is also used whenever picking a recorded movie. Specifically, if the video quality setting is lower than the video quality of an existing movie, displaying that movie in the picker results in transcoding the movie to the lower quality. UIImagePickerController Reference

Available quality values are:

UIImagePickerControllerQualityTypeHigh
UIImagePickerControllerQualityTypeMedium
UIImagePickerControllerQualityTypeLow
UIImagePickerControllerQualityType640x480
UIImagePickerControllerQualityTypeIFrame1280x720
UIImagePickerControllerQualityTypeIFrame960x540

Please see UIImagePickerController Reference for detail.

like image 87
EugeneK Avatar answered Oct 14 '22 05:10

EugeneK