Wapper program for vnc2swf and x11vnc.
recordwin
[ -display display_name ]
[ -name window_title ]
[ -id window_id ]
swf_filename
recordwin allows you to record a specific window in the current screen instead of the entire display. This is a wrapper program for vnc2swf and x11vnc. x11vnc acts is a VNC server which sends the images of the current X11 screen to vnc2swf.
First it invokes xwininfo program to get the position of a target window. If no option is given, it prompts a user to specify a window with a cross cursor. Then recordwin runs x11vnc in background with the following command line:
x11vnc -mouse -viewonly -deferupdate 10 -wait 10 -defer 10
Finally recordwin starts vnc2swf with
-clippinggeometry
option, which instructs the program
to record only the window you specified.