# recordwin

Wapper program for vnc2swf and x11vnc.

$Id: recordwin.html,v 1.2 2005/10/29 05:22:06 euske Exp $

## Syntax

`recordwin [-display display_name] [-name window_title] [-id window_id] swf_filename`

## Description

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 -localhost -mouse -viewonly -deferupdate 10 -wait 10 -defer 10`" in background and starts vnc2swf with `-clippinggeometry` and `-nowindow` option, which instructs the program to record only the window you specified.

## Bugs

- This is just a shell script. Error handling is poor.
- By default, x11vnc accepts only one client from network. After the first client disconnects, it exits. However, it accepts a first connection from any computer on the network. Since it is not guaranteed that recordwin can always reach the x11vnc server first, this is potentially dangerous. Binding the server socket to the loopback interface would be safer.

## See Also

- vnc2swf(1)
- x11vnc(1) (from LibVNCServer)