Skip to Content
steep

Reel CLI vs VHS

Why to run your VHS tapes with reel, what reel adds, and how to switch.

If you make terminal demos with VHS, you already have what reel needs. reel run reads VHS tapes, so nearly all the ones you have run as they are. Everything on this page is then one Set, one tape command, or one flag away.

$ reel run demo.tape
demo.tape: wrote demo.gif
The tea shop driven from a tape, with captions at the top and callouts pointing at what to press
A tape with captions and callouts, which VHS has no way to draw.Open in the inspector ↗

At a glance

VHSreel
Runs .tape filesYesYes, nearly all of them unchanged
Needs installedffmpeg, ttyd, and a headless ChromiumNothing, apart from ffmpeg for MP4 and WebM
A 41-second tape to GIF55s, 31s of CPU, and 3.1 GiB of memory41s, 1.1s of CPU, and 100 MiB
FontsThe ones installed where it runsJetBrains Mono, Nerd Font icons, and color emoji, built in
WaitsA regular expressionA regular expression or plain text, and mouse commands wait for their target
MouseNoClick, hover, drag, and wheel, drawn in the recording
Keys pressed, notificationsNoA key overlay and toasts
Zoom, highlight, redactionNoYes, at a moment or between two marks
Captions and calloutsNoYes, with pauses for reading
Title cards, pauses at a markNoYes
Progress bars, program status, scrollbars, failed commandsNoDrawn from what the program sends, some on request
Render again without running againNoFrom a .cast, on any machine
TestsWrites text output for you to comparereel test, with waits, snapshots, and exit codes, and nothing rendered
Drive a program from a script or an AI agentNoreel session

One binary, no browser

VHS runs your shell in ttyd, takes screenshots of it in a headless Chromium, and hands those to ffmpeg. That's three programs to have on every laptop and CI runner that makes demos, and a browser to start for every tape.

reel has its own terminal emulator, a build of libghostty-vt, and its own renderer, compiled into one binary. It encodes GIF, WebP, PNG, and asciicast itself, so those need nothing else. Only MP4 and WebM need ffmpeg. There's no browser to download, start, or wait for, and no web page between your program and the recording.

See installation, and how a recording becomes files.

Speed

Both run a tape in real time, so neither can finish before the tape does. What differs is the time after it, and what it takes to get there. reel encodes each frame as it records, so its files are written by the time the tape ends. VHS captures frames from the browser as it records, and encodes them with ffmpeg once the tape is over, which for a GIF takes longer the longer the tape is.

The numbers below come from three tapes, each run five times with both tools, after a warmup. They use only VHS's own commands and set Framerate 50, VHS's default, so both capture at the same rate.

The long tape, 41.1s long, as GIF:

Done after the tape ends 0.09s VHS 14.2s
CPU time 1.1s VHS 31.5s · 28× less
Peak memory 100 MiB VHS 3.1 GiB · 32× less
File size 370 KiB VHS 758 KiB · 2.1× smaller

Time to finish

Both play the tape in real time. The colored end of each bar is the time after it.

reel VHS The tape playing
Short, 3.5s: one command
Medium, 19.4s: a few commands with colored output
Long, 41.1s: lots of output, then less and vim

CPU time

Short
Medium
Long

Peak memory

Short
Medium
Long

File size

Short
Medium
Long
The numbers, as a table
TapeOutputToolTimeAfter the tapeCPUMemorySize
Short, 3.5sGIFreel3.5s ± <0.01s+0.06s0.14s83 MiB, 2 processes10 KiB
Short, 3.5sGIFVHS5.0s ± 0.02s+1.6s2.9s430 MiB, 12 processes18 KiB
Medium, 19.4sGIFreel19.5s ± <0.01s+0.08s0.60s92 MiB, 3 processes167 KiB
Medium, 19.4sGIFVHS26.5s ± 0.02s+7.1s15.4s1.6 GiB, 13 processes333 KiB
Long, 41.1sGIFreel41.2s ± <0.01s+0.09s1.1s100 MiB, 3 processes370 KiB
Long, 41.1sGIFVHS55.3s ± 0.05s+14.2s31.5s3.1 GiB, 13 processes758 KiB

CPU is user and system time, of the command and the processes it waited for. Memory is from one more run of each, as the peak of the PSS summed over the whole process tree: up to 13 processes for VHS, and up to 4 for reel. MP4 memory is mostly ffmpeg's, for both.

These ran on Linux 7.0, on an AMD Ryzen AI Max+ 395 with 32 threads, with VHS 0.12.1, ttyd 1.7.7, Chromium 158, reel v0.0.0-alpha.19, ffmpeg 9.0.2, and hyperfine 2.0.0, in December 2026. To run them on your machine, on Linux, with vhs, ttyd, reel, ffmpeg, hyperfine, and Python 3 installed, from a clone of the repository:

task docs:bench

The script prints each of these numbers, in one table.

Fonts and icons with nothing to install

A browser draws with the fonts installed on the machine, so a VHS recording changes with whoever runs it, and an icon from a Nerd Font is a box unless that machine has a patched font installed.

reel embeds JetBrains Mono, the Nerd Font symbols, and a color emoji set. Icons from a prompt like Starship, or from a file manager like yazi, draw with the default font, and a recording looks the same on your laptop and in CI. --font uses any font you have installed, and reel fonts lists them. See Fonts.

More you can say in a tape

reel adds commands and settings to the tape language. VHS can't read them, but reel still reads the VHS ones.

Wait for what you mean

Wait "Saved" waits for that text, with no regular expression to escape, and Wait+Screen "Saved" looks for it anywhere on the screen. Mouse commands wait for the text they point at, so they don't need a Wait of their own. See Waiting.

Type "teashop" Enter
Wait+Screen "Sencha"
Down Enter
Wait+Screen@30s "is ready"

Use the mouse

Click, Hover, Drag, and Wheel point at a cell or at text on the screen, and Set MouseOverlay true draws the pointer and its clicks, so it doesn't look like the program changes by itself. See Mouse.

The shop driven with the mouse, with the pointer and its clicks drawn

Show what was pressed

Set KeyOverlay true shows each key as it's pressed, combinations included, so someone watching can follow along. Set Toasts true shows the notifications your program sends, and its clipboard writes. See Keys and Toasts.

The shop with chips in the corner showing the keys as they are pressed
Open in the inspector ↗

Point at what matters

Highlight dims everything but part of the screen, and Zoom eases in on it. Caption puts a line of text at the top or bottom, and Callout puts a box next to cells of the screen, with a caret pointing at them. Each takes a region: rows, a rectangle, some text, or a regular expression.

Mark "brew:start"
Zoom "cells=1,10,38,14;between=brew:start,brew:done"
Callout "text=Oolong;spotlight;pause=2s" "Press enter to brew it"
Enter
Wait+Screen "is ready"
Mark "brew:done"
The screen dimmed except for one row, during a brew
Highlight
The view easing in on the status area during a brew
Zoom

Pause on purpose

In VHS, a pause is a Sleep in the tape, decided when you record. reel can also pause the playback when it renders, with a badge, at a mark or at the end. A caption or callout can pause for as long as it takes to read, with pause=auto, and Set CaptionPause auto does that for every caption. Title cards go before and after. See Pauses, Cards, and Captions.

reel run demo.tape --pause-at brew:start --hold-last 2s --intro 1s --intro-line "The Tea Shop"

Hide secrets

Redact "env=GITHUB_TOKEN" blurs, blocks, or replaces a token wherever it shows, and --redact-regexp hides anything that matches a pattern. See Secrets.

Draws what your terminal draws

Modern programs tell their terminal more than what to show, and reel draws that too:

  • Progress bars, from OSC 9;4, which a Bubble Tea program can send.
  • Program status, from OSC 7501, as an icon, title, and message in the title bar.
  • A scrollbar, with a tick for each command, and a badge on the row of each command that exited with an error, from OSC 133 and its exit codes.
  • Hyperlinks underlined, from OSC 8, and a flash for the bell.
  • Kitty graphics.

Progress bars, program status, and Kitty graphics are on by default. The rest are a flag each, --scrollbar, --prompt-marks, --link-underline, and --bell, or Set Scrollbar true and the like in a tape.

A shell's output with a scrollbar, a progress bar, and a program status in the title
Scrollbar, progress, and program status
The same, with a badge on the failed command's row and ticks on the scrollbar
A badge on a failed command

See Terminal indicators, and every sequence reel tracks.

Record once, render any time

VHS writes the finished files. To change the window, the frame rate, or the format, you run the tape again, on a machine with your program, its build tools, and whatever it talks to.

reel can keep the recording separate from how it looks. A tape's .cast output is an asciicast file, which asciinema and its player read. reel stores more in it: marks, captions, mouse input, and effects. reel export renders it again later, as anything, with any look or effect:

# Where your program and its tools are:
reel run demo.tape -o demo.cast

# Anywhere, later, such as the job that builds your docs:
reel export demo.cast -o demo.webp -o demo.mp4 --chrome --keys --margin 64 --backdrop "135deg #674eff #ff6b9d" --shadow "0 18 40"

A .cast is small, so it can be checked in, and the docs build doesn't need your development tools. It holds everything the program drew, so a tape that uses Hide or Redact writes it in a separate run. You can also cut it between marks, take a still at a mark, play it in your terminal, or step through every event in the inspector.

Tapes as tests

VHS can write the screen as text, to compare with a file you keep, but it still records the whole tape through the browser to do it.

reel test runs tapes and renders nothing, so it's fast. A Wait that times out or an Assert that fails fails the tape, Snapshot NAME compares the screen with a golden file, and --update writes them. The exit code is 3 when a tape fails, so it works in CI as is, and --artifacts writes a .cast and a GIF of each failure, to open in the inspector.

reel test tests/ --artifacts out/

The same tape can be a test in CI and a demo in your README.

Beyond tapes

  • reel rec records you using a program, into a .cast to render later. VHS's record writes a tape of what you typed.
  • reel session runs a program in the background and drives it one command at a time, so a shell script or an AI agent can use any TUI, wait for what it expects, and save the recording.
  • reel attach renders a script(1) recording.
  • -o repeats, so one run writes a GIF, an MP4, and stills at each mark, with options such as a size limit for the GIF, and up to 240 frames a second for video.
  • Tapes you didn't write can be run with commands denied, and held to limits on time and size.
  • For Go programs, the same recordings, formats, and effects are in the reel library and in steep, a test harness that records failures.

Switching

Run a tape you have:

reel run demo.tape

What's not supported lists the few VHS features reel doesn't run, and reel warns about those it treats differently.

Add what VHS couldn't do:

Set KeyOverlay true
Set MouseOverlay true
Output demo.webp
Output demo.cast

The quickstart goes further, and Tapes has every command and setting.

Last updated on

On this page