objective-c - 什么是 OSStatus -12500?

标签 objective-c macos avfoundation avassetexportsession avmutablecomposition

我正在使用 AVFoundation 开发一个项目,目前遇到以下错误:

Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x10021ee80 {NSUnderlyingError=0x10015cee0 "The operation couldn’t be completed. (OSStatus error -12500.)", NSLocalizedFailureReason=An unknown error occurred (-12500), NSLocalizedDescription=The operation could not be completed}

GetMacOSStatusErrorString 和 GetMacOSStatusCommentString 都不会返回任何内容,据我所知,它也没有记录在任何头文件中。

要重现此错误,您可以下载 https://github.com/RSully/interframe/archive/3f9eb52c51f4f5ac593c295fc05e7b2771483b18.zip (特定提交链接)。该项目需要 2 个参数:一个输入文件 (mp4) 和一个输出文件 (m4v),如果它有效,它将创建。

简而言之,我正在使用 AVAssetExportSession 编写一个具有 3 个 AVMutableCompositionTrack 和一个 AVMutableVideoComposition 的 AVMutableComposition(它将这 3 个轨道合成为 1 个最终视频)。发生错误是因为我在合成轨道或视频合成指令中所做的事情,我不能完全分辨是哪个,并且根据此错误代码的含义会告诉我从哪个方向开始进一步调试。

编辑:我有 committed仍然导致 -12500 的那段代码的更简单版本。 https://github.com/RSully/interframe/archive/02cae3d127c13e92992d77fa6c54b4ff8f67e394.zip

编辑:我已经向 Apple 提交了错误报告,其中包含示例项目和错误代码。 rdar://16619826

最佳答案

DTS 的响应:

I've since learned that error -12500 is "SourceFrameMissing".

关于objective-c - 什么是 OSStatus -12500?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23035805/

相关文章:

ios - 难以处理 SQLite 中的编码

JavaScript/AppleScript : Get current time of html video

objective-c - 使用 NSData 解析 xml

ios - 运行 iOS 项目时链接器错误

ios - 如何创建带有部分和分组单元格的自定义 UITableView?

android - MacOS android studio NDK 通过使用 ndk.dir 属性进行定位。该方法已被弃用

macos - 混帐桶 : error: Your local changes to the following files would be overwritten by merge

iOS 10 - AVPlayer 在播放视频时显示黑屏

ios - iOS中的视频重叠

ios - AVAssetExportSession fileLengthLimit 被忽略并且 estimatedOutputFileLength 返回 0