开发者

Enable UIImagePickerController video compression

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜