Make great videos

Look and size

run records and renders. render renders a recording again, with a new size or look, in seconds and without recording again.

npx cursorcam render cursorcam-output/<run> --for x --style '{"background":"sunset"}'

Raw frames are kept for 7 days, so you can render again. --clean deletes them at once.

Where it will be posted

--forSizefpsBitrateLimit
(default)1920×1080608 Mbpsnone
youtube1920×10806012 Mbpsnone
x1920×1080306 Mbpsup to 140 s and 512 MB
linkedin1920×1080306 Mbps3 s to 15 min
discord1280×720304 Mbpsunder 20 MB
2k2560×14406016 Mbpsnone
4k3840×21606035 Mbpsnone
  • 2k and 4k make a bigger video from the same recording, not a sharper one. The page is recorded at 2560×1600, so a 4K video scales it up: about 1.1 times with no zoom, and about 2.3 times in a 2× zoom.
  • --max-size 10MB keeps the file under that size. Use it for a README or docs.
  • --format square makes a 1080×1080 video from any recording.
  • --format vertical makes a 1080×1920 video. It needs a phone recording, with "viewport": "phone" in the steps.
  • A video too long for its preset fails with exit code 2. Shorten the steps, or use the default.
  • A LinkedIn video under 3 s fails too. Add a pause at the end.

Each render writes a video and a poster, its first frame, named after the preset and format, like video-x.mp4 and poster-x.jpg.

Style

Pass a JSON file, or inline JSON:

npx cursorcam run steps.json --style brand.json
npx cursorcam run steps.json --style '{"background":"midnight","padding":0.08}'
KeyDefaultValue
backgroundauroraSee below
padding0.06Space around the window, 0 to 0.3 of the frame
radius14Window corner radius, 0 to 48
shadow0.45Window shadow strength, 0 to 1
browserBartruefalse hides the window bar
urlBarthe page URLText for the address bar, up to 120 characters, or false to hide it
cursorshown{ "show": true, "size": 1, "ripple": true }, size 0.25 to 3
zoomon, up to 2×See below
dialogstrueDraws browser dialogs as cards
trimIdletrueSpeeds up idle waits. pause, pauseAfter and the ending keep their time

Background

  • A gradient name: aurora, sunset, ocean, forest, midnight or paper.
  • A hex color, like "#0f172a".
  • A custom gradient: { "from": "#7c3aed", "to": "#ec4899", "angle": 135 }.
  • An image: { "image": "brand/bg.png" }, a PNG, JPEG or WebP file that covers the frame. A relative path starts from the style file's folder, and ~/ is your home folder.
  • A scene drawn from two colors: { "scene": "glow", "colors": "indigo" }.
  • "none": no background. The page fills the whole video, with no padding, window bar, corners or shadow. The video takes the shape of the recording, so nothing is cropped: 1728×1080 from a desktop recording. A square video needs a background, so "none" with --format square fails with exit code 2.

Scenes

Each scene fits every video shape and window size.

SceneLook
meshSoft blended clouds of both colors
glowA dark base with light glowing out from behind the window
splitTwo tones split by one smooth curve
dunesLayered soft waves, from light to deep
auroraSoft light streaks on a dark sky
glassSoft shapes behind a frosted glass frame around the window
rippleRings spreading out from the window
contoursThin map lines
gridA fine grid that fades out, with a glow behind the window
ribbonsWide bands flowing across
beamsLight rays from the top corner
shapesBig flat circles and a pill on a light base
halftonePrint-style dots in two corners
cursorA giant, faint cursor with click rings

colors is a palette, indigo, iris, ocean, teal, plum, sunset, graphite, peach or paper, indigo by default. Or give two hex colors, deep then light: { "scene": "dunes", "colors": ["#1e3a8a", "#38bdf8"] }.

See every scene in every palettePick one and copy its style.

Zoom

"zoom": { "enabled": true, "max": 2, "hold": 0 }

The zoom moves the whole window toward the viewer: the window, its bar and its shadow grow past the frame, and the background stays in place. The page is never cropped inside a window of fixed size.

  • enabled: false turns zoom off for the whole video.
  • max is the closest zoom, from 1.3 to 2.5.
  • hold keeps the zoom for that many ms after each action, up to 5000.

To change one step instead, set zoom on it in the steps file.

Fixes from the stills

What you seeFix
The zoom is too tight and cuts off the actionLower zoom.max, or "zoom": 1.3 on that step
The zoom hides something viewers need"zoom": false on that step
A zoomed shot is mostly empty spaceLower zoom.max, or "zoom": false on that step
The result needs a closer lookA hover on it with "zoom": 1.5 and pauseAfter
The camera zooms out too soon after a click"zoom": { "hold": 1000 }
The cursor is too big or too small"cursor": { "size": 0.6 } or 1.4. It grows with the zoom, like the page
The address bar shows localhost"urlBar": "app.example.com"
Long waits look slowKeep trimIdle on, and shorten pause steps
The file is too big--max-size, or a shorter flow

Ready-made styles are in examples.