Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

压缩失败 #31

Open
winterrain5 opened this issue Sep 9, 2020 · 0 comments
Open

压缩失败 #31

winterrain5 opened this issue Sep 9, 2020 · 0 comments

Comments

@winterrain5
Copy link

            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: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant