Post

Replies

Boosts

Views

Activity

Comment on CMSampleBufferSetDataBufferFromAudioBufferList returning -12731
Since I just spent far too long, once again stuck with this error, for posterity it's worth noting that: For non-interleaved pcm audio the mBytesPerFrame value should be the number of bytes for a single channel. The header comment for mBytesPerFrame itself is not very clear, but you can see this in FillOutASBDForLPCM() in CoreAudioBaseTypes.h for example. This ends up failing check #10 above.
Aug ’21
Comment on AVAssetWriter failed on macOS 12.0.01/iOS15.1.1 with error code -11800 and underlying code -17771
I've seen this error pop up for a handful of users in the past year, and I've looked and I see that the sample buffers I am handing to AVAssetWriter also have no duration. It's working well over 99% of the time, so there's some smaaaall edge case that must be occurring. As far as I understand, there's no requirement to ever specify the duration of a frame. @ Media Engineer can you shed some light on what the -17771 error means a bit more specifically?
Sep ’22