popost 4.6.6 → 4.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/SKILL.md +2 -2
  2. package/assets/video/examples/catalogue.json +114 -0
  3. package/assets/video/examples/list-cards.html +155 -0
  4. package/assets/video/examples/page-flip.html +163 -0
  5. package/assets/video/times.js +59 -0
  6. package/dist/cli.js +2018 -754
  7. package/dist/index.js +2015 -751
  8. package/dist/types/version.d.ts +1 -1
  9. package/dist/types/video/commands/replication-books.d.ts +2 -0
  10. package/dist/types/video/compile/page-bundle.d.ts +1 -1
  11. package/dist/types/video/describe/parts.d.ts +3 -1
  12. package/dist/types/video/eval/readback-kept.d.ts +10 -0
  13. package/dist/types/video/eval/readback-run.d.ts +5 -1
  14. package/dist/types/video/generate/cast.d.ts +4 -0
  15. package/dist/types/video/page/apply.d.ts +1 -1
  16. package/dist/types/video/page/contract.d.ts +14 -0
  17. package/dist/types/video/page/dom.d.ts +5 -0
  18. package/dist/types/video/page/times.d.ts +31 -0
  19. package/dist/types/video/preview/shell/dom.d.ts +9 -0
  20. package/dist/types/video/preview/shell/studio/style.d.ts +1 -1
  21. package/dist/types/video/preview/shell/studio/ui.d.ts +2 -0
  22. package/dist/types/video/preview/shell-bundle.d.ts +1 -1
  23. package/dist/types/video/project/check-sound.d.ts +3 -0
  24. package/dist/types/video/render/chunked.d.ts +29 -0
  25. package/dist/types/video/render/chunks.d.ts +39 -0
  26. package/dist/types/video/render/encode.d.ts +5 -0
  27. package/dist/types/video/render/index.d.ts +26 -0
  28. package/dist/types/video/render/record.d.ts +1 -1
  29. package/dist/types/video/render/session.d.ts +17 -0
  30. package/dist/types/video/render/shots.d.ts +11 -0
  31. package/dist/types/video/replication/books.d.ts +64 -0
  32. package/dist/types/video/replication/production.d.ts +5 -0
  33. package/dist/types/video/replication/retiming.d.ts +16 -0
  34. package/dist/types/video/replication/review.d.ts +50 -0
  35. package/dist/types/video/retarget/fps.d.ts +3 -5
  36. package/dist/types/video/retarget/index.d.ts +10 -2
  37. package/dist/types/video/retarget/speak.d.ts +2 -0
  38. package/dist/types/video/retarget/takes.d.ts +66 -0
  39. package/dist/types/video/retarget/tempo.d.ts +2 -0
  40. package/dist/types/video/speech/types.d.ts +5 -0
  41. package/dist/types/video/template/fill.d.ts +2 -0
  42. package/dist/types/video/template/save.d.ts +2 -0
  43. package/dist/types/video/template/structure.d.ts +1 -0
  44. package/dist/types/video/voice/cache.d.ts +10 -0
  45. package/dist/types/video/voice/hosted.d.ts +10 -4
  46. package/dist/types/video/voice/index.d.ts +25 -1
  47. package/dist/types/video/wallet.d.ts +7 -0
  48. package/package.json +1 -1
  49. package/references/image-workflow.md +1 -1
  50. package/references/video-effects.md +9 -1
  51. package/references/video-performers.md +12 -2
  52. package/references/video-project.md +5 -3
  53. package/references/video-replication.md +32 -3
  54. package/references/video-scenes.md +52 -2
  55. package/references/video-sfx.md +1 -1
  56. package/references/video-sound.md +18 -3
  57. package/references/video-step-0-machine.md +61 -0
  58. package/references/video-step-1-read.md +168 -0
  59. package/references/video-step-2-structure.md +24 -0
  60. package/references/video-step-3-content.md +117 -0
  61. package/references/video-step-4-lines.md +88 -0
  62. package/references/video-step-5-scenes.md +126 -0
  63. package/references/video-step-6-voice.md +53 -0
  64. package/references/video-step-7-deliver.md +92 -0
  65. package/references/video-templates.md +17 -7
  66. package/references/video-tools.md +8 -6
  67. package/references/video.md +50 -666
@@ -2,7 +2,7 @@
2
2
 
3
3
  GENERATED by `tools/video/port-hyperframes.mjs` from `assets/video/examples/catalogue.json`. Do not edit by hand.
4
4
 
5
- Every example scene of the Skill: 460 scenes, each seekable by time (a paused GSAP timeline handed to the engine, or `render(seconds)`), with declared parameters and declared sound cues. Find one, look at it, write it into the project:
5
+ Every example scene of the Skill: 462 scenes, each seekable by time (a paused GSAP timeline handed to the engine, or `render(seconds)`), with declared parameters and declared sound cues. Find one, look at it, write it into the project:
6
6
 
7
7
  ```bash
8
8
  popost video scene example --search "bounce ball" # entries that have every word, the best first; --class text narrows
@@ -24,6 +24,7 @@ Ported entries come from the registry of [HyperFrames](https://github.com/heygen
24
24
 
25
25
  | Class | Entries |
26
26
  |---|---|
27
+ | [Content on the voice](#content-on-the-voice) (`card`) | 2 |
27
28
  | [Text and kinetic type](#text-and-kinetic-type) (`text`) | 37 |
28
29
  | [Captions and lower thirds](#captions-and-lower-thirds) (`caption`) | 29 |
29
30
  | [Transitions](#transitions) (`transition`) | 78 |
@@ -40,6 +41,13 @@ Ported entries come from the registry of [HyperFrames](https://github.com/heygen
40
41
  | [Cursors and touches](#cursors-and-touches) (`cursor`) | 18 |
41
42
  | [Motion primitives](#motion-primitives) (`motion`) | 24 |
42
43
 
44
+ ## Content on the voice
45
+
46
+ | Name | What it shows | Seconds | Libraries | Parameters | Cues (seconds) |
47
+ |---|---|---|---|---|---|
48
+ | `list-cards` | A title and a list of cards (numbered points, steps, tools, reasons) that come on one by one as the narration says them: at the spoken lines of the shot or when each label is sa... | 4 | - | title, items, columns, numbered, highlight, follow, firstLine, lead, +6 | pop 0.7, 1.5, 2.3, 3.1 |
49
+ | `page-flip` | Pages that turn as the narration goes on: a stack of pictures or drawn pages (screenshots, slides, a catalogue, before and after) whose top page turns away like a book page, sli... | 4 | - | pages, labels, style, fit, width, height, y, radius, +11 | whoosh 1.3, 2.5 |
50
+
43
51
  ## Text and kinetic type
44
52
 
45
53
  | Name | What it shows | Seconds | Libraries | Parameters | Cues (seconds) |
@@ -4,7 +4,7 @@ Use these rules for every generated video, including product demonstrations, exp
4
4
 
5
5
  ## Choose identity by role and recurrence
6
6
 
7
- Inventory the visible roles and the generated clips where each appears before requesting media. Follow the user's explicit character requirements and supplied/selected character material first. Without those, use a new fictional person with a similar role, age range, energy and presentation style, but different facial proportions and features. Similar mood is not permission to reproduce the reference face.
7
+ Inventory the visible roles and the generated clips where each appears before requesting media. Follow the user's explicit character requirements and supplied/selected character material first. Without a selected identity, use a new fictional person with a similar role, age range, energy, presentation and broad facial style. Observe the source's face-shape family, brow/eye character and softer or more angular features; keep that overall casting style while designing distinct facial proportions and features. A broad requirement such as "a man", "a woman" or "a Chinese male presenter" changes the named traits and leaves compatible source traits in place. Similar facial style does not select the reference person's identity.
8
8
 
9
9
  Instructions such as "keep the male presenter", "retain the avatar window", or "preserve the host's timing, position, size and crop" describe the format. They do **not** select the original person's identity, even when copied into `permission`. Do not extract that person's face as the new cast image, attach their portrait to the image generator, or ask the model to preserve their facial features. Describe the archetype in words and generate an independent face. Review the actual result against the reference before generating the clips; changing only hair, glasses or clothing is insufficient.
10
10
 
@@ -26,6 +26,16 @@ Each video material lists `"cast":["host"]`; `[]` explicitly means no visible pe
26
26
 
27
27
  Before delivery, inspect the opening, later appearances and each new clip boundary. Check both requirements separately: the person is visibly different from the reference and is consistent with the new cast image throughout the result. Record any drift honestly; a valid manifest or image hash does not prove visual identity quality.
28
28
 
29
+ ## Photographic people should feel alive
30
+
31
+ For every photographic human, including an unspecified host, broad male/female brief or selected human character, set `visual.realism: "natural-human"`. Record observed broad facial traits in `visual.archetype.facialStyle`; explicit user changes take priority. Leave this treatment off for illustration, animation, dolls and deliberately stylized avatars unless the user asks for a photographic human. Preserve a supplied person's actual age, features and skin; do not invent identity marks or beautify them.
32
+
33
+ For a talking head, use `visual.framing: "portrait"`: one clear head-and-shoulders identity image with enough face detail to condition the clips. Use `"full-body"` when the performance needs body or wardrobe detail. These fields affect the actual host preparation prompt; `natural-human` also travels through the cast instructions to every generated clip, including a single-clip role without an identity image. Keep the same reviewed portrait across recurring clips.
34
+
35
+ Describe healthy, unretouched human skin with subtle pores and fine facial hair, slight natural tonal variation, age-appropriate texture and slight facial asymmetry, at the detail level the framing can show. Keep plausible facial volume, highlights and shadows under the source's lighting style. Do not rely on "photorealistic", "8K" or "ultra-detailed" alone, or trade smooth skin for exaggerated wrinkles, acne, freckles or added age. A polished source can remain polished while retaining human texture.
36
+
37
+ In each speaking clip, briefly request natural, non-repetitive blinks, breathing and small expression/head changes following the actual words and emphasis. Preserve the source's delivery energy and required gestures; avoid a fixed smile, periodic nodding or generic constant hand motion. Keep dialogue in the existing `speech` contract. Inspect the real image before video generation, then actual speaking frames and clip boundaries for skin smoothing, face drift and mechanical performance. Judge human presence at normal playback size as well as facial detail in full-size frames; prompt wording alone is not proof of success.
38
+
29
39
  ## A person who speaks on camera speaks on camera
30
40
 
31
41
  When a visible person says the words in the reference (its speech kind is `on-camera`: a talking head, an interview, a presenter in a window), the person of the re-make says the new words on camera. Never re-make such a person as silent footage with a voice-over on top, and never ask for "closed mouths" to avoid speech. The integrated video models speak lines written into the prompt with matching mouths; no separate lip-sync or avatar model is needed.
@@ -63,7 +73,7 @@ popost video voice speak project --speaker host --text "Final words" --out proje
63
73
 
64
74
  `use` downloads the real preview and binds the platform voice id to the project profile. Official voices are already cloned; personal uploads are cloned on first actual speech use and the platform reuses that mapping afterwards. Listing, selection and quoting do not clone or charge. Speech is paid as images are, within the one budget of the video (`video.md`, money rule): the voice-over is in the cost overview (a `voice quote` of the script), and `voice speak` runs with `--confirm --max-credits <left>` and prints `chargedCredits`. Without `--confirm`, or above `--max-credits`, it speaks nothing and ends with exit code 3 and the price; ask the user only when the price is more than what is left. Each command enforces its own ceiling; there is no server-side or project-file budget. The resulting WAV and receipt are real synthesis results. Use this exact audio for voice-over, and for visible lip-sync shots where a lip-sync tool is configured. A hand-assembled narration (lines of `voice speak` mixed with other tools) is never a video's `"sound"` or an audio track: narration is the fill's `"voice"`, spoken by `template fill --speak`, and only for a reference with narration or a user who asked for one.
65
75
 
66
- For template narration and `plan --voice`, pass `popost:default-male`, `popost:default-female` or `popost:VOICE_ID`, and add `--confirm --max-credits <left>` to `plan --voice`, `template fill --speak` and `retarget --speak`: each prices all its lines first (and the pace-calibration sentence, once per voice) and counts its ceiling down line by line. Pace calibration synthesizes audio even with `--dry`; it is not a free preview. A custom `POPOST_TTS_CMD` stays selected unless the voice explicitly starts with `popost:`. Repeating the same text, speed and output path uses the same operation key; an unknown result must be reconciled before making a new paid attempt.
76
+ For template narration and `plan --voice`, pass `popost:default-male`, `popost:default-female` or `popost:VOICE_ID`, and add `--confirm --max-credits <left>` to `plan --voice`, `template fill --speak` and `retarget --speak`: each prices all its lines first (a narration is spoken in takes of consecutive lines, one price a take; and the pace-calibration sentence, once per voice) and counts its ceiling down take by take. Pace calibration synthesizes audio even with `--dry`; it is not a free preview. A custom `POPOST_TTS_CMD` stays selected unless the voice explicitly starts with `popost:`. Repeating the same text, speed and output path uses the same operation key; an unknown result must be reconciled before making a new paid attempt.
67
77
 
68
78
  The default is `audio-first`. Configure `POPOST_VOICE_CMD` to a synthesizer that actually supports the supplied timbre/clone, then run `popost video voice speak project --speaker host --text "Final words" --out project/assets/line.wav`. Its contract is `<command> <request.json> <out.wav>`; the request has `{text,speaker,referenceAudio,voice?}`. It writes real speech, using the same profile for every line. Do not fall back to an unrelated system voice when cloning is unavailable. Voice-over plays these files directly; visible-mouth shots lip-sync to them only through a real `POPOST_LIPSYNC_CMD`. Without one, a person on camera speaks natively (above): never fall back to silent footage with this audio over it. Plan cuts from the resulting audio lengths rather than forcing dialogue into arbitrary video lengths.
69
79
 
@@ -4,7 +4,8 @@
4
4
  text that appears when a word is spoken, another transition). `template fill` writes the whole file again each time
5
5
  it runs, so make hand edits last, after the fill is final, and keep a copy of them. After every edit run
6
6
  `popost video check <project>` (add `--layout` to measure text in the page) and look at a frame with
7
- `popost video frame <project> --frame 45 --out f45.png`. The example that uses every feature once:
7
+ `popost video frame <project> --frame 45 --out f45.png` (several at once, in one browser session:
8
+ `--frames 0,45,90 --out frames`). The example that uses every feature once:
8
9
  `<skill>/references/video-examples/showcase/video.json`.
9
10
 
10
11
  ## Conventions
@@ -27,8 +28,9 @@ it runs, so make hand edits last, after the fill is final, and keep a copy of th
27
28
  ```
28
29
 
29
30
  - **Material**: a file the project uses, with an `id`: `kind` is `image`, `video`, `audio` or `font`; an audio
30
- material may name a `words` file (the time of every spoken word, written by `--speak`), or a sound of the effects
31
- catalogue by `effect` (its id; `video-sfx.md`), fetched at render when its file is missing.
31
+ material may name a `words` file (the time of every spoken word, written by `--speak`; the `<file>.wav.words.json`
32
+ a voice leaves beside its WAV is taken as it is), or a sound of the effects catalogue by `effect` (its id;
33
+ `video-sfx.md`), fetched at render when its file is missing.
32
34
  - **Segment**: one shot, in order; the video is the segments one after another, each `frames` long. Its **base** is
33
35
  what fills it: `{ "color": "#101014" }` (or a gradient: `{ "type": "linear", "angle": 160, "stops": [ { "at": 0,
34
36
  "color": "#1b1f3b" }, { "at": 1, "color": "#e94e77" } ] }`), `{ "material": "<id>", "fit": "cover" }` for a picture
@@ -17,6 +17,20 @@ popost video replication check ref --reference inputs/reference.mp4
17
17
 
18
18
  Initialization binds the real source file's fingerprint and clock. When the describe reading of the same video is in the directory, it also writes in what that reading established, with evidence pointing at `speech.json` and `sound.json`: speech presence and `narration` from confirmed speech kinds (none gives `absent` and `forbid`), and the `music`, `effects` and `ambient` roles a listener heard. It is not an automatic assertion that the agent has understood its visual style, speech, or story. Complete the inventory and evidence from the inspected source before choosing or buying production media. A successful local check is not a semantic content recognizer.
19
19
 
20
+ Add evidence with `popost video replication evidence ref --file <file> --detail "<what it shows>" --add <place>`
21
+ (places: `audio`, `visual`, `inventory`, `music`, `scope`, `event:<id>`, `plan:visual`, `plan:event:<id>`,
22
+ `review:audio`, `review:visual`, `review:event:<id>`). It copies a file that lies outside the directory into
23
+ `replication-evidence/`, reads its SHA-256 and media kind, replaces an entry of the same file whose bytes changed, and
24
+ prints what the contract still lacks. Do not write evidence paths or hashes by hand. `--source` takes the bound
25
+ reference itself (the copy init keeps) with `--at <from,to>` or `--frame` for the part you watched. Once the events
26
+ are written, each with its `span` and `description`, `popost video replication evidence ref --events` binds every
27
+ event that has no evidence yet to the reference at its span, the description as the detail.
28
+
29
+ `init` prints `left`: everything the contract still lacks, at once. Write it in one go. The fields that need
30
+ judgment (`visual.medium` and `style`, the inventory, each event's `mechanism`, `owner` and `states`) are never filled
31
+ in from measurements: the reading's measured caption reveal and transitions are where to look, and what you write
32
+ is what you saw in the frames.
33
+
20
34
  `popost video replication schema` prints the format of `replication.json`, the review, `replication.audio.json` and `replication.plan.json`: every field path with its type and allowed values, and a valid event and evidence entry (`--file <name>` for one file). Read it instead of guessing enum values from check errors.
21
35
 
22
36
  Record these source invariants:
@@ -256,13 +270,24 @@ window.__popostScene = {
256
270
 
257
271
  ## 5. Review the actual artifact, then deliver
258
272
 
259
- Run the normal render and visual/speech checks, inspect the original and output together, and correct actual failures. Record an output review only after the artifact exists:
273
+ Before every render, `popost video preflight project` reports the contract, the plan against the compiled timeline,
274
+ the audio inventory and the project's own checks in one call. Run the normal render and visual/speech checks, inspect
275
+ the original and output together, and correct actual failures. Record an output review only after the artifact exists:
260
276
 
261
277
  ```bash
262
- popost video replication check project --reference inputs/reference.mp4 \
263
- --artifact renders/final.mp4 --review review.json
278
+ popost video replication review project --artifact renders/final.mp4 # binds the file, writes sheets to look at
279
+ popost video replication review project --artifact renders/final.mp4 \
280
+ --passed audio,visual,<event ids that hold> --failed <those that do not> # after looking and listening
281
+ popost video replication check project --reference inputs/reference.mp4 --artifact renders/final.mp4
264
282
  ```
265
283
 
284
+ `replication review` writes `replication.review.json`: the source fingerprint and revision, the artifact's SHA-256 and
285
+ clock, the audio inventory from `replication.audio.json`, and for the sound, the look and every required event
286
+ evidence bound to this file (the whole sound; the middle of each shot; each event's lead-in, middle and resolved frame
287
+ from its span in the plan, or `--event <id>=F,F,F`), each finding pending, with sheets of those frames in
288
+ `review/replication/`. Verdicts are given in a call of their own on the same file, after looking. A new render bound
289
+ again sets every finding back to pending. Add other evidence with `replication evidence project --file … --add review:<name>`.
290
+
266
291
  The review binds the actual source fingerprint, artifact fingerprint, target FPS and frame count. It separately records audio, visual, and every required event as pending, passed, failed or unknown, with evidence. Include all actual audio uses in the audio manifest. A generated speech file routed through a generic `sound` field still counts as added speech; it cannot bypass the no-new-narrator rule.
267
292
 
268
293
  For every temporal event, inspect at least two different actual output frame indices; add intermediate states when a path, interaction or reveal needs them. Bind those indices to the real artifact hash. A source contact sheet, one attractive output frame, a statement saying “passed,” or evidence from an older render does not prove current motion. Recheck after any edit changes the artifact bytes.
@@ -274,3 +299,7 @@ Check the first seconds densely enough to distinguish a static sentence from typ
274
299
  Keep `artifactReady`, `requirementsMet` and quality status distinct. A playable file can still need review or iteration. Unknown source facts or unresolved native failures must stay visible. Do not declare a style/acting requirement met because a geometrical substitute has equal runtime. Deliver the editable project and the actual comparison, content and limitations required by the user; preserve the checkpoint for precise later repairs.
275
300
 
276
301
  Existing projects without the new sidecars keep their previous behavior. Do not silently migrate, rewrite, add speech to, regenerate, or invalidate unrelated projects when using this workflow for an approved repair set.
302
+
303
+ ## Speech-retimed event clocks
304
+
305
+ A strict spoken template fill writes `replication.timing.json` with a lossless source-to-target frame map, bound to the source-reading revision and compiled segment clock. Keep this generated file with the editable project; do not edit it by hand. `replication timeline project` reports source and target spans for every required event. Bind the implementation and actual scene motion to those target spans. A source or timeline change invalidates the map and requires a refill. Without a map, checks retain the original source-clock rule. Duration, real artifact evidence, medium, sound and event coverage still have to pass independently; retiming never establishes a quality pass.
@@ -76,11 +76,60 @@ popost video scene library project # writes project/lib/gsap.min.js; a sc
76
76
 
77
77
  Items in a template fill may specify `span: [0.15, 1]` to appear from fifteen percent of the shot until its end. The interval follows the shot when speech changes its length. `enter` and `exit` use native motions, for example `{ "preset": "fade", "frames": 9 }`; the clip starts at `in` when its visible interval starts. `audio: 0` preserves its source sound; omitted audio is silent.
78
78
 
79
+ ## On the voice
80
+
81
+ With a voice the picture moves with what is said: a card comes on when its line starts, a page turns when the
82
+ narration gets to it. Every scene is given the times of the lines and the words spoken while its shot is on screen, in
83
+ seconds of the shot, before its script runs. They change when the narration is spoken again (another voice, a changed
84
+ line, the tempo that keeps the reference's length), and whatever was placed on them moves with it.
85
+
86
+ ```bash
87
+ popost video scene library project --name times # lib/popost-times.js
88
+ ```
89
+
90
+ ```html
91
+ <script src="../lib/popost-times.js"></script>
92
+ <script>
93
+ var T = popostTimes;
94
+ tl.from('.row-2', { opacity: 0, y: 24, duration: 0.4 }, T.line(2, 1.0) - 0.15); // the shot's 2nd line; 1.0 s without a voice
95
+ tl.from('.price', { scale: 0.6, duration: 0.3 }, T.word('39', 2.4)); // when "39" is said
96
+ M.slam('#total', { at: T.line(3, 2.2) }); // the at of any helper
97
+ </script>
98
+ ```
99
+
100
+ - `T.line(n, otherwise)` is where the n-th line that starts in this shot begins (`T.lineEnd(n, otherwise)` where it
101
+ ends); `T.word(text, otherwise, after)` where the first spoken word that begins `text` starts, not before `after`
102
+ (case, spaces and punctuation do not count; a word may run over several of the speaker's tokens). `T.lines`,
103
+ `T.words` and `T.seconds` (the length of the shot) are the lists themselves.
104
+ - Always give `otherwise`: a sheet (`scene example --sheet`), a check without a voice and a shot in which nothing is
105
+ said get no times. A video without a voice gives the times of its caption lines.
106
+ - Lines are counted in the shot: a shot that starts with its beat has its line 1 at 0 s.
107
+ - The screen helper takes them as the `at` of its steps (`{ at: T.line(2, 1.3), zoom: [...] }`): the camera moves
108
+ to what a line names as it is said.
109
+
110
+ Two examples of the catalogue are built on it. Use them for a list said point by point and for pages shown one by
111
+ one, instead of writing those by hand:
112
+
113
+ | Example | What it draws | Its main parameters |
114
+ |---|---|---|
115
+ | `list-cards` | a title and cards (numbered points, steps, tools, reasons) that come on one by one as they are said, the newest marked | `title`, `items` (each `label` or `label :: note`, separated by `\|`), `columns`, `follow`, `firstLine`, `lead`, colours |
116
+ | `page-flip` | pictures or drawn pages; at each line the top one turns away (`book`), lifts off (`stack`) or is pushed aside (`slide`) | `pages` (picture paths from the scene file, separated by `\|`), `labels`, `style`, `fit`, `follow`, `firstLine`, `turn`, size, colours |
117
+
118
+ ```bash
119
+ popost video scene example list-cards --set "title=Four tools worth saving" \
120
+ --set "items=Find ideas :: what sells and why|Remake :: the structure, your content" --size 1080x1920 --out project/scenes/shot-02.html
121
+ ```
122
+
123
+ `follow=lines` (the default) brings item k on at line `firstLine + k - 1` of the shot, `follow=words` when its label
124
+ is said (write the label as the line says it); where the voice gives fewer times, the rest follow by `stagger`. Their
125
+ sound cues follow the same times. A fill can still change their texts and pictures by slot (`title`, `item-1`,
126
+ `note-1`, `page-1`, `label-1`).
127
+
79
128
  ## The motion helper, three.js and the effects catalogue
80
129
 
81
130
  Before drawing an effect by hand, look for it. The rules of motion, each effect as a function of time and the cue
82
- contract are in `video-motion.md`: **read it before writing the scene of any shot that moves throughout** (step 5 of
83
- `video.md` makes this mandatory), and whenever the reference is motion graphics.
131
+ contract are in `video-motion.md`: **read it before writing the scene of any shot that moves throughout** (step 5,
132
+ `video-step-5-scenes.md`, makes this mandatory), and whenever the reference is motion graphics.
84
133
 
85
134
  ```bash
86
135
  popost video scene library project --name motion # lib/popost-motion.js: easings, springs, seeded randomness, effects, sound cues
@@ -342,6 +391,7 @@ Resource readiness and visual fidelity are separate checks. After consolidation,
342
391
  popost video check <project-dir> # the rules above, with a place and a fix
343
392
  popost video scene check <project-dir> --shots <dir> # every scene opened; three frames of each kept in <dir>
344
393
  popost video frame <project-dir> --frame 45 --out f45.png
394
+ popost video frame <project-dir> --frames 0,45,90 --out frames # many at once, one browser session: frames/f000045.png ...
345
395
  popost video render <project-dir> --out out.mp4
346
396
  popost video preview <project-dir> # frame by frame in a browser, for a person; runs until stopped
347
397
  ```
@@ -51,7 +51,7 @@ popost video sfx place project --density low # thinner: each shot's main m
51
51
  ```
52
52
 
53
53
  - **When**: after the scenes and the timeline are final (scene cues, transitions, captions) and before the last
54
- render; again after every `template fill`, which writes `video.json` anew and drops them (video.md, step 6). It reads the cues the scenes declare (`popost video scene cues`), the transitions no cue marks (a slide,
54
+ render; again after every `template fill`, which writes `video.json` anew and drops them (video-step-6-voice.md). It reads the cues the scenes declare (`popost video scene cues`), the transitions no cue marks (a slide,
55
55
  wipe, whip, zoom or spin takes a whoosh, a glitch a glitch, a flash or shake an impact; a fade, dissolve or blur
56
56
  none) and, when the reading says the reference sounds them, captions that type (`type`) or pop in (`pop`);
57
57
  `--captions` sounds them when the user asks.
@@ -35,7 +35,7 @@ A material request names its clip's sound mode in `"sound"`; a use of the clip o
35
35
  | Mode | What the clip is | Prompt | Mix |
36
36
  |---|---|---|---|
37
37
  | `speech` | its person is the video's speaker | the voice leads, clear and close, over the quiet sound of the place; no music | full level; no voice-over over it (R1) |
38
- | `exhibit` | the thing shown (a song, a demo, a performance): all its sound belongs to it | left free | lowered 18 dB under the voice-over, full level in its pauses; the bed gives way |
38
+ | `exhibit` | the thing shown (a song, a demo, a performance): all its sound belongs to it | left free | lowered 18 dB under narration or presenter speech, full level in its pauses; the bed gives way |
39
39
  | `ambience` | a place or an action: its sound, nobody speaks | only the sound of the place and of what happens; no voice, no music | lowered 18 dB under every voice |
40
40
  | `silent` | B-roll under a narrator, never heard | nobody speaks to the camera | not heard |
41
41
 
@@ -47,14 +47,29 @@ lines, are refused before anything is paid.
47
47
  A `silent` clip is asked for without a sound track (`generateAudio: false`) only on a model whose
48
48
  `audioOptional` is true (`popost video generate --models`); any other model makes its track as usual and
49
49
  `materials` takes it out of the file. The mode is kept beside the clip, `<clip>.mode.json`, and the mix reads it; a
50
- clip made before it was named keeps its file and gets the receipt. A clip made without sound has no audio stream at
50
+ clip made before it was named keeps its file and gets the receipt. For a side-by-side demo, use the soundtrack of
51
+ the primary example as the `exhibit` and mute the comparison copy unless the reference switches between them.
52
+ Check the rendered mix at the hand-off: exhibit alone during the demo, reduced exhibit level at an actual
53
+ narration entrance, and the reference’s caption visibility in both intervals. Where the user requests no separate
54
+ music bed, remove that track from the timeline, including a bed generated by a previous attempt.
55
+
56
+ Before rendering, check both edges of every speaking clip against the observed words for that exact file.
57
+ `video check` and `video preflight` warn when the audible use starts or ends inside independently observed speech.
58
+ They report the output and source times so the editor can verify the cut in the actual recording.
59
+ Place a change of speaking source after the last word and before the next source speaks. If the reference cut
60
+ falls inside the performance, move the cut into a pause, leave the same speech running across the picture cut,
61
+ or fit the full take to its window with pitch preserved and retime its captions. When adjacent shots change
62
+ the framing of the same take, continue at the next source frame and keep one audible copy. A short gain
63
+ ramp can soften a join in the quiet margin. Apply a picture dissolve only where the reference calls for one.
64
+
65
+ A clip made without sound has no audio stream at
51
66
  all: everything that reads a clip's sound (the mix, the render, the Studio, the draft export, the checks) takes it as
52
67
  silence. A speaking clip that comes back that way says nothing: materials and `speech-check` report it, with a
53
68
  remake to offer.
54
69
 
55
70
  ## The music plan
56
71
 
57
- Agree the music with the user in the cost overview of `video.md` (the end of step 1), where they agree the budget,
72
+ Agree the music with the user in the cost overview at the end of step 1 (`video-step-1-read.md`), where they agree the budget,
58
73
  before any clip is made: say which music the video will have and that a file of their own replaces it. Then record it:
59
74
 
60
75
  ```bash
@@ -0,0 +1,61 @@
1
+ # Step 0. What the machine has
2
+
3
+ Step 0 of [making a video](video.md), whose rules for every step hold here; after it: [step 1, Read the reference](video-step-1-read.md).
4
+
5
+ ```bash
6
+ popost video doctor
7
+ ```
8
+
9
+ - `"ok": false`: inspect `missing`. Within the existing preparation authorization, install the missing FFmpeg or
10
+ compatible browser, or select its existing executable, then rerun `doctor` and verify the needed operation.
11
+ Follow [video-tools.md](video-tools.md#check-the-installation-before-testing-a-reference). If preparation cannot
12
+ proceed, report the specific blocker and preserve work; stop dependent steps, not unrelated useful local work.
13
+ - `tools`: `"popost.ai"` is the connected account (`hosted` says what it does), an environment variable name is a
14
+ tool of the user's own (it goes first), `null` means not set up. What each costs:
15
+ - `readText` null: automatic caption reading is unavailable. Read the words from the actual pictures (step 1) and
16
+ put them into the scenes (step 5), or prepare a selected reader if needed. Do not omit required caption beats.
17
+ - `transcribe` `"popost.ai"`: what the reference says is transcribed on popost.ai, paid in credits (in the cost
18
+ overview below). `null`, with `connect`: no account is connected and there is no transcriber of the user's own,
19
+ so what the reference says has not been read. If the reference has speech that the task needs, tell the user once that connecting an
20
+ account (`popost auth login`, recommended) adds transcription and voice-over; a tool of their own in
21
+ `POPOST_ASR_CMD` is the other way (`video-tools.md`). Resolve that gap before claiming speech/timing analysis;
22
+ a reference known to have no speech does not require paid transcription or a local speech-model installation.
23
+ - `speak` `"popost.ai"`: voice-over with `popost:` voices (`popost:default-male`, `popost:default-female`,
24
+ `popost:VOICE_ID`; `video-performers.md`), paid in credits. `null`: no voice-over. Leave out `--voice`, `"voice"`,
25
+ `--speak`, `--keep-length`, `--fit-tempo` and `--pace` below when voice-over is not required. If required narration
26
+ cannot be made, resolve the chosen speaker service or obtain user audio/a decision before proceeding without it.
27
+ - `music` `"popost.ai"` (with a connected account): a music bed can be generated on popost.ai when the reading of
28
+ the reference has music; the music plan decides (`video-sound.md`, read it before step 1's cost overview).
29
+ `null`: no generated music; the video's sound is its voice-over, a sound file the user gave, or the sound its
30
+ clips came with. A missing service does not authorize silently dropping sound required by the brief/reference.
31
+ - `generate` null: use captured pages, user footage and scenes when sufficient. If clips are required, offer the
32
+ integrated generator or preserve the user's chosen adapter, configure only that capability, and quote it before
33
+ submission (`video-tools.md`, "The built-in generator"). Missing footage is not permission to replace it with an
34
+ unrelated scene or leave an empty slot.
35
+ - `generate` set: generated clips cost money; with the built-in generator (`popost video generate`) popost.ai
36
+ credits (`video-tools.md`, "The built-in generator").
37
+
38
+ Put the actual source at `reference.mp4` (`cp` a supplied local file, or download a readable video file URL) before
39
+ quoting speech analysis. Before the first paid call, give the project its task title (free). Inspect the account only when using Popost services;
40
+ price the reading of the reference (the hosted transcription and sound analysis) when it needs them:
41
+
42
+ ```bash
43
+ popost usage --dir project --title "<a few words naming this video for the user: the product and the platform>"
44
+ popost account # selected Popost account and balance, when needed
45
+ popost video describe reference.mp4 --out ref --project project # free: prints the price of the whole reading, exit code 3
46
+ ```
47
+
48
+ The first line names the video's line on the account page, in the user's language (for example "Coffee grinder
49
+ for TikTok"); run it once, before the first paid command (it is free and creates `project/`). `describe` without
50
+ `--confirm` charges nothing and prints `confirm.credits` with one item per paid part (the transcription and the sound
51
+ analysis); that total is the `--max-credits` step 1 needs. (`transcript --quote` prices the transcription alone, so
52
+ it is less than what `describe` asks for.) Any paid transcription
53
+ must be covered before it runs: apply the existing analysis/commission authorization, or explain its quote and obtain
54
+ an initial analysis authorization. Do not require a separate yes when already covered. Propose no voice-over yet:
55
+ whether the video has one, and whether its people speak, is decided by
56
+ what the reference says and who says it (step 1). Refine the remaining production estimate after step 1, applying any
57
+ existing commission budget and obtaining a new decision only for missing coverage.
58
+
59
+ Done when: required local tools work, missing optional capabilities are understood, and any necessary paid analysis
60
+ is covered. If the user declines a capability essential to faithful production, agree a concrete alternative/input
61
+ instead of silently omitting it.
@@ -0,0 +1,168 @@
1
+ # Step 1. Read the reference
2
+
3
+ Step 1 of [making a video](video.md), whose rules for every step hold here; before it: [step 0, What the machine has](video-step-0-machine.md); after it: [step 2, Keep its structure](video-step-2-structure.md).
4
+
5
+ Put the reference at `reference.mp4` (`cp` a local file, or `curl -L -o reference.mp4 <url to the file>`), then:
6
+
7
+ ```bash
8
+ popost video describe reference.mp4 --out ref --project project --confirm --max-credits <left>
9
+ ```
10
+
11
+ With `transcribe` `"popost.ai"` this pays for the transcription the user agreed to in step 0 (`<left>` is here the
12
+ quote's `credits`; `--project project`: under the video's task, though the project has no files yet); when the user
13
+ said no to it, write `--no-speech` instead of `--confirm --max-credits`. A transcription that fails does not stop
14
+ the reading (`leftOut` says so): run the same command again, which starts a new one. `describe` measures shots, cuts, transitions, camera, motion, how much the picture moves, colours (captions and speech with those tools) and draws
15
+ the pictures to open, consecutive frames with the time of each under it: `ref/opening.jpg` (the first 3 s, 6 frames a
16
+ second), `ref/shots/NN-frames.jpg` (each shot from just before the change into it to its end, up to 12 frames) and
17
+ `ref/transitions/NN.jpg` (each change that is not a plain cut, frame by frame from 0.2 s before to 0.2 s after, named
18
+ by the shot it leads into). A time on an orange band is a frame inside a measured transition. With a text reader and a
19
+ transcriber `describe` can take a few minutes; every 15 s it writes a line on stderr saying which part is where
20
+ (`describe, 45 s: measure: done in 12 s; text: the reader is reading 150 frames (40 s); ...`). Give it up to five
21
+ minutes if your shell limits how long a command runs.
22
+
23
+ Read `ref/REFERENCE.md` (length, size, shots, and under "Not recovered" what the reading could not tell: each entry
24
+ says what, where, why and how to settle it) and `ref/timeline.md` (the beats: the lines
25
+ said or shown, numbered from 0; one line per shot). A line `Frame:` in REFERENCE.md means the shots show their content
26
+ inside one constant frame (a ground, a border): it gives the box of the content and what to build; `Black bars:` means
27
+ a picture of other proportions with bars around it; when it says the captions or a title sit on the black, every shot
28
+ keeps the picture in that box, or the captions end up over it.
29
+
30
+ Then, before you write any plan, open every picture: `ref/opening.jpg`, then for each shot NN `ref/shots/NN-frames.jpg`
31
+ with `ref/shots/NN.md` (colours, texts and where they sit, motion events), and every `ref/transitions/NN.jpg`. The labels
32
+ in the text files ("dissolve 13f", "slide cover right 50f", "Most likely: ...", "footage with 16 lines of its own text")
33
+ are measurements, and measurements can be wrong: when the frames show something else, what the frames show wins.
34
+
35
+ - A transition that reads "(does not fit well: look at transitions/NN.jpg; it may be an effect of its own)" is one
36
+ the measured kind does not explain. Go through its frames in order and say what moves: an object that flies across
37
+ and pulls the next picture in behind it, pages that fan out in depth, a reveal along a curve, elements that come in
38
+ one after another.
39
+ - A shot "most likely part of the change into #NN" (very short, on a flat ground, something moving) belongs to that
40
+ transition: one effect across the boundary, not a designed picture of its own.
41
+ - An effect that is not one of the standard transitions (cut, fade, flash, dissolve, wipe, slide, zoom, spin, blur,
42
+ glitch, shake, whip) is re-made as a scene that draws it, frame by frame as the pictures show it, and not as the
43
+ nearest standard transition.
44
+
45
+ "Most likely: ..." names the kind of shot the measured facts point to, with the facts (a recording of a page or an app,
46
+ a designed picture, filmed or photographic material): a hint that the frames confirm or correct, absent when the facts
47
+ do not say. The line "The camera ends on [x, y, width, height]" gives the part of the frame a clear zoom or pan goes to
48
+ (fractions of the canvas; a pull-out "starts on" one): aim your capture plan's zoom or your scene's camera at the same
49
+ part of your picture. To see a moment closer, `popost video look reference.mp4 --at 3.6,3.9,4.2 --out ref/look-in`
50
+ (seconds of the video; the pictures give them) writes those frames full size: open `ref/look-in/at-01.jpg` and the next ones.
51
+
52
+ The line `Motion amount:` of a shot says how much its picture changes between frames 1/15 s apart (0 is a still
53
+ picture; REFERENCE.md has the video's). It is a measurement, and it does not say why the picture moves (the camera,
54
+ the people, footage played fast). The shots of the re-make are held to it: `compare` gives both amounts for every shot.
55
+
56
+ A section `Paths` in a shot's file gives what was followed across the screen. For a change that an object leads, or
57
+ whose edge is not straight: the object's start and end (its centre, fractions of the canvas), its path angle (0 is to
58
+ the right, 90 down, -90 up), its speed, its size, the frames it takes, and the shape of the edge that opens the new
59
+ picture (straight with where it travels, a wedge with its opening, a circle with its centre). For an element that
60
+ travels while it enters or leaves: the same way and size. These are measured: set a scene from these numbers, not from
61
+ an impression of the frames (`ref/tracks.json` has the sampled positions, for a path that bends). A change that moves or
62
+ mixes its pictures (a push, a dissolve) has no path, and neither has what moves over a picture that does not hold still.
63
+
64
+ Write `ref/elements.json` from what you saw, one entry per shot: its layout in generic words (a full-frame screen
65
+ recording, a window on a designed ground, a title card, a person to camera), its layers (each with its box, a look
66
+ precise enough to redraw it, what it shows and its role: `design` keeps its look, `content` gets the new subject,
67
+ `platform` and `creator` are never re-made), the change into it (`custom`, described frame by frame, when it is no
68
+ standard transition), the captions' style and the words drawn differently, and every mark with what it marks and why.
69
+ What stays open after you looked (an entry of "Not recovered" you could not settle, anything you could not see: too
70
+ small, too fast, covered) goes into `"unrecovered"` beside `"shots"`: `{"what", "where": {"shot": N}, "why", "assumed":
71
+ what the re-make does instead}`. Label what you write with `status`: `measured` for a value copied from the reading (its lines end in a tag such as
72
+ `[measured 0.76]`, `[inferred: ...]`, `[unknown: ...]`), `inferred` for what you saw in the frames, `unknown` for what
73
+ you could not tell.
74
+ The schema, the roles and an example: `<skill>/references/video-elements.md`; `popost video elements questions ref`
75
+ prints them with this video's shots and the pictures in order. Then:
76
+
77
+ If `timeline.md` calls page headings captions, or misses the visible subtitle lines, include `captions.lines` in
78
+ the affected shots (the actual lines seen in the pictures, `[]` for none). The caption layer's box identifies the
79
+ band; the program matches the confirmed words to OCR times when saving the template. Answer unmatched-line warnings
80
+ before proceeding; no timing is guessed for a line OCR did not read.
81
+
82
+ Verify the caption track against the reference frames at the start, middle and end of each visible run, including the
83
+ cut into and out of a demo. Speech timestamps tell you when a word was heard. Use the visible reference to decide
84
+ when its caption appears, changes or disappears. Where OCR missed a caption, check the frames and record the
85
+ observed boundaries before mapping them to the new edit. Keep a visually continuous caption run continuous across
86
+ brief speech pauses, and keep a caption-free interval clear even when the clip in it has audible words.
87
+
88
+ ```bash
89
+ popost video elements check ref
90
+ ```
91
+
92
+ It holds the file to the measurement: a shot without an entry, a box outside the frame, a custom change without a
93
+ description, a watermark no `platform` layer covers, a mark without its reason, an end card of the platform that is not
94
+ dropped, a measured value contradicted without a note. Correct every error and answer every warning (each says what it found and what to write) until it prints
95
+ `"ok": true`.
96
+
97
+ The kind of the speech. REFERENCE.md has a line `Speech kind:` (or says why nothing was transcribed); the kind decides
98
+ what the re-make does with a voice:
99
+
100
+ | Kind | What it is | The re-make |
101
+ |---|---|---|
102
+ | `narration` | heard while nobody on screen says it | a voice-over (steps 4 and 6) |
103
+ | `on-camera` | a visible person says it: a talking head, an interview, a presenter in a window | the person of a generated clip says the lines (step 3); no voice-over reads them |
104
+ | `sung` | the lyrics of the music | no voice |
105
+ | `fragments` | a few exclamations or single words, no script | no voice |
106
+ | `none` | nothing is said | no voice |
107
+ | `unknown` | not transcribed (skipped, failed, no transcriber) | treated as no narration: no voice; say so in the delivery notes |
108
+
109
+ The program decides `none`, `unknown` and `fragments` (words heard for less than 15% of the length, in phrases of 4
110
+ syllables or fewer on average). Whether heard words are narration, said on camera or sung it cannot hear:
111
+ `Speech kind: unconfirmed` means you decide it from the frames.
112
+
113
+ ```bash
114
+ popost video speech-kind show ref
115
+ popost video speech-kind confirm ref --narration <phrases> --on-camera <phrases>
116
+ ```
117
+
118
+ `show` lists the phrases, each with its time and `picture` (a sheet in `ref/speech/` with the frame at the middle of
119
+ each phrase, its time under it). Open the sheets and hold each phrase against its frame and the frames of its shot:
120
+ which layer produces these words? Check whether they come from the main presenter, a voice laid over the shot,
121
+ or the soundtrack of a video shown inside it. Keep the shown video’s own words with its soundtrack as an
122
+ `exhibit`; exclude those words from the new narrator script and leave the voice-over empty for exhibit-only
123
+ intervals. A presenter may speak over the same exhibit in a later interval. Keep that presenter’s actual lines and
124
+ lower the exhibit under them (see [video-sound.md](video-sound.md)). The phrase tool has no exhibit category.
125
+ Record the exhibit’s interval and audio source in the shot reading, and leave its lines empty in the voice-over fill
126
+ if the speech tool assigned those words to narration. `confirm` records one kind for every phrase (`--narration`,
127
+ `--on-camera`, `--sung`, `--fragments`, each with the numbers of its phrases, singly or as ranges like `2-6`; `--all <kind>` for all of them); a video
128
+ can be part narration, part on camera. It writes `timeline.md` again: read its beats once more ("on camera" marks a
129
+ beat a person says; sung words and fragments are no beats). `template save` refuses a reference whose kind is
130
+ unconfirmed.
131
+
132
+ The cost overview and the one budget, now that the reference is read (leave out what this video does not use):
133
+
134
+ - Voice-over, only when the kinds include `narration`: `popost video voice quote --voice default-male --text "<a
135
+ script as long as the reference's narration>"` (an estimate until the lines are written), and a little for pace
136
+ calibration (`plan --voice` speaks one sentence). No narration: no voice-over in the overview, and none is made,
137
+ unless the user asks for one in their own words.
138
+ - Generated clips and pictures: their price per second or per picture (`popost video generate --models`) times what
139
+ you plan. Every on-camera stretch is a clip in which a person speaks, as long as the stretch (`video-performers.md`).
140
+ - The transcription already paid (`chargedCredits` of `describe`).
141
+ - The music plan: `popost video music plan --project project --reading ref` proposes it from the reading of the
142
+ reference's sound (one bed: the user's file first; else the reference's own music, kept as it is, when nobody speaks
143
+ over it; else generated when the reference has music; none when it has none) with its price; put its `show` lines
144
+ in this overview, so the user confirms the music together with the budget: which music the video gets, and that a
145
+ music file of their own replaces it. Record what they agree to (`video-sound.md`). When the reference speaks over
146
+ its music, ask for their own file first. When it says generated music is not available, say that one line and plan
147
+ without a generated bed.
148
+
149
+ Show the remaining items, estimated total and balance, including any proposed quality-repair allowance. Apply the
150
+ existing commission/batch allocation when it covers them; agree a new scope/budget only where coverage is missing
151
+ (the shared money rule above). Do not make every video in an already authorized batch repeat the same fee interview.
152
+ The user agrees once; do not ask per command after that. When speaking people cost more than the user wants to spend,
153
+ the user decides what to do: never turn a speaking person into silent footage with a narration to save money.
154
+
155
+ Done when: you have opened every picture of `ref/`, `popost video elements check ref` prints `"ok": true` (every
156
+ shot has an entry that says its layout, how it begins and ends as its frames show it, and which layers are the
157
+ platform's or the author's), the speech kind is confirmed, and the user agreed a budget (or no paid work is planned).
158
+
159
+ Before saving a new replication template, run `popost video replication init ref --reference reference.mp4`,
160
+ complete `replication.json` from the actual source video/audio, and run
161
+ `popost video replication check ref --reference reference.mp4`. Put every piece of evidence in with
162
+ `popost video replication evidence ref --file <the frame, sheet or reading you looked at> --detail "<what it shows>" --add <place>`
163
+ (it copies a file from outside, hashes it and prints what is still missing; `--source --at <from,to>` takes the bound
164
+ reference itself, and `--events` binds every event with a span); never write a path or a SHA-256 by hand. `init`
165
+ prints in `left` everything the contract lacks: write it in one go. Include short in-shot events as well as cuts:
166
+ typing, cursor/marks, masked rolling digits, actor visibility, camera/focus moves and prop causality. Uncertain
167
+ speech/style or an unreviewed empty inventory stops paid production. A song does not become a narrator because ASR
168
+ recognized its lyrics. The complete contract and its local evidence are carried into the template and filled project.
@@ -0,0 +1,24 @@
1
+ # Step 2. Keep its structure
2
+
3
+ Step 2 of [making a video](video.md), whose rules for every step hold here; before it: [step 1, Read the reference](video-step-1-read.md); after it: [step 3, Collect the new content](video-step-3-content.md).
4
+
5
+ ```bash
6
+ popost video template save ref --out template --name ref
7
+ popost video template show template
8
+ ```
9
+
10
+ From `template show` read `canvas` and `card`. `shots[k]` is one entry per shot, in order: each keeps its length,
11
+ its cut or transition and its place; you choose what fills it. `captions[i]` is the new line of beat i (the card shows the reference's line and its length).
12
+ Each is a slot, a place for new content with a limit ("A caption line holds at most N full-width or M Latin
13
+ characters"). `slots.captions.box` is the caption band, `[x, y, width, height]` as fractions of the canvas.
14
+
15
+ If `beats` is 0 but the reference shows words (no text reader), there is no caption band: the words of each shot
16
+ go into its scene (step 5). More: `<skill>/references/video-templates.md`.
17
+
18
+ `template save` reads `ref/elements.json`: TEMPLATE.md names each shot's layout, the layers to keep, the places for the
19
+ new subject and the layers dropped (`template show` prints all of it as `shotElements`, with every box and look). A
20
+ change in that is an effect of its own stays `custom`, never a preset: the engine cuts there and a scene of yours
21
+ draws it (step 5). A last shot the reading dropped (the platform's end card) is left out, and the template's last
22
+ shot is your own closing. After correcting `elements.json`, save the template again.
23
+
24
+ Done when: you know the canvas size, the number of shots and beats, and the caption limit.