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
--for | Size | fps | Bitrate | Limit |
|---|---|---|---|---|
| (default) | 1920×1080 | 60 | 8 Mbps | none |
youtube | 1920×1080 | 60 | 12 Mbps | none |
x | 1920×1080 | 30 | 6 Mbps | up to 140 s and 512 MB |
linkedin | 1920×1080 | 30 | 6 Mbps | 3 s to 15 min |
discord | 1280×720 | 30 | 4 Mbps | under 20 MB |
2k | 2560×1440 | 60 | 16 Mbps | none |
4k | 3840×2160 | 60 | 35 Mbps | none |
2kand4kmake 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 10MBkeeps the file under that size. Use it for a README or docs.--format squaremakes a 1080×1080 video from any recording.--format verticalmakes 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
pauseat 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}'| Key | Default | Value |
|---|---|---|
background | aurora | See below |
padding | 0.06 | Space around the window, 0 to 0.3 of the frame |
radius | 14 | Window corner radius, 0 to 48 |
shadow | 0.45 | Window shadow strength, 0 to 1 |
browserBar | true | false hides the window bar |
urlBar | the page URL | Text for the address bar, up to 120 characters, or false to hide it |
cursor | shown | { "show": true, "size": 1, "ripple": true }, size 0.25 to 3 |
zoom | on, up to 2× | See below |
dialogs | true | Draws browser dialogs as cards |
trimIdle | true | Speeds up idle waits. pause, pauseAfter and the ending keep their time |
Background
- A gradient name:
aurora,sunset,ocean,forest,midnightorpaper. - 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 squarefails with exit code 2.
Scenes
Each scene fits every video shape and window size.
| Scene | Look |
|---|---|
mesh | Soft blended clouds of both colors |
glow | A dark base with light glowing out from behind the window |
split | Two tones split by one smooth curve |
dunes | Layered soft waves, from light to deep |
aurora | Soft light streaks on a dark sky |
glass | Soft shapes behind a frosted glass frame around the window |
ripple | Rings spreading out from the window |
contours | Thin map lines |
grid | A fine grid that fades out, with a glow behind the window |
ribbons | Wide bands flowing across |
beams | Light rays from the top corner |
shapes | Big flat circles and a pill on a light base |
halftone | Print-style dots in two corners |
cursor | A 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"] }.
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: falseturns zoom off for the whole video.maxis the closest zoom, from 1.3 to 2.5.holdkeeps 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 see | Fix |
|---|---|
| The zoom is too tight and cuts off the action | Lower 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 space | Lower zoom.max, or "zoom": false on that step |
| The result needs a closer look | A 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 slow | Keep trimIdle on, and shorten pause steps |
| The file is too big | --max-size, or a shorter flow |
Ready-made styles are in examples.