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.
- package/SKILL.md +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 +2018 -754
- package/dist/index.js +2015 -751
- package/dist/types/version.d.ts +1 -1
- package/dist/types/video/commands/replication-books.d.ts +2 -0
- package/dist/types/video/compile/page-bundle.d.ts +1 -1
- 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/page/apply.d.ts +1 -1
- package/dist/types/video/page/contract.d.ts +14 -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/shell/dom.d.ts +9 -0
- package/dist/types/video/preview/shell/studio/style.d.ts +1 -1
- 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/package.json +1 -1
- package/references/image-workflow.md +1 -1
- 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,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.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Step 7. Render, compare, deliver
|
|
2
|
+
|
|
3
|
+
Step 7 of [making a video](video.md), whose rules for every step hold here; before it: [step 6, Build with the voice, and check](video-step-6-voice.md).
|
|
4
|
+
|
|
5
|
+
For a new replication, rendering reports `artifactReady: true`, `requirementsMet: null` until the exact output is
|
|
6
|
+
reviewed. Numeric similarity and a successful `compare` are measurements, not a fidelity pass. Follow
|
|
7
|
+
[strict replication review](video-replication.md): inspect the opening, active motion and resolved state of every
|
|
8
|
+
required event, not only 25/50/75% scene samples. Check real pair identity/stage, style/performer archetype, all
|
|
9
|
+
audible roles and duration. Keep `replication.plan.json` mapped to the compiled project. Then
|
|
10
|
+
`popost video replication review project --artifact final.mp4` binds the review to this very file and writes sheets of
|
|
11
|
+
the frames each finding needs (every event's lead-in, middle and resolved frame from the plan); open them, listen to
|
|
12
|
+
the video, give the verdicts with `replication review project --artifact final.mp4 --passed <names> --failed <names>`,
|
|
13
|
+
and run `popost video replication check project --reference reference.mp4 --artifact final.mp4`. After a new render
|
|
14
|
+
run `replication review` again: it binds the new file and sets every finding back to pending.
|
|
15
|
+
Only `qualityStatus: "accepted"` establishes a completed strict replication. Missing or failed requirements remain
|
|
16
|
+
pending/failed even when the file renders. An upstream failure is a checkpoint, not permission to substitute a
|
|
17
|
+
simpler visual medium. Ordinary comparison warnings still guide iteration; they are not all made fatal globally.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
popost video render project --out final.mp4
|
|
21
|
+
popost video compare reference.mp4 final.mp4
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`compare` scores the whole video per dimension from 0 to 1 (1 is the same), then prints `shots` (each shot of the
|
|
25
|
+
reference against the matching part of yours), `motionAmount` (how much the picture moves in both videos; `less` and
|
|
26
|
+
`more` list the shots that move less than half or more than twice as much as the reference's, and its `note` says what
|
|
27
|
+
to do: fix them like a shot of `worst`), `paths` (each path measured in the reference against yours at the same moment:
|
|
28
|
+
`differs` names what is not alike, the reference's number first: the path angle, the size, the duration, the shape of
|
|
29
|
+
the edge; set the scene from the reference's numbers), `notRecovered` (what the reading of the reference did not
|
|
30
|
+
recover and what you added: it goes into the delivery notes) and `worst`: the shots that differ most, each with `by` (the dimension
|
|
31
|
+
that makes it so: `picture`, `colour`, `motion`, `text` or `transition`), its seconds in both videos and a `look` command; `stillShots` names every shot
|
|
32
|
+
of yours that stands still for more than 40% of its length while the reference shot moves throughout: each is in `worst` with a `problem`
|
|
33
|
+
(its `message` and its `fix`), and each is fixed (the scene re-written so that it moves to its last frame, `video-motion.md`), never only noted. With a
|
|
34
|
+
text reader, run `popost video text final.mp4 --out final.text.json` first and add
|
|
35
|
+
`--reference-text ref/text.json --other-text final.text.json`: the shots are then compared on their text too. A round:
|
|
36
|
+
|
|
37
|
+
1. Run `compare`. For each entry of `worst`, run its `look` command and open the picture it writes
|
|
38
|
+
(`review/shot-NN/at-01.jpg`, full size): A is yours, B the reference. Name what differs: layout, a size, a colour,
|
|
39
|
+
how dense, when something moves.
|
|
40
|
+
An entry with `by: "transition"` is the change into that shot (every change that is not a cut in the reference is
|
|
41
|
+
scored on the curve of how much of the picture changes across it, its kind and how plain it is); its `look` shows 6 moments across the change. Fix it in the scene that draws it
|
|
42
|
+
(`custom`, video-elements.md) or with the preset whose line in video-elements.md matches the reference's frames; open
|
|
43
|
+
its look picture first.
|
|
44
|
+
2. Fix it: a scene (edit its HTML, run `popost video scene check project`), or the fill (edit fill.json, run step 6 again).
|
|
45
|
+
3. Render again; its `next` names the compare to run.
|
|
46
|
+
|
|
47
|
+
A round is finished when every shot of `worst` is fixed or written into the delivery notes with the reason it stays (a
|
|
48
|
+
source that does not have it, a missing tool or material). `compare` counts the rounds: `round` is how many states of
|
|
49
|
+
the project have been compared, this one included (rendering again without a change is the same state), and `next`
|
|
50
|
+
says what the round asks. At least two rounds means: deliver only a render whose compare printed `"round": 2` or
|
|
51
|
+
more; after a fix, render and compare again; at most four. `stillWorst` names the shots that stayed among the worst
|
|
52
|
+
with a similar score since an earlier round: fix them or write down why they stay. When `render` prints a `warning`,
|
|
53
|
+
the render before it was never compared: compare before changing more. When it prints `problems`, the music ends
|
|
54
|
+
before the video does: fix it as their `fix` says (video-tools.md, "Generated music") before delivering. To see the effects as the reference shows
|
|
55
|
+
them, `popost video look final.mp4 --shots-like ref --out review/frames` draws the pictures of `ref/` again from your
|
|
56
|
+
render, at the same share of its length and under the same names: open `review/frames/transitions/NN.jpg` beside
|
|
57
|
+
`ref/transitions/NN.jpg` for every effect, and `review/frames/shots/NN-frames.jpg` beside `ref/shots/NN-frames.jpg`.
|
|
58
|
+
An overview (`popost video look final.mp4 --against reference.mp4 --out review`, one sheet per shot) is fine too; neither
|
|
59
|
+
replaces opening the single shots of `worst`. With a text reader, `popost video readback project final.mp4 --confirm --max-credits <left>` says whether every
|
|
60
|
+
caption is legible (and heard, with a transcriber; popost.ai transcription of the voice is paid, `--no-speech` leaves it out: write it for a video with music and no voice), and warns for each shot whose text stays on screen smaller than
|
|
61
|
+
1.8% of the height (`textSizes`: the smallest and median per shot): zoom in, take the still at `--scale 2`, or show
|
|
62
|
+
fewer words. It also warns for each shot whose captions do not stand out from what is behind them
|
|
63
|
+
(`captionContrast`: white letters on a light page, dark ones over the page's own text): put them on a plate,
|
|
64
|
+
outline them, change their colour, or move the band to a calm part of the frame. It reads every caption and every
|
|
65
|
+
shot twice, at most two frames a second, and its first line says how long that takes (a second line when the frames
|
|
66
|
+
hold much more text than captions). It keeps the transcript and the text it read beside the project, so a readback after
|
|
67
|
+
a fix that left the sound alone does not listen again, and reads only the frames the fix changed.
|
|
68
|
+
|
|
69
|
+
With effects, run the `look` command `sfx place` printed, on the render, and open its frames (`review/sfx/`): where each
|
|
70
|
+
effect meets its picture something moves or lands, or the effect goes (a sound ahead of its picture is worse than one a
|
|
71
|
+
frame late). Effects are not in `compare`'s scores.
|
|
72
|
+
|
|
73
|
+
Open the editable Studio with the existing preview editor (selection, timeline operations and cloud saving: [video-editing.md](video-editing.md)):
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
popost video preview project --edit --reference reference.mp4
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Start this with the host's background-process tool and keep the service alive after delivery. Wait for its real JSON
|
|
80
|
+
output and use its `url`; do not guess a port. Fetch `api/state` under that URL and confirm it has `source` and
|
|
81
|
+
`edit`, then open the URL with the host's browser or side-panel tool. Check that the timeline and project load, a
|
|
82
|
+
text edit saves, undo restores it, a reload keeps the saved state, and the editor can render. Use the same project
|
|
83
|
+
that produced the delivered video. The URL is a local editor on this computer while that service runs.
|
|
84
|
+
|
|
85
|
+
When a template deliberately drops trailing platform shots, `compare` reports the retained reference interval and `omittedShots` after checking its sampled visual fingerprint. An unrelated reference or an older project without that provenance is compared in full; do not read the omitted endcard as a failure of the new closing.
|
|
86
|
+
|
|
87
|
+
Deliver `final.mp4`, its editable Studio URL, the `project/` directory and the delivery notes (`NOTES.md`): what is as in
|
|
88
|
+
the reference, what differs and why (no voice, a missing tool, a source that did not have something), each shot of
|
|
89
|
+
the last `worst` that was not fixed, with its reason, and under "Not recovered" every entry of `compare`'s
|
|
90
|
+
`notRecovered` (the reading's list and what you added to `elements.json`): what was not recovered and what the video
|
|
91
|
+
does instead. Never leave an entry out because the result looks fine: the user decides whether the assumption holds. Say what the video's sound is (the voice-over, people who speak in clips, the user's file, the clips' own sound, or none), its effects (how many, from the catalogue or the reference's own sounds; none, and why: the reading heard none), the reference's speech kind and what followed from it (a voice-over the user asked for is quoted with their words; `unknown`: not transcribed, so no voice-over), and that the user
|
|
92
|
+
can add or swap music in the Studio or when they post. Say the Studio is open only after it has actually loaded.
|
|
@@ -16,8 +16,10 @@ by position. The program keeps every length, cut, transition and caption time; a
|
|
|
16
16
|
| `shots.txt` | one line per shot saying what it showed (only when `template see` was run with a model) | if present |
|
|
17
17
|
| `reference-text.json` | the reference's on-screen text by shot (only when describe read text) | no: `template fill` copies it into the project's record |
|
|
18
18
|
|
|
19
|
+
Use `template save ... --fps <1..120>` when the deliverable has a fixed frame rate. The saved template and every fill keep that rate; the default still halves source rates above 40 fps. Choose it before authoring frame-based motion.
|
|
20
|
+
|
|
19
21
|
`--max-shot <seconds>` cuts longer shots into equal parts (for clips a generator makes). `template save` refuses a
|
|
20
|
-
reference whose speech kind is unconfirmed (`popost video speech-kind confirm`, video.md
|
|
22
|
+
reference whose speech kind is unconfirmed (`popost video speech-kind confirm`, video-step-1-read.md): the beats follow the
|
|
21
23
|
kinds. Sung words and fragments are no beats; a beat a person said on camera is marked.
|
|
22
24
|
|
|
23
25
|
A fill has a `voice` only when the kinds include `narration`. Otherwise `template check` and `template fill` refuse
|
|
@@ -147,7 +149,7 @@ What is measured of the source's caption letters, and what follows from it:
|
|
|
147
149
|
```bash
|
|
148
150
|
popost video template show template # TEMPLATE.md and the slots
|
|
149
151
|
popost video template check template --fill fill.json [--assets project] [--pace P [--fit-tempo T]] [--voice-asked "<words>"] # problems, each with a fix
|
|
150
|
-
popost video template fill template --fill fill.json --out project [--speak --
|
|
152
|
+
popost video template fill template --fill fill.json --out project [--speak [--fit-tempo T] [--keep-length]] [--pace P] [--voice-asked "<words>"]
|
|
151
153
|
```
|
|
152
154
|
|
|
153
155
|
`template check` looks at the files only with `--assets` (the directory the fill's paths are relative to), the
|
|
@@ -157,11 +159,17 @@ smaller or larger than the reference's captions is a warning with both sizes in
|
|
|
157
159
|
fill` checks the fill, then writes `video.json`, `reference.measure.json` and `reference.facts.json` (the record the checks
|
|
158
160
|
compare the project with, `video-project.md`) into `--out`; it reads the fill's files
|
|
159
161
|
from `--out` itself (or copies them in from `--assets`) and never changes the files you put there, so it can run
|
|
160
|
-
again and again. `--speak` speaks the lines of the narration beats (
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
again and again. `--speak` speaks the lines of the narration beats (a line a person says on camera is left to its clip). A speaker
|
|
163
|
+
that times its words (popost.ai) reads consecutive lines in one call, a take, and the picture follows the voice: each
|
|
164
|
+
beat lasts from its line's first word to the next line's and each shot moves with the beat it falls in. A take stays
|
|
165
|
+
continuous unless `--keep-pauses` preserves a long silent reference hold or `--keep-length` holds a beat.
|
|
166
|
+
Another speaker (`POPOST_TTS_CMD`)
|
|
167
|
+
says each line on its own and every beat is re-flowed to its line, the pauses between beats kept. `--keep-length`
|
|
168
|
+
keeps a beat at least as long as in the reference (a take is cut wherever the reference waits longer than the
|
|
169
|
+
voice). A reading in takes that is longer than the reference is sped up as a whole, one tempo for every take and the
|
|
170
|
+
pitch kept, until the video is as long as the reference: at most 1.25 times, or `--fit-tempo T` when T is higher (1 to
|
|
171
|
+
1.5; `--fit-tempo 1` never). A line said on its own is sped up when it would run over its beat, at most T times (1.12
|
|
172
|
+
is hardly heard); only the rest re-flows, and a note says what was done. With `--pace P`, `--fit-tempo T` lets each line hold T times as many characters. A line far shorter than
|
|
165
173
|
the reference's text of its beat is a warning: it is usually a cut that no longer says anything whole. A refused fill
|
|
166
174
|
prints `problems` and `repair` (the same list as one message).
|
|
167
175
|
|
|
@@ -175,3 +183,5 @@ popost video template show <skill>/references/video-examples/template-demo
|
|
|
175
183
|
popost video template fill <skill>/references/video-examples/template-demo --fill <skill>/references/video-examples/template-demo/fill.json --out demo
|
|
176
184
|
popost video render demo --out demo.mp4
|
|
177
185
|
```
|
|
186
|
+
|
|
187
|
+
A spoken fill keeps each take continuous by default. Add `--keep-pauses` to retain long silent source holds, or `--keep-length` to keep each beat at least its reference length. The latter is a minimum, not an exact-duration guarantee when new speech runs longer; shorten the script or use an authorized tempo fit rather than hand-editing frame counts. A strict spoken fill writes `replication.timing.json`; use `replication timeline` to refresh target event bindings.
|
|
@@ -68,8 +68,9 @@ supported clips/images and the music service supplies an agreed generated bed wh
|
|
|
68
68
|
adapters take precedence. Read live account/model information for availability, plan access and prices rather than
|
|
69
69
|
promising a fixed tariff or a subscription entitlement.
|
|
70
70
|
|
|
71
|
-
- Cover needed paid reference analysis before running it. `popost video
|
|
72
|
-
|
|
71
|
+
- Cover needed paid reference analysis before running it. `popost video describe reference.mp4 --out ref --project
|
|
72
|
+
project` without `--confirm` reads its exact price (transcription and sound analysis together) without running
|
|
73
|
+
anything; `popost video transcript reference.mp4 --quote` prices the transcription alone. That analysis may already be included in the commission; otherwise agree an
|
|
73
74
|
initial analysis stage. A known speech-free reference needs no paid transcript just to start.
|
|
74
75
|
- After reading the reference, show the remaining work and its estimate: narration only when needed (`video voice
|
|
75
76
|
quote --voice <voice> --text "<script>"`), any necessary pace calibration, clip/image generation (`video generate
|
|
@@ -109,8 +110,9 @@ ids stay on the server.
|
|
|
109
110
|
Transcription is popost.ai's with a connected account, unless `POPOST_ASR_CMD` names a transcriber of the user's own:
|
|
110
111
|
|
|
111
112
|
```bash
|
|
112
|
-
popost video
|
|
113
|
+
popost video describe reference.mp4 --out ref --project project # free: the price of the whole reading, exit code 3
|
|
113
114
|
popost video describe reference.mp4 --out ref --project project --confirm --max-credits <left> # within what is left
|
|
115
|
+
popost video transcript reference.mp4 --quote # free: the transcription alone, its seconds and credits
|
|
114
116
|
```
|
|
115
117
|
|
|
116
118
|
`--quote` prints `seconds`, `credits` and `next`. A command that needs no speech can say so with `--no-speech`
|
|
@@ -186,7 +188,7 @@ account, the bed can be generated on popost.ai from a description and paid in cr
|
|
|
186
188
|
second: 15 s about 27, 30 s about 54); the quote is the price, and `music make` is one more paid command of the
|
|
187
189
|
money rule (`--confirm --max-credits <left>`).
|
|
188
190
|
|
|
189
|
-
In the cost overview
|
|
191
|
+
In the cost overview at the end of step 1 (video-step-1-read.md), run `popost video music plan --project project --reading ref`:
|
|
190
192
|
it proposes the plan from the reading, with the quote's price for a generated bed, and prints `show`, the lines to
|
|
191
193
|
put in front of the user with the other items. Record what they agree to before any clip is made:
|
|
192
194
|
|
|
@@ -528,11 +530,11 @@ under the band). Pointer, boxes and zoom are drawn into the recording, the same
|
|
|
528
530
|
| `doctor`: `ffmpeg was not found` | Install ffmpeg or set `POPOST_FFMPEG` to its path. |
|
|
529
531
|
| `doctor`: a browser message | Install Chrome or Chromium, or set `POPOST_CHROME` to it. |
|
|
530
532
|
| `describe`: `leftOut` lists on-screen text or speech | The reader or transcriber is not set up (no account connected and no tool of the user's own), `--no-speech` was given, or the transcription failed (`because` says which): the template has no caption or spoken beats, and the speech kind is `unknown`, so the video gets no voice-over. A failed transcription: run the same command again. Otherwise go on; look at the pictures. `toAdd` says how to add it (`popost auth login` first). |
|
|
531
|
-
| `template save`: the speech kind is unconfirmed | `popost video speech-kind show ref`, open the pictures, then `popost video speech-kind confirm ref` with a kind for every phrase (video.md
|
|
533
|
+
| `template save`: the speech kind is unconfirmed | `popost video speech-kind show ref`, open the pictures, then `popost video speech-kind confirm ref` with a kind for every phrase (video-step-1-read.md). |
|
|
532
534
|
| `template check` or `template fill`: the reference has no narration | Leave the voice out, as the fix says. `--voice-asked "<the user's words>"` only when the user asked for a narration. |
|
|
533
535
|
| `"sound"` or an audio track has no record of where it came from | A sound is a file the user gave (`popost video music own`) or generated music the user agreed to; an effect comes from `sfx get` or `sfx place`. Remove anything else; never mix a narration by hand or take sound from the reference. |
|
|
534
536
|
| `sfx place`: `Nothing placed: the reading of the reference says it has no sound effects` (or nobody listened) | That is the rule (R5): deliver without effects and say so in the notes. `--asked "<the user's words>"` only when the user asked for effects. `no reading of its sound was found`: add `--reading ref`. |
|
|
535
|
-
| `check`: an effect is heard over a spoken line, jumps out of the video, or `effects start between` | Write the `"gain"` the fix names, or delete the effect; `sfx place --density low` thins them all. After a fill, `sfx place` again (video.md
|
|
537
|
+
| `check`: an effect is heard over a spoken line, jumps out of the video, or `effects start between` | Write the `"gain"` the fix names, or delete the effect; `sfx place --density low` thins them all. After a fill, `sfx place` again (video-step-6-voice.md). |
|
|
536
538
|
| `render`: `The effect "..." could not be downloaded` | No network and the sound was never fetched on this machine: connect and render again, or delete its `sfx` tracks and say so in the notes. |
|
|
537
539
|
| An on-camera beat is said by no clip | Make the clip of that shot with `speech.lines` naming the beat ("Lines a person says"). When it costs more than is left, stop and tell the user the price. |
|
|
538
540
|
| A paid command ends with exit code 3 and `confirm` | Nothing was made or charged. Within what is left of the agreed budget: run it again with `--confirm --max-credits <left>`. Above it, or the scope changed: show the user `confirm` and ask. `"reason": "unplanned"`: "The built-in generator". |
|