6

我目前正在尝试UIVideoEditorViewController使用UIImagePickerController. 我确认在选择文件后和创建文件之前UIVideoEditorViewController具有原始分辨率。但是,在修剪视频后,输出始终为 360p 分辨率,尽管将videoQuality属性设置为high. 此属性的所有适用设置似乎都被忽略了,视频最终被不必要地压缩。

我发现很多人报告了类似的问题,但必须找到解决方法。

let editor = UIVideoEditorController()
editor.delegate = self
editor.videoMaximumDuration = 0 // No limit for now

// TODO: This should really work, however while testing it seems like the imported videos are always scaled down
// to 320p which equivalents the default value of .low.
editor.videoQuality = .typeHigh
editor.videoPath = internalURL.path

任何帮助将不胜感激。

4

0 回答 0