Skip to content
urdidourdidoDocs

Declare and build a video

A video is one video.toml and the side files it names. urdido reads it, refuses what it can catch before it spends time or money, builds, and measures the result. This guide is the order of work.

Start from the example in Build a first video or from a published video of your own. Pick the source kind that matches what the video is made of (see Source kinds), and keep the product’s brand, words and URLs in the declaration, never in a script of your own.

A path starts at the declaration’s folder, or at a root the declaration names under [roots].

Terminal window
urdido check video.toml

The check refuses an unknown key with the nearest valid name, and a table keyed by language that lacks a language [video] languages declares. Fix the key or the table; never work around a refusal. Two other kinds of line can appear:

  • a stale: line names a built cut (the long one or a Short) older than its takes, scenes or declaration: build that cut again before publishing it;
  • a words: line names a bought take without current word times, and the urdido words command that writes them.

urdido check --schema prints the JSON Schema an editor can complete from.

Buy the takes and hear them back before you build. See Narrate a video.

Terminal window
urdido build video.toml --language en --plan

The plan stops at the timeline and writes <name>.<language>.plan.json. Read it before a long encode: it names each shot, the second chosen for an "auto" start, and the takes in order.

Terminal window
urdido build video.toml --language en

--cut all builds every cut: the long one, then each chapter or Short (an explainer’s urdido shorts too), and skips a cut already built from today’s inputs. The final check measures loudness, true peak and flashes on the finished file; a refusal names the second and the clip.

To try a second opening of a video already published, keep the kind and add [video] base = "../published". The variant carries only the tables and files it changes; the rest is read from the base through hard links, so no footage is copied.

For a program of many videos with one structure (a series of games, of products), write the template once:

Terminal window
urdido expand template.json items.json --out programs/

It fills a script and a storyboard, one chapter per item, and refuses an item that lacks a field by name. Given a folder of item files and --language, it expands and builds only the programs whose data or template changed.