在 AVExportSession 中暂停视频

发布于 2024-12-08 00:28:48 字数 317 浏览 3 评论 0原文


我有一个视频,必须在不同的时间点暂停,然后制作成新视频。
我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别再吹冷风 2024-12-15 00:28:48

即使不需要,也已设置 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文