PHPickerViewController: Controling the selected video's resolution?

Hello,

does PHPhotoPickerViewController offer any options to specify which resolution should the selected video to be? Meaning can it do automatic compression like UIImagePickerViewController with videoExportPreset settings?

Or is this supposed to be handled in the app itself? Say I want to always have Full HD or 4K videos (if available) how would I go about achieving that?

Thanks
Answered by Engineer in 616567022
Hi!

PHPickerViewController doesn't perform any automatic compression. Another way to look at it is you can assume videoExportPreset is always being set to AVAssetExportPresetPassthrough.

The app is suppose to handle the compression, if necessary. You can use AVAssetExportSession to transcode the video.
Accepted Answer
Hi!

PHPickerViewController doesn't perform any automatic compression. Another way to look at it is you can assume videoExportPreset is always being set to AVAssetExportPresetPassthrough.

The app is suppose to handle the compression, if necessary. You can use AVAssetExportSession to transcode the video.
PHPickerViewController: Controling the selected video's resolution?
 
 
Q