record.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 02 Jul 2010 10:45:36 +0300
changeset 432 9ed9bd59c0fd
parent 379 4b3846dd6a01
child 597 55d1fc30ba15
permissions -rwxr-xr-x
Set TMP and TEMP env vars for Cygwin.

-*- mode: outline; coding: utf-8 -*-

* Screen capture.

** Wink.

Using Wink you can capture screenshots, add explanations boxes, buttons,
titles etc and generate a highly effective tutorial for your users.

  http://www.debugmode.com/wink/
                home page

** vnc2flv.

In order to rrecord require VNC server running on host.

  http://www.unixuser.org/~euske/python/vnc2flv/index.html
                home page

** ffmpeg.

  $ ffmpeg -f x11grab -s cif -i :0.0 capture.mpg

** Screenshort movies.

*** ImageMagic and shell script.

  #!/bin/bash
  let iter=1
  while [ "$iter" -le "$stop" ]; do
    import $iter.png
    sleep 1
    let x+=1
  done

If you interesting in capturing specific window - by 'xwininfo' find,
intereesting your window id (hex value) and use command:

  import -window $windowid $iter.png

To quick view result run:

  $ cd $img_dir
  $ animate -delay 20 *.png
  ^C

To compound image together:

  $ convert -delay 20 *.png capture.mng  # license free, multi-image file format
  $ convert -delay 20 *.png capture.gif

You can add text to pictures before compound theirs:

  $ mogrify -fill yellow -draw 'Rectangle 10,10 150,30' -fill black -pointsize 14 \
     -draw 'text 15,25 "by http://example.com"' $iter.png

If screen capturing slow for you use MIFF file format.

Use root flag to capture all screen:

  $ import -window root $iter.png

  http://linuxdevcenter.com/pub/a/linux/2004/03/04/screen_capture_movies.html
                Making Screen-Capture Movies by Robert Bernier