Vnc2Swf basically records your vnc session. It requires a vnc server et viewer to be installed. The video is saved as a swf file.
If you wish to create a movie of your complete desktop you can run it as follows:
x11vnc -localhost -viewonly &
If you'd rather share a single window run:
x11vnc -localhost -viewonly -id pick &
This will allow you to click upon the window you wish to share with your mouse - after you have done so your selected window will be shared and made available.
Now that you have a running VNC server upon your local host you can create the movie. To do so execute:
vnc2swf -nowindow -o myoutput.swf localhost
-Taken from: Debian Administration :: Creating training movies with Vnc2Swf