OfxPostProcessing GL_RGBA into a GL_RGB FBO buffer

#1

Hello I am trying to use an OFXVideoRecorder that I modified. For it to work, I need to allocate FBO as GL_RGB (the ffmpeg format is RGB24)
If I understand OFXPostProcessing correclty, I draw to a screen FBO that is allocated GL_RGB
then I run the post processing
post.begin()
screen.draw(0,0);
post.end();

It doesnt work and I need to probably convert GL_RGBA that postprocessing does to GL_RGB
any ideas? Do I gotta hack something with OFX_qtutils?

#2

Im one step closer from some sage advice
fborgba.allocate(w,h,GL_RGBA)
fbo.allocate(GL_RGB)

draw postprocessing into fborgba
then
fbo.begin();
fborgba.draw(0,0);
fbo.end();

this yields ONE good frame of it

#3

ok i figured it out i was enabledepthbuffer() etc. shoudl be inside the fborgba.begin not outside