Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to screen capture to GIF using Byzanz

📅 2014-Jan-24 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

Byzanz is a command-line tool that can be used to screen capture and save it to an animated GIF file.

To install Byzanz on Ubuntu, add the PPA and install the package:

<code>$ sudo add-apt-repository ppa:fossfreedom/byzanz
$ sudo apt-get update
$ sudo apt-get install byzanz
</code>

You capture using the command byzanz-record. By default, it captures for 10 seconds. For example:

<code>$ byzanz-record foobar.gif
</code>

To add a delay of 5 seconds before starting the screen capture:

<code>$ byzanz-record --delay=5 foobar.gif
</code>

Tried with: Byzanz 0.3.0 and Ubuntu 12.04