WAVideoBox icon indicating copy to clipboard operation
WAVideoBox copied to clipboard

压缩失败

Open winterrain5 opened this issue 3 years ago • 0 comments

            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: ''

winterrain5 avatar Sep 09 '20 04:09 winterrain5