popost 4.6.11 → 4.6.12

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.
@@ -8,8 +8,8 @@ picture draws a product of its own. A viewer who is sold one thing and shown ano
8
8
 
9
9
  Product first. Before any clip or picture is generated:
10
10
 
11
- 1. Write the product sheet from the user's pictures and words.
12
- 2. Show the user what you inferred, in one line, with the plan and its cost.
11
+ 1. Write the product sheet from the user's pictures and words, and look at every picture for a person's face.
12
+ 2. Show the user what you inferred and the picture that will be sent, with the plan and its cost, in one message.
13
13
  3. Plan each shot by how the product's identity is carried in it.
14
14
  4. Mark every request that shows the product; the pictures and the product block go with it by themselves.
15
15
  5. After generation, check the product in every clip and in the finished video, by eye.
@@ -21,9 +21,28 @@ popost video product init project --picture <file the user gave> [--picture <ano
21
21
  ```
22
22
 
23
23
  It copies every picture into `project/assets/product/` byte for byte and writes the skeleton of
24
- `project/production/product.json`. The pictures are the user's files as they sent them, **all of them**: never a
25
- crop, a cut-out, a redraw, a re-compressed copy or a choice among them. A crop made to read a label is for your own
26
- looking and stays out of the sheet. One product per `--id`; a video with two products runs `init` twice.
24
+ `project/production/product.json`. One product per `--id`; a video with two products runs `init` twice. Give `--lang
25
+ <code>` with the language the user writes in, and write the facts in it.
26
+
27
+ **The picture that is sent.** A user's picture is often a screenshot: someone else holding the product, a video
28
+ player's controls, other products beside it. What goes to a model is the user's picture whole, or a crop of it:
29
+
30
+ ```bash
31
+ popost video product crop project --picture assets/product/flask-01.png --no-face-confirmed agent # sent whole
32
+ popost video product crop project --picture assets/product/flask-01.png --box 120,340,600,900 --no-face-confirmed agent # a crop is sent
33
+ ```
34
+
35
+ - Open every picture. A person's face in it: crop it out. A picture with a face is never sent to a model; when the
36
+ product cannot be separated from the face, do not use that picture and ask the user for another.
37
+ - The crop shows the **whole** product, nothing of it cut off, with a little room around it. `--box` is
38
+ `x,y,width,height` in pixels of the user's picture. It is a plain rectangle of their pixels: never a cut-out, a
39
+ redraw, a retouch or a re-compressed copy. The original stays in the project with its hash (`"original"`).
40
+ - `--no-face-confirmed agent` says that you looked at the picture that is sent and saw no face. No program here can
41
+ tell a face, so this is your statement; the sheet has an error for every picture without it, and nothing that shows
42
+ the product is priced, uploaded or made before. When you cannot look at pictures, ask the user and record their
43
+ answer: `--no-face-confirmed user --note "<their words>"`.
44
+ - All the pictures the user gave go with every clip, each whole or cropped; do not choose among them. The user sees
45
+ the picture exactly as it is sent, on the input sheet, before anything is generated.
27
46
 
28
47
  Open each picture, then fill in every fact. Each fact says where it comes from:
29
48
 
@@ -67,25 +86,27 @@ Open each picture, then fill in every fact. Each fact says where it comes from:
67
86
  - Invent nothing: no variant, flavour, size, accessory, packaging or label text the user's pictures and words do not
68
87
  show. When a fact cannot be read and the user did not say it, ask.
69
88
 
70
- `popost video product check project` validates the sheet (every picture is the recorded file, every fact filled,
89
+ `popost video product check project` validates the sheet (every picture is the recorded file and was looked at, every fact filled,
71
90
  nothing shared between two products) and prints each product's `block`: the text every request that shows it is sent
72
91
  with. It is built from the sheet alone, so it is the same in every clip. Whether two free-text facts contradict each
73
92
  other the program cannot tell: read the block once as a whole before showing it.
74
93
 
75
94
  ## 2. The user confirms what was inferred
76
95
 
77
- `product check` prints `confirm`: one line with every fact that is not the user's. Put that line into the message
78
- that shows the plan and its cost (step 1), so the user corrects or agrees in the same answer. A correction goes into
79
- the sheet as `"from": "user"` with their words. Then:
96
+ `product check` prints `confirm`: one line with every fact that is not the user's. It is part of the one message
97
+ that shows the user the inputs and the cost (video.md, "Inputs first"): `popost video inputs show` puts the line into
98
+ the summary and the picture as it is sent on the input sheet, so the user corrects or agrees in the same answer. A
99
+ correction goes into the sheet as `"from": "user"` with their words. Then:
80
100
 
81
101
  ```bash
82
- popost video product confirm project --quote "<the user's answer>"
102
+ popost video inputs confirm project --quote "<the user's answer>"
83
103
  ```
84
104
 
85
- Paid generation of anything that shows the product waits for it (`materials` prices the list before, and stops
86
- with an error after). The answer is bound to the facts: a fact edited later is asked about again. When nobody can be
87
- asked (a batch the user commissioned to run without questions), `--unattended "<who authorised that, in their words>"`
88
- records it, and the delivery notes list the inferred facts as unconfirmed. Never write an answer the user did not give.
105
+ It records the answer for the inputs and for these facts at once. Paid generation of anything that shows the product
106
+ waits for it. The answer is bound to what was shown: a fact, a picture or a crop changed later is asked about again.
107
+ When nobody can be asked (a batch the user commissioned to run without questions), `--unattended "<who authorised
108
+ that, in their words>"` records it, and the delivery notes list the inferred facts as unconfirmed. Never write an
109
+ answer the user did not give. (`popost video product confirm` still records the facts alone.)
89
110
 
90
111
  ## 3. Plan the shots: real picture first
91
112
 
@@ -125,7 +146,8 @@ to the prompt, and keeps what was sent in `<clip>.product.json`. A clip from a f
125
146
  takes them (`popost video generate --models`, `maxReferenceImages`), or make the shot from the real picture
126
147
  (section 3). A picture is never left out to make a request fit;
127
148
  - a product clip whose `"firstFrame"` is not one of the user's pictures or a listed still;
128
- - a sheet with errors; and, once the list is to be paid for, inferred facts the user has not confirmed.
149
+ - a sheet with errors (a picture nobody looked at for a face is one); and, once the list is to be paid for, inputs
150
+ or inferred facts the user has not confirmed.
129
151
 
130
152
  Reference pictures have an order when a model takes few: the product's pictures, then the cast's identity pictures,
131
153
  then the request's own `"images"`, then the shared anchor frame. The anchor is left out with a note when there is no
@@ -169,6 +191,6 @@ changes action and at each clip boundary: drift shows there first.
169
191
  `--passed|--failed --by user --note "<their words>"`. Never present such a video as checked.
170
192
 
171
193
  A verdict belongs to the bytes that were looked at: a clip made again, or a new render, is unchecked until its own
172
- sheet is built and judged. The delivery notes say, for the product: how many pictures the user gave and that all
173
- went with every product clip, which shots use the real picture and which are generated, the verdict of each check,
194
+ sheet is built and judged. The delivery notes say, for the product: how many pictures the user gave, which were
195
+ cropped, and that all went with every product clip, which shots use the real picture and which are generated, the verdict of each check,
174
196
  what was regenerated or replaced, and any inferred fact the user did not confirm.
@@ -3,8 +3,8 @@
3
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
4
 
5
5
  Put the reference at `reference.mp4` (`cp` a local file, `curl -L -o reference.mp4 <url to the file>`, or, for a post link,
6
- the `video` file `popost link parse` printed: it fetches a video post's original file, except on YouTube, Bilibili and
7
- WeChat Channels; only when it reports `videoMissing` ask the user for the file or a screen recording), then:
6
+ the `video` file `popost link parse` printed: it fetches a video post's original file, except on the `coverOnly`
7
+ platforms of `popost link platforms` (now YouTube); only when it reports `videoMissing` ask the user for the file or a screen recording), then:
8
8
 
9
9
  ```bash
10
10
  popost video describe reference.mp4 --out ref --project project --confirm --max-credits <left>
@@ -131,7 +131,11 @@ can be part narration, part on camera. It writes `timeline.md` again: read its b
131
131
  beat a person says; sung words and fragments are no beats). `template save` refuses a reference whose kind is
132
132
  unconfirmed.
133
133
 
134
- The cost overview and the one budget, now that the reference is read (leave out what this video does not use):
134
+ The cost overview, now that the reference is read (leave out what this video does not use). It is not a question
135
+ of its own: it goes to the user in the one message that also shows the inputs (`popost video inputs show`; video.md,
136
+ "Inputs first"), once the product sheet, the cast, the voice plan and the request list are written. None of that
137
+ costs anything, so prepare it first; the user answers once, for the budget and for what is sent. Ask for a budget
138
+ alone only when paid work must run before the list can exist, and then only for that work.
135
139
 
136
140
  - Voice-over, only when the kinds include `narration`: `popost video voice quote --voice default-male --text "<a
137
141
  script as long as the reference's narration>"` (an estimate until the lines are written), and a little for pace
@@ -143,7 +147,7 @@ The cost overview and the one budget, now that the reference is read (leave out
143
147
  facts; [video-product.md](video-product.md)) and put the `confirm` line of `popost video product check project`
144
148
  into this overview: what you read from their picture and from how such a product is used, for them to correct or
145
149
  agree to in the same answer. Say which shots use their real picture and which are generated with it as reference.
146
- Record the answer with `popost video product confirm`; paid generation of product shots waits for it.
150
+ `inputs show` puts that line into the summary, and `popost video inputs confirm` records the answer for it too.
147
151
  - The transcription already paid (`chargedCredits` of `describe`).
148
152
  - The music plan: `popost video music plan --project project --reading ref` proposes it from the reading of the
149
153
  reference's sound (one bed: the user's file first; else the reference's own music, kept as it is, when nobody speaks
@@ -153,8 +157,8 @@ The cost overview and the one budget, now that the reference is read (leave out
153
157
  its music, ask for their own file first. When it says generated music is not available, say that one line and plan
154
158
  without a generated bed.
155
159
 
156
- Show the remaining items, estimated total and balance, including any proposed quality-repair allowance, in the one
157
- message that asks for the budget. The user must not have to ask which model or settings the money buys: for every
160
+ Show the remaining items, estimated total and balance, including any proposed quality-repair allowance, in that one
161
+ message, above the input sheet and the summary (which carries the prompts, the pictures and the voice). The user must not have to ask which model or settings the money buys: for every
158
162
  generated clip or picture that message names the model (its name and its `id` from `popost video generate --models`),
159
163
  the resolution, the length of each generated clip (the seconds the model makes, which can differ from the finished
160
164
  cut: say "an 8 s clip for a 7.5 s video" when they differ), the aspect ratio, how many, how it is billed (per second
@@ -170,7 +174,8 @@ the user decides what to do: never turn a speaking person into silent footage wi
170
174
 
171
175
  Done when: you have opened every picture of `ref/`, `popost video elements check ref` prints `"ok": true` (every
172
176
  shot has an entry that says its layout, how it begins and ends as its frames show it, and which layers are the
173
- platform's or the author's), the speech kind is confirmed, and the user agreed a budget (or no paid work is planned).
177
+ platform's or the author's), the speech kind is confirmed, and the cost overview is drafted for the one message
178
+ that shows the inputs (or no paid work is planned).
174
179
 
175
180
  Before saving a new replication template, run `popost video replication init ref --reference reference.mp4`,
176
181
  complete `replication.json` from the actual source video/audio, and run
@@ -80,7 +80,7 @@ the `box` of each element from `--outline` (`<skill>/references/video-scenes.md`
80
80
  the middle and nothing covers it. Otherwise zoom closer or hide what covers it, and record again.
81
81
 
82
82
  A shot of filmed material that no file of the user's shows can be generated when `generate` is set (step 0): write
83
- the requests and run `popost video materials requests.json --out project --template template --confirm --max-credits <left> --no-wait`
83
+ the requests, show the user what will be sent (`popost video inputs voice project --speaker narrator --voice <voice> --fill fill.json` when the video has a voice, then `popost video inputs show project --requests requests.json --template template --lang <code>`; ONE message with the cost, the sheet and the summary; `popost video inputs confirm project --quote "<their words>"`; video.md, "Inputs first") and run `popost video materials requests.json --out project --template template --confirm --max-credits <left> --no-wait`
84
84
  (`video-tools.md`, "Generated clips": the request, the price, what it prints). The clips are made on popost.ai while
85
85
  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
86
86
  on-camera beat is a clip with `"speech"`: the lines, who says each, their language and the beat each re-makes; the
@@ -9,6 +9,16 @@ popost video preflight project
9
9
  popost video template check template --fill fill.json --assets project --pace <budgets.pace> --fit-tempo 1.12
10
10
  ```
11
11
 
12
+ The voice was shown to the user with the other inputs before anything was paid (video.md, "Inputs first"): `popost
13
+ video inputs voice project --speaker narrator --voice <voice> --fill fill.json` writes the voice plan (voice, speed,
14
+ lines), `inputs show` adds the voice's name, its script, its price and a sample the user can hear. The sample is the
15
+ platform's own preview of the voice (free; `production/inputs/voice-<speaker>-sample.wav`) or the recording
16
+ registered for the speaker; a voice without one gets no sample, and the summary names what a one-sentence sample
17
+ would cost so that the user can ask for it. Nothing is spoken to build the confirmation. `template fill --speak`,
18
+ `retarget --speak` and `voice speak` with `--confirm` speak only the voice and the lines of the confirmed plan: when
19
+ a line changed (shortened to fit, corrected), write the plan again, run `inputs show` and show the user the voice
20
+ alone.
21
+
12
22
  `preflight` is `check --layout` and `scene check` in one call and, for a strict replication, what `replication check
13
23
  --artifact` finds before there is a video (the contract, `replication.plan.json` against the compiled timeline,
14
24
  `replication.audio.json`): it prints every problem at once, so correct them all and run it once more. Run it again
@@ -320,6 +320,24 @@ that exists is never made again, so running it twice costs once, and what each f
320
320
  `project/materials.json`. Paid generation follows the money rule ("Paying for popost.ai") and the agreed clips ("The
321
321
  built-in generator").
322
322
 
323
+ **The user sees the inputs first.** A paid run starts only once the user confirmed what is sent (video.md, "Inputs
324
+ first"); until then `materials` (and `generate` for a file of a project, and the paid voice commands) print
325
+ `{ "ok": false, "confirm": { "reason": "inputs", "pending": [...], "sheets": [...], "summary": "..." }, "next": "..." }`
326
+ and exit with 3, nothing charged:
327
+
328
+ ```bash
329
+ popost video inputs voice project --speaker narrator --voice popost:default-female --fill fill.json # the voice plan, when the video has a voice
330
+ popost video inputs show project --requests requests.json [--template template] [--lang zh] # free: sheet, summary, voice sample
331
+ popost video inputs confirm project --quote "<the user's words>" # after they answered the one message
332
+ ```
333
+
334
+ `show` takes the anchor options of `materials` (`--anchor-image`, `--character`, `--no-anchor`) and composes every
335
+ request with the code `materials` sends it with; it writes `production/inputs/input-sheet.jpg` (needs the local
336
+ browser; without one it names the pictures to show one by one), `summary.md` to paste and `summary.json`. Prices are
337
+ the platform's free quotes (the reference pictures of a clip are uploaded for its quote, as `materials` without
338
+ `--confirm` does); a generator of your own has no price here. Keys name the items: `clip:<file>`, `picture:<file>`,
339
+ `product:<id>`, `cast:<id>`, `voice:<speaker>`, `anchor`. A file that exists is not asked about.
340
+
323
341
  ```json
324
342
  [{ "file": "assets/walk.mp4", "prompt": "a woman walks briskly through a market, handheld, the camera follows",
325
343
  "seconds": 5, "aspect": "9:16", "images": ["assets/market.png"], "note": "the walk through the market" }]
@@ -23,6 +23,27 @@ keep their previous behavior; an approved repair uses a separate project and doe
23
23
  [video-sound.md](video-sound.md); before placing effects, read [video-sfx.md](video-sfx.md). These production
24
24
  checks remain required when onboarding or authorization has already been completed.
25
25
 
26
+ - Inputs first: before the first paid generation of a video, show the user everything that was prepared as the
27
+ input of a model and wait for their yes. `popost video inputs show project --requests requests.json --lang <the
28
+ language the user writes in>` builds it without paying: the input sheet (one picture: the product picture exactly
29
+ as it is sent, each person's picture with their name, every clip's reference pictures and frames, with captions)
30
+ and a summary (every prompt as it is sent, model, resolution, seconds, aspect ratio, credits; the voice, its script
31
+ and a sample to hear; the total). Send both in ONE message with the cost, and record the answer with `popost video
32
+ inputs confirm project --quote "<their words>"`. That one answer is the budget, the inputs and what was read from
33
+ the product picture: the user is asked once. `materials`, `generate` and the paid voice commands refuse with exit
34
+ code 3 and `confirm.reason: "inputs"` until then; a request, picture or voice line changed later is asked about
35
+ again, alone (run `inputs show` again). Only for a batch the user commissioned to run with nobody to ask:
36
+ `--unattended "<who authorised that, in their words>"`, and the delivery notes say the inputs were not confirmed.
37
+ - Language of prompts: write every clip and picture prompt, the facts of the product sheet and the voice script in
38
+ the language the user is writing in, and pass it once as `--lang <code>` (`product init` or `inputs show`; it is
39
+ stored in the project). The user then confirms exactly the text that is sent. The few sentences the program adds to
40
+ a prompt (product block, cast, anchor, speech and sound) are Chinese for `zh` and English for every other language.
41
+ Never translated: model ids, aspect ratios, file names, text printed on the product, brand names, quoted on-screen
42
+ text. A model whose entry in `popost video generate --models` says `"promptLanguage": "en"` is the exception: write
43
+ its prompts in English, and give the user a faithful version in their language first with the sent text underneath
44
+ (`popost video inputs translate project --item <key> --text "..."`; `inputs show` lists what is missing under
45
+ `displayMissing`, and a changed prompt asks for its version again). The same for a script in another language than
46
+ the user writes. Without `--lang` nothing changes: English sentences, one text.
26
47
  - Money: apply one commission authorization, with a budget for this video or an allocation inside an authorized batch.
27
48
  Popost voice-over, transcription, generated clips/pictures and music are paid when used; quotes are read-only.
28
49
  Cover any necessary paid reference analysis before it runs, within existing authorization or a separately agreed