launch-film 0.1.4 → 0.2.1
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/README.md +74 -4
- package/THIRD_PARTY.md +2 -1
- package/assets/icon.svg +17 -0
- package/bin/launch-film.js +47 -0
- package/package.json +1 -1
- package/skills/launch-film/SKILL.md +28 -12
- package/src/brand.js +4 -3
- package/src/check.js +433 -0
- package/src/chrome.js +33 -1
- package/src/cues.js +55 -0
- package/src/draw.js +117 -0
- package/src/ffmpeg.js +33 -9
- package/src/film.js +21 -15
- package/src/frames.js +224 -33
- package/src/motion.js +179 -26
- package/src/stills.js +180 -0
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Read the story behind it on my blog: [launch-film: A Launch Film From Your Websi
|
|
|
16
16
|
|
|
17
17
|
## Use it with your agent
|
|
18
18
|
|
|
19
|
-
launch-film ships as an [Agent Skill](https://agentskills.io). Your agent gets the brand, picks a look, writes the scenes from the page's words, renders the film,
|
|
19
|
+
launch-film ships as an [Agent Skill](https://agentskills.io). Your agent gets the brand, picks a look, writes the scenes from the page's words, renders the film, checks it and hands you the MP4, with the launch pictures if you ask for them.
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
npx skills add EminBudak/launch-film
|
|
@@ -50,6 +50,12 @@ cp -r launch-film/skills/launch-film ~/.agents/skills/
|
|
|
50
50
|
cp -r launch-film/skills/launch-film ~/.cursor/skills/
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
In GitHub Copilot CLI, install it from the repo:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
copilot plugin install EminBudak/launch-film
|
|
57
|
+
```
|
|
58
|
+
|
|
53
59
|
Then ask as usual:
|
|
54
60
|
|
|
55
61
|
> Make a launch video for linear.app
|
|
@@ -61,6 +67,8 @@ npx launch-film <url> [options] read the brand, plan the film, render i
|
|
|
61
67
|
npx launch-film plan <url> [options] read the brand and write film.json only
|
|
62
68
|
npx launch-film render <film.json> render a film.json after editing it
|
|
63
69
|
npx launch-film frames <film.mp4> save stills of each clip and a contact sheet
|
|
70
|
+
npx launch-film check <film.mp4> measure a render and write pass or fail
|
|
71
|
+
npx launch-film stills <url|film.json> launch pictures at store and site sizes
|
|
64
72
|
npx launch-film looks | types | icons <word> | doctor
|
|
65
73
|
|
|
66
74
|
--out <dir> folder for the brand, film.json and the film (default ./launch-film-<site>)
|
|
@@ -81,8 +89,70 @@ launch-film-linear.app/
|
|
|
81
89
|
film.json the plan, which you can edit and render again
|
|
82
90
|
film.mp4 the film
|
|
83
91
|
frames/sheet.jpg two stills from every clip, for checking
|
|
92
|
+
check/CHECK.md what launch-film check measured, when you run it
|
|
93
|
+
stills/ the launch pictures, when you run launch-film stills
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Launch stills
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npx launch-film@latest stills linear.app --for ph,og,x,play,chrome
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`stills` makes the pictures a launch needs, at the exact size each place asks for, from the film's look, the brand's logo and the site's real screen. Give it a site and it plans the film first, or give it a `film.json` you already have, so the pictures match the film you edited.
|
|
103
|
+
|
|
104
|
+
| file | size | for |
|
|
105
|
+
| --- | --- | --- |
|
|
106
|
+
| `ph-1.png` | 1270x760 | Product Hunt gallery: the logo, the promise and the site's screen |
|
|
107
|
+
| `ph-2.png` to `ph-6.png` | 1270x760 | Product Hunt gallery: the film's own scenes, from the headline to the logo close |
|
|
108
|
+
| `ph-thumbnail.png` | 240x240 | Product Hunt thumbnail: the app icon, or the logo |
|
|
109
|
+
| `og.png` | 1200x630 | `og:image`, the picture a shared link shows |
|
|
110
|
+
| `x.png` | 1600x900 | a post on X |
|
|
111
|
+
| `play-feature.png` | 1024x500 | the Google Play feature graphic |
|
|
112
|
+
| `chrome-small.png` | 440x280 | the Chrome Web Store small promo tile: the logo alone |
|
|
113
|
+
| `chrome-marquee.png` | 1400x560 | the Chrome Web Store marquee tile: the logo and the screen, no text |
|
|
114
|
+
|
|
115
|
+
Every picture is an opaque PNG, since Google Play refuses transparency. `stills/STILLS.md` lists them with what each one is for. Leave out `--for` to get all of them.
|
|
116
|
+
|
|
117
|
+
## Check a render
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
npx launch-film@latest check film.mp4 --expect 1920x1080@30 --seconds 30 --lufs -14 --cues cues.json
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
An agent can't watch a film or listen to it. `check` measures it with ffmpeg's own filters and writes down what it found:
|
|
124
|
+
|
|
125
|
+
- `CHECK.md`: PASS or FAIL, a table of the checks, the stretches it found and every cut.
|
|
126
|
+
- `check.json`: the same, for a program.
|
|
127
|
+
- `sheet.png`: a frame from each shot, numbered, with its cut's time and whether it lands on the beat.
|
|
128
|
+
- `wave.png`: the sound's outline and loudness over time, with the cuts, beats, bars and hits marked.
|
|
129
|
+
|
|
130
|
+
| check | passes when |
|
|
131
|
+
| --- | --- |
|
|
132
|
+
| size and frame rate | they match `--expect` |
|
|
133
|
+
| length | it is within half a second of `--seconds`, or inside a range like `28-32` |
|
|
134
|
+
| black, still picture, silence | there is no long stretch of one inside the film |
|
|
135
|
+
| loudness | the integrated loudness is within 1 LU of `--lufs` |
|
|
136
|
+
| true peak | it is -1 dBTP or lower (up to 0 is a warning) |
|
|
137
|
+
| clipping | the sound never reaches full scale or sits flat on its peak |
|
|
138
|
+
| cuts on beats | every cut is within one frame of a beat in `--cues` |
|
|
139
|
+
|
|
140
|
+
Holds are often meant, so they don't raise alarms: up to 1 s of black at the start and 2 s at the end, an end card that stands still for up to 6 s, and a still picture shorter than 2 s inside the film all pass. A longer stretch is a warning, not a failure, unless most of the film is black or silent. Give the stretches you meant with `--allow 27-30` and they count as meant. `check` exits with 1 when the film fails, so a script can stop on it.
|
|
141
|
+
|
|
142
|
+
The cuts come from the timeline launch-film writes next to its film. For a film made elsewhere, give them with `--cuts 3.2,7.5` or a JSON file. Without either, `check` finds the hard cuts in the picture, and lists soft changes (a crossfade, or something starting to move) without judging them.
|
|
143
|
+
|
|
144
|
+
### cues.json
|
|
145
|
+
|
|
146
|
+
`--cues` reads a track's beats as frame numbers. A tool that fits music to a cut can write it, or you can write it by hand:
|
|
147
|
+
|
|
148
|
+
```json
|
|
149
|
+
{ "fps": 30, "beats": [0, 15, 30, 45], "bars": [0, 60, 120], "hits": [825], "frames": 960, "bpm": 120 }
|
|
84
150
|
```
|
|
85
151
|
|
|
152
|
+
- `fps` and `beats` are needed. Every number is a whole frame at `fps`, and frame 0 is the film's first frame.
|
|
153
|
+
- `bars` (each bar's first beat), `hits` (accents an edit should land on, like the drop), `frames` (the track's length) and `bpm` are optional.
|
|
154
|
+
- Other keys are ignored, so a tool can add its own.
|
|
155
|
+
|
|
86
156
|
## How it works
|
|
87
157
|
|
|
88
158
|
1. **Brand.** easybrandkit opens the site in headless Chrome and saves its logos cut on their own background, its button, heading and surface colors, its font families and its first screen at 2x. Given an App Store or Google Play listing, it saves the app's icon, screenshots and rating, and reads the site the listing names.
|
|
@@ -90,7 +160,7 @@ launch-film-linear.app/
|
|
|
90
160
|
3. **Plan.** A first film is planned without a brief: the name and its promise, the real screen in a browser window, the page's own sentence as a headline, three sections as feature cards, a number the page states (or an app's store rating), the app's store screenshots, and the logo close with the site's address. It is written to `film.json`.
|
|
91
161
|
4. **Render.** Each clip is an HTML page with one paused timeline. A virtual clock steps it frame by frame in headless Chrome, so every frame is drawn for its time however long drawing takes, and the frames go to ffmpeg. Two clips render at a time.
|
|
92
162
|
5. **Sound.** The music and every sound effect are synthesised in code for this film: the groove starts on the second clip, each clip lasts whole bars so cuts land on the beat, and the logo lands on a hit. There are no samples.
|
|
93
|
-
6. **Check.** Stills from each clip and a contact sheet are saved, so you (or your agent) can look before sharing.
|
|
163
|
+
6. **Check.** Stills from each clip and a contact sheet are saved, so you (or your agent) can look before sharing. `launch-film check` measures the film as well: its size, length, black or still stretches, silence, loudness, peaks, and whether the cuts land on the beat.
|
|
94
164
|
|
|
95
165
|
## film.json
|
|
96
166
|
|
|
@@ -135,9 +205,9 @@ Words between asterisks are set in the brand's accent color. A bar is one bar of
|
|
|
135
205
|
- Node 22 or newer
|
|
136
206
|
- Google Chrome or Chromium (set `LAUNCH_FILM_CHROME` to use another build)
|
|
137
207
|
- ffmpeg (set `LAUNCH_FILM_FFMPEG` and `LAUNCH_FILM_FFPROBE` to use another build)
|
|
138
|
-
- [easybrandkit](https://github.com/EminBudak/easybrandkit): install it with `npm install -g easybrandkit`, or launch-film runs it with `npx -y easybrandkit@
|
|
208
|
+
- [easybrandkit](https://github.com/EminBudak/easybrandkit): install it with `npm install -g easybrandkit`, or launch-film runs it with `npx -y easybrandkit@0.4.0` (set `LAUNCH_FILM_EASYBRANDKIT` to use a copy of your own)
|
|
139
209
|
|
|
140
|
-
Run `npx launch-film doctor` to check. It has been tested on macOS with Chrome 156 and ffmpeg 7.1.
|
|
210
|
+
Run `npx launch-film@latest doctor` to check. It has been tested on macOS with Chrome 156 and ffmpeg 7.1, and on Linux with Chrome 155 and ffmpeg 8.0.
|
|
141
211
|
|
|
142
212
|
## Limits
|
|
143
213
|
|
package/THIRD_PARTY.md
CHANGED
|
@@ -43,7 +43,7 @@ They are embedded in the pages that are rendered, and reach the film only as pix
|
|
|
43
43
|
|
|
44
44
|
### easybrandkit
|
|
45
45
|
|
|
46
|
-
`launch-film <url>` and `launch-film plan <url>` run [easybrandkit](https://github.com/EminBudak/easybrandkit) (MIT, by the same author) to read the site: an easybrandkit installed on PATH (`npm install -g easybrandkit`), or else `npx -y easybrandkit`, and `npx -y github:EminBudak/easybrandkit` when npm cannot give it. `LAUNCH_FILM_EASYBRANDKIT` names another command.
|
|
46
|
+
`launch-film <url>` and `launch-film plan <url>` run [easybrandkit](https://github.com/EminBudak/easybrandkit) (MIT, by the same author) to read the site: an easybrandkit installed on PATH (`npm install -g easybrandkit`), or else `npx -y easybrandkit@0.4.0`, and `npx -y github:EminBudak/easybrandkit#v0.4.0` when npm cannot give it. `LAUNCH_FILM_EASYBRANDKIT` names another command.
|
|
47
47
|
|
|
48
48
|
## Used from your machine, not shipped
|
|
49
49
|
|
|
@@ -54,4 +54,5 @@ They are embedded in the pages that are rendered, and reach the film only as pix
|
|
|
54
54
|
|
|
55
55
|
- The timeline that moves every page (`src/runtime/timeline.js`) is this package's own code. Its method names follow the shape of GSAP's (`gsap.timeline()`, `tl.from()`, `"expo.out"`) because motion designers know them, but no GSAP code is included or loaded.
|
|
56
56
|
- Every sound (the music bed and all sound effects) is synthesised by `src/audio.js`. There are no recordings or samples.
|
|
57
|
+
- The 5x7 pixel face that labels the contact sheets and the loudness chart (`src/draw.js`) was drawn for this package, so `check` and `frames` need no font on the machine.
|
|
57
58
|
- The test brand in `test/fixtures/acme`, "Acme Notes", is a made-up product drawn by `test/fixtures/make-fixture.js`.
|
package/assets/icon.svg
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#111114"/>
|
|
3
|
+
<rect x="10" y="15" width="44" height="34" rx="5" fill="#f4f1ea"/>
|
|
4
|
+
<g fill="#111114">
|
|
5
|
+
<rect x="14" y="18" width="4" height="3" rx="1"/>
|
|
6
|
+
<rect x="22" y="18" width="4" height="3" rx="1"/>
|
|
7
|
+
<rect x="30" y="18" width="4" height="3" rx="1"/>
|
|
8
|
+
<rect x="38" y="18" width="4" height="3" rx="1"/>
|
|
9
|
+
<rect x="46" y="18" width="4" height="3" rx="1"/>
|
|
10
|
+
<rect x="14" y="43" width="4" height="3" rx="1"/>
|
|
11
|
+
<rect x="22" y="43" width="4" height="3" rx="1"/>
|
|
12
|
+
<rect x="30" y="43" width="4" height="3" rx="1"/>
|
|
13
|
+
<rect x="38" y="43" width="4" height="3" rx="1"/>
|
|
14
|
+
<rect x="46" y="43" width="4" height="3" rx="1"/>
|
|
15
|
+
</g>
|
|
16
|
+
<path d="M28 25.5v13l11-6.5z" fill="#ff6a3d"/>
|
|
17
|
+
</svg>
|
package/bin/launch-film.js
CHANGED
|
@@ -12,6 +12,12 @@ Usage:
|
|
|
12
12
|
launch-film plan <url> [options] Read the brand and write film.json only.
|
|
13
13
|
launch-film render <film.json> Render a film.json (after editing it).
|
|
14
14
|
launch-film frames <film.mp4> Save stills of each clip and a contact sheet.
|
|
15
|
+
launch-film check <film.mp4> Check a render by measuring it: size, frame
|
|
16
|
+
rate, length, black, still and silent
|
|
17
|
+
stretches, loudness, peaks, cuts on the beat.
|
|
18
|
+
launch-film stills <url|film.json> Launch pictures at the sizes Product Hunt,
|
|
19
|
+
link previews, X, Google Play and the
|
|
20
|
+
Chrome Web Store ask for.
|
|
15
21
|
launch-film looks List the looks.
|
|
16
22
|
launch-film types List the scene types and their fields.
|
|
17
23
|
launch-film icons <word> Find icon names for a scene.
|
|
@@ -38,6 +44,20 @@ Options:
|
|
|
38
44
|
--no-sfx Leave out the sound effects.
|
|
39
45
|
--keep Keep the work files (each clip's MP4).
|
|
40
46
|
|
|
47
|
+
Check options (CHECK.md, check.json, sheet.png and wave.png go to --out,
|
|
48
|
+
default check/ next to the film; it exits with 1 when the film fails):
|
|
49
|
+
--expect <WxH@fps> The size and frame rate, like 1920x1080@30.
|
|
50
|
+
--seconds <n> The length: 30 (give or take half a second) or 28-32.
|
|
51
|
+
--lufs <n> The integrated loudness, like -14 (give or take 1 LU).
|
|
52
|
+
--cues <file> The music's cues.json, to check the cuts on the beat.
|
|
53
|
+
--cuts <list|file> The cuts in seconds (3.2,7.5) or a JSON file, when the
|
|
54
|
+
film has no timeline from launch-film.
|
|
55
|
+
--allow <stretches> Stretches meant to hold still, black or silent, in
|
|
56
|
+
seconds, like 27-30,0-0.5.
|
|
57
|
+
|
|
58
|
+
Stills options (the pictures and STILLS.md go to stills/ next to film.json):
|
|
59
|
+
--for <targets> Any of ph, og, x, play, chrome (default: all of them).
|
|
60
|
+
|
|
41
61
|
Everything renders on this machine with Chrome and ffmpeg. No account or key.
|
|
42
62
|
`;
|
|
43
63
|
|
|
@@ -211,6 +231,33 @@ async function main() {
|
|
|
211
231
|
await frames(path.resolve(rest[0]), flags);
|
|
212
232
|
return;
|
|
213
233
|
}
|
|
234
|
+
if (command === "check") {
|
|
235
|
+
if (!rest[0]) fail("give the film's MP4 to check");
|
|
236
|
+
const { checkFilm } = require("../src/check");
|
|
237
|
+
const r = await checkFilm(path.resolve(rest[0]), { out: flags.out, expect: flags.expect, seconds: flags.seconds, lufs: flags.lufs, cues: flags.cues, cuts: flags.cuts, allow: flags.allow });
|
|
238
|
+
for (const c of r.checks.filter((x) => x.status === "fail" || x.status === "warn")) say(` ${c.status.padEnd(5)} ${c.name}: ${c.found}${c.expected ? ` (asked for ${c.expected})` : ""}\n`);
|
|
239
|
+
say(`${r.pass ? "PASS" : "FAIL"}${r.warnings.length ? `, ${r.warnings.length} warning${r.warnings.length > 1 ? "s" : ""}` : ""}: ${path.relative(process.cwd(), path.join(r.dir, "CHECK.md"))}\n`);
|
|
240
|
+
if (!r.pass) process.exitCode = 1;
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
if (command === "stills") {
|
|
244
|
+
if (!rest[0]) fail("give the site's address or a film.json, e.g. launch-film stills example.com --for ph,og");
|
|
245
|
+
const { makeStills, parseTargets } = require("../src/stills");
|
|
246
|
+
parseTargets(flags.for);
|
|
247
|
+
let filmFile;
|
|
248
|
+
if (/\.json$/i.test(rest[0])) {
|
|
249
|
+
filmFile = path.resolve(rest[0]);
|
|
250
|
+
if (!fs.existsSync(filmFile)) fail(`${rest[0]} is not a file`);
|
|
251
|
+
} else {
|
|
252
|
+
const url = normaliseUrl(rest[0]);
|
|
253
|
+
if (!url) fail(`"${rest[0]}" is not an address or a film.json`);
|
|
254
|
+
({ filmFile } = await makePlan(url, flags));
|
|
255
|
+
}
|
|
256
|
+
const r = await makeStills(filmFile, { targets: flags.for, log: say });
|
|
257
|
+
for (const note of r.notes) say(`note: ${note}\n`);
|
|
258
|
+
say(`Made ${r.files.length} stills: ${path.relative(process.cwd(), path.join(r.dir, "STILLS.md"))}\n`);
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
214
261
|
const isPlan = command === "plan";
|
|
215
262
|
const url = normaliseUrl(isPlan ? rest[0] : command);
|
|
216
263
|
if (!url) fail(isPlan ? "give the site's address, e.g. launch-film plan example.com" : `"${command}" is not a command or an address. Run launch-film --help.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "launch-film",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "A launch film from a website or an App Store page: its real logo, colors, fonts and screens, rendered locally with Chrome and ffmpeg.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Emin Budak",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: launch-film
|
|
3
|
-
description: Make a 20 to 40 second launch film (an MP4 at 1920x1080 with music and sound effects) for a product from its website or App Store page, using its real logo, colors, fonts and screens. Use it when the user asks for a launch video, product video, promo, teaser or announcement clip for a site or an app and gives its address. Everything
|
|
3
|
+
description: Make a 20 to 40 second launch film (an MP4 at 1920x1080 with music and sound effects) for a product from its website or App Store page, using its real logo, colors, fonts and screens. Use it when the user asks for a launch video, product video, promo, teaser or announcement clip for a site or an app and gives its address. It also makes launch pictures at the sizes stores and sites ask for (Product Hunt gallery, og:image, X, Google Play feature graphic, Chrome Web Store tiles), and checks any rendered video by measuring it (size, length, black or frozen stretches, silence, loudness, clipping, cuts on the beat). Everything runs locally with Chrome and ffmpeg; no account or API key.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# launch-film
|
|
7
7
|
|
|
8
|
-
A launch film made from the product itself: its logo cut from its own page, its colors and typefaces, its real screens in a browser window or a phone, and the words its site already uses. You plan the film as a short JSON file, render it,
|
|
8
|
+
A launch film made from the product itself: its logo cut from its own page, its colors and typefaces, its real screens in a browser window or a phone, and the words its site already uses. You plan the film as a short JSON file, render it, check it, and hand over the MP4, with launch pictures when the user wants them.
|
|
9
9
|
|
|
10
10
|
The tool is the `launch-film` npm package. It needs Node 22 or newer, Chrome or Chromium, and ffmpeg. Check them first:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npx -y launch-film doctor
|
|
13
|
+
npx -y launch-film@0.2.1 doctor
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
If ffmpeg is missing, tell the user how to install it (`brew install ffmpeg` on a Mac, `sudo apt install ffmpeg` on Debian or Ubuntu) and stop.
|
|
@@ -18,7 +18,7 @@ If ffmpeg is missing, tell the user how to install it (`brew install ffmpeg` on
|
|
|
18
18
|
## 1. Get the brand and a first plan
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npx -y launch-film plan <url> --out film/<name>
|
|
21
|
+
npx -y launch-film@0.2.1 plan <url> --out film/<name>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Give the product's website, or its App Store or Google Play listing (then the listing's icon, screenshots and rating are used, with the colors, fonts and logo of the site it names). Not a social profile: easybrandkit refuses those.
|
|
@@ -38,7 +38,7 @@ If launch-film says easybrandkit could not be fetched, npx could not download it
|
|
|
38
38
|
## 2. Pick a look
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
npx -y launch-film looks
|
|
41
|
+
npx -y launch-film@0.2.1 looks
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
The plan already picked one from the brand: `launch` (dark stage, depth, one bright accent) for dark sites and developer tools, `aurora` (frosted glass over soft color) for vivid consumer and AI products, `gridline` (Swiss grid on paper) for light B2B sites, `pop` (full color fields, stickers) for consumer apps, `journal` (serif headlines on warm paper) for editorial brands. Change `"look"` in film.json if the user asked for a style or another one fits better.
|
|
@@ -56,7 +56,7 @@ film.json holds `look`, `aspect` (`16:9` or `9:16`) and `clips`, played in order
|
|
|
56
56
|
| `scroll` | a tall page scrolling in a window | `image` |
|
|
57
57
|
| `logo` | the logo close with the site's address | `logo` (an easybrandkit logo file) or `icon` (an app icon), `site` |
|
|
58
58
|
|
|
59
|
-
A scene object has a `type` and its words. List every type and its fields with `npx -y launch-film types`; icon names come from `npx -y launch-film icons <word>`. The ones a launch film uses most:
|
|
59
|
+
A scene object has a `type` and its words. List every type and its fields with `npx -y launch-film@0.2.1 types`; icon names come from `npx -y launch-film@0.2.1 icons <word>`. The ones a launch film uses most:
|
|
60
60
|
|
|
61
61
|
```json
|
|
62
62
|
{ "type": "opener", "title": "Acme Notes", "text": "Notes that think with you" }
|
|
@@ -79,18 +79,24 @@ Words between asterisks are set in the accent color. Rules for the words:
|
|
|
79
79
|
## 4. Render
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
npx -y launch-film render film/<name>/film.json
|
|
82
|
+
npx -y launch-film@0.2.1 render film/<name>/film.json
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
Clips render two at a time; a 30 second film takes one to three minutes. The film is `film/<name>/film.mp4`. If a clip fails, the message names it: fix film.json and render again.
|
|
86
86
|
|
|
87
|
-
## 5.
|
|
87
|
+
## 5. Check the film before you hand it over
|
|
88
|
+
|
|
89
|
+
You can't watch the film or hear it, so measure it:
|
|
88
90
|
|
|
89
91
|
```bash
|
|
90
|
-
npx -y launch-film
|
|
92
|
+
npx -y launch-film@0.2.1 check film/<name>/film.mp4 --expect 1920x1080@25 --seconds 20-40 --lufs -14
|
|
91
93
|
```
|
|
92
94
|
|
|
93
|
-
|
|
95
|
+
launch-film renders at 25 fps, 1920x1080 (1080x1920 for 9:16). `--seconds 20-40` is the range a launch film keeps to; when the user asked for a length, give that instead (`--seconds 30` allows half a second either way). Clips last whole bars, so a film planned for 30 seconds can come out two seconds short: to hit a length exactly, give the last clip `seconds` in place of `bars` and render again. `--lufs -14` is the loudness YouTube, X and most social apps play at. If the user has music cues from another tool, add `--cues cues.json` to see whether the cuts land on the beat.
|
|
96
|
+
|
|
97
|
+
Read `film/<name>/check/CHECK.md` first. It says PASS or FAIL and why, for each check: size, frame rate, length, black, still and silent stretches, loudness, true peak, clipping and cuts on the beat. A warning is something to look at, not always a fault: a title that rests or an end card is a hold, and you can pass the stretches you meant with `--allow 27-30`.
|
|
98
|
+
|
|
99
|
+
Then look, because a measurement can't read words. Open `check/sheet.png` (a frame from each shot) and `check/wave.png` (the sound over time, with the cuts). For two stills a clip, run `npx -y launch-film@0.2.1 frames film/<name>/film.mp4` and open `frames/sheet.jpg`. Check:
|
|
94
100
|
|
|
95
101
|
- every word is whole, inside the frame and spelled as written;
|
|
96
102
|
- no text lies on other text or runs out of its card;
|
|
@@ -98,11 +104,21 @@ Open `film/<name>/frames/sheet.jpg` and the stills next to it, two for each clip
|
|
|
98
104
|
- the screens are the product's and not a cookie banner or a login page;
|
|
99
105
|
- nothing is blank where something should show.
|
|
100
106
|
|
|
101
|
-
Fix what you find in film.json and render again. Then give the user the MP4's path, its length and look, and one line on each clip.
|
|
107
|
+
Fix what you find in film.json and render again. If the loudness or the peaks fail, tell the user what CHECK.md measured instead of rendering again: the render does not change them. Then give the user the MP4's path, its length and look, the check's verdict, and one line on each clip.
|
|
108
|
+
|
|
109
|
+
## 6. Launch pictures, when the user wants them
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
npx -y launch-film@0.2.1 stills film/<name>/film.json --for ph,og,x,play,chrome
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
This makes the pictures a launch needs from the same plan, at the exact size each place asks for, in `film/<name>/stills/`: the Product Hunt gallery (`ph-1.png` to `ph-6.png`, 1270x760) and thumbnail (240x240), `og.png` (1200x630) for link previews, `x.png` (1600x900) for a post on X, `play-feature.png` (1024x500) for Google Play, and the Chrome Web Store tiles (`chrome-small.png` 440x280 and `chrome-marquee.png` 1400x560). Ask for only the ones the user needs with `--for`; a site's address in place of film.json plans the film first.
|
|
116
|
+
|
|
117
|
+
Read `stills/STILLS.md` and look at every picture with the same list as the frames. The words come from film.json, so fix them there and run `stills` again. Then give the user the folder and say what each file is for.
|
|
102
118
|
|
|
103
119
|
## Without a plan step
|
|
104
120
|
|
|
105
|
-
`npx -y launch-film <url>` does
|
|
121
|
+
`npx -y launch-film@0.2.1 <url>` does steps 1 to 4 in one go with the first plan, and saves the frames. Use it when the user wants a film quickly and has no wishes about the words, and check the MP4 as in step 5 before you hand it over.
|
|
106
122
|
|
|
107
123
|
## Options
|
|
108
124
|
|
package/src/brand.js
CHANGED
|
@@ -37,8 +37,9 @@ const normHex = (v) => {
|
|
|
37
37
|
// The commands that may run easybrandkit, in the order they are tried: the
|
|
38
38
|
// one given (a command, or the path of easybrandkit's script), else
|
|
39
39
|
// LAUNCH_FILM_EASYBRANDKIT, else an easybrandkit installed on PATH, else
|
|
40
|
-
// easybrandkit from npm through npx, then
|
|
41
|
-
// npm cannot give it.
|
|
40
|
+
// easybrandkit 0.4.0 from npm through npx, then the same release from its
|
|
41
|
+
// GitHub repository when npm cannot give it. The version is pinned, so a run
|
|
42
|
+
// never picks up a newer easybrandkit on its own.
|
|
42
43
|
function easybrandkitCommands(given = "") {
|
|
43
44
|
const raw = String(given || process.env.LAUNCH_FILM_EASYBRANDKIT || "").trim();
|
|
44
45
|
if (raw) {
|
|
@@ -48,7 +49,7 @@ function easybrandkitCommands(given = "") {
|
|
|
48
49
|
const installed = onPath(process.platform === "win32" ? "easybrandkit.cmd" : "easybrandkit");
|
|
49
50
|
if (installed) return [[installed]];
|
|
50
51
|
const npx = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
51
|
-
return [[npx, "-y", "easybrandkit@
|
|
52
|
+
return [[npx, "-y", "easybrandkit@0.4.0"], [npx, "-y", "github:EminBudak/easybrandkit#v0.4.0"]];
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
const HOW = "Install easybrandkit (npm install -g easybrandkit), or point LAUNCH_FILM_EASYBRANDKIT (or --easybrandkit) at its scripts/easybrandkit.js, or give a kit you already have with --brand.";
|