I'm using code similiar to this to pipe OpenGL image data directly to ffmpeg. I'm using this readpixels call:
qglReadPixels( 0, 0, glConfig.vidWidth, glConfig.vidHeight, GL_RGB, GL_UNSIGNED_BYTE, 0 );
however I have to use GL_RGB instead of GL_RGBA. In the ffmpeg command line I change RGBA to RGB24 accordingly. However, the output videos color chaels are messed up (red is swapped with green). I can't seem to find any color formats that are GRB, so is there some way to swap red and green chaels in ffmpeg using colorchaelmixer ?
Thanks.
برچسب:
نویسنده: استخدام کار