I have been playing around with compiz and compiz-fuson for a while now. And I just found xvidcap.
xvidcap enables you to grab a movie of your desktop and save it as (among other things) mpeg, avi and swf…
This is my first example:
mpeg-file (22 MB)