LinuxCommandLibrary

byzanz-record

Record screen activity to animated GIF

TLDR

Record the screen and write the recording to a file (by default, byzanz-record will only record for 10 seconds)

$ byzanz-record [path/to/file.[byzanz|flv|gif|ogg|ogv|webm]]
copy

Show information while and after recording
$ byzanz-record [[-v|--verbose]] [path/to/file.[byzanz|flv|gif|ogg|ogv|webm]]
copy

Record the screen for a minute
$ byzanz-record [[-d|--duration]] 60 [path/to/file.[byzanz|flv|gif|ogg|ogv|webm]]
copy

Delay recording for 10 seconds
$ byzanz-record --delay 10 [path/to/file.[byzanz|flv|gif|ogg|ogv|webm]]
copy

SYNOPSIS

byzanz-record [OPTION...] [FILE]

PARAMETERS

-d, --delay=SECONDS
    Initial delay before recording starts (default: 0)

-D, --duration=SECONDS
    Recording length in seconds (default: infinite)

-v, --verbose
    Enable verbose output for debugging

-x, --x=X
    X coordinate of top-left recording corner

-y, --y=Y
    Y coordinate of top-left recording corner

-w, --width=WIDTH
    Width of recording area

-h, --height=HEIGHT
    Height of recording area

--help
    Display usage summary

--version
    Show version information

DESCRIPTION

Byzanz-record is a lightweight command-line utility for capturing screenshots of an X11 desktop or a specified region and compiling them into an animated GIF file. Ideal for short screencasts, tutorials, or web demos, it uses ffmpeg for encoding, optimizing for small file sizes suitable for sharing online.

Invoke it simply with an output filename, and it records the full screen indefinitely until stopped (Ctrl+C). Customize with options for region selection, delay before starting, and fixed duration. Verbose mode aids troubleshooting.

Key strengths:
- Precise region capture via coordinates/ dimensions
- Automatic looping GIF output
- No GUI overhead, script-friendly

Limited to X11 (not Wayland), GIF's 256-color palette suits simple content but may dither complex visuals. Best for brief clips under 30 seconds to avoid large files. Install via apt install byzanz on Debian-based systems.

CAVEATS

X11-only (fails on Wayland); GIFs grow large for long/detailed videos; 256-color limit causes dithering on gradients; rarely updated.

EXAMPLES

Full screen, 10s delay:
byzanz-record -d 10 output.gif

Region 400x300 at (100,100):
byzanz-record -x 100 -y 100 -w 400 -h 300 -D 20 output.gif

INSTALLATION

Ubuntu/Debian: sudo apt install byzanz
Fedora: sudo dnf install byzanz
Requires ffmpeg and ImageMagick.

HISTORY

Developed ~2010 by Philip Corbett for GNOME; last major release 0.3.0 in 2012. Merged into gnome-video-effects briefly; largely unmaintained, replaced by modern tools like peek or ffmpeg pipes.

SEE ALSO

ffmpeg(1), recordmydesktop(1), peek(1)

Copied to clipboard