# vidmake documentation (v0.2.1) > Complete docs for vidmake, generated from https://vidmake.app. Each section starts with its source URL. --- Source: https://vidmake.app/docs/ # Introduction > vidmake renders video from declarative JSON compositions, with a CLI built for AI agents to validate, inspect and look at every frame before rendering. vidmake is a command-line tool, written in Rust, that turns a JSON file into a video. You describe compositions, layers and animation as data; vidmake compiles that into a render tree and draws every frame. There is no editor, timeline UI or browser. Instead, the CLI gives you (or your agent) precise ways to check the work: validation with suggestions, a timeline, per-frame layout inspection, animation traces, single stills and storyboard contact sheets. **Demo: JSON on the left, the frame it describes on the right** (rendered video: https://vidmake.app/media/start-hero.mp4) ```json { "fonts": [ { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" }, { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf" }, { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" } ], "compositions": [{ "id": "hero", "description": "JSON on the left, the frame it describes on the right", "width": 1280, "height": 720, "fps": 30, "duration": "5s", "background": { "type": "radial", "center": [0.7, 0.45], "radius": 0.9, "stops": ["#f4f1ea", "#e9e4d8"] }, "layers": [ { "id": "card", "type": "rect", "x": 340, "y": "50%", "width": 560, "height": 300, "cornerRadius": 3, "fill": "#fbf9f4", "stroke": "#161412", "strokeWidth": 2, "enter": "fadeRight" }, { "id": "code", "type": "text", "font": "JetBrains Mono", "fontSize": 24, "lineHeight": 1.6, "align": "left", "whiteSpace": "pre", "anchor": "left", "x": 96, "y": "50%", "fill": "#8a857a", "reveal": { "from": 0, "to": 1, "start": "0.5s", "duration": "1.5s", "ease": "linear" }, "text": [ "{ ", { "text": "\"type\"", "fill": "#4a4640" }, ": ", { "text": "\"text\"", "fill": "#161412", "fontWeight": 700 }, ",\n ", { "text": "\"text\"", "fill": "#4a4640" }, ": ", { "text": "\"Motion, written.\"", "fill": "#c92a26", "fontWeight": 700 }, ",\n ", { "text": "\"font\"", "fill": "#4a4640" }, ": ", { "text": "\"Schibsted Grotesk\"", "fill": "#161412", "fontWeight": 700 }, ",\n ", { "text": "\"stagger\"", "fill": "#4a4640" }, ": { ", { "text": "\"by\"", "fill": "#4a4640" }, ": ", { "text": "\"char\"", "fill": "#161412", "fontWeight": 700 }, " } }" ] }, { "id": "cursor", "type": "rect", "width": 3, "height": 26, "x": 4, "fill": "#161412", "attach": "code", "opacity": "=floor(t * 2.5) % 2", "lint": { "ignore": ["invisible"] } }, { "id": "arrow", "type": "line", "points": [[0, 0], [56, 0]], "x": 672, "y": "50%", "stroke": "#161412", "strokeWidth": 3, "drawEnd": { "from": 0, "to": 1, "duration": "0.4s" }, "start": "1.9s" }, { "id": "title", "type": "text", "text": ["Motion,\n", { "text": "written.", "italic": true, "fontWeight": 400 }], "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 104, "letterSpacing": -4.5, "lineHeight": 0.95, "fill": "#161412", "x": 975, "y": "43%", "start": "2.2s", "stagger": { "by": "char", "type": "fadeUp", "each": "35ms" } }, { "id": "rule", "type": "line", "points": [[0, 0], [360, 0]], "x": 975, "y": "62%", "stroke": "#c92a26", "strokeWidth": 4, "start": "2.6s", "drawEnd": { "from": 0, "to": 1, "duration": "0.8s", "ease": "easeOutCubic" } }, { "id": "tag", "type": "text", "text": "vidmake · JSON in, video out", "font": "JetBrains Mono", "fontSize": 15, "letterSpacing": 2.4, "uppercase": true, "fill": "#8a857a", "x": 975, "y": "68%", "start": "3s", "enter": "fadeUp" } ] }] } ``` ## Why vidmake exists [Remotion](https://www.remotion.dev) makes videos from React code and gives people a Studio to preview them. That works well for humans, but an AI agent can't watch a Studio preview and has to get a whole React and browser toolchain right first. An agent needs three things instead: - **A format it can write reliably.** A vidmake project is one strict JSON file. Unknown fields are rejected with a "did you mean" suggestion, and compile errors name the composition, the layer id and the field. - **Feedback it can read.** `validate`, `timeline`, `inspect` and `trace` describe the video in words and numbers, `analyze` describes the music it will move to, and all of them can print JSON. - **A way to see.** `storyboard` and `still` render any frame to a PNG the agent can open. Every frame is a pure function of time, so any frame can be checked on its own, in any order. The concepts map closely to Remotion (compositions, sequences, series and transitions, springs, input props, components), so if you know one you can read the other. See [Coming from Remotion](https://vidmake.app/docs/remotion.md) for the full mapping. | | Remotion | vidmake | |---|---|---| | You write | React components (TSX) | JSON data | | Preview | Studio in a browser | `storyboard`, `still`, `inspect`, `timeline`, `trace` | | Runtime | Node.js and a headless browser | one native Mac app | | Errors | JavaScript stack traces | the layer id, the field and a suggested fix | | Timing | ``, ``, `useCurrentFrame()` | `start`/`duration`, `series` groups, `t`/`f` in expressions | ## The loop at a glance Every vidmake project is built the same way, whether a person or an agent is driving: 1. **Write** `project.json`: [compositions](https://vidmake.app/docs/compositions.md) containing [layers](https://vidmake.app/docs/layers.md), each with an `id`. 2. **Validate** with `vidmake validate project.json`: schema, assets, fonts, expressions and a [layout lint](https://vidmake.app/docs/lint.md). 3. **Check timing** with `vidmake timeline project.json`: when every layer is on screen. 4. **Look** with `vidmake storyboard project.json -o sb.png`: a labeled grid of frames. 5. **Measure** with `vidmake inspect project.json -t 2s` and `vidmake trace project.json -l title`: positions, boxes and curves as numbers. 6. **Render** with `vidmake render project.json -o out/video.mp4`. Small fixes don't need a text editor: `vidmake set project.json title.fontSize 96` edits one value and refuses to save it if the project would no longer compile. [Editing](https://vidmake.app/docs/editing.md) covers `get`, `set`, `unset`, `add` and `rm`. ## A first look This is a complete project. The title's letters blur in one after another, and the ring draws itself: ```json title="title.json" { "id": "main", "width": 1920, "height": 1080, "fps": 30, "duration": "5s", "props": { "title": "Hello" }, "background": { "type": "linear", "angle": 135, "stops": ["#f4f1ea", "#e9e4d8"] }, "layers": [ { "id": "title", "type": "text", "text": "{{title}}", "fontSize": 120, "fontWeight": 900, "fill": "#161412", "enter": { "from": { "opacity": 0, "y": "0.3em", "blur": "0.15em" } }, "stagger": "char", "exit": "fade" }, { "id": "ring", "type": "arc", "y": "75%", "width": 120, "stroke": "#c92a26", "strokeWidth": 12, "endAngle": { "from": 0, "to": 360, "duration": "3s" }, "enter": "pop" } ] } ``` ```bash vidmake validate title.json vidmake storyboard title.json -o sb.png vidmake render title.json -o out/title.mp4 -p title="Launch day" ``` The `{{title}}` placeholder is an input [prop](https://vidmake.app/docs/props.md), overridden here from the command line. The [quickstart](https://vidmake.app/docs/quickstart.md) walks through a project like this one step by step. ## What you can make - **Layers**: [shapes](https://vidmake.app/docs/shapes.md) (rect, ellipse, polygon, star, arc), [paths and lines](https://vidmake.app/docs/paths.md) that draw themselves on stroke by stroke, [text](https://vidmake.app/docs/text.md) with wrapping, rich spans (color, weight, italic, font) and per-letter stagger, [images](https://vidmake.app/docs/images.md) (including sharp SVG), [video](https://vidmake.app/docs/video.md), [audio](https://vidmake.app/docs/audio.md), [groups](https://vidmake.app/docs/groups.md) with flexbox-style layout, reusable [components](https://vidmake.app/docs/components.md), [captions](https://vidmake.app/docs/captions.md), [waveforms](https://vidmake.app/docs/waveform.md) and [particles](https://vidmake.app/docs/particles.md). - **Motion**: [keyframes, tweens and springs](https://vidmake.app/docs/animation.md), 30+ [easings](https://vidmake.app/docs/easing.md), [expressions](https://vidmake.app/docs/expressions.md) like `"=h/2 + sin(t*2)*40"`, [audio-reactive values](https://vidmake.app/docs/audio-reactive.md), [enter and exit presets](https://vidmake.app/docs/presets.md) on springs, [stagger](https://vidmake.app/docs/text.md#stagger) for text, groups and copies, [repeat](https://vidmake.app/docs/repeat.md) and [attach](https://vidmake.app/docs/attach.md). - **Structure**: [series with transitions](https://vidmake.app/docs/series.md), [props](https://vidmake.app/docs/props.md) for templating, multiple [compositions](https://vidmake.app/docs/compositions.md) in one file. - **Look**: a [theme](https://vidmake.app/docs/theme.md) of colors, type styles and motion with modes, [gradients and colors](https://vidmake.app/docs/colors.md), [effects](https://vidmake.app/docs/effects.md) (shadow, blur, glow, grain, 3D tilt, blend modes, motion blur) and [masks](https://vidmake.app/docs/masks.md). - **Output**: MP4 (H.264/H.265), WebM (VP9, with alpha), MOV (ProRes, with alpha), GIF, PNG sequences and MP3/WAV/M4A audio. See [Rendering](https://vidmake.app/docs/rendering.md). > [!AGENT] > If you are an AI agent, start with [For AI agents](https://vidmake.app/docs/agents.md). It explains the loop above in detail > and how to read each command's output. `vidmake docs` prints the complete format reference in one go, > and [`/llms-full.txt`](https://vidmake.app/llms-full.txt) has every page of these docs as plain text. ## Explore the docs ### Getting started - [Installation](https://vidmake.app/docs/installation.md) The app, your license key, the command and updates. - [Licensing](https://vidmake.app/docs/licensing.md) One payment, every update of your major version, and the upgrade discount. - [Quickstart](https://vidmake.app/docs/quickstart.md) Your first video: init, validate, storyboard, edit, render. - [For AI agents](https://vidmake.app/docs/agents.md) The agent loop in depth, `--json` output and error messages. - [Core concepts](https://vidmake.app/docs/concepts.md) Projects, the layer tree, coordinates, anchors and the time model. ### Compositions - [Compositions](https://vidmake.app/docs/compositions.md) The project file, fonts and every composition field. - [Time](https://vidmake.app/docs/time.md) Frames, `"1.5s"`, `"500ms"`, `"45f"`, `"1:02.5"` and layer-local time. - [Series and transitions](https://vidmake.app/docs/series.md) Scenes back to back, with fades, slides, wipes and zooms. - [Props](https://vidmake.app/docs/props.md) `{{name}}` templating and overrides from the command line. ### Layers - [Layers](https://vidmake.app/docs/layers.md) Fields every layer shares: timing, transform, style. - [Shapes](https://vidmake.app/docs/shapes.md) rect, ellipse, polygon, star and arc. - [Paths and lines](https://vidmake.app/docs/paths.md) SVG path data, polylines and draw-on animation. - [Text](https://vidmake.app/docs/text.md) Fonts, wrapping, rich text, counters and stagger. - [Images](https://vidmake.app/docs/images.md) PNG, JPEG, WebP, GIF and sharp SVG. - [Video](https://vidmake.app/docs/video.md) Trimming, speed, looping, volume and fit. - [Audio](https://vidmake.app/docs/audio.md) Music and sound with fades and volume curves. - [Groups](https://vidmake.app/docs/groups.md) Nesting, clipping and flexbox-style layout. - [Components](https://vidmake.app/docs/components.md) Reusable compositions with `use`. - [Captions](https://vidmake.app/docs/captions.md) SRT, VTT and Whisper JSON with word highlighting. - [Waveform](https://vidmake.app/docs/waveform.md) Spectrum bars and oscilloscope lines. - [Particles](https://vidmake.app/docs/particles.md) A deterministic particle emitter. ### Motion - [Animation](https://vidmake.app/docs/animation.md) Keyframes, tweens and springs. - [Easing](https://vidmake.app/docs/easing.md) Every easing curve, springs and motion tokens. - [Expressions](https://vidmake.app/docs/expressions.md) Per-frame math with `=...` and live text with `${...}`. - [Audio-reactive](https://vidmake.app/docs/audio-reactive.md) `amp`, `bass`, `beat` and `beats`, checked with `vidmake analyze`. - [Presets](https://vidmake.app/docs/presets.md) `enter` from a state, `exit` to one, on springs. - [Repeat](https://vidmake.app/docs/repeat.md) Stamp out copies in rows, grids and circles. - [Attach](https://vidmake.app/docs/attach.md) Ride a path's tip or a text's last character. ### Style - [Theme](https://vidmake.app/docs/theme.md) Design tokens for the whole project: `$color.accent`, type styles, motion, modes. - [Colors and gradients](https://vidmake.app/docs/colors.md) Color formats, linear and radial gradients. - [Effects](https://vidmake.app/docs/effects.md) Shadow, blur, glow, grain, 3D tilt and blend modes. - [Masks](https://vidmake.app/docs/masks.md) Track mattes: video through text and more. ### Tooling - [Rendering](https://vidmake.app/docs/rendering.md) Formats, codecs, frame ranges, drafts and progress events. - [Inspecting](https://vidmake.app/docs/inspecting.md) `timeline`, `inspect`, `trace`, `storyboard` and `still`. - [Editing](https://vidmake.app/docs/editing.md) `get`, `set`, `unset`, `add` and `rm`. - [Lint](https://vidmake.app/docs/lint.md) Layout warnings and how to silence intended ones. - [CLI reference](https://vidmake.app/docs/cli.md) Every command and flag. - [JSON Schema](https://vidmake.app/docs/schema.md) Editor completion and validation. ### Guides - [Recipes](https://vidmake.app/docs/recipes.md) Copy-paste solutions for common shots. - [Coming from Remotion](https://vidmake.app/docs/remotion.md) How Remotion concepts map to vidmake. - [AI integration](https://vidmake.app/docs/ai.md) The agent skill, `llms.txt` and prompts. - [Troubleshooting](https://vidmake.app/docs/troubleshooting.md) Common errors and how to fix them. - [Format reference](https://vidmake.app/docs/reference.md) The complete reference, as printed by `vidmake docs`. Want to see more first? The [demo gallery](https://vidmake.app/demos/) has every demo from these docs, each with its JSON. --- Source: https://vidmake.app/docs/installation/ # Installation > Install vidmake for Mac, the app that holds the studio and the `vidmake` command; unlock it with a license; put the command on your PATH; and keep it up to date. vidmake is a Mac app. `vidmake.app` holds everything: **vidmake studio** (the editor) and the **`vidmake` command** that you and your agents run in a terminal. Video and sound go through macOS's own frameworks, so there is nothing else to install. It's one app for Apple silicon and Intel Macs, on macOS 11 or later. ## Download and open it 1. [Download vidmake](https://api.vidmake.app/download/mac). 2. Open the DMG and drag **vidmake** to **Applications**. 3. Open vidmake from Applications. The download is free. vidmake opens on its paywall until a [license](https://vidmake.app/docs/licensing.md) is activated on the Mac: - **Buy vidmake** ($79, once) opens a Stripe checkout in your browser. As soon as the payment goes through, vidmake unlocks itself; there's no key to copy. The key is emailed to you too, for your other Macs. - **I have a license key** takes the key from your receipt email (`VMK-…`). - **Lost your key?** emails every key bought with your address to it. Once it's unlocked, vidmake shows what's ready: the license, the command line tool and Claude Code. **vidmake › About vidmake** shows the version you have. ## The `vidmake` command vidmake studio and the `vidmake` command share the app, the license and the updates. To run `vidmake` in a terminal, choose **Install** next to *Command line tool* (on the first screen after unlocking, or in the **License** window from the toolbar). It links `/usr/local/bin/vidmake` to the command inside the app, asking for your Mac's password because `/usr/local/bin` belongs to the system. Then, in a new terminal: ```bash vidmake --version vidmake license status ``` To link it yourself instead: ```bash sudo ln -sf /Applications/vidmake.app/Contents/MacOS/vidmake /usr/local/bin/vidmake ``` ### ffmpeg (optional) vidmake reads and writes video and sound with macOS's AVFoundation and VideoToolbox. Two formats need [ffmpeg](https://ffmpeg.org) as well, because macOS has no encoder for them: VP9/WebM and MP3. Install it if you render those (`brew install ffmpeg`). When ffmpeg is installed, the `vidmake` command uses it for everything (the studio keeps the system frameworks); `VIDMAKE_MEDIA=native` or `VIDMAKE_MEDIA=ffmpeg` picks one, and `VIDMAKE_FFMPEG` and `VIDMAKE_FFPROBE` point at a particular build. `vidmake hardware` says which is in use. ### Claude Code The studio's Claude panel hands the changes you describe to [Claude Code](https://claude.com/claude-code), which edits the project with `vidmake`. It's optional, and installed separately; the studio finds it in the usual places (`VIDMAKE_STUDIO_CLAUDE` points at it otherwise). ## Fonts Text uses the fonts installed on your Mac plus any font files a project declares in its [`fonts` list](https://vidmake.app/docs/compositions.md#fonts). `vidmake fonts` lists the installed families, and `vidmake fonts inter` filters them. ## Updating vidmake updates itself. It looks for a newer release when it opens and every few hours while it's open, and **vidmake › Check for Updates…** looks right away. When one your license covers is out, the studio shows **Update to …** in its toolbar; **Install update** downloads it, checks it against the release's `SHA256SUMS` and its code signature, puts it in place of the app, and **Restart** opens the new version. The `vidmake` command updates with the app, since it lives inside it. From a terminal: ```bash vidmake update --check # report whether a newer release exists vidmake update # install it (the whole app) ``` ```output vidmake 1.2.1 is available (you have 1.2.0); run `vidmake update` to install it ``` Updating replaces `vidmake.app` where it is, so it needs permission to write to that folder: Applications is writable by administrators. Updates stay within the major version your license covers. When a new major version ships, vidmake keeps installing updates of yours and says that the new one is out; see [upgrading](https://vidmake.app/docs/licensing.md#upgrading). ### The daily update check Every command except `update` and `license` checks for a newer release at most once a day (the check gives up after three seconds without network). When one is available: - **On a terminal**, vidmake asks `Update now? [Y/n/s = skip this version]`. `Y` (or Enter) installs the update and reruns your command with the new version, `s` skips that version for good, and `n` continues. - **Anywhere else** (pipes, scripts, agents), it prints one line to stderr, at most once a day, and carries on. Standard output, `--json` output and exit codes are never affected: ```output note: vidmake 1.2.1 is available (you have 1.2.0); run `vidmake update` to install it ``` A new major version is announced the same way, at most once a week, with the upgrade discount. Turn the check off with `VIDMAKE_NO_UPDATE_CHECK=1`. It is also skipped when `CI` is set (to anything other than empty or `0`). | variable | effect | |---|---| | `VIDMAKE_NO_UPDATE_CHECK=1` | disable the daily check (the studio's too) | | `CI=true` | disable the command's daily check | | `VIDMAKE_CACHE_DIR` | where the check stores its state (default `$XDG_CACHE_HOME/vidmake`, else `~/.cache/vidmake`) | > [!AGENT] > Export `VIDMAKE_NO_UPDATE_CHECK=1` in agent sandboxes. The check never blocks a non-interactive run, but > turning it off keeps stderr free of the update note and avoids a network call. ## Uninstalling Move `vidmake.app` to the Trash, and remove the link and the license if you like: ```bash vidmake license deactivate # gives the Mac's seat back first sudo rm /usr/local/bin/vidmake rm -r ~/.config/vidmake ~/.cache/vidmake ``` ## Next steps - [Licensing](https://vidmake.app/docs/licensing.md) Macs, offline use, updates and upgrading. - [Quickstart](https://vidmake.app/docs/quickstart.md) Make your first video in a few commands. - [For AI agents](https://vidmake.app/docs/agents.md) Set an agent up to write, check and render videos. - [Troubleshooting](https://vidmake.app/docs/troubleshooting.md) Missing fonts, ffmpeg errors and other setup problems. --- Source: https://vidmake.app/docs/licensing/ # Licensing > How a vidmake license works. You pay once and get every update of the major version you buy, on a few Macs at once, offline included; the next major version is offered to license holders at a discount. vidmake is sold once, not by subscription. A license costs **$79**, paid once through Stripe, and gives you: - vidmake for Mac (the studio and the `vidmake` command), for any use, commercial included. The videos you make are yours; - **every update of the major version you buy**, for good: a 1.x license gets 1.0, 1.1, 1.2 and every later 1.x; - use on up to **3 Macs at once**; - **50% off the next major version** when it ships. You don't have to upgrade: the version you have keeps working and keeps getting its updates. The easiest way to buy is from the app: [download vidmake](https://vidmake.app/docs/installation.md), open it, and choose **Buy vidmake**. vidmake unlocks itself as soon as the payment goes through. You can also [buy on the site](https://vidmake.app/#pricing); the page after checkout shows your license key, and the same key comes by email either way. ## Activating a Mac The app activates the Mac it runs on: when you buy from it, or when you enter your key in its paywall (**I have a license key**). The studio and the `vidmake` command share one activation, so either unlocks both. From a terminal: ```bash vidmake license activate VMK-XXXXX-XXXXX-XXXXX-XXXXX ``` ```output ✓ activated vidmake on this machine license VMK-XXXXX-…-XXXXX email you@example.com covers vidmake 1.x and older, with every 1.x update machines up to 3 this one studio-mac (347e15dac9fb) checks in within 30 days (works offline until then) ``` Without a license, the studio shows its paywall, and every command except `docs`, `schema`, `update` and `license` stops with exit status 3: ```output error: vidmake needs a license to run. Open the vidmake app to buy one or enter your key (one payment; updates until the next major version), or run vidmake license activate Buy at https://vidmake.app/#pricing. In a script, set VIDMAKE_LICENSE_KEY instead. ``` `vidmake license status` shows the license on this Mac, and `vidmake license status --json` prints the same as JSON. In the studio, the **License** button in the toolbar shows it, with updates and the command line tool. ### Scripts and agent sandboxes Set `VIDMAKE_LICENSE_KEY` in the environment. The first command that needs a license activates the Mac with it, and later commands use the activation saved in the config directory (`VIDMAKE_CONFIG_DIR`, else `$XDG_CONFIG_HOME/vidmake` or `~/.config/vidmake`). An agent running on your Mac uses the activation the app made. > [!AGENT] > If a command exits with status 3, vidmake has no license on this machine. Ask the user for their license key and > run `vidmake license activate `, or have them set `VIDMAKE_LICENSE_KEY`. Don't retry the command until then. ## Macs A license works on 3 Macs at once. Activating one more stops with an error that lists the Macs using the license and when each was last used (the app shows the same): ```output error: this license is active on 3 machines already (its limit); run `vidmake license deactivate` on one of them - studio-mac (aarch64-apple-darwin), last used today - render-box (x86_64-unknown-linux-gnu), last used 2 days ago - old-laptop (x86_64-apple-darwin), last used 24 days ago A machine unused for 30 days frees its seat by itself. ``` To move the license, choose **License**, then **Deactivate this Mac** in vidmake on the Mac you're leaving (or run `vidmake license deactivate`), and activate the new one. A Mac that hasn't checked in for 30 days gives its seat back on its own, so a laptop you no longer have doesn't keep a seat forever. ## Working offline Activating a Mac gets it a token signed by the license server, which vidmake checks on every run without the network. Every few days vidmake checks in with the server: a request of at most three seconds, which, when it fails, waits an hour before it is tried again. vidmake has to reach the server at least once every 30 days. A check-in sends the license key, a hash of the Mac's id, its name, architecture and the vidmake version, and nothing about your projects. ## Updates vidmake updates itself to the newest release your license covers: the studio offers it in its toolbar, and `vidmake update` installs it from a terminal. Either replaces the whole app, so the studio and the command stay the same version; see [updating](https://vidmake.app/docs/installation.md#updating). ```bash vidmake update --check vidmake update ``` ## Upgrading When a new major version ships, your license keeps covering the version you bought. Nothing stops working, and vidmake keeps installing its updates. The studio's License window offers the new version, and the command tells you about it at most once a week: ```output note: vidmake 2 is out. Your license covers 1.x, which keeps working and keeps getting 1.x updates; upgrade for 50% off with `vidmake license upgrade` ``` To upgrade, choose **Upgrade** in the app (or run `vidmake license upgrade`, or enter your key on the [license page](https://vidmake.app/license/)): it opens a Stripe checkout with the discount applied. The same key then covers the new major version, and the app offers it as an update. If you download the new version first, it opens on an upgrade screen with the same checkout, and unlocks itself once you've paid. Other Macs pick up the upgrade when they next check in, or at once with `vidmake license status --refresh`. ## Lost key The app's paywall (**Lost your key?**) and the [license page](https://vidmake.app/license/) email every license key bought with an address to it. From a terminal: ```bash vidmake license recover you@example.com ``` ## The `license` command | command | what it does | |---|---| | `vidmake license activate [KEY]` | activate this Mac (the key defaults to `VIDMAKE_LICENSE_KEY`) | | `vidmake license status [--refresh] [--json]` | show the license on this Mac; `--refresh` checks in with the server first | | `vidmake license deactivate` | give this Mac's seat back and remove the local activation | | `vidmake license upgrade [--no-open]` | open a checkout for the newest major version at the upgrade discount | | `vidmake license recover ` | email the keys bought with an address to it | | variable | effect | |---|---| | `VIDMAKE_LICENSE_KEY` | license key to activate with when the Mac has none (scripts, agent sandboxes) | | `VIDMAKE_CONFIG_DIR` | where the activation is kept (`license.json`) | | `VIDMAKE_LICENSE_SERVER` | the license server's origin (default `https://api.vidmake.app`) | --- Source: https://vidmake.app/docs/quickstart/ # Quickstart > Make your first video in a few minutes with `init`, `validate`, `storyboard`, `set` and `render`. This page takes you from an empty folder to a rendered MP4. It assumes the vidmake app is installed and the `vidmake` command is on your PATH ([Installation](https://vidmake.app/docs/installation.md)). 1. **Create** a starter project with `vidmake init`. 2. **Read** the JSON it wrote. 3. **Check** it with `validate` and `timeline`. 4. **Look** at it with `storyboard`. 5. **Edit** it with `vidmake set`. 6. **Render** it with `vidmake render`. ## 1. Create a project ```bash vidmake init my-video ``` ```output created my-video/project.json next: vidmake validate my-video/project.json vidmake storyboard my-video/project.json -o storyboard.png vidmake render my-video/project.json -o out/video.mp4 ``` `init` creates the folder, an empty `assets/` folder for your media, and `project.json`. It never overwrites: if `project.json` already exists it stops with `error: my-video/project.json already exists`. Use `--name other.json` to pick a different file name, or `vidmake init` with no argument to create `project.json` in the current folder. The rest of this page runs commands inside the project folder: ```bash cd my-video ``` ## 2. Read the project `project.json` is a working example: an animated title card with a subtitle, a progress ring and a counter. It needs no media files. ```json title="project.json" { "compositions": [ { "id": "main", "description": "Starter: animated title card with a counter and a progress ring", "width": 1920, "height": 1080, "fps": 30, "duration": "5s", "props": { "title": "Hello, vidmake", "subtitle": "Videos from JSON", "accent": "#c92a26" }, "background": { "type": "linear", "angle": 135, "stops": ["#f4f1ea", "#e9e4d8"] }, "layers": [ { "id": "glow", "type": "ellipse", "width": 900, "height": 900, "fill": { "type": "radial", "stops": ["{{accent}}1f", "{{accent}}00"] }, "x": "=w/2 + sin(t*0.8)*200", "y": "=h/2 + cos(t*0.6)*80", "blur": 40 }, { "id": "title", "type": "text", "text": "{{title}}", "font": "sans-serif", "fontWeight": 900, "fontSize": 120, "letterSpacing": -5, "y": "42%", "fill": "#161412", "enter": { "from": { "opacity": 0, "y": "0.3em", "blur": "0.1em" } }, "stagger": "char", "exit": "fade" }, { "id": "subtitle", "type": "text", "text": "{{subtitle}}", "fontSize": 48, "y": "56%", "fill": "#4a4640", "start": "0.6s", "enter": "fadeUp", "exit": "fade" }, { "id": "ring", "type": "arc", "x": "50%", "y": "78%", "width": 120, "height": 120, "stroke": "{{accent}}", "strokeWidth": 12, "startAngle": 0, "endAngle": { "from": 0, "to": 360, "duration": "3.5s", "ease": "easeInOutCubic" }, "start": "1s", "enter": "pop" }, { "id": "counter", "type": "text", "text": "${round(map(t, 0, 3.5, 0, 100))}%", "fontSize": 32, "fontWeight": 700, "x": "50%", "y": "78%", "start": "1s", "fill": "#161412" } ] } ] } ``` What each part does: | part | meaning | |---|---| | `compositions` | a project holds one or more [compositions](https://vidmake.app/docs/compositions.md); the first one is rendered by default | | `width`, `height`, `fps`, `duration` | a 1920×1080 canvas at 30 frames per second, 5 seconds long ([time values](https://vidmake.app/docs/time.md)) | | `props` | default input [props](https://vidmake.app/docs/props.md), used below as `{{title}}`, `{{subtitle}}` and `{{accent}}` | | `background` | a diagonal [linear gradient](https://vidmake.app/docs/colors.md) behind everything | | `layers` | drawn in order: `glow` at the bottom, `counter` on top | | `"x": "=w/2 + sin(t*0.8)*200"` | an [expression](https://vidmake.app/docs/expressions.md), evaluated every frame; `t` is the layer's time in seconds | | `"y": "42%"` | a percentage of the parent's height; layers are centered on `x`/`y` by default ([concepts](https://vidmake.app/docs/concepts.md#coordinates)) | | `stagger` | plays the title's `enter` letter by letter: each one rises and comes into focus ([text](https://vidmake.app/docs/text.md#stagger)) | | `enter`, `exit` | animate a layer in from a state at its start and out at its end, by name (`fadeUp`) or as a state ([presets](https://vidmake.app/docs/presets.md)) | | `endAngle` tween | a [tween](https://vidmake.app/docs/animation.md) from 0 to 360 degrees over 3.5 seconds draws the ring | | `"text": "${...}%"` | live text: the counter counts from 0 to 100 | | `"start": "1s"` | the ring and counter appear one second in; their animation times count from there | > [!TIP] > The same file ships in the `examples` folder of every release archive as `examples/starter.json`, so the command output below runs on > that copy. Your `my-video/project.json` gives identical results. ## 3. Check it `validate` compiles the project, checks fonts, assets and expressions, and lints the layout. A ✓ with no warnings means it is ready to render: ```console $ vidmake validate examples/starter.json ✓ main — 150 frames (5.00s) ``` `timeline` shows when each layer is on screen. The bars confirm that `subtitle` comes in at 0.6 s and `ring` and `counter` at 1 s: ```console $ vidmake timeline examples/starter.json Composition `main` — 1920x1080 @ 30fps, 150 frames (5.00s) ID TYPE START END DUR DETAILS glow ellipse 0.00s 5.00s 5.00s title text 0.00s 5.00s 5.00s enter:custom per unit exit:fade "Hello, vidmake" subtitle text 0.60s 5.00s 4.40s enter:fadeUp exit:fade "Videos from JSON" ring arc 1.00s 5.00s 4.00s enter:pop counter text 1.00s 5.00s 4.00s "0%" |0s 1s 2s 3s 4s | glow |████████████████████████████████████████████████████████████| title |████████████████████████████████████████████████████████████| subtitle |·······█████████████████████████████████████████████████████| ring |············████████████████████████████████████████████████| counter |············████████████████████████████████████████████████| ``` ## 4. Look at it A storyboard renders evenly spaced frames into one labeled image. This is the fastest way to see the whole video: ```bash vidmake storyboard project.json -o storyboard.png -n 6 --cols 3 ``` `vidmake storyboard examples/starter.json -n 6 --cols 3` produces: ![vidmake storyboard examples/starter.json -n 6 --cols 3](https://vidmake.app/media/storyboard-4cafd2e97a6a.jpg) To check exact numbers, `inspect` lists every visible layer at one moment with its resolved position, size, opacity and bounding box: ```console $ vidmake inspect examples/starter.json -t 2s Frame 60 (2.00s) of `main` (1920x1080), 5 visible layer(s), drawn bottom→top: ID TYPE X Y W H ROT SCALE OPAC BBOX [x0,y0,x1,y1] NOTES glow ellipse 1159.9 569.0 900.0 900.0 0.0 1.00 1.00 [710,119,1610,1019] title text 960.0 453.6 780.4 144.0 0.0 1.00 1.00 [570,382,1350,526] "Hello, vidmake" subtitle text 960.0 604.8 396.6 57.6 0.0 1.00 1.00 [762,576,1158,634] "Videos from JSON" ring arc 960.0 842.4 120.0 120.0 0.0 1.00 1.00 [900,782,1020,902] counter text 960.0 842.4 64.0 38.4 0.0 1.00 1.00 [928,823,992,862] "29%" ``` For a full-resolution frame, use `vidmake still project.json -t 2s -o frame.png`. ## 5. Edit it Change the title and accent color without opening an editor. `set` takes a path (a layer or composition id followed by fields) and a JSON value; a plain string can skip the inner quotes: ```bash vidmake set project.json main.props.title "Launch day" vidmake set project.json main.props.accent '"#1f5fb0"' ``` ```output set /compositions/0/props/title set /compositions/0/props/accent ``` Every edit is compiled before it is saved. A mistake is rejected and the file is left as it was: ```bash vidmake set project.json subtitle.enter '"fadeup"' ``` ```output error: edit not saved, the project would be invalid: layer `subtitle` (main > layers[2]): `enter`: unknown preset `fadeup`. Available: fade, fadeUp|Down|Left|Right (fade + short move), slideUp|Down|Left|Right (from off the parent), rise (text: up from behind its line), scale, pop (bouncy), zoom, blur, rotate, wipeLeft|Right|Up|Down, typewriter (text) (use --force to save anyway) ``` `vidmake get project.json main.props` reads values back. See [Editing](https://vidmake.app/docs/editing.md) for `add`, `rm` and `unset`. Larger changes are easiest in the JSON itself; run `validate` again afterwards. > [!NOTE] > `set` saves the file with standard two-space JSON formatting, so hand-made line breaks are not kept. ## 6. Render it Render a quick draft first: no motion blur, half resolution and the fastest encoder settings. ```bash vidmake render project.json -o out/draft.mp4 --draft ``` Then the final file: ```bash vidmake render project.json -o out/video.mp4 ``` ```output rendering 150/150 frames (13.7 fps, 0s left) {"event":"done","output":"out/video.mp4","codec":"h264","frames":150,"width":1920,"height":1080,"fps":30.0,"duration":5.0,"elapsed":11.582925707,"renderFps":12.950096011524042,"draft":false} ``` Progress goes to stderr; the last line on stdout is a JSON `done` event with the output path, size and timing. Add `--json` to get progress as JSON lines too. The output format follows the file extension: `.webm`, `.mov`, `.gif`, `.mp3` and more are covered in [Rendering](https://vidmake.app/docs/rendering.md). Here is the result, with the two edits applied: **Demo: The starter project after two edits: a new title and accent color** (rendered video: https://vidmake.app/media/start-first.mp4) ```json { "compositions": [ { "id": "main", "description": "The starter project after two edits: a new title and accent color", "width": 1920, "height": 1080, "fps": 30, "duration": "5s", "props": { "title": "Launch day", "subtitle": "Videos from JSON", "accent": "#1f5fb0" }, "background": { "type": "linear", "angle": 135, "stops": ["#f4f1ea", "#e9e4d8"] }, "layers": [ { "id": "glow", "type": "ellipse", "width": 900, "height": 900, "fill": { "type": "radial", "stops": ["{{accent}}1f", "{{accent}}00"] }, "x": "=w/2 + sin(t*0.8)*200", "y": "=h/2 + cos(t*0.6)*80", "blur": 40 }, { "id": "title", "type": "text", "text": "{{title}}", "font": "sans-serif", "fontWeight": 900, "fontSize": 120, "letterSpacing": -5, "y": "42%", "fill": "#161412", "enter": { "from": { "opacity": 0, "y": "0.3em", "blur": "0.1em" } }, "stagger": "char", "exit": "fade" }, { "id": "subtitle", "type": "text", "text": "{{subtitle}}", "fontSize": 48, "y": "56%", "fill": "#4a4640", "start": "0.6s", "enter": "fadeUp", "exit": "fade" }, { "id": "ring", "type": "arc", "x": "50%", "y": "78%", "width": 120, "height": 120, "stroke": "{{accent}}", "strokeWidth": 12, "startAngle": 0, "endAngle": { "from": 0, "to": 360, "duration": "3.5s", "ease": "easeInOutCubic" }, "start": "1s", "enter": "pop" }, { "id": "counter", "type": "text", "text": "${round(map(t, 0, 3.5, 0, 100))}%", "fontSize": 32, "fontWeight": 700, "x": "50%", "y": "78%", "start": "1s", "fill": "#161412" } ] } ] } ``` ## Try it with props instead The title and accent are props, so you can also override them per render without editing the file: ```bash vidmake render project.json -o out/hello.mp4 -p title="Hello again" -p accent="#161412" ``` That is how one project becomes many videos. [Props](https://vidmake.app/docs/props.md) covers the details. ## Next steps - [Core concepts](https://vidmake.app/docs/concepts.md) How compositions, layers, coordinates and time fit together. - [For AI agents](https://vidmake.app/docs/agents.md) The validate, look, fix loop in depth. - [Animation](https://vidmake.app/docs/animation.md) Keyframes, tweens, springs and expressions. - [Recipes](https://vidmake.app/docs/recipes.md) Ready-made solutions for common shots. --- Source: https://vidmake.app/docs/agents/ # For AI agents > The agent loop in depth: learn the format with `vidmake docs`, write JSON, then validate, look, measure and fix until the video is right, with `--json` output and actionable errors throughout. vidmake was designed for language-model agents first. An agent can't watch a preview window, so every question it might ask about a video ("does it compile?", "when does the logo appear?", "is the title clipped?", "does the bounce overshoot?") has a command that answers it in text, in JSON, or as a PNG the agent can open. This page is the long version of vidmake's [`AGENTS.md`](https://vidmake.app/ai/AGENTS.md). ## The loop 1. **Learn the format once**: `vidmake docs` prints the complete reference; `vidmake docs ` prints one section. 2. **Check the assets**: `vidmake probe file.mp4 music.mp3` gives durations and sizes. Before syncing to music, `vidmake analyze music.mp3` gives beat times and the `amp`/`bass` curves expressions will see. 3. **Write `project.json`**: give every layer an `id`. Numbers are frames unless written as `"2s"`; animation times are relative to the layer's own start. 4. **Validate**: `vidmake validate project.json` must print ✓ with no warnings you didn't intend. 5. **Check timing**: `vidmake timeline project.json`. 6. **Look**: `vidmake storyboard project.json -o sb.png -n 12`, then open the image. 7. **Measure**: `vidmake inspect project.json -t