我正在使用AVAssetWriter将原始视频数据(H264 / Mpeg4)流写入文件,而无需重新编码。成功写入前两个数据块后,出现错误:
let isAppended = videoInput!.append(sampleBuffer!)
Error Domain=AVFoundationErrorDomain Code=-11800 \"The operation could not be completed\"
UserInfo={NSLocalizedFailureReason=An unknown error occurred (-16351),
NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x1c085dee0
{Error Domain=NSOSStatusErrorDomain Code=-16351 \"(null)\"}}
找不到有关该错误含义和解决方法的任何文档?