I am working on a project with AVFoundation and am currently getting the following error:
Domain error = AVFoundationErrorDomain Code = -11800 "Operation cannot be completed" UserInfo = 0x10021ee80 {NSUnderlyingError = 0x10015cee0 "Operation cannot be completed. (Error OSStatus -12500.)", NSLocalizedFailureReason = An unknown error occurred (- 12500) Operation could not be completed}
Both GetMacOSStatusErrorString and GetMacOSStatusCommentString do not return anything, and they are not documented in any header files from what I can say.
To reproduce this error, you can download https://github.com/RSully/interframe/archive/3f9eb52c51f4f5ac593c295fc05e7b2771483b18.zip (associated with a specific post). The project expects 2 arguments: the input file (mp4) and the output file (m4v), which, if it works, will create.
In a nutshell, I use AVAssetExportSession to record AVMutableComposition with 3 AVMutableCompositionTracks and AVMutableVideoComposition (which would combine these 3 tracks into 1 final video). The error occurs due to what I do in my compositional tracks or video compilation instructions, I can’t say which one, and depending on what this error code means, will tell me in which direction to start debugging further .
: , -12500. https://github.com/RSully/interframe/archive/02cae3d127c13e92992d77fa6c54b4ff8f67e394.zip
: Apple . rdar://16619826