Lolcap is a demo capturing tool for linux.
It hooks for SDL_gl buffers swap in order to create pngs of the output, and it captures SDL_sound / alsa to create a .wav of the intro.
The main purpose of lolcap is that it hooks SDL_GetTicks in order to make your demo an off-line renderer.