Using VNC is a great way to make movies of a desktop session. It's possible to record a desktop session from any operating system that runs a VNC server, including Linux, Windows and the BSDs. These could be for demonstration, training purposes or advertising. Once the recording has been made, it can be converted to a standard video file using transcode, ready for distribution.

Installing

$ xmkmf -a
$ cd libvncauth; make
$ cd ../vncrec; make

$ cp vncrec /usr/local/bin/

Recording

$ vncserver 

New 'X' desktop is george:1

Starting applications specified in /home/tony/.vnc/xsession
Log file is /home/tony/.vnc/george:1.log

 $ vncserver -geometry 720x576 -depth 8

vncrec -record sample.vnc

vncrec -record sample.vnc 192.168.0.130:1

vncserver -kill :1

Playing back

vncrec -play sample.vnc

Transcoding

transcode -x vnc --use_rgb -i file.vnc -o file.avi -y xvid -k --dvd_access_delay 5 -f 10

printing frame for time = 28.900000 seconds, EMT: 0:00:28, ( 0| 0| 0) 
printing frame for time = 29.000000 seconds, EMT: 0:00:28, ( 0| 0| 0) 
printing frame for time = 29.100000 seconds, EMT: 0:00:29, ( 0| 0| 0) 
printing frame for time = 29.200000 seconds, EMT: 0:00:29, ( 0| 0| 0) 

[tcxpm2rgb.c:334] truncated 16 characters
[tcxpm2rgb.c:334] truncated 16 characters

$ xine file.avi

LinuxHints/RecordingVNC (last edited 2006-11-28 13:23:54 by 86)