简体   繁体   中英

Enable UIImagePickerController video compression

Is there a way to enable video compression on video files recorded with UIImagePickerController?

When videos are selected from cameraroll with UIImagePickerController they are automatically compressed.

Are there any other way of compress a video? I've got access to the file with a NSURL.

I'm not aware of a way to change the compression as it's being recorded.

You can set the videoQuality property of the UIImagePickerController to get a copy at a different bitrate.

For example "High" is: UIImagePickerControllerQualityTypeHigh = 0

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM