I\'m using glReadPixels to read data into a CVPixelBufferRef. I use the CVPixelBufferRef as the input into an AVAssetWriter
glReadPixels
CVPixelBufferRef
AVAssetWriter
It's kind of a shot in the dark, but have you tried GL_BGRA for glReadPixels with kCVPixelFormatType_32BGRA for CVPixelBufferCreate?
GL_BGRA
kCVPixelFormatType_32BGRA
CVPixelBufferCreate
I suggest this because Technical Q&A QA1501 doesn't list any RGBA format as supported.