AVAssetWriter ErrorCode -15595

Hi,

since i do not know where else to ask for help on this i'll try my luck here.

I'm currently writing my first app with Swift and ran into an error when trying to add a converted CVPixelBuffer to and AVAssetWriterInputPixelBufferAdaptor

Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-15595), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x282a66ca0 {Error Domain=NSOSStatusErrorDomain Code=-15595 "(null)"}}

I could not find any info on code -15595 or anything that might be able to tell me why the buffer is causing issues.

The source buffer is ARKits captured image, which i am trying to write to a video file, which is why i need to convert it to ARGB8888 as far as i could gather from the documentation, please correct me if i am wrong.

It's unclear from the error code alone. Might have something to do with CVPixelBuffer attachments. Please file a report using the Feedback Assistant. At the very least AVFoundation should make sure it provides a descriptive error.

Did you find a solution to this? I am getting the same error code in a similar circumstance.

AVAssetWriter ErrorCode -15595
 
 
Q