---
name: rolling
description: Record a polished demo video of any Mac app's real window, driven by a script you write or by live computer use. Use when asked to record, film or make a demo or video of an app.
---

# Recording a demo with Rolling

Prefer a script: you think while writing it, so the video has no dead pauses.

1. `rolling check` — both permissions must be on; if not, ask the user to turn them on.
2. Open the app, then `rolling elements --app <App>` to see the labels and
   positions of what you can click.
3. Write a script (see the repo README for every step) and run it:
   `rolling run demo.json --name <name>`. It lands in the user's save folder
   (`rolling folder` prints it); use `--out PATH` only when the user asked for
   a particular place.
4. Look at the result: `ffmpeg -ss <t> -i "$(rolling folder)/<name>/demo.mp4" -frames:v 1 frame.png`
   at a few moments, fix the script, and run again.
5. To change only the look, re-render: `rolling render <name> --background ocean --auto-zoom`.

Recordings: `rolling list --json` shows them (name, path, app, duration,
video). `rolling rename` and `rolling delete` (to the Trash) work only on
Rolling's recordings. Delete only what you made in this task, or what the user
asked you to; never another folder.

Looks are presets: `rolling preset list --json` shows them (built in: studio,
launch, minimal, square, vertical, raw, plus the user's own). Use one with
`--preset NAME` on `run`, `record` or `render`, or `"render": {"preset": "launch"}`
in a script; your other options still apply over it. Prefer the user's saved
presets when they have them. Save a look you settled on with
`rolling preset save NAME [options]` (or `--from <recording>`), and point
recordings at it with `rolling preset apply NAME <dirs>`. Don't overwrite or
delete the user's presets unless asked.

Backgrounds can move: `--background shader:NAME` runs a Metal shader for every
frame (`rolling shader list --json`; built in: drift, waves, halftone,
contours). To make one, `rolling shader new NAME [--from STARTER]` writes
`~/.rolling/shaders/NAME.metal` holding
`float4 background(float2 uv, float2 size, float time)` (uv (0,0) top left,
time in seconds); edit it, then `rolling shader check NAME --png frame.png`
until it compiles and the frame looks right, and look at that PNG before
rendering. Keep shaders cheap (no unbounded loops): they run per pixel per frame.

Script tips:
- Target elements by label (`"click": "Save"`) rather than coordinates.
- Put `pause` after anything that animates or loads, so viewers can read it.
- Use `zoom` with a `duration` on the part that matters; steps keep running.
- To follow something that moves (a dragged card, an animation), use a
  tracking zoom: `{"zoom": {"at": {"x": X, "y": Y}, "track": true, "duration": 6}}`
  with X, Y where it is at that moment (or `"at": "Label"`), or afterwards
  `rolling track <name> --at T --x X --y Y --for 6`.
- Use `size` to give every recording the same window size.
- To narrate, add `{"say": "One short sentence."}` steps: the speech is made
  on the Mac before recording, the next step waits for it (`"overlap": true`
  lets actions run while it speaks), and the render mixes it in with captions
  plus `.srt`/`.vtt`. `"voice"` per step or script (`rolling voice list`),
  `"pace"` 0.5 to 2. Afterwards: `rolling say <name> --at T "text"`;
  live: `rolling mark say "text"` (queues behind a line still being said).
  One voice at a time: `say --at` refuses an overlapping line and names a
  start that fits. Keep lines short and say what the viewer is about to see.
  After rendering, `rolling sync <name>` checks every line is heard where the
  timeline puts it (`--preview --stills DIR` for the studio's preview).
  Narration needs the voice models (about 240 MB, once), which Rolling never
  downloads unasked: without them `say` steps stop with "run `rolling voice
  get`", so run that once (ask the user first if bandwidth matters), then
  retry. Another voice
  afterwards: `rolling say <name> --revoice --voice bm_george`. Caption
  look: `--caption-font rounded --caption-position top --caption-highlight
  '#4ade80'` and the other `--caption-*` options (`rolling` lists them).

When you must drive the app live (computer use), record around it:
`rolling record --app <App> &`, do the work, `rolling mark zoom` at key
moments, then `rolling stop`. Pauses over 1.5 s are cut and clicks zoom in
automatically. Always `rolling stop` when you're done. A recording also stops
itself after 30 min (`--max SECONDS` for longer), after 10 min with nothing
happening (`--idle-stop`), or when the disk nears full (the user's
`rolling settings` set these defaults; don't change them unasked).
`--ignore-space` records or renders below the space floors; use it only
when the user asks. Check
`rolling status --json` if you're unsure whether one is still running: its
`phase` is starting, recording, stopping, saved, rendering, done or failed.
Only one records at a time.
