Is there a way to enable video co开发者_如何学编程mpression 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
精彩评论