WAVideoBox
WAVideoBox copied to clipboard
压缩失败
self.videoBox.clean()
self.videoBox.appendVideo(byPath: self.videoPath)
self.videoBox.ratio = .ratioMediumQuality
self.videoBox.asyncFinishEdit(byFilePath: self.ouputVideoPath(), progress: { (progress) in
DispatchQueue.main.async {
Toast.showProgress(progress)
}
}) { (error) in
DispatchQueue.main.async {
if error == nil {
Toast.showMessage("压缩成功")
}else {
Toast.showMessage("压缩失败")
}
}
}
打印出来的两个路径
Printing description of self.videoPath:
"/var/mobile/Containers/Data/Application/16A0A00D-A4F6-4658-844A-0D83F85D4CE5/Documents/TXUGC/TXUGCRecord.mp4"
Printing description of self.videoOutputPath:
"/private/var/mobile/Containers/Data/Application/16A0A00D-A4F6-4658-844A-0D83F85D4CE5/tmp/tempVideo.mp4"
这是控制台报出来的相关错误
error:Optional("The operation couldn’t be completed. (AVFoundationErrorDomain error -11805.)")
CUICatalog: Invalid asset name supplied: ''