It's very hard to know from AVFoundation error codes what is the exact error. For instance, I see the following message and don't know what error code means?
-11800/-16364
is the error -16364
wrapped in the AVFoundation
error -11800
(AVErrorUnknown
).
As far as I can tell -16364
is undocumented, but I associate it with timestamp misuses, like trying to encode CMSampleBuffer
s with non strictly monotonic increasing timestamps (repeating or decreasing).
I guess that means the error originates in CoreMedia
or VideoToolbox
or something similar.