vidmake v0.2.1
Download

Docs/GuidesPage 45 / 45

Full reference

The complete format reference, identical to the output of vidmake docs. One page, every field.

View .md Ask Claude Ask ChatGPT

vidmake turns a JSON project into video. There is no UI: you write JSON, look at it with inspect / timeline / storyboard / still, fix it, then render. Every frame is a pure function of time, so any frame can be checked in isolation.

#Workflow for agents

  1. vidmake init my-video creates my-video/project.json (a working example).
  2. Edit the JSON directly, or use vidmake set/add/rm/unset (edits are compiled before saving).
  3. vidmake validate project.json checks schema, assets, fonts, expressions, and lints layout (off-canvas layers, text overflowing the canvas, invisible layers, timing past the end). Each warning ends with a code like [offCanvas]; silence intended ones per layer with "lint" (see Lint).
  4. vidmake timeline project.json shows when every layer is on screen (table + text Gantt chart).
  5. vidmake storyboard project.json -o sb.png renders a labeled grid of frames. Open the PNG to see the video.
  6. vidmake inspect project.json -t 2.5s lists every visible layer with resolved x/y/size/opacity/bbox. vidmake trace project.json -l title --every 3 samples one layer's animation over time.
  7. vidmake still project.json -t 2.5s -o f.png renders one full-resolution frame.
  8. vidmake render project.json -o out/video.mp4 renders the final file. Add --json for JSON progress lines. --draft gives a fast full-length preview first (no motion blur, half size, fastest encoder).

vidmake schema prints a JSON Schema for project files; point your editor at it, or validate with it before running the CLI.

Every report command accepts --json. Errors name the composition, layer id, and field, and suggest fixes (e.g. unknown field `fontsize` — did you mean `fontSize`?).

#Project file

json
{  "fonts": [{ "family": "Brand", "path": "fonts/Brand-Bold.woff2" }],  "theme": {    "color": { "ink": "#0a0a09", "accent": "oklch(62% 0.19 260)" },    "type": { "display": { "font": "Brand", "size": 96, "weight": 700, "tracking": -0.02 } },    "motion": { "house": { "spring": 0.15, "duration": "0.5s" } }  },  "compositions": [ { "id": "main", "width": 1920, "height": 1080, "fps": 30, "duration": "10s", "layers": [] } ]}

A file containing a single composition object (with layers) is also accepted. Asset paths (src, font path) are relative to the project file.

fieldnotes
fonts[{ "family", "path" }]: .ttf, .otf, .ttc, .woff or .woff2. Variable fonts follow fontWeight
themedesign tokens, referenced as "$color.accent" in every composition: colors, type styles, motion, layer styles, modes (see Theme). An object, a JSON file path, or { "extends": "tokens.json", ... }
compositionsthe compositions

#Composition

fieldtypedefaultnotes
idstringrequiredreferenced by --comp and by use layers
width, heightintrequiredpixels. Use even numbers for H.264/H.265
fpsnumber30
durationtime or "auto""auto"auto = latest end of any layer with a fixed length (media, explicit duration, series)
backgroundpainttransparenttransparent backgrounds keep alpha in webm/mov/png/gif
propsobject{}default input props, see Props
markersobject{}named times, e.g. {"build": "8.5s", "ship": "@build+3s"}, see Markers
layerslayer[][]drawn in order: first = bottom, last = top
motionBlur{samples, shutter}offcamera motion blur: samples sub-frames over shutter frames
grain0..10film grain over the finished frame (changes every frame)
descriptionstringfree text, shown by list

#Time values

Numbers are frames. Strings may be "1.5s", "500ms", "45f", or "1:02.5" (m:ss). Used by start, duration, end, keyframe times, tween start/end/duration, presets, and CLI flags.

All animation times inside a layer are local to that layer (0 = the layer's own start). A layer inside a group is timed relative to the group.

#Markers

Name the beats of a video once, then point at them from anywhere. markers on a composition maps names to times (composition time; a marker may build on an earlier one):

json
"markers": { "strike": "3s", "lane": "8s", "build": "@lane+0.5s", "ship": "@lane+4.4s" }
  • Any time value accepts "@name", "@name+0.25s" or "@name-10": start, duration, keyframe times, tween start/end, preset delay. vidmake converts the marker to the right local time, so "start": "@build" works at any depth, inside series and repeats included.
  • Expressions get since('name') (seconds since the marker, negative before it) and marker('name') (the marker in the layer's local seconds): "opacity": "=map(since('strike'), 0, 0.3, 1, 0.3)".
  • The CLI takes markers wherever it takes a time: still -t @ship, storyboard --at @lane,@ship+0.5s, render --frames @lane..@ship. timeline lists them.
  • Markers belong to their composition; a used composition sees its own markers.

#Layers: common fields

fielddefaultnotes
idauto (type#index)give every layer an id; the CLI addresses layers by id
typerequiredrect ellipse text image video audio path line polygon star arc group use captions waveform particles
start0time the layer appears (relative to parent)
duration / endrest of parentmedia layers default to their media length
visibletruefalse removes the layer entirely
commentfree text for notes, ignored by the renderer
repeatstamp out copies of the layer, see Repeat
attachride a sibling path's tip or a text's last character, see Attach
lintfalse or {"ignore": ["offCanvas"]} silences validate warnings for this layer and its children
motionBlurtruefalse renders this layer at the exact frame even when the composition has motion blur
x, ycenter of parent ("50%")position of the layer's anchor point in parent coordinates
width, heightintrinsicsee per-type defaults
anchor[0.5, 0.5]fraction of the layer box; or a name: center top-left top top-right left right bottom-left bottom bottom-right
rotation0degrees, clockwise, around the anchor
skewX, skewY0shear in degrees around the anchor (skewX: -12 leans the top to the right)
scale, scaleX, scaleY1around the anchor; scale multiplies scaleX/scaleY
opacity10..1, multiplies with parents
fill, strokewhite fillpaint (see Colors and paints). null disables
strokeWidth2 (8 for line/arc)
dashe.g. [20, 10]
lineCaproundround butt square
cornerRadius0rect, image, video, text background, waveform bars
shadow{ "color": "#0008", "blur": 20, "x": 0, "y": 8 } (all animatable)
blur0gaussian blur radius in px
brightness, saturation1color adjustments (0 saturation = grayscale)
rotateX, rotateY03D tilt in degrees around the anchor (top / right edge moves away); perspective (default 1000) is the camera distance in px
glow, grain, chromaticAberrationsee Effects
mask, maskModetrack matte, see Effects
blendModenormalmultiply screen overlay darken lighten color-dodge color-burn hard-light soft-light difference exclusion add
styletheme style(s) merged under the layer's own fields: "$type.display", an object, or a list (see Theme)
enter, exitenter from a state, exit to one: a preset name or { "from": {...}, "motion": "snap" } (see Presets)
transitiononly on children of a series group, see Series and transitions

Numeric fields accept a number, a percentage string ("50%" of the parent width for x/width, height for y/height, the parent height for fontSize), or any animation form below.

#Layer types

#rect

Defaults to the full parent size when neither width nor height is set, so {"type":"rect","fill":"#111"} is a background.

#ellipse, polygon, star, arc

Default size 100×100 (a single width or height makes it square).

  • polygon: sides (default 3).
  • star: sides = points (default 5), innerRadius 0..1 (default 0.5, animatable).
  • arc: startAngle, endAngle in degrees (0 = 12 o'clock, clockwise; animatable). Drawn as a stroke. "closed": true draws a filled pie slice. Progress ring: animate endAngle 0→360.

#path, line

  • path: d = SVG path data in local coordinates (all commands incl. arcs).
  • line: points: [[x,y], ...], closed optional. Defaults to a stroke.
  • drawStart / drawEnd (0..1, animatable) trim the stroke: animate drawEnd 0→1 to "draw on" a path.
  • drawMode decides how a path with several sub-paths (several M commands in d) is trimmed:
    • each (default): every sub-path starts drawing at the same moment and at the same speed, measured in fractions of the whole path's length. A sub-path shorter than the drawn length shows in full, so many short strokes (hatching, sketchy double lines, handwriting) all appear at once and long ones lag behind, which looks dashed.
    • total: one continuous stroke through the sub-paths in the order they appear in d; the next one starts where the previous one finished. Use this to draw on lettering, sketches and diagrams made of many strokes. attach follows the total position in both modes.
  • The layer box is [0, 0, maxX, maxY] of the path; setting width/height scales the path.

#text

fielddefaultnotes
textrequired\n for line breaks. ${expr} is evaluated every frame: "${round(t*10)}", "${t:2}" (2 decimals), "${fmt(n)}". Or an array of spans (rich text, below)
fontsans-seriffamily name (vidmake fonts lists them) or serif, monospace, or a project font family
fontSize64px, animatable
fontWeight400100..900 or bold, light, ...
italicfalseuses the family's italic face; a family without one is slanted instead (synthetic oblique)
aligncenterleft center right (lines inside the text box)
lineHeight1.2multiple of fontSize
letterSpacing0px, animatable
maxWidthnonewrap width in px or "80%"
uppercasefalse
whiteSpacenormalpre keeps every space (code indentation, ASCII art); tabs become 4 spaces
backgroundnonepaint for a box behind the text; uses padding (default 16) and cornerRadius
padding0 (16 with a background)one value, [vertical, horizontal] (a button: [18, 36]) or { "x": 36, "y": 18 }
decoration"underline", "strike", "highlight", or an object, see below
reveal10..1 fraction of characters shown (typewriter), animatable
staggerplay enter per "char", "word" or "line": "stagger": "char" or { "by": "word", "over": "0.5s", "from": "center" } (see Stagger)
strokeoutline drawn behind the fill

The text box size is measured from the content (plus padding). The anchor applies to that box.

Decoration draws a line under (underline), through (strike) or a band behind (highlight) the visible characters, measured from the glyphs, so it follows wrapping, alignment and reveal:

json
"decoration": { "type": "strike", "color": "#2563eb", "thickness": 8, "extend": 6,                "progress": { "from": 0, "to": 1, "start": "@strike", "duration": "0.35s", "ease": "easeOutQuint" } }
fielddefaultnotes
typerequiredunderline, strike, highlight
progress10..1, animatable: draws the line on from the left, line after line
bytotalline draws every line at the same time
colorthe text fillpaint
thickness7% of fontSize (80% for highlight)px
offset0px, moves the line down
extend0 (12% for highlight)px past each end of a line

Rich text: text may be an array of strings and { "text": ..., "fill": paint, "fontWeight": ..., "italic": true, "font": ... } spans, laid out as one block. Each field is optional and defaults to the layer's own (fill, fontWeight, italic, font): "text": ["Made with ", { "text": "care", "italic": true }, " and ", { "text": "Claude.", "fontWeight": "bold", "fill": "#f97316" }]. Line height and spacing come from the layer's font. Syntax-colored code in one layer:

json
{ "type": "text", "font": "monospace", "align": "left", "whiteSpace": "pre", "text": [  { "text": "let", "fill": "#c084fc" }, " total = ", { "text": "42", "fill": "#fbbf24" }, ";\n",  "    print(total)", { "text": "  // done", "fill": "#6b7280" } ] }

Text from ${...} is evaluated at the whole frame, so counters stay sharp under composition motion blur.

#image

src: png, jpg, webp, bmp, gif (first frame) or svg (rasterized at the displayed size, stays sharp). Size defaults to the native size; one of width/height keeps the aspect ratio. fit: cover (default) contain fill none when both width and height are set.

SVGs that color with CSS variables (fill: var(--accent, #2b3cf0)) render with the fallback; svgVars sets them, and currentColor, per layer, so one icon file can be themed anywhere:

json
{ "id": "icon", "type": "image", "src": "icons/ship.svg", "width": 120,  "svgVars": { "currentColor": "#fff6e0", "--icon-accent": "#2563eb" } }

Any src (image, video, audio, captions, waveform) may use ${...} with the copy index, so a repeated layer can show a different file per copy: "src": "icons/${pick(i, ['build', 'test', 'ship'])}.svg". Inside a repeated group, i is the group's copy index, as in text and expressions. src is resolved once when the project compiles, so ${t} and other time variables read 0 there. validate warns (srcTemplate) when a template gives every copy the same file.

#video

src: any ffmpeg-readable file. Same sizing and fit as image, plus trimStart (time into the source), playbackRate, loop, muted, volume, fadeIn, fadeOut. Duration defaults to the remaining media length. Its audio is mixed into the output unless muted.

#audio

src, trimStart, playbackRate, loop, volume (number or animated, e.g. [[0,0],["1s",1],["9s",1],["10s",0]]), fadeIn, fadeOut (times). Invisible; appears in timeline.

#group

children: layers in the group's coordinate space (0,0 = the group box's top-left). The box defaults to the parent size. clip: true clips children to the box. Transforms, opacity, effects and presets apply to the whole group. series: true plays children one after another (see below). stagger offsets the children's entrances (and reverses their exits): "stagger": { "over": "0.4s", "from": "center" } (see Stagger).

layout stacks the children instead of using their x/y (like CSS flexbox): "layout": "column" or { "direction": "column"|"row", "gap": 24, "align": "start"|"center"|"end", "justify": "start"|"center"|"end" } (defaults: column, gap 0, both centered). justify places the stack along the direction inside the group box, align places each child across it. Each child is measured every frame (text included), so nothing needs hand-computed coordinates. Inside a layout, a child's x/y become offsets from its slot; children outside their time window take no space; presets and scale don't affect the layout. Nest a "row" group inside a "column" group for chips or buttons.

#use (components / nested compositions)

json
{ "type": "use", "ref": "lowerThird", "start": "2s", "props": { "name": "Ada" } }

Renders composition ref as a group with its own props (Remotion's components / nested <Composition>). Size defaults to the referenced composition's size; duration to its duration; clipped to its box.

#captions

Subtitles with optional word highlighting (karaoke / TikTok style).

  • src: .srt, .vtt, or .json (an array, or Whisper-style {"segments": [...]}; numbers in caption files are seconds)
  • or inline items: [{ "text": "Hello world", "start": "1s", "end": "2.5s", "words": [{"text": "Hello", "start": "1s", "end": "1.6s"}] }] (inline numbers are frames like everywhere else; words optional, otherwise timing is spread by word length)
  • mode: line (whole caption, default) or word (one word at a time with a pop)
  • highlight: paint for the currently spoken word (line mode)
  • all text styling fields apply. Defaults: y: "80%", maxWidth: "80%".

Make the word-timed .json from any audio or video with vidmake transcribe talk.mp4 (writes talk.json; see Transcription), then { "type": "captions", "src": "talk.json", "mode": "word" }.

#waveform

Audio visualization of src (audio or video file), synced to the layer's time (+ trimStart). mode: bars (spectrum, default), mirror (centered spectrum), line (oscilloscope, uses stroke). bars (default 48), gap (0..1, default 0.3), cornerRadius, fill. Default size: 80% of parent × 200.

#particles

A deterministic particle emitter. The layer box (width/height, default a point) is the area particles start from; they are drawn in the layer's coordinates, so move or rotate the layer to move the emitter.

json
{ "id": "sparks", "type": "particles", "x": "50%", "y": "70%", "width": 400,  "emitter": { "rate": 60, "lifetime": "1.5s", "speed": 250, "angle": 0, "spread": 60, "gravity": 300,               "size": 10, "endSize": 2, "colors": ["#fde047", "#fb923c"], "shape": "star", "spin": 360 } }
emitter fielddefaultnotes
rate20particles per second while the layer is on screen
burst0extra particles emitted at once at the layer's start
lifetime"2s"time
speed, speedRandom150, 0.3px/s, and how much (0..1) each particle may be slower
angle, spread0, 360direction in degrees (0 = up, clockwise) and cone width
gravity, drag0, 0px/s² downward (negative = up), velocity damping per second
size, endSize, sizeRandom8, size, 0.3diameter in px over the particle's life
colorslayer fillrandom pick per particle
shapecirclecircle square star
spin0max degrees per second (random direction)
fadetruefade out over the lifetime
seed1change for a different random pattern

#Repeat

repeat stamps out copies of a layer. Each copy gets id <id>.<i> and the expression variables i (0-based copy index) and n (count); children of a repeated group see the same i/n. Copies are placed by layout around the layer's x/y.

json
{ "id": "dot", "type": "ellipse", "width": 24, "x": "50%", "y": "50%",  "repeat": { "count": 14, "layout": "radial", "radius": 200, "delay": "0.05s" },  "fill": "=hsl(i * 360 / n, 80, 60)", "enter": "pop" }
fieldnotes
countrequired (1..10000). "repeat": 8 is shorthand for { "count": 8 } (all copies at the same spot)
layoutnone (default), radial, grid, row, column
radius, startAngle, endAngle, rotateradial: angles in degrees, 0 = 12 o'clock, clockwise. Without endAngle copies spread evenly around the full circle; with it, from start to end inclusive. rotate: true turns each copy by its angle
cols, spacinggrid/row/column: spacing is the distance between copy centers, a number or [x, y] (default 100). cols defaults to √count. The block is centered on x/y
delaytime added to each copy's start (copy i starts i × delay later)
staggerspread the copies' starts instead: { "over": "0.6s", "from": "center" } (see Stagger); not with delay
origingrid/row/column: where x/y sits in the block: center (default), start (the first copy is at x/y, the rest follow right and down) or end

"origin": "start" lines a list up with a left-anchored heading: { "x": 140, "y": 380, "anchor": "left", "repeat": { "count": 4, "layout": "column", "spacing": 150, "origin": "start" } }.

#Attach

attach positions a layer on a sibling (a layer in the same parent) every frame:

  • a path or line: at its drawn tip (drawEnd), so a dot rides a drawing trend line. progress (0..1, animatable) picks another point along the path; rotate: true turns the layer along the path direction.
  • a text or captions layer: right after the last visible character (follows reveal/typewriter), vertically centered on that line. Use it for a typing cursor.

"attach": "trend" or { "to": "trend", "progress": "=p", "rotate": true }. The layer's own x/y become offsets from that point (default 0), and its anchor decides which part of it sits on the point (e.g. "anchor": [-0.5, 0.5] puts an arrow ahead of the tip).

json
{ "id": "cursor", "type": "rect", "width": 4, "height": 40, "fill": "#22d3ee", "attach": "code", "x": 6,  "opacity": "=floor(t * 2.5) % 2" }

#Effects

fieldnotes
glowadditive blurred halo: a radius, or { "radius": 20, "strength": 1, "color": "#22d3ee" } (without color the layer's own colors glow; strength > 1 stacks)
grainfilm grain 0..1 on the layer (composition grain covers the whole frame)
chromaticAberrationRGB split in px (red left, blue right); animatable, e.g. "=8 * beat"
rotateX, rotateY, perspective3D tilt (see common fields); rotateX from 40 → 0 makes a "flip up" entrance
maska track matte: a layer definition, positioned and timed like a sibling, that is not drawn itself. The masked layer shows only where the matte is opaque
maskModealpha (default), alphaInverted, luma, lumaInverted

Video through text:

json
{ "id": "bg", "type": "video", "src": "broll.mp4", "width": "100%", "height": "100%",  "mask": { "type": "text", "text": "SUMMER", "fontSize": 300, "fontWeight": 900 } }

All effects are animatable and work on groups too (effect a whole scene by wrapping it in a group).

#Animation

Any numeric field (and colors) can be animated. Forms:

Constant: "x": 100 or "x": "25%".

Keyframes (linear by default; ease on a keyframe shapes the segment arriving at it):

json
"x": [[0, 100], ["1s", 500, "easeOutCubic"], ["2s", 300]]"x": [{ "t": 0, "v": 100 }, { "t": 30, "v": 500, "ease": "easeOutBack" }]"x": { "keys": [[0, 0], [30, 100]], "ease": "easeInOut", "repeat": "pingpong" }

Tween:

json
"opacity": { "from": 0, "to": 1, "start": "0.5s", "duration": "1s", "ease": "easeOutCubic" }"x": { "from": 0, "to": 360, "duration": "2s", "repeat": "loop" }

Fields: from, to, start (alias delay), end or duration, ease (default easeInOut), motion (a motion token that brings its curve and duration: { "from": 0, "to": 1, "motion": "snap" }), spring (a bounce 0..1, true or physics), repeat (true/"loop"/"pingpong").

Spring: "ease": "spring(0.3)" (bounce 0..1) works in any tween, keyframe or preset and settles exactly at the end of the duration; motion tokens (see Motion) are springs with a duration. The physical form is Remotion-compatible (defaults damping 10, stiffness 100, mass 1):

json
"scale": { "from": 0, "to": 1, "spring": true }"y": { "from": 800, "to": 540, "delay": 15, "spring": { "damping": 12, "stiffness": 180 } }

With a spring, duration (optional) stretches the spring to settle in that time.

Expression: a string starting with =, evaluated per frame:

json
"rotation": "=t * 90""y": "=h/2 + sin(t * 2 * pi) * 50""opacity": "=map(f, 0, 20, 0, 1)""x": "=pw * 0.5 + wiggle(2, 20)"

Colors animate with keyframes or tweens too: "fill": [[0, "#f00"], ["1s", "#00f"]], or use an expression that returns a color: "fill": "=hsl(i * 30, 80, 60)", "fill": "=pick(i, ['#38bdf8', '#f472b6'])", "fill": "=lerp('#000000', '#22d3ee', p)".

#Expressions

Markers: since('name') = seconds since a marker (negative before it), marker('name') = the marker's time in the layer's local seconds (see Markers).

Variables: t (layer-local seconds), f (layer-local frame), gt/gf (global seconds/frame), fps, dur/durf (layer duration in seconds/frames), p (layer progress 0..1), w,h (composition size), pw,ph (parent size), i (copy index for repeat, else the layer's index in its parent), n (repeat count, else 1), pi, e, tau.

Audio-reactive variables, from all audio in the composition (audio layers and video sound, after volume and fades): amp (loudness 0..1), bass (low end 0..1), beat (1 on each detected beat, decaying to 0 within ~0.3s), beats (beats so far). Examples: "scale": "=1 + 0.15 * beat", "fill": "=pick(beats, ['#f472b6', '#38bdf8'])", "height": "=40 + 300 * bass". They are 0 when nothing is playing. amp and bass are scaled so the loudest 2% of the soundtrack reads 1, so a loud section can sit at 1 for seconds. Check before designing around them: vidmake analyze music.mp3 (or vidmake analyze project.json for the mixed soundtrack exactly as expressions see it) prints beat times, tempo, mean/peak curves and how much of the track is at the ceiling. It also lists onsets: sharp rises in loudness (hits, accents, transients), which are usually better cut points than the tempo-grid beats. Each is { time, frame, riseDb, peakDb, band }: riseDb is how far the level rose over the previous 100 ms, peakDb the level at the top in dBFS, band the range that rose most (low < 150 Hz, mid, high > 4 kHz). --min-rise 10 keeps only strong hits; --onset-window 20ms sets the RMS window (default 10ms). In --json, beats are under beats.times and onsets under onsets; for a project, times are composition time.

Operators: + - * / % ^ (** too), comparisons, && || !, ternary c ? a : b.

Functions: sin cos tan asin acos atan atan2 abs sign floor ceil round(x[,decimals]) fract sqrt pow exp ln log10 min max clamp(x,a,b) lerp(a,b,t) map(x,inA,inB,outA,outB) (clamped, alias interpolate) mapu (unclamped) mod step(edge,x) smoothstep(a,b,x) noise(x[,seed]) noise2(x,y[,seed]) rand(seed) spring(frame[,damping,stiffness,mass]) wiggle(freq,amp[,seed]) pingpong(x,len) deg rad, and every easing name as a function: easeOutBack(p).

Values can also be strings ('single' or "double" quotes) and colors:

functionresult
pick(i, a, b, c) or pick(i, [a, b, c])the item at i, cycling (pick(5, ['x','y']) = 'y'); items may be numbers, strings or colors
hsl(h, s, l[, a])color; h in degrees, s and l in 0..100, a in 0..1
rgb(r, g, b[, a])color; r g b in 0..255
lerp(c1, c2, t)blends two colors when given colors ('#f00' strings count)
pad(x, width[, char])pad(3, 2) = "03"
fmt(x[, sep[, decimals]])thousands separators: fmt(1234567) = "1,234,567", fmt(x, '.', 2) = "1.234,50"
'a' + xstring concatenation when either side is a string

Numeric fields turn strings into numbers; color fields (fill, stroke, shadow.color, ...) take colors or color strings; text ${...} prints the value. Page counter: "${pad(i + 1, 2)} / ${pad(n, 2)}".

#Easing

linear, hold (jump at the end), ease (= easeInOutCubic), easeIn, easeOut, easeInOut, ease{In|Out|InOut}{Sine|Quad|Cubic|Quart|Quint|Expo|Circ|Back|Elastic|Bounce}, cubic-bezier(x1,y1,x2,y2) (or an array [x1,y1,x2,y2]), steps(n), spring(bounce) (a spring from rest that settles at the end: spring(0) has no overshoot, spring(0.4) bounces).

#Motion

A motion token is a curve with a duration. Write it once, use it by name:

json
"theme": { "motion": {  "house": { "spring": 0.15, "duration": "0.5s" },  "glide": { "ease": [0.22, 1, 0.36, 1], "duration": "0.6s" },  "curve": "cubic-bezier(0.22, 1, 0.36, 1)"} }
  • spring: a bounce 0..1 (0 = none), true, { "bounce" } or { "damping", "stiffness", "mass" }. A spring starts from rest, so nothing jumps on its first frame, and it settles exactly at duration.
  • ease + duration: any easing. A bare easing ("curve" above) has no duration of its own.
  • Built in: smooth (no bounce, 0.7s: the default entrance), snap (bounce 0.15, 0.5s), bouncy (bounce 0.45, 0.8s), gentle (no bounce, 1.2s). A theme may redefine them: redefining smooth changes every default entrance.

Use a name as "motion" on enter/exit, tweens and transitions, as "ease" anywhere (its curve, without the duration), and as an expression function: "width": "=600 * house(clamp(t / 0.5, 0, 1))". Names must not clash with built-in easings, expression functions or variables. (The 0.5 top-level easings still works; vidmake migrate moves it here.)

#Colors and paints

Colors: #rgb, #rgba, #rrggbb, #rrggbbaa, rgb(), rgba(), hsl(), oklch(62% 0.19 260), oklab(), CSS names, transparent, or [r,g,b,a].

Gradients (coordinates are relative to the layer box):

json
{ "type": "linear", "angle": 90, "stops": ["#7c3aed", "#06b6d4"] }{ "type": "linear", "angle": 135, "stops": [[0, "#000"], [0.7, "#123"], [1, "#fff"]] }{ "type": "radial", "center": [0.5, 0.5], "radius": 0.5, "stops": ["#fff", "#fff0"] }

angle follows CSS (0 = to top, 90 = to right) and is animatable.

#Presets: enter and exit

A layer enters from a state and exits to one; vidmake animates between that state and the layer as written:

json
"enter": { "from": { "opacity": 0, "y": "0.3em", "blur": "0.15em" }, "motion": "snap", "delay": "@title" }"exit":  { "to": { "opacity": 0, "scale": 0.96 } }

State properties: opacity (0..1), x, y (offsets: px, "%" of the parent, "em" of the font size), scale, scaleX, scaleY, rotate (degrees), blur (px or em). Each may carry its own motion, so opacity can finish before the move settles: "from": { "opacity": 0, "y": { "value": 40, "motion": "bouncy" } }.

fielddefaultnotes
typea preset (below); from/to adjust it: { "type": "fadeUp", "from": { "blur": 8 } }
from / tothe state (from for enter, to for exit)
motionenter smooth, exit easeInCubic 0.4sa motion token (see Motion); a bare easing keeps the default duration
delay0enter only: time after the layer starts (markers work)
duration, easefrom motionoverride the motion's duration or curve
distancepx, for the presets that move
clip"line" (text enter only): each line shows only inside its own box, so glyphs rise from behind it
feather, edgewipes: soft edge (px) and a band of color riding it: "#2563eb" or { "color", "width" }

Presets are named states: fade, fadeUp|Down|Left|Right (fade + a short move: 0.3em for text, 32px otherwise), slideUp|Down|Left|Right (from off the parent), rise (text: up from behind its line, motion snap), scale, pop (from 0, motion bouncy), zoom (from 1.2 and transparent), blur, rotate, wipeLeft|Right|Up|Down (reveal mask), typewriter (text). "enter": "fadeUp" is { "from": { "opacity": 0, "y": "0.3em" } }. Enter and exit combine with your own animations.

#Stagger

A stagger spreads start times over a total time, so a long title doesn't take longer than a short one.

json
{ "type": "text", "text": "Design that moves", "enter": { "from": { "opacity": 0, "y": "0.3em", "blur": "0.15em" } }, "stagger": "char" }{ "type": "group", "layout": "row", "stagger": { "over": "0.4s", "from": "center" }, "children": [ ... ] }{ "type": "ellipse", "repeat": { "count": 12, "layout": "row", "stagger": { "from": "edges" } }, "enter": "pop" }
  • Text: each character, word or line plays the layer's enter (default fadeUp) at its turn; the whole layer doesn't also enter. A wipe or typewriter enter stays on the whole layer while the units fade up. % in a unit's state is of the line height. Words or lines with "clip": "line" (or rise) slide in from behind their line.
  • Group: each child with an enter (or a staggered text) starts at its turn; children that don't enter take no turn. Exits run in reverse (the last to arrive leaves first). A group or repeat also takes true or a gap: "stagger": "80ms".
  • Repeat: each copy starts at its turn.
fielddefaultnotes
bywordtext only: char, word, line ("stagger": "char" is short for { "by": "char" })
overchar 0.4s, word 0.6s, line 0.5s, others 0.5sfrom the first start to the last, whatever the count
maxchar 40ms, word 100ms, line 150ms, others 100msthe longest gap, so a few units don't drag
eacha fixed gap per unit instead of over
fromfirstfirst, last, center, edges, random (fixed shuffle) or an index
spreadlineareasing of the start times: easeOut bunches the late ones

The 0.5 text form { "by", "type", "each", "duration", "delay", "distance", "ease" } still works: those fields describe the unit entrance inside the stagger.

#Series and transitions

A group with "series": true plays its children back-to-back (Remotion <Series> / <TransitionSeries>). Every child needs a fixed duration (explicit, or media length). A child's start adds a gap/offset. A child's transition overlaps it with the next child:

json
{ "type": "group", "series": true, "children": [  { "id": "a", "type": "group", "duration": "3s", "transition": { "type": "slideLeft", "duration": "0.5s" }, "children": [] },  { "id": "b", "type": "group", "duration": "3s", "transition": "fade", "children": [] },  { "id": "c", "type": "group", "duration": "3s", "children": [] }]}

Transitions: fade, slideLeft|Right|Up|Down (push), wipeLeft|Right|Up|Down, zoom, blur, none. The object form also takes motion or ease (default easeInOut), and wipes take feather and edge (as for presets): "transition": { "type": "wipeUp", "duration": "0.4s", "ease": "house", "feather": 80, "edge": { "color": "#2563eb", "width": 14 } }. The series group's duration is the sum minus overlaps.

#Props

Like Remotion input props. Declare defaults in the composition's props, reference them anywhere as {{name}} (dotted paths work: {{user.name}}). A string that is exactly "{{name}}" is replaced by the raw JSON value (numbers stay numbers, objects stay objects); otherwise the value is spliced into the string. Override at the CLI: --props '{"title":"Hi"}', -p title=Hi -p count=3, or --props-file props.json. use layers pass props to the referenced composition.

{{name}} is for props only; design tokens live in the Theme and are written $name.

#Theme

The project's theme holds its design tokens. Every composition (and every used one) sees them:

json
"theme": {  "extends": "brand/tokens.json",  "color":  { "ink": "#0a0a09", "paper": "#f6f3ee", "accent": "oklch(62% 0.19 260)", "muted": "{color.ink}/60%" },  "space":  { "s": 16, "m": 32, "l": 64 },  "type":   { "display": { "font": "Brand", "size": 96, "weight": 700, "tracking": -0.02, "leading": 1.05 },              "label":   { "font": "Brand", "size": 22, "weight": 600, "tracking": 0.12, "uppercase": true } },  "motion": { "house": { "spring": 0.15, "duration": "0.5s" } },  "styles": { "card": { "fill": "$paper", "cornerRadius": 28 } },  "modes":  { "dark": { "color": { "ink": "#f6f3ee", "paper": "#151513" } } }}

Groups are free-form; four have a meaning: type (type styles), motion (named motions, see Motion), styles (layer styles) and modes.

References. A value that is exactly "$color.accent" becomes the token's value (a number stays a number, a style stays an object); "$$x" is the literal text $x. In a use layer's props, a $word that names no token stays text. A leaf name alone works when it is unique ("$accent"); otherwise validate lists the matches. In expressions the value is spliced in (quoted strings in the expression are left alone): "=lerp($ink, $accent, p)", "x": "=$space.l - 10". In text, only inside ${...}: "Price $5" stays literal, "${$space.l}px" doesn't. Unknown tokens are errors with a suggestion.

Aliases between tokens: "{color.ink}" (DTCG) or "$color.ink", plus "{color.ink}/60%" for the same color at 60% alpha. A missing target or a cycle is an error naming the chain.

Styles. style merges theme fields under a layer's own fields (the layer wins); a list applies in order:

json
{ "type": "text", "text": "Ship it", "style": "$type.display", "fill": "$accent" }{ "type": "rect", "width": 480, "height": 300, "style": ["$styles.card", { "cornerRadius": 0 }] }

Type styles use design words: font, size (fontSize), weight, leading (lineHeight), tracking (em of the font size, becomes letterSpacing), uppercase, italic. Any other key is a layer field.

Modes are partial overrides: --theme dark on render, still, storyboard, validate (and every command that compiles) lays modes.dark over the theme before aliases resolve, so {color.ink} follows the mode. --theme-file brand.json lays a whole file over the theme. vidmake theme project.json [--theme dark] lists every token, its resolved value and whether anything uses it.

Files. "theme": "brand/theme.json" loads a file; "extends" (a path or a list) loads files underneath the local tokens. W3C design-token (DTCG) files work as a design tool exports them: $value and $type (also inherited from groups) are read, other $ keys ignored. color (strings, or { colorSpace: srgb|hsl|oklch|oklab, components, alpha }), dimension (px, rem = 16px), duration, cubicBezier (an ease), fontFamily, fontWeight, number, shadow (becomes a shadow), gradient (stops), typography (a type style) and transition (a motion) become vidmake values.

The 0.5 tokens field and {{token}} still work with a warning; vidmake migrate project.json rewrites a project.

#Rendering

code
vidmake render project.json -o out/video.mp4            # H.264 + AACvidmake render project.json -o out/video.webm           # VP9 + Opus (alpha if no background)vidmake render project.json -o out/video.mov            # ProRes (4444 with alpha if no background)vidmake render project.json -o out/anim.gif --scale 0.5vidmake render project.json -o out/audio.mp3            # audio only (.mp3 .wav .m4a)vidmake render project.json -o out/frames --codec png   # PNG sequence (directory)

Flags: --codec, --crf (default h264 23, h265 26, vp9 30; higher is smaller), --frames 0-90 or --frames 1s-3s (end exclusive), --scale, --concurrency, --muted, --json (progress events), --ffmpeg-arg=... (repeatable, passed to ffmpeg), --comp, --props, --draft (no motion blur, scale 0.5 unless --scale is given, fastest encoder preset: a quick full-length preview), --encoder auto|hardware|software (default auto, see below). --json progress events carry rendered, total, percent, elapsed, fps and eta (seconds left). The final done event has encoder (the ffmpeg encoder used), hardware (true/false), bytes, bitrateMbps and warnings, which flags a bitrate above ~20 Mbps at 1080p (grain and noise are the usual cause) and suggests a --crf. Requires ffmpeg/ffprobe on PATH (override with VIDMAKE_FFMPEG / VIDMAKE_FFPROBE), except on macOS, see below. Set VIDMAKE_DEBUG=1 to print the ffmpeg command.

#Media on macOS without ffmpeg

On macOS vidmake can do all its media work with the system's own frameworks (AVFoundation on VideoToolbox, and vImage): probing, decoding video and audio, mixing the soundtrack and encoding. VIDMAKE_MEDIA=native selects it, VIDMAKE_MEDIA=ffmpeg selects ffmpeg; unset, macOS uses ffmpeg when it is installed and the native engine when it isn't. The studio in vidmake.app always uses the native engine, and the app ships no ffmpeg. The native engine writes H.264 and HEVC .mp4, ProRes .mov (4444 with alpha when there is no background), .gif, AAC .m4a, .wav and PNG sequences; it reads whatever macOS plays (mp4, mov, m4v, m4a, mp3, wav, aiff, caf, ...). VP9/WebM and MP3 output need ffmpeg (used if installed), and WebM/MKV/Ogg sources can't be read. --crf becomes a bit rate (the same default quality targets), --encoder and --ffmpeg-arg don't apply, and the done event says "engine": "native" with encoder avfoundation-h264, -hevc or -prores (hardware is true for H.264 and HEVC, which every Mac's media engine encodes; an explicit --encoder prints a warning). It matches the ffmpeg engine's output: the same frames of video layers (rotated phone clips upright, untagged video read as BT.601 as ffmpeg does), the same mix (trims, loops, pitch-preserving speed, volume, fades), and it tags its files BT.709.

#Hardware encoding

--encoder auto (default) encodes h264, h265 and prores on the GPU/media engine when vidmake hardware finds a working one (VideoToolbox on macOS today; the check is a real test encode, so it stays off where the driver is missing, e.g. in VMs and sandboxes). vp9, gif, png and audio are always software. --encoder hardware fails with the reason when unavailable; --encoder software forces libx264 / libx265 / prores_ks. If a hardware encode fails mid-render, auto retries once in software. Hardware encoders use almost no CPU, leaving every core to the rasterizer. vidmake hardware [--json] prints what was detected. VIDMAKE_HWACCEL=off disables all hardware use.

--crf is mapped to the encoder's own scale (VideoToolbox -q:v, 3 points per CRF step) so the same number gives similar quality on both: the defaults (h264 crf 23, h265 crf 26) were calibrated to equal or better SSIM than the software defaults, at roughly 2-3x the file size (hardware encoders are less efficient; raise --crf, or use --encoder software, for the smallest files). Transparent ProRes uses 4444 on the hardware encoder when it supports alpha. Hardware decoding of video layers is available but off by default, as it measured slower than software decoding (VIDMAKE_HWDECODE=on).

Hardware detection, ffprobe results and decoded audio are cached on disk (keyed by each file's path, size and mtime, so an edited asset is re-read), which keeps repeated validate / inspect / render runs from re-spawning ffmpeg. The cache lives in ~/Library/Caches/vidmake (macOS) or ~/.cache/vidmake; set VIDMAKE_CACHE_DIR to move it or VIDMAKE_CACHE=off to disable it.

#CLI

commandpurpose
docs [topic]this reference, or one section (vidmake docs presets)
init [dir]starter project
list <project>compositions, sizes, durations, props
validate <project> [--all]full compile + lint; exit code 2 on errors
timeline <project>layer timing table, Gantt chart, audio clips
inspect <project> -f N / -t 2s [-l id]resolved properties and bounding boxes at a frame (-t @marker works everywhere a time does)
trace <project> -l id [--every 5] [--from] [--to]animation samples for one layer
still <project> -t 2s -o f.png [--scale]one frame as PNG
storyboard <project> -o sb.png [-n 12 | --at 0,1s,2s] [--cols 4] [--scale 0.25]contact sheet
render <project> -o filefinal output
hardware [--json]detected hardware video encoders/decoders (what render --encoder auto uses)
theme <project> [--theme mode] [--json]every theme token, its resolved value, and whether it is used
migrate <project> [--check]rewrite a 0.5 project: tokens → theme, easings → theme.motion, {{token}} → $token
probe <files...>media duration, size, fps, audio (JSON)
analyze <audio | project> [--every 0.5s] [--fps 30] [--min-rise 6] [--onset-window 10ms] [--json]beat times, tempo, onsets with strength and band, amp/bass curves and saturation, as audio-reactive expressions see them
fonts [filter] [--project p.json] [--faces]installed font families; with a filter or --faces, each family's weights, variable wght range and italics
get <project> <path>read a value
set <project> <path> <json>write a value (plain strings may skip the quotes; negative numbers need no --)
unset <project> <path>delete a field
add <project> '<layer json>' [--comp] [--parent groupId] [--index n]insert layer(s); @file.json or - for stdin
rm <project> <layerId>delete a layer
transcribe <audio|video> [-o out.json|.srt|.vtt|.txt] [-m model] [-l lang] [--translate] [--prompt text] [--json]speech to word-timed captions with whisper.cpp; downloads the selected model on first use
models [list|use <id> [--install]|install [id]|remove <id>|link <path>] [--json]transcription models: list, select, download, delete, or link copies already on disk
update [--check]install the newest release (or only report it)
schemaJSON Schema for project files

Paths for get/set/unset: layerId.field.sub, compId.field, or a JSON pointer (/compositions/0/fps). Commands that compile take --theme <mode> and --theme-file <file> (see Theme), next to --comp and --props.

vidmake checks for a newer release at most once a day. On a terminal it asks whether to update; otherwise it prints one note: line to stderr (stdout and --json output are untouched). Disable with VIDMAKE_NO_UPDATE_CHECK=1 (also skipped when CI is set).

#Transcription

vidmake transcribe talk.mp4 writes talk.json: Whisper-style { "text", "language", "model", "duration", "segments": [{ "start", "end", "text", "words": [{ "word", "start", "end", "probability" }] }] }, times in seconds of the file, which a captions layer reads as is. -o picks the file and format (.json, .srt, .vtt, .txt). vidmake extracts the audio (with ffmpeg, or macOS's own frameworks) and hands it to whisper.cpp's whisper-cli, which ships inside vidmake.app beside vidmake (else it is looked up on PATH, e.g. brew install whisper-cpp; VIDMAKE_WHISPER names it).

Models come from a pinned catalog: vidmake models lists them with size, languages and status; vidmake models use <id> selects one (the studio shares the choice). Nothing downloads until a transcription needs the model; the download resumes if interrupted and is checked against its SHA-256 (vidmake models install fetches it ahead of time). The default, small.en-q5_1 (190 MB), is the all-round choice for English; for other languages use a multilingual model such as large-v3-turbo-q5_0 with -l <lang> or -l auto, and --translate to get English. --prompt "Chiang Mai, vidmake" primes names and jargon. If the clip is trimmed or sped up in the composition, shift the times (start - trimStart) or let vidmake studio do it (its Transcribe button times captions as the layer plays). Models live in VIDMAKE_DATA_DIR (default ~/Library/Application Support/vidmake, %APPDATA%\vidmake, ~/.local/share/vidmake); VIDMAKE_WHISPER_MODEL overrides the selection with an id or a ggml .bin path.

#Lint

validate warnings end with a code: offCanvas (entirely outside the canvas at its midpoint), textOverflow (text partly outside), invisible (opacity ~0 at its midpoint), zeroDuration, afterEnd (starts after the composition ends), srcTemplate (a ${...} src resolves to the same file in every copy). When a warning is intended (rays that fly off-screen, a blinking cursor), silence it on the layer: "lint": { "ignore": ["offCanvas", "invisible"] }, or "lint": false for all. A group's setting covers its children.

#Remotion mapping

Remotionvidmake
<Composition>entry in compositions
useCurrentFrame()f / t in expressions
interpolate()keyframes, tweens, map()
spring()"ease": "spring(0.2)", a motion token, "spring": {...} or spring(f)
Easing.*ease names, cubic-bezier()
<Sequence from durationInFrames>start, duration on any layer or group
<Series> / <TransitionSeries>group with series: true + transition
<AbsoluteFill>rect / group (default to parent size)
<Img>, <OffthreadVideo>, <Audio>image, video, audio
input props / defaultPropsprops + {{name}} + --props
React componentscompositions referenced by use layers
@remotion/captionscaptions layer (srt/vtt/whisper json)
@remotion/media-utils visualizeAudiowaveform layer
@remotion/shapes, @remotion/paths evolvePathpolygon star arc path, drawEnd
@remotion/transitionstransition presets
<CameraMotionBlur>composition motionBlur (per layer motionBlur: false)
Array.map over componentsrepeat with i / n
useAudioData + visualizeAudioamp, bass, beat, beats
calculateMetadata duration"duration": "auto"
npx remotion render / stillvidmake render / still
Studio previewstoryboard, still, inspect, timeline, trace

#motion.dev mapping

motion.dev / Framer Motionvidmake
initial={{ opacity: 0, y: 24 }} + animate"enter": { "from": { "opacity": 0, "y": 24 } }
exit={{ opacity: 0 }}"exit": { "to": { "opacity": 0 } }
transition={{ type: "spring", bounce: 0.2, duration: 0.5 }}"motion": { "spring": 0.2, "duration": "0.5s" }
per-property transition"from": { "y": { "value": 24, "motion": "bouncy" } }
staggerChildren, stagger(0.05, { from: "center" })group "stagger": { "each": "50ms", "from": "center" }
splitText + staggertext "stagger": "char" / "word" / "line"
variantstheme motion tokens and presets

#Recipes

Fullscreen background video, darkened:

json
{ "id": "bg", "type": "video", "src": "broll.mp4", "width": "100%", "height": "100%", "muted": true, "brightness": 0.6 }

Title whose letters blur in, then float:

json
{ "id": "title", "type": "text", "text": "Launch day", "fontSize": 120, "fontWeight": 800, "y": "=ph*0.45 + sin(t*2)*8",  "enter": { "from": { "opacity": 0, "y": "0.3em", "blur": "0.15em" } }, "stagger": "char", "exit": "fade" }

Headline whose words rise from behind their line: { "type": "text", "text": "Ship faster.\nSleep better.", "enter": "rise", "stagger": "word" }

Number counter: { "type": "text", "text": "${fmt(round(map(t, 0, 2, 0, 1500000)))} users" }

Bar chart from one layer:

json
{ "id": "bar", "type": "rect", "width": 60, "anchor": "bottom", "x": "50%", "y": 900, "cornerRadius": 8,  "repeat": { "count": 8, "layout": "row", "spacing": 90, "stagger": { "over": "0.5s" } },  "height": "=pick(i, [120, 340, 260, 420, 380, 520, 470, 610]) * easeOutBack(clamp(t / 0.6, 0, 1))",  "fill": "=pick(i, ['#38bdf8', '#818cf8'])" }

Beat-synced pulse: "scale": "=1 + 0.2 * beat" on any layer while music plays.

Progress bar:

json
{ "type": "rect", "anchor": "left", "x": 100, "y": 1000, "height": 12, "cornerRadius": 6,  "width": { "from": 0, "to": 1720, "duration": "5s", "ease": "linear" }, "fill": "#22d3ee" }

Ken Burns photo: "scale": { "from": 1, "to": 1.15, "duration": "6s", "ease": "linear" } on an image with width/height 100%.

Strike items off a list on cue (no measuring: the line follows the glyphs):

json
{ "id": "todo", "type": "text", "text": "${pick(i, ['data entry', 'follow-ups', 'reports'])}", "align": "left",  "anchor": "left", "x": 140, "y": 300, "repeat": { "count": 3, "layout": "column", "spacing": 110, "origin": "start" },  "decoration": { "type": "strike", "progress": { "from": 0, "to": 1, "start": "@strike", "duration": "0.3s" } },  "opacity": "=1 - 0.6 * clamp(since('strike') / 0.3, 0, 1)" }

Staggered list: a group with "layout": "column", "stagger": true and "enter": "fadeLeft" on its items, or one text layer with "stagger": "line" and \n separators.

examples/features.json shows every feature above in one project.