GL: How to capture OpenGL to video on the fly

If you write an OpenGL program, then there is a very high chance that you want to make the video of your OpenGL rendering to share. Usually, people make their program to write out every frame of the OpenGL rendering to files, and encode them to video afterwards. However, there is a way to save both time and space a lot with a minimal code change. Please see Real-Time Video Capture with FFmpeg by Miles Macklin for the details.

Advertisements
GL: How to capture OpenGL to video on the fly