@softure-ai/marketing-kit 0.3.1 → 0.5.0
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/CHANGELOG.md +57 -0
- package/README.md +135 -14
- package/dist/cli/footage.d.ts.map +1 -1
- package/dist/cli/footage.js +15 -6
- package/dist/cli/footage.js.map +1 -1
- package/dist/config/actions-schema.d.ts +14 -14
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +5 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/schema.d.ts +92 -69
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +40 -4
- package/dist/config/schema.js.map +1 -1
- package/dist/config/shot-steps.d.ts +16 -16
- package/dist/footage/audio.d.ts +52 -0
- package/dist/footage/audio.d.ts.map +1 -0
- package/dist/footage/audio.js +100 -0
- package/dist/footage/audio.js.map +1 -0
- package/dist/footage/captions.d.ts +57 -0
- package/dist/footage/captions.d.ts.map +1 -0
- package/dist/footage/captions.js +112 -0
- package/dist/footage/captions.js.map +1 -0
- package/dist/footage/compose.d.ts +5 -5
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +31 -22
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/edl.d.ts +54 -16
- package/dist/footage/edl.d.ts.map +1 -1
- package/dist/footage/edl.js +204 -52
- package/dist/footage/edl.js.map +1 -1
- package/dist/footage/elevenlabs.d.ts +4 -1
- package/dist/footage/elevenlabs.d.ts.map +1 -1
- package/dist/footage/elevenlabs.js +18 -6
- package/dist/footage/elevenlabs.js.map +1 -1
- package/dist/footage/fake.d.ts +2 -0
- package/dist/footage/fake.d.ts.map +1 -1
- package/dist/footage/fake.js +2 -1
- package/dist/footage/fake.js.map +1 -1
- package/dist/footage/film.d.ts +35 -1
- package/dist/footage/film.d.ts.map +1 -1
- package/dist/footage/film.js +9 -1
- package/dist/footage/film.js.map +1 -1
- package/dist/footage/frames.d.ts +38 -0
- package/dist/footage/frames.d.ts.map +1 -0
- package/dist/footage/frames.js +40 -0
- package/dist/footage/frames.js.map +1 -0
- package/dist/footage/loudness.d.ts +49 -0
- package/dist/footage/loudness.d.ts.map +1 -0
- package/dist/footage/loudness.js +114 -0
- package/dist/footage/loudness.js.map +1 -0
- package/dist/footage/normalize.d.ts +6 -2
- package/dist/footage/normalize.d.ts.map +1 -1
- package/dist/footage/normalize.js +7 -9
- package/dist/footage/normalize.js.map +1 -1
- package/dist/footage/paid.d.ts +70 -0
- package/dist/footage/paid.d.ts.map +1 -0
- package/dist/footage/paid.js +172 -0
- package/dist/footage/paid.js.map +1 -0
- package/dist/footage/pipeline.d.ts +34 -10
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +294 -85
- package/dist/footage/pipeline.js.map +1 -1
- package/dist/footage/probe.d.ts +18 -4
- package/dist/footage/probe.d.ts.map +1 -1
- package/dist/footage/probe.js +18 -13
- package/dist/footage/probe.js.map +1 -1
- package/dist/footage/process.d.ts +45 -0
- package/dist/footage/process.d.ts.map +1 -0
- package/dist/footage/process.js +109 -0
- package/dist/footage/process.js.map +1 -0
- package/dist/footage/providers.d.ts +49 -5
- package/dist/footage/providers.d.ts.map +1 -1
- package/dist/footage/providers.js +4 -0
- package/dist/footage/providers.js.map +1 -1
- package/dist/footage/publish.d.ts +62 -0
- package/dist/footage/publish.d.ts.map +1 -0
- package/dist/footage/publish.js +164 -0
- package/dist/footage/publish.js.map +1 -0
- package/dist/footage/render.d.ts +5 -4
- package/dist/footage/render.d.ts.map +1 -1
- package/dist/footage/render.js +29 -17
- package/dist/footage/render.js.map +1 -1
- package/dist/footage/sentences.d.ts +44 -0
- package/dist/footage/sentences.d.ts.map +1 -0
- package/dist/footage/sentences.js +102 -0
- package/dist/footage/sentences.js.map +1 -0
- package/dist/footage/tools.d.ts +33 -0
- package/dist/footage/tools.d.ts.map +1 -0
- package/dist/footage/tools.js +108 -0
- package/dist/footage/tools.js.map +1 -0
- package/dist/footage/words.d.ts +6 -0
- package/dist/footage/words.d.ts.map +1 -0
- package/dist/footage/words.js +14 -0
- package/dist/footage/words.js.map +1 -0
- package/dist/index.d.ts +15 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -6
- package/dist/index.js.map +1 -1
- package/docker/footage-worker.Dockerfile +29 -0
- package/package.json +2 -1
- package/schema/edl.schema.json +115 -0
- package/schema/marketing.schema.json +112 -5
- package/src/cli/footage.ts +13 -5
- package/src/config/config.ts +5 -0
- package/src/config/schema.ts +40 -4
- package/src/footage/audio.ts +123 -0
- package/src/footage/captions.ts +146 -0
- package/src/footage/compose.ts +32 -24
- package/src/footage/edl.ts +225 -56
- package/src/footage/elevenlabs.ts +21 -8
- package/src/footage/fake.ts +4 -1
- package/src/footage/film.ts +43 -2
- package/src/footage/frames.ts +65 -0
- package/src/footage/loudness.ts +143 -0
- package/src/footage/normalize.ts +7 -9
- package/src/footage/paid.ts +213 -0
- package/src/footage/pipeline.ts +344 -89
- package/src/footage/probe.ts +20 -12
- package/src/footage/process.ts +135 -0
- package/src/footage/providers.ts +56 -6
- package/src/footage/publish.ts +180 -0
- package/src/footage/render.ts +29 -19
- package/src/footage/sentences.ts +137 -0
- package/src/footage/tools.ts +119 -0
- package/src/footage/words.ts +15 -0
- package/src/index.ts +84 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,63 @@ Newest first. Each version lists what changed for an app that uses `@softure-ai/
|
|
|
4
4
|
production, the version gets a line `verified in: <app>@<commit>` ([docs/05](../../docs/05-adoption-playbook.md),
|
|
5
5
|
"Definition of done"). Versions before the first one below are described in their GitHub Releases (`marketing-kit@x.y.z`).
|
|
6
6
|
|
|
7
|
+
## 0.5.0
|
|
8
|
+
|
|
9
|
+
- **Music beds from an upload (#996):** `probeAudio(path, { signal })` reads a music file with ffprobe as `{ duration,
|
|
10
|
+
codec, sampleRate, channels, bitRate }` (`bitRate` null when the container reports none); a failure is
|
|
11
|
+
`{ ok: false, reason, error }` with `reason` `no-audio-stream`, `no-duration`, `unreadable` or `unexpected-output`.
|
|
12
|
+
`readAudioProbe(json)` is the pure reader. `checkMusicFileType({ fileName, contentType })` checks an upload against
|
|
13
|
+
`MUSIC_FILE_TYPES` (`.mp3`, `.m4a`, `.aac`, `.wav`, `.ogg`, `.oga`, `.opus`, `.flac` and their content types).
|
|
14
|
+
`runFfprobe` is the shared ffprobe call. The README shows the upload check and how the bed is looped, trimmed and
|
|
15
|
+
ducked under the cut.
|
|
16
|
+
- **Changed:** a footage film's `music.file` is now checked by the same rules in `prepareFootage`, right after the
|
|
17
|
+
clips are probed: a file of another type (e.g. `.mp4`) or without an audio stream stops the run before anything is
|
|
18
|
+
normalized or paid for. An app with such a bed converts it, e.g. `ffmpeg -i bed.mp4 -vn -c:a copy bed.m4a`.
|
|
19
|
+
- Docs: the README's `onCharge` points to `createFootageChargeRecorder` of `@softure-ai/metering`.
|
|
20
|
+
|
|
21
|
+
## 0.4.0
|
|
22
|
+
|
|
23
|
+
- **Natural editing for footage films (#898).** **Changed defaults:** cuts are hard cuts (`transitions: { jump:
|
|
24
|
+
"cut", clip: "cut" }`), b-roll stays still, captions are plain phrases, and the end card plays no whoosh; set
|
|
25
|
+
`transitions`, `edit.kenBurnsPercent`, `captionStyle: "highlight"` and `edit.endCardWhoosh` for the 0.3 look.
|
|
26
|
+
- Sentences and retakes: `splitSentences` / `splitFilmSentences` (ids `s1`…), `findRetakes` (retake, false start,
|
|
27
|
+
cut-off, with a reason; suggestions only), `buildEdl`'s and `renderFootageFilm`'s `keepSentences`,
|
|
28
|
+
`getFootageSentences`. The CLI prints the suggestions after `--step=cut`.
|
|
29
|
+
- EDL version 2: segment `id`, `audio: { clip, start, end, ownVolume }` (J/L-cuts, b-roll over speech; captions and
|
|
30
|
+
ducking follow the sound), `validateEdl` (`findEdlProblems` stays as its alias), `diffEdl`, `getEdlJsonSchema()` and
|
|
31
|
+
`schema/edl.schema.json`. Version 1 files are read and upgraded; the scored music's cache key ignores ids, so
|
|
32
|
+
nothing is bought again.
|
|
33
|
+
- `edit: { zoomPercent, fadeFrames, kenBurnsPercent, endCardWhoosh }` and `captionStyle` on the film;
|
|
34
|
+
`phraseChunks`.
|
|
35
|
+
- `extractFrames(file, { count } | { everySeconds }, { outDir, width })`: a contact sheet of a clip.
|
|
36
|
+
- `captionPreset` and `CAPTION_SAFE_ZONES` (Reels, Shorts, TikTok, all); `findMissingCaptionGlyphs` runs on the
|
|
37
|
+
caption and end-card fonts before the render and stops it on a missing letter.
|
|
38
|
+
- **Publishable footage films (#899).**
|
|
39
|
+
- Loudness: the speech track is measured and normalized in two passes of `loudnorm` (default −14 LUFS, −1 dBTP)
|
|
40
|
+
before the music goes under it; `loudness: { target, truePeak } | null` on `FootageFilm` (`false` in
|
|
41
|
+
`marketing.json`). `normalizeLoudness` and its argument builders are exported.
|
|
42
|
+
- A final pass over hyperframes' render: H.264 High, yuv420p, AAC 48 kHz stereo, `+faststart`, streams copied
|
|
43
|
+
when they already match, checked with ffprobe (`findFinishProblems`, `readTopLevelBoxes`); progress stage `finish`.
|
|
44
|
+
- A cover JPG next to the film, at `cover.at` or the middle of the first talking segment; `cover: null` (`false`
|
|
45
|
+
in `marketing.json`) writes none.
|
|
46
|
+
- `RenderedFootage` gains `bytes`, `width`, `height`, `durationSeconds` and `cover`, read from the written file;
|
|
47
|
+
the CLI prints them.
|
|
48
|
+
- **Footage blocks for a server worker (#897).** **Breaking:** `probeFile`, `probeFootage` and `normalizeFootage` are
|
|
49
|
+
async (they spawn without blocking the event loop), and `runFfmpeg` moved to `footage/process.ts`, async.
|
|
50
|
+
- `FootageRunOptions` takes `signal` (an abort kills ffmpeg, ffprobe or hyperframes, removes the partial file and
|
|
51
|
+
rejects with the signal's reason), `onProgress({ step, item, itemIndex, itemCount, done, total })` (seconds of
|
|
52
|
+
media per stage, from ffmpeg's `-progress` and hyperframes' percentage) and `onCharge({ step, item, provider,
|
|
53
|
+
units, credits?, cacheKey })` after each paid call; `renderFootageFilm` passes them through.
|
|
54
|
+
- `estimateFootageFilm(film, { cacheDir, providers, rates })`: probes only, answers each paid step in seconds and
|
|
55
|
+
in the caller's credits (`rates`), a cached step at 0. `findCachedStep(film, step, item, options)` checks the
|
|
56
|
+
cache without network.
|
|
57
|
+
- Providers take an optional `signal`; a transcript may carry `credits`, and isolation and music may return
|
|
58
|
+
`{ audio, credits }` (a plain `Buffer` still works). ElevenLabs passes on its `character-cost` header.
|
|
59
|
+
- `checkFootageTools()`: ffmpeg and ffprobe, the hevc decoder, the zscale and tonemap filters, hyperframes and its
|
|
60
|
+
browser; the CLI runs it before `footage`. hyperframes' output now goes to `log`.
|
|
61
|
+
- `docker/footage-worker.Dockerfile`: a worker image (Debian ffmpeg with libzimg, Chrome libraries, fonts,
|
|
62
|
+
chrome-headless-shell), built and rendered in by CI; README "Footage films in a worker".
|
|
63
|
+
|
|
7
64
|
## 0.3.1
|
|
8
65
|
|
|
9
66
|
- The content of 0.3.0, which was never published: its release stopped at the gates (ESLint ran out of memory in
|
package/README.md
CHANGED
|
@@ -594,14 +594,18 @@ softure-marketing footage <film> --step=render # the EDL as it is, maybe e
|
|
|
594
594
|
"pauseSeconds": 0.6,
|
|
595
595
|
"maxSeconds": 45,
|
|
596
596
|
"music": { "prompt": "warm acoustic guitar, calm", "duckedVolume": 0.08 },
|
|
597
|
-
"transitions": { "jump": "
|
|
598
|
-
"
|
|
597
|
+
"transitions": { "jump": "cut", "clip": "fade" },
|
|
598
|
+
"edit": { "fadeFrames": 8, "kenBurnsPercent": 3 },
|
|
599
|
+
"captionPreset": "all",
|
|
600
|
+
"endCard": { "headline": "Try it free", "url": "example.com" },
|
|
601
|
+
"loudness": { "target": -14, "truePeak": -1 },
|
|
602
|
+
"cover": { "at": 2.5 }
|
|
599
603
|
}
|
|
600
604
|
]
|
|
601
605
|
```
|
|
602
606
|
|
|
603
607
|
- **Clips** are local files (relative to `marketing.json`) or `http(s)` URLs, downloaded once into the build
|
|
604
|
-
folder. `role: talk` (the default) is cut by its words; `role: broll` is kept whole
|
|
608
|
+
folder. `role: talk` (the default) is cut by its words; `role: broll` is kept whole. `fit` fills
|
|
605
609
|
a frame of another aspect with a `crop` or a `blur` (the whole picture over a blurred copy); `auto` crops within
|
|
606
610
|
15 % of the frame's aspect. `trim` picks the part of the clip. `script` is only for `--placeholder`.
|
|
607
611
|
- **Probe and normalize:** every clip is probed first (all problems reported before anything is paid for), then
|
|
@@ -616,21 +620,42 @@ softure-marketing footage <film> --step=render # the EDL as it is, maybe e
|
|
|
616
620
|
- **Cut (EDL):** `fillers` (default per language: Polish `yyy`, `eee`, `yhm` and more; English `um`, `uh` and more,
|
|
617
621
|
compared without case, punctuation and repeated letters) are cut out, a silence longer than `pauseSeconds` is cut,
|
|
618
622
|
`padSeconds` stays around every cut, `maxSeconds` caps the length. The result is
|
|
619
|
-
`<output.buildDir>/<film>/edl.json
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
623
|
+
`<output.buildDir>/<film>/edl.json` ([JSON Schema](schema/edl.schema.json), version 2): segments
|
|
624
|
+
`{ id, clip, start, end, transition, motion, audio? }` in order. A talking segment's `id` is the sentence it starts
|
|
625
|
+
with (`s4`, `s4.2` for its second part), b-roll is `r1`, `r2`… Check or edit it (drop a segment, move one, change a
|
|
626
|
+
`transition` to `cut`, `fade`, `zoom` or `whoosh`, give a segment `audio: { clip, start, end, ownVolume }` to play
|
|
627
|
+
another span's sound under its picture: a J- or L-cut, or b-roll over speech with its own sound muted or at
|
|
628
|
+
`ownVolume`) and render with `--step=render`; a plain `footage` run keeps an EDL that is there, `--step=cut` writes
|
|
629
|
+
it afresh and prints the sentences it would suggest dropping (retakes, false starts, cut-off sentences). A version 1
|
|
630
|
+
file is still read, with generated ids.
|
|
631
|
+
- **Transitions and look:** `jump` (a cut inside one talking clip) and `clip` (between clips) are hard cuts by
|
|
632
|
+
default; `zoom` punches in by `edit.zoomPercent` (105-110, default 108) and back out on the next, `fade` lasts
|
|
633
|
+
`edit.fadeFrames` (default 10 at 30 fps), `whoosh` is a cut with the `sfx.whoosh` sound. B-roll stays still unless
|
|
634
|
+
`edit.kenBurnsPercent` (up to 5) zooms it; the end card plays its whoosh only with `edit.endCardWhoosh`.
|
|
624
635
|
- **Music:** `file` (local), `prompt` (ElevenLabs Music, instrumental, the film's length) or `fromVideo` (ElevenLabs
|
|
625
636
|
Video to Music, scored to the cut itself, with `description` and `tags`). Generated music is paid and cached the same
|
|
626
637
|
way. It plays at `volume` and ducks to `duckedVolume` while someone speaks, from the word times, with a fade in and out.
|
|
627
|
-
|
|
628
|
-
|
|
638
|
+
A `file` must be one of `MUSIC_FILE_TYPES` (`.mp3`, `.m4a`, `.aac`, `.wav`, `.ogg`, `.oga`, `.opus`, `.flac`) and
|
|
639
|
+
hold an audio stream: the run probes it right after the clips and stops before anything is paid for when it does not.
|
|
640
|
+
- **Captions** (`captions`, default true) are the transcript's words in film time: `captionStyle: "phrase"` (the
|
|
641
|
+
default) shows 2-6 words of plain text with a soft shadow, `"highlight"` the pill that lights each word in the
|
|
642
|
+
brand's caption colours. `layout` moves their box per format; `captionPreset` (`reels`, `shorts`, `tiktok` or `all`)
|
|
643
|
+
keeps a 9:16 film's captions inside that platform's safe zone (`CAPTION_SAFE_ZONES`, the margins its own buttons and
|
|
644
|
+
text cover). Before the render the caption and end-card fonts are checked against the film's words: a letter no
|
|
645
|
+
file of the brand font draws (an accented letter outside a Latin-only subset) stops the run with the letters it lacks. The **end card** follows the cut over its last
|
|
629
646
|
frame. `social.posts` may name a footage film; its `posts.md` carries no persona disclosure.
|
|
630
647
|
- **Paying:** without `--commit` a run that needs a paid call prints each one (speech to text, isolation, music) with
|
|
631
648
|
the seconds billed and stops; nothing is sent. `--placeholder` rehearses without any paid call: a transcript from
|
|
632
649
|
each talking clip's `script` (its words spread evenly over the clip), no isolation, no generated music (a local
|
|
633
650
|
music file still plays). It writes `edl.placeholder.json` and `<film>.placeholder.mp4`, never the real film's files.
|
|
651
|
+
- **Publishable output:** the speech track is measured and normalized to `loudness` (default −14 LUFS integrated,
|
|
652
|
+
−1 dBTP true peak; two-pass `loudnorm`, one linear gain) before the music goes under it, so a quiet phone clip is
|
|
653
|
+
not left quiet and a loud one does not clip; `"loudness": false` leaves it as filmed. hyperframes' render then gets
|
|
654
|
+
a final pass: H.264 High, yuv420p, AAC 48 kHz stereo, `+faststart` (the `moov` box first, so a platform or a
|
|
655
|
+
scheduler streaming the URL starts at once), each stream copied when the render already matches; ffprobe checks
|
|
656
|
+
the result, and a film that does not match fails the run. A **cover** JPG is written next to the film
|
|
657
|
+
(`<film>.jpg`) from the second `cover.at`, by default the middle of the first talking segment; `"cover": false`
|
|
658
|
+
writes none.
|
|
634
659
|
|
|
635
660
|
### Footage films from code
|
|
636
661
|
|
|
@@ -645,7 +670,7 @@ const film: FootageFilm = {
|
|
|
645
670
|
clips: [{ id: "talk", source: "/uploads/talk.mov", role: "talk", fit: "auto", trim: { start: 0, end: null }, script: null }],
|
|
646
671
|
isolateVoice: false,
|
|
647
672
|
cut: { fillers: getDefaultFillers("pl"), pauseSeconds: 0.6, padSeconds: 0.12, maxSeconds: 60 },
|
|
648
|
-
transitions: { jump: "
|
|
673
|
+
transitions: { jump: "cut", clip: "cut" },
|
|
649
674
|
music: { source: { kind: "none" }, volume: 0.35, duckedVolume: 0.1 },
|
|
650
675
|
captions: true,
|
|
651
676
|
endCard: null,
|
|
@@ -658,11 +683,104 @@ const result = await renderFootageFilm(film, {
|
|
|
658
683
|
});
|
|
659
684
|
```
|
|
660
685
|
|
|
661
|
-
|
|
686
|
+
A rendered result is `{ kind: "rendered", output, seconds, edlPath, bytes, width, height, durationSeconds, cover }`:
|
|
687
|
+
`seconds` is the planned length, the rest is read with ffprobe from the written file (`cover` is the JPG's path, or
|
|
688
|
+
null with `cover: null`). `loudness` and `cover` are optional on `FootageFilm`: absent means the defaults, null turns
|
|
689
|
+
them off.
|
|
690
|
+
|
|
691
|
+
**Editing with an agent.** The kit holds no language model; the editorial choices stay with the caller, who gets
|
|
692
|
+
the means to make them:
|
|
693
|
+
|
|
694
|
+
```ts
|
|
695
|
+
import { diffEdl, extractFrames, findRetakes, getEdlJsonSchema, getFootageSentences, readEdlFile, renderFootageFilm, validateEdl } from "@softure-ai/marketing-kit";
|
|
696
|
+
|
|
697
|
+
const sentences = getFootageSentences(clips, transcript.words); // [{ id: "s1", clip, start, end, text, isComplete }]
|
|
698
|
+
const drop = findRetakes(sentences); // [{ sentence: "s3", kind: "retake", of: "s5", reason }], never applied by itself
|
|
699
|
+
await renderFootageFilm(film, { ...options, isRecut: true, keepSentences: sentences.map((s) => s.id).filter((id) => !drop.some((d) => d.sentence === id)) });
|
|
700
|
+
|
|
701
|
+
const sheet = await extractFrames("/build/intro/clips/desk.mp4", { count: 6 }, { outDir: "/tmp/sheet", width: 360 }); // JPGs to look at
|
|
702
|
+
const problems = validateEdl(editedEdl, clips.map((c) => ({ id: c.clip.id, duration: c.duration })), film.id);
|
|
703
|
+
const changes = diffEdl(previousEdl, editedEdl); // ["moved s7 to the start", "dropped s3", "r1 over s4"]
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
**Music beds from an upload.** An app that lets the owner upload a music file checks it with the same rules the run
|
|
707
|
+
applies to `music.file`, and stores the probe with the asset:
|
|
708
|
+
|
|
709
|
+
```ts
|
|
710
|
+
import { checkMusicFileType, probeAudio } from "@softure-ai/marketing-kit";
|
|
711
|
+
|
|
712
|
+
const type = checkMusicFileType({ fileName: upload.name, contentType: upload.type }); // before accepting the upload
|
|
713
|
+
if (!type.ok) return reject(type.error); // "bed.mp4: not a music file (accepted: .mp3, .m4a, …)"
|
|
714
|
+
const probed = await probeAudio(storedPath); // ffprobe, asynchronous
|
|
715
|
+
if (!probed.ok) return reject(probed.error); // probed.reason: "no-audio-stream" | "no-duration" | "unreadable" | "unexpected-output"
|
|
716
|
+
await saveAsset({ ...probed.probe }); // { duration, codec, sampleRate, channels, bitRate (null when unknown) }
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
Under the cut the bed needs no fitting by the app: the render resamples it to 48 kHz stereo, loops it when it is
|
|
720
|
+
shorter than the film and trims it when it is longer (`buildMusicArgs`: `-stream_loop -1`, `-t <film seconds>`),
|
|
721
|
+
fades it in over 1 s and out over 1.5 s, and ducks it under the voice by the film's word times (`duckingKeyframes`:
|
|
722
|
+
`volume` between sentences, `duckedVolume` under speech, 0.25 s down before the first word, 0.5 s back up after the
|
|
723
|
+
last). Comparing `probe.duration` with the film's length tells the app whether the bed will loop; a bed of a third of
|
|
724
|
+
the film or less repeats audibly, so a longer one is worth asking for.
|
|
725
|
+
|
|
726
|
+
The blocks run alone too: `probeFootage`, `probeAudio`, `normalizeFootage`, `transcribeFootage` (or a provider's `transcribe`),
|
|
662
727
|
`buildEdl` / `readEdl` / `remapWords`, `duckingKeyframes`, `composeFootage`, `renderFootage`. Results are values
|
|
663
728
|
(`{ ok, value } | { ok, error }`), and a dry run is `{ kind: "dry-run", steps }`. `createFakeSttProvider`,
|
|
664
729
|
`createFakeIsolationProvider` and `createFakeMusicProvider` stand in for ElevenLabs in tests.
|
|
665
730
|
|
|
731
|
+
### Footage films in a worker
|
|
732
|
+
|
|
733
|
+
The blocks spawn ffmpeg, ffprobe and hyperframes asynchronously, so a jobs worker (`@softure-ai/jobs`) keeps its
|
|
734
|
+
event loop and lease heartbeat through a long normalize or render. For a job that pays, ask first, then run with the
|
|
735
|
+
job's signal and report back:
|
|
736
|
+
|
|
737
|
+
```ts
|
|
738
|
+
import { checkFootageTools, estimateFootageFilm, findCachedStep, renderFootageFilm } from "@softure-ai/marketing-kit";
|
|
739
|
+
|
|
740
|
+
const problems = await checkFootageTools(); // ffmpeg + ffprobe, hevc decoder, zscale + tonemap, hyperframes' browser
|
|
741
|
+
if (problems.length > 0) throw new Error(problems.join("\n"));
|
|
742
|
+
|
|
743
|
+
// Probes only: no normalize, no provider call. Rates are the app's own credits per second for each paid step.
|
|
744
|
+
const estimate = await estimateFootageFilm(film, { cacheDir, buildDir, providers, rates: { transcribe: 0.5, isolate: 1, music: 4 } });
|
|
745
|
+
// estimate.value: { items: [{ step, item, provider, units, unit: "seconds", credits, cached }], totalCredits }
|
|
746
|
+
|
|
747
|
+
const result = await renderFootageFilm(film, {
|
|
748
|
+
...options,
|
|
749
|
+
signal: job.signal, // an abort kills ffmpeg or hyperframes, removes the partial file, rejects with the reason
|
|
750
|
+
onProgress: ({ step, item, itemIndex, itemCount, done, total }) => job.progress(`${step} ${item} (${itemIndex}/${itemCount})`, done / total),
|
|
751
|
+
onCharge: ({ step, item, provider, units, credits, cacheKey }) => ledger.record({ step, item, provider, units, credits, cacheKey }),
|
|
752
|
+
});
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
- `onProgress` reports the stages `normalize`, `isolate`, `transcribe`, `music`, `assets`, `render` and `finish`; `done` and
|
|
756
|
+
`total` are seconds of media across the stage (ffmpeg's `-progress`, hyperframes' percentage), `itemIndex` of
|
|
757
|
+
`itemCount` names the clip ("normalizing clip 2 of 4").
|
|
758
|
+
- `onCharge` fires after each paid call, with the provider's reported charge in `credits` when its API returns one
|
|
759
|
+
(ElevenLabs' `character-cost` header) and the paid cache's key of the result. `createFootageChargeRecorder` of
|
|
760
|
+
`@softure-ai/metering` turns it into a spend ledger with budgets ([metering README](../../modules/metering/README.md),
|
|
761
|
+
section 10).
|
|
762
|
+
- `findCachedStep(film, step, item, { cacheDir, providers, buildDir })` answers whether a paid step (`transcribe` or
|
|
763
|
+
`isolate` for a clip id, `music` for `film`) is already cached, without network. A cached step costs 0 in the
|
|
764
|
+
estimate. Video-scored music depends on the cut, so it counts as cached only once `edl.json` is in `buildDir`.
|
|
765
|
+
- The CLI runs `checkFootageTools` before `footage`, letting hyperframes download its browser on the first render;
|
|
766
|
+
a worker image ships the browser instead.
|
|
767
|
+
|
|
768
|
+
**Container recipe.** [`docker/footage-worker.Dockerfile`](docker/footage-worker.Dockerfile) is a worker base image:
|
|
769
|
+
`node:22-trixie-slim`, Debian's ffmpeg 7.1 (libzimg, so `zscale` and `tonemap`, and the HEVC decoder), the libraries and
|
|
770
|
+
fonts Chrome needs, and the chrome-headless-shell hyperframes 0.8.85 pins, named by `HYPERFRAMES_BROWSER_PATH`. CI
|
|
771
|
+
builds it and renders the fixture footage film inside it (job `footage-image`). The package ships it, so an app
|
|
772
|
+
builds it (`docker build -t footage-worker -f node_modules/@softure-ai/marketing-kit/docker/footage-worker.Dockerfile .`)
|
|
773
|
+
or copies it, and adds its own code on top:
|
|
774
|
+
|
|
775
|
+
```Dockerfile
|
|
776
|
+
FROM footage-worker
|
|
777
|
+
WORKDIR /app
|
|
778
|
+
COPY package.json package-lock.json ./
|
|
779
|
+
RUN npm ci --omit=dev
|
|
780
|
+
COPY . .
|
|
781
|
+
CMD ["node", "dist/worker.js"]
|
|
782
|
+
```
|
|
783
|
+
|
|
666
784
|
## OG images
|
|
667
785
|
|
|
668
786
|
`softure-marketing og` renders each `ogImages` entry with [Satori](https://github.com/vercel/satori)
|
|
@@ -768,8 +886,11 @@ renders without a `marketing.json` at all. For a carousel, pass `slide` (1-based
|
|
|
768
886
|
as a desktop page needs a lower scale (about 1.2) than on a phone, or the zoom crops it.
|
|
769
887
|
- ElevenLabs is the only real voice provider; the estimate is an upper bound in credits, not money.
|
|
770
888
|
- Footage films: the cut works from the transcript and each clip's role only, never from the picture (no "best take"
|
|
771
|
-
detection);
|
|
772
|
-
|
|
889
|
+
detection); `estimateFootageFilm` prices seconds billed at the caller's rates, since the providers' reference pages
|
|
890
|
+
give no per-call price.
|
|
891
|
+
- Footage films need an ffmpeg with `zscale` (libzimg) for HDR clips; the static builds, Homebrew's and Debian's have
|
|
892
|
+
it, and `checkFootageTools` says when it is missing.
|
|
893
|
+
- The worker image is linux/amd64 only: Chrome for Testing publishes no linux arm64 chrome-headless-shell.
|
|
773
894
|
- Two OG templates.
|
|
774
895
|
|
|
775
896
|
## Development
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footage.d.ts","sourceRoot":"","sources":["../../src/cli/footage.ts"],"names":[],"mappings":"AAGA,OAAO,EAA4D,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"footage.d.ts","sourceRoot":"","sources":["../../src/cli/footage.ts"],"names":[],"mappings":"AAGA,OAAO,EAA4D,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAOzI,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AA0BnD,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAO7F;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDhG"}
|
package/dist/cli/footage.js
CHANGED
|
@@ -2,9 +2,10 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { findFootage, findMissingFootageFiles, formatConfigIssues } from "../config/config.js";
|
|
4
4
|
import { createElevenLabsFootageProviders } from "../footage/elevenlabs.js";
|
|
5
|
-
import {
|
|
5
|
+
import { findRetakes } from "../footage/sentences.js";
|
|
6
|
+
import { cutFootage, getEdlPath, getFootageSentences, prepareFootage, readEdlFile, renderFootage, transcribeFootage } from "../footage/pipeline.js";
|
|
7
|
+
import { checkFootageTools } from "../footage/tools.js";
|
|
6
8
|
import { postsMarkdown } from "../posts/posts.js";
|
|
7
|
-
import { findMachineProblem } from "../render/preflight.js";
|
|
8
9
|
import { fail } from "./failure.js";
|
|
9
10
|
/**
|
|
10
11
|
* `softure-marketing footage <film>`: a footage film from `marketing.json` (`footage[]`). Without `--step` it runs
|
|
@@ -43,9 +44,10 @@ export async function runFootage(config, options) {
|
|
|
43
44
|
if (film === null)
|
|
44
45
|
fail(`no footage film "${options.filmId}" in ${config.file}. Available: ${config.footage.map((entry) => entry.id).join(", ") || "none"}.`);
|
|
45
46
|
const needsRender = options.step === "all" || options.step === "render";
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
// On a developer's machine hyperframes' first render downloads its browser; a worker image is checked without that.
|
|
48
|
+
const problems = await checkFootageTools({ needsRender, isBrowserDownloadAllowed: true });
|
|
49
|
+
if (problems.length > 0)
|
|
50
|
+
fail(problems.join("\n"));
|
|
49
51
|
const missing = findMissingFootageFiles(config, film, needsRender);
|
|
50
52
|
if (missing.length > 0)
|
|
51
53
|
fail(formatConfigIssues(config, missing));
|
|
@@ -70,6 +72,10 @@ export async function runFootage(config, options) {
|
|
|
70
72
|
if (isRecut) {
|
|
71
73
|
edl = cutFootage(film, clips.value, transcript.value.words, edlPath);
|
|
72
74
|
console.log(`cut: ${edl.segments.length} segments written to ${edlPath}; check or edit it, then softure-marketing footage ${film.id} --step=render.`);
|
|
75
|
+
// Suggestions only: the EDL keeps every sentence until someone drops one.
|
|
76
|
+
for (const suggestion of findRetakes(getFootageSentences(clips.value, transcript.value.words))) {
|
|
77
|
+
console.log(` maybe drop ${suggestion.sentence} (${suggestion.kind}): ${suggestion.reason}`);
|
|
78
|
+
}
|
|
73
79
|
if (options.step === "cut")
|
|
74
80
|
return;
|
|
75
81
|
}
|
|
@@ -87,8 +93,11 @@ export async function runFootage(config, options) {
|
|
|
87
93
|
fail(rendered.error);
|
|
88
94
|
if (rendered.value.kind === "dry-run")
|
|
89
95
|
return;
|
|
90
|
-
const { output, seconds } = rendered.value;
|
|
96
|
+
const { output, seconds, bytes, width, height, durationSeconds, cover } = rendered.value;
|
|
91
97
|
console.log(`\n✓ ${output} (${seconds.toFixed(1)} s, ${film.format})`);
|
|
98
|
+
console.log(` ${width}×${height}, ${durationSeconds.toFixed(2)} s, ${(bytes / 1_000_000).toFixed(1)} MB, H.264 High, AAC 48 kHz stereo, fast start`);
|
|
99
|
+
if (cover !== null)
|
|
100
|
+
console.log(`✓ ${cover}: cover`);
|
|
92
101
|
const posts = writeFootagePosts(config, film);
|
|
93
102
|
console.log(posts === null ? `no post copy: social.posts has no entry for "${film.id}" in ${config.file}.` : `✓ ${posts}: post copy`);
|
|
94
103
|
}
|
package/dist/cli/footage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footage.js","sourceRoot":"","sources":["../../src/cli/footage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,EAA4C,MAAM,qBAAqB,CAAC;AACzI,OAAO,EAAE,gCAAgC,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAA6B,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"footage.js","sourceRoot":"","sources":["../../src/cli/footage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,EAA4C,MAAM,qBAAqB,CAAC;AACzI,OAAO,EAAE,gCAAgC,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAA6B,MAAM,wBAAwB,CAAC;AAC/K,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAA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|
|
|
49
49
|
export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
50
50
|
role: z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
caption: "caption";
|
|
52
|
+
code: "code";
|
|
52
53
|
none: "none";
|
|
53
54
|
alert: "alert";
|
|
54
55
|
alertdialog: "alertdialog";
|
|
@@ -59,7 +60,6 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
|
59
60
|
button: "button";
|
|
60
61
|
cell: "cell";
|
|
61
62
|
checkbox: "checkbox";
|
|
62
|
-
code: "code";
|
|
63
63
|
columnheader: "columnheader";
|
|
64
64
|
combobox: "combobox";
|
|
65
65
|
complementary: "complementary";
|
|
@@ -177,7 +177,7 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
|
177
177
|
hasText: TextMatch | null;
|
|
178
178
|
nth: number | null;
|
|
179
179
|
}, {
|
|
180
|
-
role?: "caption" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "
|
|
180
|
+
role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
181
181
|
name?: string | {
|
|
182
182
|
regex: string;
|
|
183
183
|
flags: string;
|
|
@@ -208,6 +208,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
208
208
|
target: z.ZodPipe<z.ZodObject<{
|
|
209
209
|
role: z.ZodOptional<z.ZodEnum<{
|
|
210
210
|
caption: "caption";
|
|
211
|
+
code: "code";
|
|
211
212
|
none: "none";
|
|
212
213
|
alert: "alert";
|
|
213
214
|
alertdialog: "alertdialog";
|
|
@@ -218,7 +219,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
218
219
|
button: "button";
|
|
219
220
|
cell: "cell";
|
|
220
221
|
checkbox: "checkbox";
|
|
221
|
-
code: "code";
|
|
222
222
|
columnheader: "columnheader";
|
|
223
223
|
combobox: "combobox";
|
|
224
224
|
complementary: "complementary";
|
|
@@ -336,7 +336,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
336
336
|
hasText: TextMatch | null;
|
|
337
337
|
nth: number | null;
|
|
338
338
|
}, {
|
|
339
|
-
role?: "caption" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "
|
|
339
|
+
role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
340
340
|
name?: string | {
|
|
341
341
|
regex: string;
|
|
342
342
|
flags: string;
|
|
@@ -380,6 +380,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
380
380
|
target: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
381
381
|
role: z.ZodOptional<z.ZodEnum<{
|
|
382
382
|
caption: "caption";
|
|
383
|
+
code: "code";
|
|
383
384
|
none: "none";
|
|
384
385
|
alert: "alert";
|
|
385
386
|
alertdialog: "alertdialog";
|
|
@@ -390,7 +391,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
390
391
|
button: "button";
|
|
391
392
|
cell: "cell";
|
|
392
393
|
checkbox: "checkbox";
|
|
393
|
-
code: "code";
|
|
394
394
|
columnheader: "columnheader";
|
|
395
395
|
combobox: "combobox";
|
|
396
396
|
complementary: "complementary";
|
|
@@ -508,7 +508,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
508
508
|
hasText: TextMatch | null;
|
|
509
509
|
nth: number | null;
|
|
510
510
|
}, {
|
|
511
|
-
role?: "caption" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "
|
|
511
|
+
role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
512
512
|
name?: string | {
|
|
513
513
|
regex: string;
|
|
514
514
|
flags: string;
|
|
@@ -532,6 +532,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
532
532
|
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
533
533
|
role: z.ZodOptional<z.ZodEnum<{
|
|
534
534
|
caption: "caption";
|
|
535
|
+
code: "code";
|
|
535
536
|
none: "none";
|
|
536
537
|
alert: "alert";
|
|
537
538
|
alertdialog: "alertdialog";
|
|
@@ -542,7 +543,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
542
543
|
button: "button";
|
|
543
544
|
cell: "cell";
|
|
544
545
|
checkbox: "checkbox";
|
|
545
|
-
code: "code";
|
|
546
546
|
columnheader: "columnheader";
|
|
547
547
|
combobox: "combobox";
|
|
548
548
|
complementary: "complementary";
|
|
@@ -660,7 +660,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
660
660
|
hasText: TextMatch | null;
|
|
661
661
|
nth: number | null;
|
|
662
662
|
}, {
|
|
663
|
-
role?: "caption" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "
|
|
663
|
+
role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
664
664
|
name?: string | {
|
|
665
665
|
regex: string;
|
|
666
666
|
flags: string;
|
|
@@ -689,6 +689,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
689
689
|
target: z.ZodPipe<z.ZodObject<{
|
|
690
690
|
role: z.ZodOptional<z.ZodEnum<{
|
|
691
691
|
caption: "caption";
|
|
692
|
+
code: "code";
|
|
692
693
|
none: "none";
|
|
693
694
|
alert: "alert";
|
|
694
695
|
alertdialog: "alertdialog";
|
|
@@ -699,7 +700,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
699
700
|
button: "button";
|
|
700
701
|
cell: "cell";
|
|
701
702
|
checkbox: "checkbox";
|
|
702
|
-
code: "code";
|
|
703
703
|
columnheader: "columnheader";
|
|
704
704
|
combobox: "combobox";
|
|
705
705
|
complementary: "complementary";
|
|
@@ -817,7 +817,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
817
817
|
hasText: TextMatch | null;
|
|
818
818
|
nth: number | null;
|
|
819
819
|
}, {
|
|
820
|
-
role?: "caption" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "
|
|
820
|
+
role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
821
821
|
name?: string | {
|
|
822
822
|
regex: string;
|
|
823
823
|
flags: string;
|
|
@@ -847,6 +847,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
847
847
|
target: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
848
848
|
role: z.ZodOptional<z.ZodEnum<{
|
|
849
849
|
caption: "caption";
|
|
850
|
+
code: "code";
|
|
850
851
|
none: "none";
|
|
851
852
|
alert: "alert";
|
|
852
853
|
alertdialog: "alertdialog";
|
|
@@ -857,7 +858,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
857
858
|
button: "button";
|
|
858
859
|
cell: "cell";
|
|
859
860
|
checkbox: "checkbox";
|
|
860
|
-
code: "code";
|
|
861
861
|
columnheader: "columnheader";
|
|
862
862
|
combobox: "combobox";
|
|
863
863
|
complementary: "complementary";
|
|
@@ -975,7 +975,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
975
975
|
hasText: TextMatch | null;
|
|
976
976
|
nth: number | null;
|
|
977
977
|
}, {
|
|
978
|
-
role?: "caption" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "
|
|
978
|
+
role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
979
979
|
name?: string | {
|
|
980
980
|
regex: string;
|
|
981
981
|
flags: string;
|
|
@@ -999,6 +999,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
999
999
|
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1000
1000
|
role: z.ZodOptional<z.ZodEnum<{
|
|
1001
1001
|
caption: "caption";
|
|
1002
|
+
code: "code";
|
|
1002
1003
|
none: "none";
|
|
1003
1004
|
alert: "alert";
|
|
1004
1005
|
alertdialog: "alertdialog";
|
|
@@ -1009,7 +1010,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1009
1010
|
button: "button";
|
|
1010
1011
|
cell: "cell";
|
|
1011
1012
|
checkbox: "checkbox";
|
|
1012
|
-
code: "code";
|
|
1013
1013
|
columnheader: "columnheader";
|
|
1014
1014
|
combobox: "combobox";
|
|
1015
1015
|
complementary: "complementary";
|
|
@@ -1127,7 +1127,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1127
1127
|
hasText: TextMatch | null;
|
|
1128
1128
|
nth: number | null;
|
|
1129
1129
|
}, {
|
|
1130
|
-
role?: "caption" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "
|
|
1130
|
+
role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
1131
1131
|
name?: string | {
|
|
1132
1132
|
regex: string;
|
|
1133
1133
|
flags: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAU,UAAU,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAA2C,KAAK,WAAW,EAAoB,MAAM,oBAAoB,CAAC;AACjH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAkC,KAAK,QAAQ,EAAE,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C,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAqIpG,4FAA4F;AAC5F,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAsDlE;AAED,0DAA0D;AAC1D,wBAAgB,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAEjF;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,GAAG,WAAW,EAAE,CAgBjH;AAED,iEAAiE;AACjE,wBAAgB,WAAW,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAErF;AAED,qIAAqI;AACrI,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,GAAG,WAAW,EAAE,CAmBzH;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAElG"}
|
package/dist/config/config.js
CHANGED
|
@@ -117,7 +117,12 @@ function resolveFootage(data, at) {
|
|
|
117
117
|
? { source: { kind: "none" }, ...DEFAULT_MUSIC_VOLUME }
|
|
118
118
|
: { source: resolveMusicSource(film.music, at), volume: film.music.volume, duckedVolume: film.music.duckedVolume },
|
|
119
119
|
captions: film.captions,
|
|
120
|
+
captionStyle: film.captionStyle,
|
|
121
|
+
...(film.captionPreset === undefined ? {} : { captionPreset: film.captionPreset }),
|
|
122
|
+
edit: { zoomPercent: film.edit.zoomPercent, fadeFrames: film.edit.fadeFrames, kenBurnsPercent: film.edit.kenBurnsPercent, isEndCardWhoosh: film.edit.endCardWhoosh },
|
|
120
123
|
endCard: film.endCard ?? null,
|
|
124
|
+
loudness: film.loudness === false ? null : film.loudness,
|
|
125
|
+
cover: film.cover === false ? null : film.cover,
|
|
121
126
|
post: post === undefined
|
|
122
127
|
? null
|
|
123
128
|
: {
|