qx11grab is an open source systray program written in Qt4 that uses FFmpeg for recording X11 desktop windows. It grabs window dimensions with xevent and prepares the command-line for FFmpeg with configuration options.

Befor installing qx11grab check if FFmpeg supports this feature, with the following command: