i have an oF project in which I render a glsl fragment shader -> screen via the ofxFX addon.
Now, I want to render the screen -> video file, either via
- grabbing screen pixels and writing to a video file
- or directly writing gpu buffer to a video file
I have tried the ofxVideoRecorder addon for grabbing the screen pixels each frame and writing to a video file. But the output is not correct. It shows a portion of the image repeated and in wrong colors. Probably because of the addon’s limitation of 8bit rgb while the fragment shader uses 32bit rgba.
- Any chance to do this in oF
- What would be the traditional way to render fragment shaders or general openGL content to video files (outside the oF world)