@softure-ai/marketing-kit 0.14.0 → 0.16.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 +95 -0
- package/README.md +136 -12
- package/dist/config/schema.d.ts +2 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +7 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/footage/clip-sound.d.ts +58 -0
- package/dist/footage/clip-sound.d.ts.map +1 -0
- package/dist/footage/clip-sound.js +103 -0
- package/dist/footage/clip-sound.js.map +1 -0
- package/dist/footage/declick.d.ts +1 -1
- package/dist/footage/declick.d.ts.map +1 -1
- package/dist/footage/declick.js +3 -4
- package/dist/footage/declick.js.map +1 -1
- package/dist/footage/draft.d.ts +19 -5
- package/dist/footage/draft.d.ts.map +1 -1
- package/dist/footage/draft.js +94 -24
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/elevenlabs.d.ts +5 -0
- package/dist/footage/elevenlabs.d.ts.map +1 -1
- package/dist/footage/elevenlabs.js +10 -3
- package/dist/footage/elevenlabs.js.map +1 -1
- package/dist/footage/failure.d.ts +53 -0
- package/dist/footage/failure.d.ts.map +1 -0
- package/dist/footage/failure.js +23 -0
- package/dist/footage/failure.js.map +1 -0
- package/dist/footage/fake.d.ts +10 -1
- package/dist/footage/fake.d.ts.map +1 -1
- package/dist/footage/fake.js +19 -4
- package/dist/footage/fake.js.map +1 -1
- package/dist/footage/film-mix.d.ts +5 -1
- package/dist/footage/film-mix.d.ts.map +1 -1
- package/dist/footage/film-mix.js +11 -2
- package/dist/footage/film-mix.js.map +1 -1
- package/dist/footage/hyperframes-capture.d.ts +30 -0
- package/dist/footage/hyperframes-capture.d.ts.map +1 -0
- package/dist/footage/hyperframes-capture.js +80 -0
- package/dist/footage/hyperframes-capture.js.map +1 -0
- package/dist/footage/isolate-ranges.d.ts +67 -5
- package/dist/footage/isolate-ranges.d.ts.map +1 -1
- package/dist/footage/isolate-ranges.js +92 -21
- package/dist/footage/isolate-ranges.js.map +1 -1
- package/dist/footage/loudness.d.ts +16 -2
- package/dist/footage/loudness.d.ts.map +1 -1
- package/dist/footage/loudness.js +10 -7
- package/dist/footage/loudness.js.map +1 -1
- package/dist/footage/paid.d.ts +14 -1
- package/dist/footage/paid.d.ts.map +1 -1
- package/dist/footage/paid.js +10 -4
- package/dist/footage/paid.js.map +1 -1
- package/dist/footage/pipeline.d.ts +10 -4
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +74 -64
- package/dist/footage/pipeline.js.map +1 -1
- package/dist/footage/providers.d.ts +5 -0
- package/dist/footage/providers.d.ts.map +1 -1
- package/dist/footage/providers.js.map +1 -1
- package/dist/footage/render.d.ts +1 -1
- package/dist/footage/render.d.ts.map +1 -1
- package/dist/footage/render.js +4 -3
- package/dist/footage/render.js.map +1 -1
- package/dist/footage/speech-ranges.d.ts +80 -14
- package/dist/footage/speech-ranges.d.ts.map +1 -1
- package/dist/footage/speech-ranges.js +146 -26
- package/dist/footage/speech-ranges.js.map +1 -1
- package/dist/index.d.ts +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/og/index.d.ts +2 -0
- package/dist/og/index.d.ts.map +1 -1
- package/dist/og/index.js +2 -0
- package/dist/og/index.js.map +1 -1
- package/dist/og/photo-cover.d.ts +55 -0
- package/dist/og/photo-cover.d.ts.map +1 -0
- package/dist/og/photo-cover.js +215 -0
- package/dist/og/photo-cover.js.map +1 -0
- package/dist/og/photo.d.ts +51 -0
- package/dist/og/photo.d.ts.map +1 -0
- package/dist/og/photo.js +154 -0
- package/dist/og/photo.js.map +1 -0
- package/dist/voice/provider-failure.d.ts +41 -0
- package/dist/voice/provider-failure.d.ts.map +1 -0
- package/dist/voice/provider-failure.js +68 -0
- package/dist/voice/provider-failure.js.map +1 -0
- package/dist/voice/provider.d.ts +7 -1
- package/dist/voice/provider.d.ts.map +1 -1
- package/dist/voice/provider.js +1 -1
- package/dist/voice/provider.js.map +1 -1
- package/package.json +2 -1
- package/schema/marketing.schema.json +6 -0
- package/src/config/schema.ts +7 -0
- package/src/footage/clip-sound.ts +124 -0
- package/src/footage/declick.ts +3 -4
- package/src/footage/draft.ts +125 -24
- package/src/footage/elevenlabs.ts +11 -3
- package/src/footage/failure.ts +57 -0
- package/src/footage/fake.ts +28 -4
- package/src/footage/film-mix.ts +10 -2
- package/src/footage/hyperframes-capture.ts +100 -0
- package/src/footage/isolate-ranges.ts +158 -22
- package/src/footage/loudness.ts +17 -8
- package/src/footage/paid.ts +29 -4
- package/src/footage/pipeline.ts +85 -66
- package/src/footage/providers.ts +5 -0
- package/src/footage/render.ts +4 -3
- package/src/footage/speech-ranges.ts +197 -27
- package/src/index.ts +55 -1
- package/src/og/index.ts +23 -0
- package/src/og/photo-cover.ts +280 -0
- package/src/og/photo.ts +177 -0
- package/src/voice/provider-failure.ts +98 -0
- package/src/voice/provider.ts +7 -2
package/dist/footage/paid.js
CHANGED
|
@@ -7,7 +7,7 @@ import { END_CARD_SECONDS, getFootageFilmSeconds } from "./compose.js";
|
|
|
7
7
|
import { readEdl } from "./edl.js";
|
|
8
8
|
import { getFilmKeyTerms } from "./keyterms.js";
|
|
9
9
|
import { getTrimmedDuration, probeFootage } from "./probe.js";
|
|
10
|
-
import { getSpeechRangeCache, planSpeechRanges } from "./speech-ranges.js";
|
|
10
|
+
import { getPlanOptions, getSpeechRangeCache, planSpeechRanges, } from "./speech-ranges.js";
|
|
11
11
|
export const isUrl = (source) => /^https?:\/\//i.test(source);
|
|
12
12
|
export function getEdlPath(buildDir, isPlaceholder) {
|
|
13
13
|
return join(buildDir, isPlaceholder ? "edl.placeholder.json" : "edl.json");
|
|
@@ -182,9 +182,14 @@ export async function estimateFootageFilm(film, options) {
|
|
|
182
182
|
}
|
|
183
183
|
if (isSegments && edl !== null) {
|
|
184
184
|
const provider = options.providers.isolation.id;
|
|
185
|
-
for (const range of planSpeechRanges(edl, rangeClips, options
|
|
185
|
+
for (const range of planSpeechRanges(edl, rangeClips, getPlanOptions(options, options.providers.isolation))) {
|
|
186
|
+
if (range.skip !== undefined) {
|
|
187
|
+
items.push({ step: "isolate", item: range.clip, provider, units: 0, unit: "seconds", credits: 0, cached: false, range: { start: range.startMs / 1000, end: range.endMs / 1000 }, skipped: range.skip });
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
186
190
|
const clipKey = clipKeys[range.clip] ?? null;
|
|
187
|
-
const
|
|
191
|
+
const cache = clipKey === null ? null : (options.rangeCache?.(range, clipKey) ?? getSpeechRangeCache(film.id, clipKey, range, { cacheDir: options.cacheDir, provider }));
|
|
192
|
+
const cached = cache !== null && existsSync(cache.path);
|
|
188
193
|
add("isolate", range.clip, provider, (range.endMs - range.startMs) / 1000, cached);
|
|
189
194
|
const item = items.at(-1);
|
|
190
195
|
if (item !== undefined)
|
|
@@ -200,7 +205,8 @@ export async function estimateFootageFilm(film, options) {
|
|
|
200
205
|
}
|
|
201
206
|
/**
|
|
202
207
|
* What isolating only the cut's ranges will cost (`isolateSpeechRanges`), for a confirmation step: the `isolate` items
|
|
203
|
-
* of `estimateFootageFilm` with `isolate: "segments"`, one per range, a cached range at 0
|
|
208
|
+
* of `estimateFootageFilm` with `isolate: "segments"`, one per range as it will be sent, a cached range at 0, a range
|
|
209
|
+
* shorter than the provider's minimum marked `skipped` at 0.
|
|
204
210
|
*/
|
|
205
211
|
export async function estimateSpeechRanges(film, options) {
|
|
206
212
|
const estimate = await estimateFootageFilm(film, { ...options, isolate: "segments" });
|
package/dist/footage/paid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paid.js","sourceRoot":"","sources":["../../src/footage/paid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAA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K,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AACnG,CAAC"}
|
|
@@ -2,8 +2,9 @@ import { type LayoutOverride } from "../compose/timeline.js";
|
|
|
2
2
|
import type { BrandColors } from "../config/colors.js";
|
|
3
3
|
import type { BrandFont } from "../config/config.js";
|
|
4
4
|
import type { SfxEvent } from "../config/schema.js";
|
|
5
|
-
import { type
|
|
5
|
+
import { type HyperframesCapture } from "./hyperframes-capture.js";
|
|
6
6
|
import type { TimedWord } from "../voice/voiceover.js";
|
|
7
|
+
import { type FootageResult } from "./failure.js";
|
|
7
8
|
import { type FreeBytesReader } from "./disk.js";
|
|
8
9
|
import { type Edl } from "./edl.js";
|
|
9
10
|
import { type CutMeasure } from "./cuts.js";
|
|
@@ -18,6 +19,7 @@ import { type Sentence } from "./sentences.js";
|
|
|
18
19
|
import { type FinishVideo } from "./publish.js";
|
|
19
20
|
import { type FootageCharge, type FootageProgress, type FootageProviders, type PaidStep } from "./providers.js";
|
|
20
21
|
export { getEdlPath } from "./paid.js";
|
|
22
|
+
export type { FootageResult } from "./failure.js";
|
|
21
23
|
export interface FootageBrand {
|
|
22
24
|
name: string;
|
|
23
25
|
/** BCP 47, e.g. `en-US`. */
|
|
@@ -68,7 +70,6 @@ export interface PreparedClip {
|
|
|
68
70
|
/** Seconds after the trim. */
|
|
69
71
|
duration: number;
|
|
70
72
|
}
|
|
71
|
-
export type FootageResult<T> = TtsResult<T>;
|
|
72
73
|
export type TranscribeOutcome = {
|
|
73
74
|
kind: "dry-run";
|
|
74
75
|
steps: PaidStep[];
|
|
@@ -147,8 +148,8 @@ export type FootageMusicLookup = {
|
|
|
147
148
|
*/
|
|
148
149
|
export declare function findFootageMusic(film: FootageFilm, edl: Edl, clips: PreparedClip[], options: Pick<FootageRunOptions, "cacheDir" | "providers">): Promise<FootageResult<FootageMusicLookup>>;
|
|
149
150
|
/**
|
|
150
|
-
* The speech chain's files: the cut speech, the declicked track and the final
|
|
151
|
-
*
|
|
151
|
+
* The speech chain's files, all lossless float WAV (issue #1139): the cut speech, the declicked track and the final
|
|
152
|
+
* `speech.wav`, which the last stage that runs writes. The film's final AAC is the chain's only lossy encode.
|
|
152
153
|
*/
|
|
153
154
|
export declare function getSpeechChainFiles(assetsDir: string, stages: {
|
|
154
155
|
isDeclick: boolean;
|
|
@@ -207,6 +208,11 @@ export type RenderedFootage = {
|
|
|
207
208
|
edlPath: string;
|
|
208
209
|
/** What the speech track's declick stage did (`FootageFilm.speech.declick`); null when it is off. */
|
|
209
210
|
declick: DeclickReport | null;
|
|
211
|
+
/**
|
|
212
|
+
* How hyperframes captured the frames (issue #1145): the capture path (`screenshot` is the slower one), the GPU
|
|
213
|
+
* mode, each stage's seconds and the screenshot hint, read from hyperframes' summary; null when it printed none.
|
|
214
|
+
*/
|
|
215
|
+
capture: HyperframesCapture | null;
|
|
210
216
|
} & FinishedFootage);
|
|
211
217
|
/**
|
|
212
218
|
* Composes the cut and renders it: speech track (loudness-normalized), ducked music, end card backdrop, assets,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/footage/pipeline.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/footage/pipeline.ts"],"names":[],"mappings":"AAIA,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,wBAAw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,GAAG,IAAI,CAM7D;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAYnJ;AAoFD,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB;IACpE,0HAA0H;IAC1H,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gHAAgH;IAChH,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAE/H"}
|
package/dist/footage/pipeline.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cpSync, existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { dirname, extname, join, resolve } from "node:path";
|
|
4
4
|
import { LAYOUTS, resolveLayout } from "../compose/timeline.js";
|
|
5
5
|
import { getHyperframesBin, getHyperframesEnv } from "../render/hyperframes.js";
|
|
6
|
+
import { readHyperframesCapture } from "./hyperframes-capture.js";
|
|
6
7
|
import { copyFonts } from "../render/render.js";
|
|
7
|
-
import { err, ok } from "../voice/provider.js";
|
|
8
8
|
import { checkMusicFileType, describeAudioProbe, probeAudio } from "./audio.js";
|
|
9
|
+
import { prepareClipSounds } from "./clip-sound.js";
|
|
9
10
|
import { readCachedTranscript, writeCacheFile, writeTranscript } from "./cache.js";
|
|
10
11
|
import { composeFootage, END_CARD_SECONDS, getFootageFilmSeconds, getFootageSfxCues } from "./compose.js";
|
|
11
12
|
import { findMissingCaptionGlyphs, getCaptionBounds, getFootageCaptionLayout } from "./captions.js";
|
|
13
|
+
import { err, getProviderFootageFailure, ok } from "./failure.js";
|
|
12
14
|
import { findLowDiskProblems, getFreeBytes, getRenderTempDir } from "./disk.js";
|
|
13
15
|
import { buildEdl, getEdlDuration, readEdl, remapWords, validateEdl } from "./edl.js";
|
|
14
16
|
import { makePlaceholderTranscript } from "./fake.js";
|
|
@@ -17,7 +19,7 @@ import { declickSpeech, describeDeclick } from "./declick.js";
|
|
|
17
19
|
import { DEFAULT_AUTO_THRESHOLD, getDeclickLevel, getFootageEdit } from "./film.js";
|
|
18
20
|
import { getFilmKeyTerms } from "./keyterms.js";
|
|
19
21
|
import { buildFilmMixArgs } from "./film-mix.js";
|
|
20
|
-
import { buildMixArgs, DEFAULT_LOUDNESS, formatDb, getFirstMixCeiling, getLoudnessVerdict, getMixAttempts, getMixFilter, getMixGain, getMixTolerance, getNextMixCeiling, measureLoudness, normalizeLoudness, solveMixGain, } from "./loudness.js";
|
|
22
|
+
import { AUDIO_BITRATE_RANGE_KBPS, buildMixArgs, DEFAULT_LOUDNESS, formatDb, getFirstMixCeiling, getLoudnessVerdict, getMixAttempts, getMixFilter, getMixGain, getMixTolerance, getNextMixCeiling, measureLoudness, normalizeLoudness, solveMixGain, } from "./loudness.js";
|
|
21
23
|
import { duckingKeyframes, getDuckingOptions } from "./music.js";
|
|
22
24
|
import { FOOTAGE_FPS, normalizeFootage } from "./normalize.js";
|
|
23
25
|
import { buildPictureConcatArgs, buildPictureList, buildPicturePieceArgs, getPictureFrames, planFootagePicture } from "./picture.js";
|
|
@@ -36,7 +38,8 @@ export { getEdlPath } from "./paid.js";
|
|
|
36
38
|
* (a transcript from each clip's `script`, no isolation, no generated music) and keeps its files apart from the real
|
|
37
39
|
* film's (`placeholder/` in the build folder, its own EDL).
|
|
38
40
|
*
|
|
39
|
-
* Build folder layout: `sources/` (downloaded URLs), `clips/<id>.mp4` (normalized), `audio/<id>.
|
|
41
|
+
* Build folder layout: `sources/` (downloaded URLs), `clips/<id>.mp4` (normalized), `audio/<id>.wav` (the clip's
|
|
42
|
+
* lossless, pre-gained sound; `audio/<id>.isolated.wav` its cleaned voice), `edl.json`
|
|
40
43
|
* (`edl.placeholder.json`), `assets/`, `index.html`, `render.mp4` (hyperframes' output until the final pass).
|
|
41
44
|
*
|
|
42
45
|
* The finished film is publishable: the speech track normalized to a loudness target before the music goes under it,
|
|
@@ -108,18 +111,18 @@ export function prepareFootage(film, options) {
|
|
|
108
111
|
async function runPrepareFootage(film, options) {
|
|
109
112
|
const { buildDir, log, signal } = options;
|
|
110
113
|
if (film.clips.length === 0)
|
|
111
|
-
return err(`footage film ${film.id} has no clips
|
|
114
|
+
return err(`footage film ${film.id} has no clips.`, { kind: "input" });
|
|
112
115
|
const sources = {};
|
|
113
116
|
for (const clip of film.clips) {
|
|
114
117
|
if (!isUrl(clip.source)) {
|
|
115
118
|
if (!existsSync(clip.source))
|
|
116
|
-
return err(`clip "${clip.id}": no file at ${clip.source}
|
|
119
|
+
return err(`clip "${clip.id}": no file at ${clip.source}`, { kind: "input" });
|
|
117
120
|
sources[clip.id] = clip.source;
|
|
118
121
|
continue;
|
|
119
122
|
}
|
|
120
123
|
const downloaded = await download(clip.source, join(buildDir, "sources"), options);
|
|
121
124
|
if (!downloaded.ok)
|
|
122
|
-
return err(`clip "${clip.id}": ${downloaded.error}
|
|
125
|
+
return err(`clip "${clip.id}": ${downloaded.error}`, downloaded.failure);
|
|
123
126
|
sources[clip.id] = downloaded.value;
|
|
124
127
|
}
|
|
125
128
|
const probed = await probeFootage(film.clips, sources, signal === undefined ? {} : { signal });
|
|
@@ -128,7 +131,7 @@ async function runPrepareFootage(film, options) {
|
|
|
128
131
|
if (film.music.source.kind === "file") {
|
|
129
132
|
const music = await checkMusicFile(film.music.source, options);
|
|
130
133
|
if (!music.ok)
|
|
131
|
-
return
|
|
134
|
+
return music;
|
|
132
135
|
}
|
|
133
136
|
const frame = getFrame(film);
|
|
134
137
|
const clipsDir = join(buildDir, "clips");
|
|
@@ -160,22 +163,26 @@ async function runPrepareFootage(film, options) {
|
|
|
160
163
|
function getClipKey(clip) {
|
|
161
164
|
return getClipCacheKey(clip.source, clip.clip);
|
|
162
165
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
/** The cached cleaned voice (the provider's file) decoded into the build folder as lossless WAV, named by the clip's id. */
|
|
167
|
+
async function decodeIsolatedVoice(cached, clipId, buildDir, signal) {
|
|
168
|
+
const output = join(buildDir, "audio", `${clipId}.isolated.wav`);
|
|
169
|
+
mkdirSync(dirname(output), { recursive: true });
|
|
170
|
+
await runFfmpeg(`Decoding the cleaned voice of clip ${clipId}`, buildAudioArgs(cached, output), { ...(signal === undefined ? {} : { signal }), output });
|
|
171
|
+
return output;
|
|
168
172
|
}
|
|
169
|
-
/**
|
|
170
|
-
function
|
|
173
|
+
/** Each clip's lossless, pre-gained sound (`prepareClipSounds`), by clip id. */
|
|
174
|
+
async function getClipSoundFiles(clips, buildDir, signal) {
|
|
175
|
+
const sounds = await prepareClipSounds(clips, { buildDir, ...(signal === undefined ? {} : { signal }) });
|
|
176
|
+
return Object.fromEntries(Object.entries(sounds).map(([id, sound]) => [id, sound.file]));
|
|
177
|
+
}
|
|
178
|
+
/** The free transcripts of `--placeholder`, written under `placeholder/` for a look; the speech is each clip's lossless sound. */
|
|
179
|
+
async function transcribePlaceholder(clips, buildDir, signal) {
|
|
171
180
|
const words = {};
|
|
172
|
-
const speech = {};
|
|
173
181
|
for (const clip of clips) {
|
|
174
182
|
words[clip.clip.id] = clip.clip.role === "talk" ? makePlaceholderTranscript(clip.clip.script, clip.duration) : [];
|
|
175
183
|
writeTranscript(join(buildDir, "placeholder", `${clip.clip.id}.transcript.json`), words[clip.clip.id] ?? []);
|
|
176
|
-
speech[clip.clip.id] = clip.file;
|
|
177
184
|
}
|
|
178
|
-
return { kind: "ready", words, speech };
|
|
185
|
+
return { kind: "ready", words, speech: await getClipSoundFiles(clips, buildDir, signal) };
|
|
179
186
|
}
|
|
180
187
|
/** The paid music step, when the film's music still has to be bought; null when it is cached or free. */
|
|
181
188
|
export function getMusicPaidStep(film, options, seconds) {
|
|
@@ -198,10 +205,10 @@ export function transcribeFootage(film, clips, options) {
|
|
|
198
205
|
async function runTranscribeFootage(film, clips, options) {
|
|
199
206
|
const { buildDir, providers, log, signal } = options;
|
|
200
207
|
if (options.isPlaceholder)
|
|
201
|
-
return ok(transcribePlaceholder(
|
|
208
|
+
return ok(await transcribePlaceholder(clips, buildDir, signal));
|
|
202
209
|
const keyTerms = getFilmKeyTerms(film);
|
|
203
210
|
if (!keyTerms.ok)
|
|
204
|
-
return err(`footage film ${film.id}: ${keyTerms.errors.join(" ")}
|
|
211
|
+
return err(`footage film ${film.id}: ${keyTerms.errors.join(" ")}`, { kind: "input" });
|
|
205
212
|
const sttKeyTerms = keyTerms.terms.length === 0 ? {} : { keyTerms: keyTerms.terms };
|
|
206
213
|
const plan = [];
|
|
207
214
|
const steps = [];
|
|
@@ -227,11 +234,10 @@ async function runTranscribeFootage(film, clips, options) {
|
|
|
227
234
|
return ok({ kind: "dry-run", steps: all });
|
|
228
235
|
}
|
|
229
236
|
const words = {};
|
|
230
|
-
const
|
|
231
|
-
for (const clip of clips) {
|
|
237
|
+
for (const clip of clips)
|
|
232
238
|
words[clip.clip.id] = [];
|
|
233
|
-
|
|
234
|
-
|
|
239
|
+
// Every clip's sound, lossless and pre-gained: what the isolator, the speech to text and the speech track hear (#1139).
|
|
240
|
+
const speech = await getClipSoundFiles(clips, buildDir, signal);
|
|
235
241
|
const isolating = plan.filter(({ isolated }) => isolated !== null && !existsSync(isolated.path));
|
|
236
242
|
const transcribing = plan.filter(({ transcript }) => !existsSync(transcript.path));
|
|
237
243
|
const isolateProgress = createStageProgress(options.onProgress, "isolate", isolating.map(({ clip }) => ({ item: clip.clip.id, seconds: clip.duration })));
|
|
@@ -239,28 +245,28 @@ async function runTranscribeFootage(film, clips, options) {
|
|
|
239
245
|
for (const entry of plan) {
|
|
240
246
|
const { clip, isolated, transcript } = entry;
|
|
241
247
|
const id = clip.clip.id;
|
|
242
|
-
|
|
243
|
-
const getAudio = () => (audio ??= extractAudio(clip, buildDir, signal));
|
|
248
|
+
const sound = speech[id] ?? clip.file;
|
|
244
249
|
let sttInput = null;
|
|
245
250
|
if (isolated !== null) {
|
|
246
251
|
if (!existsSync(isolated.path)) {
|
|
247
252
|
const index = isolating.indexOf(entry);
|
|
248
253
|
isolateProgress(index, 0);
|
|
249
|
-
const input = await getAudio();
|
|
250
254
|
throwIfAborted(signal);
|
|
251
255
|
log(`voice isolation (${providers.isolation.id}): clip ${id}, ${clip.duration.toFixed(1)} s.`);
|
|
252
|
-
const cleaned = await providers.isolation.isolate({ audio:
|
|
256
|
+
const cleaned = await providers.isolation.isolate({ audio: sound, ...(signal === undefined ? {} : { signal }) });
|
|
253
257
|
throwIfAborted(signal);
|
|
254
258
|
if (!cleaned.ok)
|
|
255
|
-
return err(`clip "${id}": ${cleaned.error}
|
|
259
|
+
return err(`clip "${id}": ${cleaned.error}`, getProviderFootageFailure(cleaned.providerFailure));
|
|
256
260
|
const paid = toPaidAudio(cleaned.value);
|
|
257
261
|
writeCacheFile(isolated.path, paid.audio);
|
|
258
262
|
options.onCharge?.({ step: "isolate", item: id, provider: providers.isolation.id, units: clip.duration, ...(paid.credits === undefined ? {} : { credits: paid.credits }), cacheKey: isolated.key });
|
|
259
263
|
log(`voice isolation: saved ${isolated.path} (commit it).`);
|
|
260
264
|
isolateProgress(index, clip.duration);
|
|
261
265
|
}
|
|
262
|
-
speech
|
|
263
|
-
|
|
266
|
+
// The provider's file decoded once: the speech track and the speech to text read it lossless, named by the clip.
|
|
267
|
+
const decoded = await decodeIsolatedVoice(isolated.path, id, buildDir, signal);
|
|
268
|
+
speech[id] = decoded;
|
|
269
|
+
sttInput = decoded;
|
|
264
270
|
}
|
|
265
271
|
const cached = readCachedTranscript(transcript.path);
|
|
266
272
|
if (!cached.ok)
|
|
@@ -270,22 +276,16 @@ async function runTranscribeFootage(film, clips, options) {
|
|
|
270
276
|
words[id] = cached.words;
|
|
271
277
|
continue;
|
|
272
278
|
}
|
|
273
|
-
if (sttInput !== null) {
|
|
274
|
-
// The provider sees the clip's id as the file name, as it does for the plain sound.
|
|
275
|
-
const cleaned = sttInput;
|
|
276
|
-
sttInput = join(buildDir, "audio", `${id}.isolated.mp3`);
|
|
277
|
-
mkdirSync(dirname(sttInput), { recursive: true });
|
|
278
|
-
copyFileSync(cleaned, sttInput);
|
|
279
|
-
}
|
|
280
279
|
const index = transcribing.indexOf(entry);
|
|
281
280
|
transcribeProgress(index, 0);
|
|
282
|
-
|
|
281
|
+
// The provider sees the clip's id as the file name, for the cleaned voice as for the plain sound.
|
|
282
|
+
const input = sttInput ?? sound;
|
|
283
283
|
throwIfAborted(signal);
|
|
284
284
|
log(`speech to text (${providers.stt.id}): clip ${id}, ${clip.duration.toFixed(1)} s.`);
|
|
285
285
|
const result = await providers.stt.transcribe({ audio: input, language: film.language, ...sttKeyTerms, ...(signal === undefined ? {} : { signal }) });
|
|
286
286
|
throwIfAborted(signal);
|
|
287
287
|
if (!result.ok)
|
|
288
|
-
return err(`clip "${id}": ${result.error}
|
|
288
|
+
return err(`clip "${id}": ${result.error}`, getProviderFootageFailure(result.providerFailure));
|
|
289
289
|
writeTranscript(transcript.path, result.value.words);
|
|
290
290
|
const { credits } = result.value;
|
|
291
291
|
options.onCharge?.({ step: "transcribe", item: id, provider: providers.stt.id, units: clip.duration, ...(credits === undefined ? {} : { credits }), ...(keyTerms.terms.length === 0 ? {} : { keyTerms: keyTerms.terms.length }), cacheKey: transcript.key });
|
|
@@ -360,14 +360,14 @@ export function readEdlFile(film, clips, edlPath, layout = {}) {
|
|
|
360
360
|
json = JSON.parse(readFileSync(edlPath, "utf8"));
|
|
361
361
|
}
|
|
362
362
|
catch (error) {
|
|
363
|
-
return err(`${edlPath}: not JSON (${String(error)})
|
|
363
|
+
return err(`${edlPath}: not JSON (${String(error)})`, { kind: "input" });
|
|
364
364
|
}
|
|
365
365
|
const read = readEdl(json);
|
|
366
366
|
if (!read.ok)
|
|
367
|
-
return err(`${edlPath}: ${read.error}
|
|
367
|
+
return err(`${edlPath}: ${read.error}`, { kind: "input" });
|
|
368
368
|
const bounds = getCaptionBounds(getFrame(film).height, getFootageCaptionLayout(film, layout));
|
|
369
369
|
const problems = validateEdl(read.edl, clips.map((clip) => ({ id: clip.clip.id, duration: clip.duration })), film.id, bounds);
|
|
370
|
-
return problems.length > 0 ? err(`${edlPath}: ${problems.join("; ")}
|
|
370
|
+
return problems.length > 0 ? err(`${edlPath}: ${problems.join("; ")}`, { kind: "input" }) : ok(read.edl);
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
373
|
* A local music file checked like an app's upload: an accepted type, then readable audio (`probeAudio`). The type comes
|
|
@@ -377,7 +377,7 @@ export function readEdlFile(film, clips, edlPath, layout = {}) {
|
|
|
377
377
|
async function checkMusicFile(source, options) {
|
|
378
378
|
const { path, fileName, contentType } = source;
|
|
379
379
|
if (!existsSync(path))
|
|
380
|
-
return err(`music: no file at ${path}
|
|
380
|
+
return err(`music: no file at ${path}`, { kind: "input" });
|
|
381
381
|
const name = fileName ?? path;
|
|
382
382
|
if (extname(name) === "" && contentType === undefined) {
|
|
383
383
|
options.log(`music: ${path} has no extension and no declared name or content type; the probe checks it.`);
|
|
@@ -385,11 +385,11 @@ async function checkMusicFile(source, options) {
|
|
|
385
385
|
else {
|
|
386
386
|
const type = checkMusicFileType(contentType === undefined ? { fileName: name } : { fileName: name, contentType });
|
|
387
387
|
if (!type.ok)
|
|
388
|
-
return err(`music: ${type.error}
|
|
388
|
+
return err(`music: ${type.error}`, { kind: "input" });
|
|
389
389
|
}
|
|
390
390
|
const probe = await probeAudio(path, options.signal === undefined ? {} : { signal: options.signal });
|
|
391
391
|
if (!probe.ok)
|
|
392
|
-
return err(`music: ${probe.error}
|
|
392
|
+
return err(`music: ${probe.error}`, { kind: "input" });
|
|
393
393
|
options.log(`music: ${path} (${describeAudioProbe(probe.probe)}).`);
|
|
394
394
|
return ok(path);
|
|
395
395
|
}
|
|
@@ -403,7 +403,7 @@ export async function findFootageMusic(film, edl, clips, options) {
|
|
|
403
403
|
if (source.kind === "none")
|
|
404
404
|
return ok({ kind: "none" });
|
|
405
405
|
if (source.kind === "file")
|
|
406
|
-
return existsSync(source.path) ? ok({ kind: "file", path: source.path }) : err(`music: no file at ${source.path}
|
|
406
|
+
return existsSync(source.path) ? ok({ kind: "file", path: source.path }) : err(`music: no file at ${source.path}`, { kind: "input" });
|
|
407
407
|
let cache;
|
|
408
408
|
if (source.kind === "prompt") {
|
|
409
409
|
cache = getPromptMusicCache(film, options);
|
|
@@ -465,7 +465,7 @@ async function getMusic(film, edl, clips, seconds, options) {
|
|
|
465
465
|
}
|
|
466
466
|
throwIfAborted(signal);
|
|
467
467
|
if (!bought.ok)
|
|
468
|
-
return err(`music: ${bought.error}
|
|
468
|
+
return err(`music: ${bought.error}`, getProviderFootageFailure(bought.providerFailure));
|
|
469
469
|
const paid = toPaidAudio(bought.value);
|
|
470
470
|
writeCacheFile(path, paid.audio);
|
|
471
471
|
options.onCharge?.({ step: "music", item: "film", provider: providers.music.id, units: seconds, ...(paid.credits === undefined ? {} : { credits: paid.credits }), cacheKey: cache.key });
|
|
@@ -474,12 +474,12 @@ async function getMusic(film, edl, clips, seconds, options) {
|
|
|
474
474
|
return ok(path);
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
* The speech chain's files: the cut speech, the declicked track and the final
|
|
478
|
-
*
|
|
477
|
+
* The speech chain's files, all lossless float WAV (issue #1139): the cut speech, the declicked track and the final
|
|
478
|
+
* `speech.wav`, which the last stage that runs writes. The film's final AAC is the chain's only lossy encode.
|
|
479
479
|
*/
|
|
480
480
|
export function getSpeechChainFiles(assetsDir, stages) {
|
|
481
|
-
const speechFile = join(assetsDir, "speech.
|
|
482
|
-
const rawSpeechFile = stages.isDeclick || stages.isLoudness ? join(assetsDir, "speech.raw.
|
|
481
|
+
const speechFile = join(assetsDir, "speech.wav");
|
|
482
|
+
const rawSpeechFile = stages.isDeclick || stages.isLoudness ? join(assetsDir, "speech.raw.wav") : speechFile;
|
|
483
483
|
const declickedFile = !stages.isDeclick ? rawSpeechFile : stages.isLoudness ? join(assetsDir, "speech.declicked.wav") : speechFile;
|
|
484
484
|
return { rawSpeechFile, declickedFile, speechFile };
|
|
485
485
|
}
|
|
@@ -496,7 +496,7 @@ async function runRenderFootage(film, clips, transcript, edl, options) {
|
|
|
496
496
|
const { buildDir, log, signal } = options;
|
|
497
497
|
const finishVideoProblems = options.finishVideo === undefined ? [] : findFinishVideoProblems(options.finishVideo);
|
|
498
498
|
if (finishVideoProblems.length > 0)
|
|
499
|
-
return err(finishVideoProblems.join(" "));
|
|
499
|
+
return err(finishVideoProblems.join(" "), { kind: "input" });
|
|
500
500
|
const lowDisk = findLowDiskProblems({ temp: getRenderTempDir(process.env, options.tempDir), build: buildDir }, options.readFreeBytes ?? getFreeBytes);
|
|
501
501
|
if (lowDisk.length > 0)
|
|
502
502
|
return err(`not enough disk space to render: ${lowDisk.join(" ")}`);
|
|
@@ -561,6 +561,7 @@ async function runRenderFootage(film, clips, transcript, edl, options) {
|
|
|
561
561
|
}
|
|
562
562
|
// The film's mix, brought to `mixLoudness` and gated before hyperframes captures a frame (issue #1124).
|
|
563
563
|
const mixLoudness = getMixLoudnessTarget(film);
|
|
564
|
+
// Widened: the mix track assigns it inside a closure, which narrowing does not see.
|
|
564
565
|
let mixed = ok(null);
|
|
565
566
|
if (mixLoudness !== null) {
|
|
566
567
|
const mixSource = join(buildDir, "mix.wav");
|
|
@@ -613,7 +614,7 @@ async function runRenderFootage(film, clips, transcript, edl, options) {
|
|
|
613
614
|
brandName: options.brand.name,
|
|
614
615
|
});
|
|
615
616
|
if (missing.length > 0) {
|
|
616
|
-
return err(`the brand fonts cannot draw every letter of the film: ${missing.map((entry) => `${entry.font} lacks ${entry.characters.join(" ")}`).join("; ")}. Add a font file that covers them (brand.fonts)
|
|
617
|
+
return err(`the brand fonts cannot draw every letter of the film: ${missing.map((entry) => `${entry.font} lacks ${entry.characters.join(" ")}`).join("; ")}. Add a font file that covers them (brand.fonts).`, { kind: "input" });
|
|
617
618
|
}
|
|
618
619
|
const html = composeFootage({
|
|
619
620
|
film,
|
|
@@ -627,7 +628,7 @@ async function runRenderFootage(film, clips, transcript, edl, options) {
|
|
|
627
628
|
assets: {
|
|
628
629
|
clips: Object.fromEntries(clips.map((clip) => [clip.clip.id, `clips/${clip.clip.id}.mp4`])),
|
|
629
630
|
picture: "assets/picture.mp4",
|
|
630
|
-
speech: "assets/speech.
|
|
631
|
+
speech: "assets/speech.wav",
|
|
631
632
|
music: musicAsset,
|
|
632
633
|
lastFrame: "assets/last.jpg",
|
|
633
634
|
logo: options.brand.logo === null ? null : "assets/logo.svg",
|
|
@@ -647,7 +648,7 @@ async function runRenderFootage(film, clips, transcript, edl, options) {
|
|
|
647
648
|
const finished = await finishFootage(film, { renderFile, seconds, coverAt: film.cover?.at ?? getDefaultCoverSeconds(edl, roles), mix: prepared.value }, options);
|
|
648
649
|
if (!finished.ok)
|
|
649
650
|
return finished;
|
|
650
|
-
return ok({ kind: "rendered", output: options.output, seconds, edlPath: getEdlPath(buildDir, options.isPlaceholder), declick, ...finished.value });
|
|
651
|
+
return ok({ kind: "rendered", output: options.output, seconds, edlPath: getEdlPath(buildDir, options.isPlaceholder), declick, capture: rendered.value, ...finished.value });
|
|
651
652
|
}
|
|
652
653
|
/** The film's mix target: `mixLoudness`, the default when absent, null when the film keeps the render's sound. */
|
|
653
654
|
function getMixLoudnessTarget(film) {
|
|
@@ -717,7 +718,7 @@ export async function finishFootage(film, input, options) {
|
|
|
717
718
|
return err(`the finished film: ${finished.error}`);
|
|
718
719
|
const problems = findFinishProblems(finished.facts, readTopLevelBoxes(output));
|
|
719
720
|
if (problems.length > 0)
|
|
720
|
-
return err(`the finished film ${output} is not publishable: ${problems.join("; ")}
|
|
721
|
+
return err(`the finished film ${output} is not publishable: ${problems.join("; ")}.`, { kind: "publishable", problems });
|
|
721
722
|
let loudness = null;
|
|
722
723
|
if (finished.facts.audio !== null) {
|
|
723
724
|
const measured = await measureLoudness(output, mixLoudness ?? DEFAULT_LOUDNESS, { label: "the finished film", ...aborting });
|
|
@@ -726,7 +727,7 @@ export async function finishFootage(film, input, options) {
|
|
|
726
727
|
// A mix left as rendered (`mixLoudness: null`) or silent is reported, not held to a target it was not brought to.
|
|
727
728
|
const verdict = mixLoudness === null || audioFile === undefined ? { kind: "pass" } : getLoudnessVerdict(sound, mixLoudness);
|
|
728
729
|
if (verdict.kind === "fail")
|
|
729
|
-
return err(`the finished film ${output} measures ${describeMixLoudness(sound)}: ${verdict.problems.join("; ")}
|
|
730
|
+
return err(`the finished film ${output} measures ${describeMixLoudness(sound)}: ${verdict.problems.join("; ")}.`, { kind: "loudness", loudness: sound });
|
|
730
731
|
loudness = { ...sound, warning: verdict.kind === "warn" ? `the finished film ${output}: ${verdict.warning}` : null };
|
|
731
732
|
log(`loudness: the finished film measures ${formatDb(sound.integrated)} LUFS, true peak ${formatDb(sound.truePeak)} dBTP.`);
|
|
732
733
|
if (loudness.warning !== null)
|
|
@@ -757,6 +758,10 @@ export async function finishFootage(film, input, options) {
|
|
|
757
758
|
*/
|
|
758
759
|
async function finishMix(input) {
|
|
759
760
|
const aborting = input.signal === undefined ? {} : { signal: input.signal };
|
|
761
|
+
const bitrate = input.target.audioBitrateKbps;
|
|
762
|
+
if (bitrate !== undefined && !(Number.isInteger(bitrate) && bitrate >= AUDIO_BITRATE_RANGE_KBPS.min && bitrate <= AUDIO_BITRATE_RANGE_KBPS.max)) {
|
|
763
|
+
return err(`mixLoudness.audioBitrateKbps must be a whole number from ${String(AUDIO_BITRATE_RANGE_KBPS.min)} to ${String(AUDIO_BITRATE_RANGE_KBPS.max)}, got ${String(bitrate)}.`, { kind: "input" });
|
|
764
|
+
}
|
|
760
765
|
const attempts = getMixAttempts(input.target);
|
|
761
766
|
const probe = async (attempt) => {
|
|
762
767
|
const probed = await measureLoudness(input.input, input.target, { label: "the film's mix through its limiter", filter: getMixFilter(attempt), ...aborting });
|
|
@@ -771,23 +776,23 @@ async function finishMix(input) {
|
|
|
771
776
|
const solved = await solveMixGain({ ceilingDbtp, startGainDb, target: input.target, shift, measure: probe });
|
|
772
777
|
probes += solved.probes.length;
|
|
773
778
|
const attempt = solved.best.attempt;
|
|
774
|
-
await runFfmpeg("The film's mix", buildMixArgs({ input: input.input, filter: getMixFilter(attempt), output: input.output }), { ...aborting, output: input.output });
|
|
779
|
+
await runFfmpeg("The film's mix", buildMixArgs({ input: input.input, filter: getMixFilter(attempt), output: input.output, ...(input.target.audioBitrateKbps === undefined ? {} : { bitrateKbps: input.target.audioBitrateKbps }) }), { ...aborting, output: input.output });
|
|
775
780
|
const encoded = await measureLoudness(input.output, input.target, { label: "the film's encoded mix", ...aborting });
|
|
776
781
|
if (encoded.kind === "silent")
|
|
777
|
-
return err("the film's mix measures silent after its gain and limiter.");
|
|
782
|
+
return err("the film's mix measures silent after its gain and limiter.", { kind: "loudness", loudness: null });
|
|
778
783
|
const measured = { integrated: encoded.measurement.inputI, truePeak: encoded.measurement.inputTp };
|
|
779
784
|
const verdict = getLoudnessVerdict(measured, input.target);
|
|
780
785
|
if (verdict.kind === "pass" || (verdict.kind === "warn" && tries === attempts))
|
|
781
786
|
return ok({ attempt, tries, probes, measured });
|
|
782
787
|
if (tries === attempts) {
|
|
783
788
|
return err(`the film's mix still measures ${describeMixLoudness(measured)} after ${attempts} encodes (last: gain ${formatDb(attempt.gainDb)} dB, ` +
|
|
784
|
-
`limiter at ${formatDb(attempt.ceilingDbtp)} dBTP): ${verdict.kind === "fail" ? verdict.problems.join("; ") : ""}
|
|
789
|
+
`limiter at ${formatDb(attempt.ceilingDbtp)} dBTP): ${verdict.kind === "fail" ? verdict.problems.join("; ") : ""}.`, { kind: "loudness", loudness: measured });
|
|
785
790
|
}
|
|
786
791
|
shift = Number.isFinite(solved.best.measured.integrated) ? measured.integrated - solved.best.measured.integrated : 0;
|
|
787
792
|
ceilingDbtp = getNextMixCeiling(attempt.ceilingDbtp, measured, input.target);
|
|
788
793
|
startGainDb = attempt.gainDb;
|
|
789
794
|
}
|
|
790
|
-
return err(`the film's mix was not encoded: mixLoudness.attempts is ${attempts}
|
|
795
|
+
return err(`the film's mix was not encoded: mixLoudness.attempts is ${attempts}.`, { kind: "input" });
|
|
791
796
|
}
|
|
792
797
|
/** Both measurements of a mix, as an error names them. */
|
|
793
798
|
function describeMixLoudness(measured) {
|
|
@@ -856,16 +861,21 @@ async function buildPicture(input) {
|
|
|
856
861
|
rmSync(dir, { recursive: true, force: true });
|
|
857
862
|
input.onSeconds(getPictureFrames(pieces) / FOOTAGE_FPS);
|
|
858
863
|
}
|
|
859
|
-
/**
|
|
864
|
+
/**
|
|
865
|
+
* The hyperframes render as a child process: its lines go to the log (progress every 10 %), its percentages to
|
|
866
|
+
* `onProgress`; it answers the capture report read from its summary (null when it printed none).
|
|
867
|
+
*/
|
|
860
868
|
async function runHyperframesRender(options, output, seconds) {
|
|
861
869
|
const progress = createStageProgress(options.onProgress, "render", [{ item: "film", seconds }]);
|
|
862
870
|
progress(0, 0);
|
|
863
871
|
let loggedTenth = -1;
|
|
872
|
+
const lines = [];
|
|
864
873
|
const onLine = (line) => {
|
|
865
874
|
if (line.trim().length === 0)
|
|
866
875
|
return;
|
|
867
876
|
const percent = readRenderPercent(line);
|
|
868
877
|
if (percent === null) {
|
|
878
|
+
lines.push(line);
|
|
869
879
|
options.log(line.trim());
|
|
870
880
|
return;
|
|
871
881
|
}
|
|
@@ -898,7 +908,7 @@ async function runHyperframesRender(options, output, seconds) {
|
|
|
898
908
|
if (result.code !== 0)
|
|
899
909
|
return err(`hyperframes render ended with code ${String(result.code)} (signal ${result.signal ?? "-"}).`);
|
|
900
910
|
progress(0, seconds);
|
|
901
|
-
return ok(
|
|
911
|
+
return ok(readHyperframesCapture(lines));
|
|
902
912
|
}
|
|
903
913
|
/**
|
|
904
914
|
* The whole footage film from a `FootageFilm` object, no `marketing.json` needed: prepare, transcribe (or the dry
|