popost 4.6.6 → 4.6.8
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.
- package/SKILL.md +6 -6
- package/assets/canvas/assets/{dist-BmD8AP0A.js → dist-CX2mxpwq.js} +1 -1
- package/assets/canvas/assets/{es-CC29Cabv.js → es-BFnFFu6P.js} +1 -1
- package/assets/canvas/assets/{index-DS6BKqT0.css → index-C5rz5H21.css} +1 -1
- package/assets/canvas/assets/{index-DhwyFpu2.js → index-CwqBT_rk.js} +1 -1
- package/assets/canvas/assets/{jszip.min-Bwf_yCrF.js → jszip.min-DqfCBLrH.js} +1 -1
- package/assets/canvas/build-info.json +7 -7
- package/assets/canvas/index.html +2 -2
- package/assets/video/examples/catalogue.json +114 -0
- package/assets/video/examples/list-cards.html +155 -0
- package/assets/video/examples/page-flip.html +163 -0
- package/assets/video/times.js +59 -0
- package/dist/cli.js +2772 -1280
- package/dist/index.js +2243 -846
- package/dist/types/cloud/service.d.ts +2 -0
- package/dist/types/device-login.d.ts +6 -1
- package/dist/types/device-pending.d.ts +11 -0
- package/dist/types/editor/handoff.d.ts +1 -1
- package/dist/types/runtime.d.ts +5 -1
- package/dist/types/system-browser.d.ts +17 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types/video/commands/replication-books.d.ts +2 -0
- package/dist/types/video/compile/footage.d.ts +2 -0
- package/dist/types/video/compile/index.d.ts +2 -0
- package/dist/types/video/compile/page-bundle.d.ts +1 -1
- package/dist/types/video/compile/page.d.ts +1 -0
- package/dist/types/video/describe/parts.d.ts +3 -1
- package/dist/types/video/eval/readback-kept.d.ts +10 -0
- package/dist/types/video/eval/readback-run.d.ts +5 -1
- package/dist/types/video/generate/cast.d.ts +4 -0
- package/dist/types/video/media/footage.d.ts +1 -0
- package/dist/types/video/page/apply.d.ts +1 -1
- package/dist/types/video/page/contract.d.ts +16 -0
- package/dist/types/video/page/dom.d.ts +5 -0
- package/dist/types/video/page/times.d.ts +31 -0
- package/dist/types/video/preview/protocol.d.ts +1 -0
- package/dist/types/video/preview/reference.d.ts +9 -0
- package/dist/types/video/preview/shell/dom.d.ts +9 -0
- package/dist/types/video/preview/shell/footage.d.ts +1 -0
- package/dist/types/video/preview/shell/i18n.d.ts +1 -0
- package/dist/types/video/preview/shell/studio/copy.d.ts +1 -0
- package/dist/types/video/preview/shell/studio/style.d.ts +2 -2
- package/dist/types/video/preview/shell/studio/ui.d.ts +2 -0
- package/dist/types/video/preview/shell-bundle.d.ts +1 -1
- package/dist/types/video/project/check-sound.d.ts +3 -0
- package/dist/types/video/render/chunked.d.ts +29 -0
- package/dist/types/video/render/chunks.d.ts +39 -0
- package/dist/types/video/render/encode.d.ts +5 -0
- package/dist/types/video/render/index.d.ts +26 -0
- package/dist/types/video/render/record.d.ts +1 -1
- package/dist/types/video/render/session.d.ts +17 -0
- package/dist/types/video/render/shots.d.ts +11 -0
- package/dist/types/video/replication/books.d.ts +64 -0
- package/dist/types/video/replication/production.d.ts +5 -0
- package/dist/types/video/replication/retiming.d.ts +16 -0
- package/dist/types/video/replication/review.d.ts +50 -0
- package/dist/types/video/retarget/fps.d.ts +3 -5
- package/dist/types/video/retarget/index.d.ts +10 -2
- package/dist/types/video/retarget/speak.d.ts +2 -0
- package/dist/types/video/retarget/takes.d.ts +66 -0
- package/dist/types/video/retarget/tempo.d.ts +2 -0
- package/dist/types/video/speech/types.d.ts +5 -0
- package/dist/types/video/template/fill.d.ts +2 -0
- package/dist/types/video/template/save.d.ts +2 -0
- package/dist/types/video/template/structure.d.ts +1 -0
- package/dist/types/video/voice/cache.d.ts +10 -0
- package/dist/types/video/voice/hosted.d.ts +10 -4
- package/dist/types/video/voice/index.d.ts +25 -1
- package/dist/types/video/wallet.d.ts +7 -0
- package/dist/types/workflow/post-bundle.d.ts +9 -2
- package/package.json +1 -1
- package/references/host-editor.md +2 -2
- package/references/image-workflow.md +1 -1
- package/references/onboarding.md +5 -3
- package/references/post-bundle.md +1 -1
- package/references/providers.md +1 -1
- package/references/video-editing.md +4 -0
- package/references/video-effects.md +9 -1
- package/references/video-performers.md +12 -2
- package/references/video-project.md +5 -3
- package/references/video-replication.md +32 -3
- package/references/video-scenes.md +52 -2
- package/references/video-sfx.md +1 -1
- package/references/video-sound.md +18 -3
- package/references/video-step-0-machine.md +61 -0
- package/references/video-step-1-read.md +168 -0
- package/references/video-step-2-structure.md +24 -0
- package/references/video-step-3-content.md +117 -0
- package/references/video-step-4-lines.md +88 -0
- package/references/video-step-5-scenes.md +126 -0
- package/references/video-step-6-voice.md +53 -0
- package/references/video-step-7-deliver.md +92 -0
- package/references/video-templates.md +17 -7
- package/references/video-tools.md +8 -6
- package/references/video.md +50 -666
|
@@ -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.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Step 3. Collect the new content
|
|
2
|
+
|
|
3
|
+
Step 3 of [making a video](video.md), whose rules for every step hold here; before it: [step 2, Keep its structure](video-step-2-structure.md); after it: [step 4, Write the lines and the fill](video-step-4-lines.md).
|
|
4
|
+
|
|
5
|
+
The user's topic decides what the video shows. Before designing any scene, collect every source the request names (a
|
|
6
|
+
page, a README, a file), each with:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
popost video source https://example.com/ --out project/source
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
It fetches that one page (no link is followed), saves its text into `project/source/` and downloads the pictures it
|
|
13
|
+
references into `project/source/pictures/`, the logo first, badges and tracking pixels left out. It prints an
|
|
14
|
+
inventory: each picture with its `file`, what the source `says` of it (its alt text), the `heading` it stands under and
|
|
15
|
+
its pixel size; `colours` (those of an SVG logo, a page's theme colour; `neutral` marks white, black and grays);
|
|
16
|
+
`site` (links to what is most likely the product's own site: candidates for `capture`) and `skipped`. Read the saved
|
|
17
|
+
text and open the pictures you plan to use. Then:
|
|
18
|
+
|
|
19
|
+
- Anything that shows the product or its interface is a real picture of the sources or a capture of its own pages (a
|
|
20
|
+
`picture` shot, an `"image"` item, an `<img>` in a scene: `../source/pictures/...` from the scene file). Never draw
|
|
21
|
+
an imitation of a product's interface in HTML. An abstract diagram (steps, a flow, a number) is fine, and must look
|
|
22
|
+
abstract. The logo is the collected file, never redrawn; brand colours come from `colours`.
|
|
23
|
+
- Pictures from third parties are not used, and facts come from first-party sources only: the request, the product's
|
|
24
|
+
own pages and repository. `video check` and `scene check` warn when the sources gave pictures and nothing in the
|
|
25
|
+
project shows one.
|
|
26
|
+
|
|
27
|
+
Use only what the sources say. When a source exists in several languages (a page with a language switch, a README in two languages),
|
|
28
|
+
collect the one in the language of the video, so that what is shown and what is said match. Copy the user's pictures and clips into `project/assets/` (`mkdir -p project/assets project/scenes`).
|
|
29
|
+
|
|
30
|
+
Every shot keeps its layout kind (TEMPLATE.md, `layout`): a full-frame recording stays a full-frame recording, a window
|
|
31
|
+
on a designed ground stays one, a person to camera stays one. When the new subject has no material of the same kind
|
|
32
|
+
for a shot, find its closest real material for that layout (another page, another recording, another photo), never
|
|
33
|
+
another layout: `template check` and `video check` warn when a shot read as full-frame footage is built as a designed
|
|
34
|
+
scene with small pictures, and the other way round; they also warn when the main picture of a shot (the reading's box) is rebuilt with no picture at all, or much smaller, larger or elsewhere (a full-frame recording drawn as a slide, a large window as a small one).
|
|
35
|
+
|
|
36
|
+
A web page becomes one of two things. (a) A directed recording (footage), when the page must be seen working:
|
|
37
|
+
scrolling, a click, typing. As in the reference, it shows one part of the page large enough to read, a box drawn
|
|
38
|
+
round what the voice names, a pointer that moves to it and clicks; a whole page scrolling by is too small to read.
|
|
39
|
+
(b) A still in a scene, when the shot is a designed picture with the page inside it (a framed window on a ground, a
|
|
40
|
+
zoom onto one number with a box drawn round it, screens side by side): do 1 to 3 below, then
|
|
41
|
+
`popost video capture <url> --size 1280x720 --hide '...' --still project/assets/page-01.png` (`--at <selector>` places
|
|
42
|
+
the window, `--full-page` takes all of the page) and write the scene with the screen helper, its steps addressed by
|
|
43
|
+
the `box` of each element from `--outline` (`<skill>/references/video-scenes.md`, "A screen inside a scene"). For
|
|
44
|
+
(a), make one recording per footage shot (one for shots that show the same place):
|
|
45
|
+
|
|
46
|
+
1. From the reference shot (its frames, its entry in `ref/elements.json`) decide what the shot shows: which part of the page, how
|
|
47
|
+
large, what is pointed at or clicked. Draft the line the voice says there (step 4 uses it). Note both under the shot.
|
|
48
|
+
2. Outline the page at the canvas size (step 2): `popost video capture https://example.com/pricing --size 1280x720 --outline`.
|
|
49
|
+
It prints `text.medianPx` (how tall the text is in the video), `sections` (headings, `y` px from the top),
|
|
50
|
+
`targets` (buttons, fields, cards, code, pictures, large numbers, links) and `overlays` (what is fixed over the
|
|
51
|
+
window), each with a `selector`. If `medianPx` is under 2% of the height (14 at 720), add `--zoom 1.5` to
|
|
52
|
+
every `capture` of this page and outline again.
|
|
53
|
+
3. Hide every overlay except the one of kind `header` (cookie banners, language pop-ups, chat buttons) with
|
|
54
|
+
`--hide 'div.cookie-banner,div.lang-switch'`, their selectors as `--outline` printed them.
|
|
55
|
+
4. Write the plan, `capture-01.json`: scroll to the section, zoom to the element the line is about, highlight what
|
|
56
|
+
the line names, point and click when the reference does, hold. A shot whose reading says its page scrolls, zooms, changes page or has a pointer that moves needs this directed recording (or the screen helper's steps in a scene), never a still with a slow drift: the checks warn. Copy each selector from `--outline` exactly. 30
|
|
57
|
+
frames are a second; make the plan 1.5 times as long as the shot, so that a longer voice does not run out of
|
|
58
|
+
footage. All steps: `<skill>/references/video-tools.md`, "Capture plans". This one lasts 9.5 s:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
[{ "hold": 15 }, { "scroll": { "to": "#pricing", "frames": 40 } },
|
|
62
|
+
{ "zoom": { "to": "div.plan-pro", "frames": 25, "fill": 0.7 } }, { "highlight": { "to": "div.plan-pro .price", "frames": 12 } },
|
|
63
|
+
{ "hold": 45 }, { "point": { "to": "button.buy-pro", "frames": 18 } }, { "click": "button.buy-pro" }, { "hold": 120 }]
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
5. Record: `popost video capture https://example.com/pricing --size 1280x720 --hide 'div.cookie-banner' --caption-band <y of slots.captions.box> --plan capture-01.json --out project/assets/page-01.mp4`.
|
|
67
|
+
`--caption-band` is the top of the caption band, which covers the lowest part of the picture: the second number of
|
|
68
|
+
`slots.captions.box` from `template show` (step 2), such as 0.82. A zoom then ends with its element above the band,
|
|
69
|
+
and a note says when it cannot or when a highlight lies under the band. Leave it out only for a video without
|
|
70
|
+
captions (`template show` has no `slots.captions`). Each of its `notes` says what was wrong and what to do (hide
|
|
71
|
+
an element that still covers the window, zoom to a smaller element, scroll first). Correct the plan or the options
|
|
72
|
+
and record again. Frame the page so that what the line names sits above the band, and large text of the page does
|
|
73
|
+
not lie under the captions.
|
|
74
|
+
6. Look at two frames of it, when the zoom has ended and near the end (seconds; this plan has zoomed by 2.7 s):
|
|
75
|
+
`popost video look project/assets/page-01.mp4 --at 3,8 --out look/page-01`, then open `look/page-01/at-01.jpg`
|
|
76
|
+
and `at-02.jpg`. Use the recording only when the text the line is about is readable, the element is large near
|
|
77
|
+
the middle and nothing covers it. Otherwise zoom closer or hide what covers it, and record again.
|
|
78
|
+
|
|
79
|
+
A shot of filmed material that no file of the user's shows can be generated when `generate` is set (step 0): write
|
|
80
|
+
the requests and run `popost video materials requests.json --out project --template template --confirm --max-credits <left> --no-wait`
|
|
81
|
+
(`video-tools.md`, "Generated clips": the request, the price, what it prints). The clips are made on popost.ai while
|
|
82
|
+
you build the rest; run the same command again to pick them up before they are placed (nothing is paid twice). A shot in which a person says an
|
|
83
|
+
on-camera beat is a clip with `"speech"`: the lines, who says each, their language and the beat each re-makes; the
|
|
84
|
+
program takes the times from the beats and writes the dialogue into the prompt (`video-performers.md`). `materials`
|
|
85
|
+
refuses a list that leaves an on-camera beat to no clip. Every clip is asked for by the role of its sound, never with
|
|
86
|
+
music: a clip with lines for its speaker's voice, any other for the sound of its place, or silent under a narrator
|
|
87
|
+
(`"sound"`: `speech`, `exhibit`, `ambience`, `silent`; `video-sound.md`); `--template` gives the inference what the
|
|
88
|
+
reading says. After speaking clips are made, `popost video speech-check project` checks that each said its lines.
|
|
89
|
+
The first such run of the project makes
|
|
90
|
+
its clips the agreed clips; any other paid clip later is "unplanned" (the money rules above). Two rules about motion:
|
|
91
|
+
|
|
92
|
+
- Group the calls by the continuity of the scene, not by shot: consecutive short shots of one look are one request
|
|
93
|
+
that lists them with their lengths and "hard cuts" and asks for one continuous soundtrack, because a call's sound
|
|
94
|
+
is continuous only inside it. `popost video shots` then finds the cuts and writes the fill entries and the `"beds"`
|
|
95
|
+
entry that keeps the sound in one piece (`video-tools.md`, "How many calls": the rules, and what it costs).
|
|
96
|
+
- The words about speed in a prompt follow the shot's measured `Motion amount` and its frames, not habit. Write the
|
|
97
|
+
action and its pace as the shot has them ("walks briskly", "quick hand movements"), and write "slowly" or "gently"
|
|
98
|
+
only for a shot that measures low. As a rough guide: clips generated from prompts that said "slowly" measured 2 to
|
|
99
|
+
4, handheld footage of people 5 to 10, fast or sped-up footage above 12. `materials` prints each clip's
|
|
100
|
+
`motionAmount`: hold it against the shot's before you use the clip.
|
|
101
|
+
- A clip is never slowed down to fill a shot (the checks warn about a `"speed"` under 0.9): ask for a clip as long as
|
|
102
|
+
the shot needs (`footage.seconds` in `template show`), make a second clip, or start earlier. A clip that moves less
|
|
103
|
+
than its shot may be sped up with a `"speed"` above 1 when it is long enough.
|
|
104
|
+
- The clips of one video keep the same person, product and place through one anchor picture, which `materials`
|
|
105
|
+
takes care of by itself. When the request names a character of the user's popost.ai library, pass it with
|
|
106
|
+
`--character <id>`; when it gives a photo of the person or the product, with `--anchor-image <file>`. A clip that
|
|
107
|
+
shares nothing with the others says `"anchor": false` (`video-tools.md`).
|
|
108
|
+
- A shot longer than the longest clip the model makes: `template save --max-shot <seconds>` cuts it into parts, and
|
|
109
|
+
the clip of each later part says `"continues"` with the file of the part before it, so it starts from that clip's
|
|
110
|
+
last frame. Reference pictures stay the default; frames are for that and for a clip
|
|
111
|
+
that must begin on an exact picture (`video-tools.md`, "Reference pictures or frames").
|
|
112
|
+
|
|
113
|
+
Then write `project/materials.json`, one entry per file, saying what it shows:
|
|
114
|
+
`{ "assets/page-01.mp4": "the pricing page: zooms to the Pro plan, boxes its price, the pointer clicks Buy" }`.
|
|
115
|
+
|
|
116
|
+
Done when: every footage or picture shot you plan has its file in `project/assets/`, listed in `materials.json`, and
|
|
117
|
+
you have looked at two frames of every recording.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Step 4. Write the lines and the fill
|
|
2
|
+
|
|
3
|
+
Step 4 of [making a video](video.md), whose rules for every step hold here; before it: [step 3, Collect the new content](video-step-3-content.md); after it: [step 5, Write the scenes](video-step-5-scenes.md).
|
|
4
|
+
|
|
5
|
+
Write the request in your own words into `brief.txt`: the topic, the audience, the language, what must be said.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
popost video plan template --brief brief.txt --assets project --dry --voice <voice> --fit-tempo 1.12
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`<voice>`: `popost:default-male`, `popost:default-female` or `popost:VOICE_ID` from the live platform catalog (`video-performers.md`), or a name a speaker of the user's own understands. With a `popost:` voice, `plan` speaks a sentence to time it, paid like all speech: add `--confirm --max-credits <left>` (`--dry` does not make it free; once timed, the pace is kept and not paid again). It prints `answer`
|
|
12
|
+
(how many shots and captions, and the voice to name), `budgets` (`pace`: the voice's characters a second; per line,
|
|
13
|
+
the most characters that can be said in its beat, the voice sped up at most 1.12 times), `rules`, `forms` and
|
|
14
|
+
`materials`; `messages` repeats them. Write `fill.json`:
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{ "shots": [{ "scene": "scenes/shot-01.html", "slots": { "title": "Why fast pages win" } },
|
|
18
|
+
{ "footage": "assets/page-01.mp4", "in": 0 },
|
|
19
|
+
{ "scene": "scenes/shot-03.html" }],
|
|
20
|
+
"captions": ["Three habits of fast websites", "Habit one: measure before you fix", "Follow for habit two"],
|
|
21
|
+
"voice": "<voice>" }
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- `shots`: exactly one entry per shot, in the template's order. A designed picture is a `scene` (written in step 5;
|
|
25
|
+
every shot takes one). `footage` and `picture` name files of `materials`; `"in"` is the clip's first frame to
|
|
26
|
+
show (0 when unsure). Also possible: `{"color": "#101014"}`, `{"card": {"title": "...", "lines": ["..."]}}`.
|
|
27
|
+
A file whose proportions differ from the canvas is cropped to fill the shot (`"fit": "cover"`, the default);
|
|
28
|
+
`"fit": "contain"` shows it whole on a `"ground"` colour; `template fill` warns when cover would cut more than a tenth.
|
|
29
|
+
- Every shot shows what its line says. When no file you have shows it, make the shot a `scene` (a still of the
|
|
30
|
+
product with a label or a box on the thing named, the steps as a row of words with arrows, a number set large);
|
|
31
|
+
never fill a shot with material about something else, and never leave a clip of other proportions alone on an
|
|
32
|
+
empty ground: show it inside a designed shot, a scene with the clip in a box over it, written as the shot's
|
|
33
|
+
`"items"` in fill.json (`video-scenes.md`, "A screen inside a scene", the part "Footage inside a scene"); fill keeps
|
|
34
|
+
them through every later fill and re-flow.
|
|
35
|
+
- Words the reference laid over a shot (TEMPLATE.md: `words "..."` on the shot) are `"words": ["..."]` on that shot,
|
|
36
|
+
a line per place in order, drawn where the reference's were; re-make them with the new video's words. A bar of
|
|
37
|
+
words through the video (the sections, the current one marked) is design text, not a watermark: give it the new
|
|
38
|
+
video's sections with `"bar": [...]`, or draw it in each scene.
|
|
39
|
+
- `captions`: exactly one line per beat, in order, in the language of the brief, together one short script about
|
|
40
|
+
the topic. Keep each line within its budget, or near the length of the reference's line: a longer line makes the
|
|
41
|
+
video longer. `""` leaves a beat empty; with 0 beats, leave `captions` out. Every line says something whole: when a
|
|
42
|
+
budget is short, move words to the neighbouring beat or split one sentence over two beats; never cut a line to a
|
|
43
|
+
fragment (`template check` warns when a line is far shorter than the reference's text of its beat). When the reading says some caption words are drawn differently, mark the words your line stresses, `*like this*`, as the reference does; `template check` and `video check` warn when no line marks one. Take the
|
|
44
|
+
reference's way of speaking, never its promises: a call to action the new video's owner cannot keep ("comment X
|
|
45
|
+
and I send you …", a giveaway, a link or account that does not exist) becomes one they can (follow, visit the real
|
|
46
|
+
address from the sources), and a figure the reference gave about itself is never said about the new subject.
|
|
47
|
+
- Each beat keeps its job (a hook, a proof, a demo, a call to action), and its content is the new subject's strongest
|
|
48
|
+
material for that job, from the request first and the sources second. A kind of fact that is weak or absent for the
|
|
49
|
+
new subject (a count, a ranking, a price) is not copied in a weaker form: say what the request stresses instead.
|
|
50
|
+
The shot's mark (a box, a circle, a zoom, a pointer: `emphasis` in `ref/elements.json`) keeps its kind and look and
|
|
51
|
+
goes on what the new line says, that strongest point, never on the new subject's version of the reference's fact.
|
|
52
|
+
- `voice`: the same `<voice>`, as `answer` and `rules` say: `template fill --speak` reads it from the fill. No times, no
|
|
53
|
+
frame numbers except `in`, no other keys.
|
|
54
|
+
- The voice follows the speech kind (step 1; TEMPLATE.md repeats it):
|
|
55
|
+
- `narration`: a voice-over. Its beats' lines are spoken by `--speak`.
|
|
56
|
+
- `on-camera`: the line of such a beat (TEMPLATE.md: "on camera") is the line the person says in the clip of that
|
|
57
|
+
shot; write the same words in `captions[i]` and in the clip's `speech.lines`. The voice-over never reads it, and
|
|
58
|
+
it is drawn as a caption when its beat is a shown one. Fill the shot with that clip from `"in": 0`.
|
|
59
|
+
- `sung`, `fragments`, `none`, `unknown`: no voice. Leave out `--voice`, `"voice"`, `"say"`, `--speak`,
|
|
60
|
+
`--keep-length`, `--fit-tempo` and `--pace` here and in step 6; the caption lines are still drawn. For `unknown`,
|
|
61
|
+
write into the delivery notes that the speech was not transcribed and the video therefore has no voice-over.
|
|
62
|
+
A reference without narration gets a voice-over only when the user asked for one: pass their own words with
|
|
63
|
+
`--voice-asked "<their words>"` to `plan`, `template check` and the first `template fill` (the project then keeps
|
|
64
|
+
them), and name them in the delivery notes. The checks refuse a voice nobody asked for.
|
|
65
|
+
- Sound is mixed in layers, by itself (`video-sound.md`, rules R1 to R5). A clip in which a person speaks is heard at
|
|
66
|
+
full level and nothing speaks over it. Every other clip keeps the sound it came with, lowered by 18 dB while a line
|
|
67
|
+
of the voice-over is spoken and back up in the pauses; a silent clip is not heard. A `"sound"` lies under
|
|
68
|
+
everything, lowered the same way while anybody speaks, gives way altogether under a clip with music of its own, and
|
|
69
|
+
fades out at the end when it is longer than the video (shorter, it is not repeated). A shot's `"audio"` overrides
|
|
70
|
+
this for its clip: a number fixes its level, `false` mutes it (`video-templates.md`).
|
|
71
|
+
- `"sound"` is a file the user gave, taken in with `popost video music own --file <their file> --out
|
|
72
|
+
project/assets/<name> --given "<their words that gave it>"`, or the music `popost video music make` made under the
|
|
73
|
+
agreed plan. Nothing else: never put a narration together with other
|
|
74
|
+
tools (`voice speak` lines mixed with ffmpeg) and name it as `"sound"`, never write a voice or music track into
|
|
75
|
+
`video.json` by hand, never take the music or the voice out of the reference, never make up a tone to fill silence, and never mute
|
|
76
|
+
a clip to be safe. The checks refuse a sound without a record of where it came from. A quiet video is not a fault to
|
|
77
|
+
repair; the user adds music when they post, or in an editor.
|
|
78
|
+
- Sound effects (a whoosh on a transition, a pop as a card lands, keys under typed text) follow the reading too: only
|
|
79
|
+
where it says the reference has them (the sound analysis, `sfx`: `yes`), or where the user asked. They come from the
|
|
80
|
+
Skill's free catalogue and are placed in step 6 by `popost video sfx place` ([video-sfx.md](video-sfx.md)).
|
|
81
|
+
|
|
82
|
+
For strict replications, the confirmed speech kinds also populate `replication.json`: distinguish narration, on-camera dialogue, music/vocals, effects and ambience. A skipped ASR result or a song lyric does not request a narrator. Record every actual audio route and file hash in `replication.audio.json`; the strict final review checks these against the resolved timeline. Explicitly authorized reference-music preservation uses the verified source-audio workflow in [video-replication.md](video-replication.md), rather than an invented uploaded-file provenance.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
popost video template check template --fill fill.json --pace <budgets.pace> --fit-tempo 1.12
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Done when: `"ok": true` (its note that the files were not looked at is expected: `template fill` does it in step 5).
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Step 5. Write the scenes
|
|
2
|
+
|
|
3
|
+
Step 5 of [making a video](video.md), whose rules for every step hold here; before it: [step 4, Write the lines and the fill](video-step-4-lines.md); after it: [step 6, Build with the voice, and check](video-step-6-voice.md).
|
|
4
|
+
|
|
5
|
+
This step decides most of the result: the reference's look and motion live in its designed shots. Write one HTML file
|
|
6
|
+
in `project/scenes/` for every `scene` of fill.json, drawing the whole shot with the reference shot's layout, colours,
|
|
7
|
+
type and motion (its entry in `ref/elements.json`, its frames) and the new content. Shots of one design (three numbered steps) can share
|
|
8
|
+
a file with different `slots`.
|
|
9
|
+
|
|
10
|
+
**Look at the motion first.** `ref/REFERENCE.md` has a `Movement:` line when shots move throughout, and `timeline.md`
|
|
11
|
+
marks each such shot `MOVES THROUGHOUT`. For every one of them, and for every shot when the reference is motion
|
|
12
|
+
graphics, do this before writing its scene; it is not optional:
|
|
13
|
+
|
|
14
|
+
1. Open `ref/shots/NN-frames.jpg` (consecutive frames with their times) and say what moves, from where to where, and
|
|
15
|
+
what keeps moving after the main move.
|
|
16
|
+
2. Read `ref/shots/NN.md`, "Motion events": the measured curve of the shot's main moving element (start, duration,
|
|
17
|
+
overshoot, bounces, squash, the closest easing, ready to paste). For another element, measure it:
|
|
18
|
+
`popost video measure curve reference.mp4 --from S --to S --roi x,y,w,h`.
|
|
19
|
+
3. Read `<skill>/references/video-motion.md` (the motion rulebook and its recipes) and search the effects catalogue
|
|
20
|
+
(`popost video scene example --search "<what moves>"`, `<skill>/references/video-effects.md`) before drawing an
|
|
21
|
+
effect by hand.
|
|
22
|
+
|
|
23
|
+
The rules (the whole contract: `<skill>/references/video-scenes.md`):
|
|
24
|
+
|
|
25
|
+
1. A whole HTML page; `html, body` exactly the canvas size (step 2), `margin: 0`, `overflow: hidden`. Inline `<style>`
|
|
26
|
+
and SVG; pictures by a path relative to the scene file (`../assets/logo.png`); nothing from the network.
|
|
27
|
+
2. Motion: CSS `@keyframes` with `animation: <name> <duration> <delay> both`, written as if the shot started at
|
|
28
|
+
0 s; the engine sets every animation to the frame's time. A counter or a typed text:
|
|
29
|
+
`window.__popostScene = { render(seconds) { ... } }`, which sets everything it changes from `seconds` alone.
|
|
30
|
+
Motion in sequence (a list that staggers in, several elements one after another): a GSAP timeline, after
|
|
31
|
+
`popost video scene library project`; read "A timeline library" in `video-scenes.md` first. A bounce, a slam, a
|
|
32
|
+
pop, a draw-on, a morph, particles, a glitch, a counter, lit 3D: the motion helper
|
|
33
|
+
(`popost video scene library project --name motion`), three.js (`--name three`) or an entry of the effects
|
|
34
|
+
catalogue, as `video-motion.md` shows; never one element dropping on a CSS keyframe where the reference bounces.
|
|
35
|
+
With a voice, bring each thing on at the line or word that says it (`popost-times.js`: "On the voice" in
|
|
36
|
+
`video-scenes.md`); a list said point by point and pages shown one by one are the `list-cards` and `page-flip`
|
|
37
|
+
examples (`popost video scene example list-cards --set items=... --out project/scenes/shot-NN.html`).
|
|
38
|
+
3. Never: `setTimeout`, `setInterval`, `requestAnimationFrame`, `Date.now()`, `performance.now()`,
|
|
39
|
+
`Math.random()`, CSS `transition`, `<video>`, `<audio>`, `<iframe>`, `fetch`.
|
|
40
|
+
4. Use the actual filled shot's clock. Match the reference entrance, dwell, exit and handoff; do not move every
|
|
41
|
+
entrance into the first half or erase an observed exit. After speech retiming or custom-transition ownership
|
|
42
|
+
changes, export `video replication timeline project` and refresh the event map. All related layers use that
|
|
43
|
+
same clock and viewport, including marks, cursor, number cells and their labels.
|
|
44
|
+
5. Put `data-slot="name"` on each element that holds only a text (or an `<img>`) of the topic: the check warns when
|
|
45
|
+
the glyphs of a marked text leave its box, or when a box around it with `overflow: hidden` cuts them off. A fill's `"slots": {"name": "new words"}` replaces its text (an `<img>`'s
|
|
46
|
+
`src`, as a path relative to the scene file: `"../assets/new.png"`).
|
|
47
|
+
6. Keep the caption band (`slots.captions.box`) free of the scene's own text; never draw the captions yourself.
|
|
48
|
+
7. Fonts of the machine (`fc-list : family` lists them): `font-family: "Noto Sans CJK SC", "Noto Sans", sans-serif`.
|
|
49
|
+
The check measures the glyphs: a `line-height` of 1.2 holds Chinese text, Latin letters that reach below the line
|
|
50
|
+
(g, p, y) need 1.4 or room below.
|
|
51
|
+
|
|
52
|
+
Start from this example (1280x720: a card slides in, a label fades up, a number counts up); change its sizes,
|
|
53
|
+
layout, colours, words and motion to the reference shot's:
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<!doctype html>
|
|
57
|
+
<html><head><meta charset="utf-8">
|
|
58
|
+
<style>
|
|
59
|
+
html, body { margin: 0; width: 1280px; height: 720px; overflow: hidden; background: #1d2b53;
|
|
60
|
+
font-family: "Noto Sans CJK SC", "Noto Sans", sans-serif; }
|
|
61
|
+
.card { position: absolute; left: 380px; top: 140px; width: 520px; padding: 32px 36px; box-sizing: border-box;
|
|
62
|
+
background: #ffffff; border-radius: 12px; animation: slide-in 0.6s cubic-bezier(.2,.8,.2,1) 0s both; }
|
|
63
|
+
.label { font-size: 22px; font-weight: 700; line-height: 1.4; color: #e76f51; animation: fade-up 0.4s ease-out 0.5s both; }
|
|
64
|
+
.title { font-size: 44px; font-weight: 800; line-height: 1.4; color: #1d2b53; }
|
|
65
|
+
.count { position: absolute; left: 380px; top: 380px; font-size: 64px; font-weight: 800; line-height: 1.4;
|
|
66
|
+
color: #ffffff; animation: fade-up 0.4s ease-out 0.8s both; }
|
|
67
|
+
@keyframes slide-in { from { transform: translateX(-900px); } to { transform: none; } }
|
|
68
|
+
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
|
|
69
|
+
</style></head>
|
|
70
|
+
<body>
|
|
71
|
+
<div class="card">
|
|
72
|
+
<div class="label" data-slot="label">WEB PERFORMANCE</div>
|
|
73
|
+
<div class="title" data-slot="title">Why fast pages win</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="count" id="count"></div>
|
|
76
|
+
<span data-slot="value" hidden>53%</span>
|
|
77
|
+
<script>
|
|
78
|
+
// Counts from 0 to the number in the slot "value" between 0.8 s and 2.0 s, then holds.
|
|
79
|
+
window.__popostScene = { render: function (seconds) {
|
|
80
|
+
var value = document.querySelector('[data-slot="value"]').textContent;
|
|
81
|
+
var p = Math.min(1, Math.max(0, (seconds - 0.8) / 1.2));
|
|
82
|
+
document.getElementById('count').textContent = value.replace(/\d+/, function (n) { return String(Math.round(n * p)); });
|
|
83
|
+
} };
|
|
84
|
+
</script>
|
|
85
|
+
</body></html>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Save the text of every source you take a figure or a claim from into `project/source/` (a `.txt` or `.md` file
|
|
89
|
+
each, the request too), so that `scene check` can find every number a scene or a caption shows.
|
|
90
|
+
|
|
91
|
+
A shot whose change in is `custom` (TEMPLATE.md: `custom in, drawn by ...`) is drawn by one scene that holds both
|
|
92
|
+
pictures and the moving object, frame by frame as `ref/transitions/NN.jpg` shows it. "Drawn by the scene of the shot
|
|
93
|
+
before": that scene ends with the effect, and `template fill` moves the cut to the effect's end, so the scene runs on
|
|
94
|
+
over the first frames of the next shot and must show that shot's beginning as the effect reveals it. "Drawn by this
|
|
95
|
+
shot's scene": the cut moves to the effect's start, and the scene begins with the effect over the end of the shot
|
|
96
|
+
before. Start from the nearest example scene when there is one (an object that leads a reveal, a card that turns in
|
|
97
|
+
depth, doors that fold, a wipe in streaks: `popost video scene example` lists them with their parameters), set its
|
|
98
|
+
parameters from the shot's measured "Paths" and hold a sheet of its frames against the reference's
|
|
99
|
+
(`<skill>/references/video-scenes.md`, "Example scenes with parameters"). Never replace the effect by a preset, and never patch `video.json` with a script after `template fill`: the
|
|
100
|
+
template holds it. Layers the reading gave the role `platform` or `creator` (a watermark, an account, the platform's
|
|
101
|
+
end card, the author's face or name) are never drawn.
|
|
102
|
+
|
|
103
|
+
When every scene file exists, build the project and check the scenes:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
popost video template fill template --fill fill.json --out project
|
|
107
|
+
popost video scene check project --shots project/scene-shots
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
`template fill` writes `project/video.json` and leaves your files alone. `scene check` opens every scene and keeps
|
|
111
|
+
three frames of each, `project/scene-shots/segment-NN-fFRAME.png` (NN: the shot). Correct every error and warning
|
|
112
|
+
about a scene; run `scene check` again (`template fill` again only when fill.json changed). Then open the middle frame
|
|
113
|
+
of each scene beside `ref/shots/NN-frames.jpg`: the same kind of picture, elements in the same places, as dense, the
|
|
114
|
+
same colours, every text legible and inside its box (the check does not see text that runs out of a box around it
|
|
115
|
+
that does not hide its overflow). Correct the scene where they differ.
|
|
116
|
+
|
|
117
|
+
Done when: `scene check` prints `"ok": true` with no warning about a scene, and each scene looks like its shot.
|
|
118
|
+
|
|
119
|
+
When the output frame rate is specified, set it when saving the template (`template save ... --fps 60`, for example);
|
|
120
|
+
fill preserves that rate. Do not manually convert the filled project later. A default save keeps the existing
|
|
121
|
+
economical rate policy.
|
|
122
|
+
|
|
123
|
+
A spoken strict fill writes `replication.timing.json`, bound to the source revision and compiled target timeline.
|
|
124
|
+
`replication timeline project` lists each event's source and expected target span. Refresh scene timing and
|
|
125
|
+
implementation bindings from that clock after a refill; never copy old source-frame numbers into the retimed plan.
|
|
126
|
+
A changed timeline invalidates the old map.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Step 6. Build with the voice, and check
|
|
2
|
+
|
|
3
|
+
Step 6 of [making a video](video.md), whose rules for every step hold here; before it: [step 5, Write the scenes](video-step-5-scenes.md); after it: [step 7, Render, compare, deliver](video-step-7-deliver.md).
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
popost video template fill template --fill fill.json --out project --speak --fit-tempo 1.12 --pace <budgets.pace> --confirm --max-credits <left>
|
|
7
|
+
popost video sfx place project
|
|
8
|
+
popost video preflight project
|
|
9
|
+
popost video template check template --fill fill.json --assets project --pace <budgets.pace> --fit-tempo 1.12
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
`preflight` is `check --layout` and `scene check` in one call and, for a strict replication, what `replication check
|
|
13
|
+
--artifact` finds before there is a video (the contract, `replication.plan.json` against the compiled timeline,
|
|
14
|
+
`replication.audio.json`): it prints every problem at once, so correct them all and run it once more. Run it again
|
|
15
|
+
after every change and before every render.
|
|
16
|
+
|
|
17
|
+
`--speak` reads the narration like a narrator reads a script and lets the picture follow the voice. With popost.ai
|
|
18
|
+
the consecutive caption lines of the narration are spoken in one call (a take; a line a person says on camera is
|
|
19
|
+
left to its clip and ends a take), the speaker's word times say where each line begins, and each beat lasts from its
|
|
20
|
+
line's first word to the next line's: the shots move with their beats and the video is as long as the reading. A take
|
|
21
|
+
stays continuous by default. Add `--keep-pauses` to retain long silent reference holds between lines; `--keep-length`
|
|
22
|
+
also cuts it wherever a beat must wait for its reference duration. When the reading is longer than the reference,
|
|
23
|
+
every take is sped up by one tempo, the pitch kept, until the video is as long as the reference: at most 1.25 times,
|
|
24
|
+
or the `--fit-tempo` given when it is higher (at most 1.5; `--fit-tempo 1` never). The note gives the tempo and, when
|
|
25
|
+
the lines are still too long, by how much to shorten them; a reading shorter than the reference makes a shorter video. A take already spoken in the same words, voice and speed is taken from this machine,
|
|
26
|
+
neither sent nor paid again; a changed line speaks its take again. Its `notes` say how many takes there were and
|
|
27
|
+
where one was cut. `--keep-length` keeps each beat at least as long as in the reference (the take is then cut
|
|
28
|
+
wherever the reference waits longer than the voice); leave it out unless the cuts must keep the reference's rhythm.
|
|
29
|
+
A speaker of your own (`POPOST_TTS_CMD`) that writes no word times speaks each line on its own, and each beat is
|
|
30
|
+
re-flowed to its line. How a caption line comes on screen is measured (`text.json`, `captionLook.reveal`; REFERENCE.md and TEMPLATE.md say it): a source whose lines appear whole at once gets whole lines, and `template check` warns about a `"captionReveal": "words"` it did not have; a source whose lines build word by word gets that by default with a voice. Only where nothing was measured and the reading says the words appear one by one, add `"captionReveal": "words"` to the fill (`template check` warns when it is missing). From now on run `template fill` only with these options, or the voice is dropped.
|
|
31
|
+
Without a speaker, or for a video without a voice (step 4: no narration in the reference), leave out `--speak --fit-tempo 1.12 --pace <budgets.pace> --confirm --max-credits <left>`; `template fill` refuses them there. The last command
|
|
32
|
+
looks at the files of the fill and at `project/video.json`: run it again after every hand edit of `video.json`; it
|
|
33
|
+
warns when the captions are much smaller or larger than the reference's, with both sizes in pixels (`video check` does
|
|
34
|
+
too). `scene check` also warns when a scene is far emptier than its reference shot (draw what the shot holds, as
|
|
35
|
+
densely) and when a scene or a caption shows the reference's own words or figures (say what your sources say instead).
|
|
36
|
+
|
|
37
|
+
`sfx place` lays the sound effects on what moves: the cues the scenes declare, the transitions no cue marks, and the
|
|
38
|
+
caption reveals the reference sounds. `template fill` writes `video.json` anew and drops them, so it runs after every
|
|
39
|
+
fill, as here. It follows the reading: where the reference has no effects, or nobody listened, it places nothing and
|
|
40
|
+
says why (`--asked "<the user's words>"` only when the user asked for effects). Where the reading names effects and the
|
|
41
|
+
user wants the re-make to sound like the reference, cut its own effect sounds first (`popost video sfx extract project
|
|
42
|
+
--reference reference.mp4 --reading ref`) and place with `--prefer reference`: for the user's own re-make only. It
|
|
43
|
+
prints each effect (`effects`: where it meets its picture, its cue and sound) and what it left out (`skippedBy`). Busier than the reference: run
|
|
44
|
+
it with `--density low`. `video check` holds every effect to the voice: lower or drop the one a warning names. A single
|
|
45
|
+
effect you delete or change by hand in `video.json` stays only until the next fill.
|
|
46
|
+
|
|
47
|
+
Before the render, look at the composed video where a render most often needs another round, in one call: the first
|
|
48
|
+
frame of each caption line, the resolved state of each required event (what a cursor or a highlight points at, a
|
|
49
|
+
reveal at its end), the frames either side of each transition and the last frame:
|
|
50
|
+
`popost video frame project --frames <f1,f2,...> --out project/check-frames` (frame numbers starting at 0; convert seconds using the target FPS).
|
|
51
|
+
Correct what they show, then render.
|
|
52
|
+
|
|
53
|
+
Done when: all five print `"ok": true`, with no warning about the size of the captions or about an effect.
|