在 AVExportSession 中暂停视频
我有一个视频,必须在不同的时间点暂停,然后制作成新视频。
我在 AVMutableComposition 中使用 insertEmptyTimeRange 来暂停视频,然后使用 AVExportSession、exportAsynchronousWithCompletionHandler 将其导出。
但在completionHandler中,我不断获取状态AVAssestExportSessionStatusFailed,错误代码-1800操作无法完成,操作系统由于未知原因,&操作无法完成。
任何帮助都会很棒,无论是我暂停视频还是导出视频。
谢谢,
I have a video which has to be paused at various points in time and then made into a new video.
I use insertEmptyTimeRange in AVMutableComposition to pause the video and then use AVExportSession, exportAsynchronousWithCompletionHandler to export it.
But in the completionHandler I keep getting status AVAssestExportSessionStatusFailed, error code -1800 The operation could not be completed, OS due to unknown reason, & operation could not be completed.
Any help would be great, either in the way I am pausing the video or exporting it.
thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使不需要,也已设置 videoComposition 元素,请将其删除以从错误中恢复。
希望这可以帮助某人。
谢谢。
videoComposition element was being set even when it was not required, removed it to recover from the error.
Hope this can help someone.
thanks.