Byzanz can be used to screen capture and save it to an animated GIF file. To capture a region of the display, you can pass it the XY coordinates of the top-left corner of the region and the width and height of the region. A more intuitive method would have been to draw a region on the display and have Byzanz capture that.
- Install Byzanz as described here.
We need a tool to mark a region of the display.
xrectselis one such tool and it available with FFcast2. Clone its repository and build the tool:
$ git clone https://github.com/lolilolicon/FFcast2.git $ cd FFcast2 $ make
xrectsel binary to location accessible from your
- Create a Bash script file from the source code for
That is it! To record or screen capture a region of the display for 10 seconds, just invoke the script without any parameters:
Your mouse cursor turns into a cross-hair. Draw the region on the display. A countdown of 10 seconds is shown followed by a beep. Recording begins and ends after 10 seconds. You can find the resulting animated GIF file in
- To provide a different duration of recording or filename, you need to provide both parameters (even if you only need to change one of them):
$ byzanz-record-region 30 foobar.gif
Tried with: Ubuntu 12.04