I'm using ffmpeg's x11grab to do some screencasting. It works pretty well except on 3D stuff. In particular it seems like 3D draw areas flicker in and out. You can see an example of it here.
The issue is present even when I capture only the screen (i.e., not adding in all the other fancy stuff and the webcam capture).
I've done a lot of googling on this issue and have found people with a similar issue, but no solution. Many suggest that it is due to OpenGL rendering directly to the hardware and bypassing X11 entirely.
Does anyone know of a way to deal with this? If it matters I'm using an nVidia graphics card.