@softure-ai/marketing-kit 0.10.0 → 0.12.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 +82 -0
- package/README.md +81 -9
- package/dist/cli/footage.js +1 -1
- package/dist/cli/footage.js.map +1 -1
- package/dist/compose/timeline.d.ts +23 -3
- package/dist/compose/timeline.d.ts.map +1 -1
- package/dist/compose/timeline.js +31 -11
- package/dist/compose/timeline.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 +2 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/schema.d.ts +83 -70
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +21 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/shot-steps.d.ts +16 -16
- package/dist/footage/captions.d.ts +45 -3
- package/dist/footage/captions.d.ts.map +1 -1
- package/dist/footage/captions.js +65 -5
- package/dist/footage/captions.js.map +1 -1
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +8 -4
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/declick.d.ts +106 -0
- package/dist/footage/declick.d.ts.map +1 -0
- package/dist/footage/declick.js +296 -0
- package/dist/footage/declick.js.map +1 -0
- package/dist/footage/draft.d.ts +8 -3
- package/dist/footage/draft.d.ts.map +1 -1
- package/dist/footage/draft.js +55 -22
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/edl.d.ts +28 -2
- package/dist/footage/edl.d.ts.map +1 -1
- package/dist/footage/edl.js +53 -2
- package/dist/footage/edl.js.map +1 -1
- package/dist/footage/film.d.ts +29 -3
- package/dist/footage/film.d.ts.map +1 -1
- package/dist/footage/film.js +12 -0
- package/dist/footage/film.js.map +1 -1
- package/dist/footage/isolate-ranges.d.ts +37 -0
- package/dist/footage/isolate-ranges.d.ts.map +1 -0
- package/dist/footage/isolate-ranges.js +113 -0
- package/dist/footage/isolate-ranges.js.map +1 -0
- package/dist/footage/loudness.d.ts +58 -0
- package/dist/footage/loudness.d.ts.map +1 -1
- package/dist/footage/loudness.js +80 -0
- package/dist/footage/loudness.js.map +1 -1
- package/dist/footage/paid.d.ts +18 -0
- package/dist/footage/paid.d.ts.map +1 -1
- package/dist/footage/paid.js +32 -2
- package/dist/footage/paid.js.map +1 -1
- package/dist/footage/pipeline.d.ts +51 -6
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +120 -23
- 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/publish.d.ts +26 -2
- package/dist/footage/publish.d.ts.map +1 -1
- package/dist/footage/publish.js +48 -14
- package/dist/footage/publish.js.map +1 -1
- package/dist/footage/speech-ranges.d.ts +65 -0
- package/dist/footage/speech-ranges.d.ts.map +1 -0
- package/dist/footage/speech-ranges.js +98 -0
- package/dist/footage/speech-ranges.js.map +1 -0
- package/dist/index.d.ts +11 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schema/edl.schema.json +17 -0
- package/schema/marketing.schema.json +43 -1
- package/src/cli/footage.ts +1 -1
- package/src/compose/timeline.ts +41 -10
- package/src/config/config.ts +2 -0
- package/src/config/schema.ts +23 -1
- package/src/footage/captions.ts +81 -6
- package/src/footage/compose.ts +8 -4
- package/src/footage/declick.ts +353 -0
- package/src/footage/draft.ts +58 -23
- package/src/footage/edl.ts +69 -2
- package/src/footage/film.ts +37 -3
- package/src/footage/isolate-ranges.ts +161 -0
- package/src/footage/loudness.ts +112 -0
- package/src/footage/paid.ts +40 -2
- package/src/footage/pipeline.ts +178 -25
- package/src/footage/providers.ts +2 -0
- package/src/footage/publish.ts +67 -15
- package/src/footage/speech-ranges.ts +131 -0
- package/src/index.ts +72 -0
package/src/index.ts
CHANGED
|
@@ -104,6 +104,7 @@ export {
|
|
|
104
104
|
VIDEO_FORMATS,
|
|
105
105
|
cameraPose,
|
|
106
106
|
captionChunks,
|
|
107
|
+
splitAfterKept,
|
|
107
108
|
crossfadeArgs,
|
|
108
109
|
fitScale,
|
|
109
110
|
fitsFrame,
|
|
@@ -119,6 +120,7 @@ export {
|
|
|
119
120
|
widePose,
|
|
120
121
|
type CameraPose,
|
|
121
122
|
type CaptionChunk,
|
|
123
|
+
type CaptionChunkOptions,
|
|
122
124
|
type CaptionLayout,
|
|
123
125
|
type CrossfadeInput,
|
|
124
126
|
type DeviceKind,
|
|
@@ -183,6 +185,7 @@ export {
|
|
|
183
185
|
DEFAULT_AUTO_THRESHOLD,
|
|
184
186
|
JUMP_TRANSITIONS,
|
|
185
187
|
DEFAULT_CUT,
|
|
188
|
+
DEFAULT_CAPTION_KEEP_WITH_NEXT,
|
|
186
189
|
DEFAULT_FILLERS,
|
|
187
190
|
DEFAULT_MUSIC_VOLUME,
|
|
188
191
|
DEFAULT_TRANSITIONS,
|
|
@@ -191,6 +194,7 @@ export {
|
|
|
191
194
|
CAPTION_STYLES,
|
|
192
195
|
DEFAULT_EDIT,
|
|
193
196
|
getDefaultFillers,
|
|
197
|
+
getDeclickLevel,
|
|
194
198
|
getFootageEdit,
|
|
195
199
|
type CaptionPreset,
|
|
196
200
|
type CaptionStyle,
|
|
@@ -203,9 +207,33 @@ export {
|
|
|
203
207
|
type FootageClip,
|
|
204
208
|
type FootageFilm,
|
|
205
209
|
type FootageMusic,
|
|
210
|
+
type FootageSpeech,
|
|
206
211
|
type FootageTransitions,
|
|
207
212
|
type MusicSource,
|
|
208
213
|
} from "./footage/film.js";
|
|
214
|
+
export {
|
|
215
|
+
DECLICK_GATE_FADE,
|
|
216
|
+
DECLICK_IMPULSE_DB,
|
|
217
|
+
DECLICK_LEVELS,
|
|
218
|
+
DECLICK_MAX_IMPULSE,
|
|
219
|
+
DECLICK_SETTINGS,
|
|
220
|
+
DECLICK_WORD_WINDOW,
|
|
221
|
+
buildDeclickDecodeArgs,
|
|
222
|
+
buildDeclickEncodeArgs,
|
|
223
|
+
declickSamples,
|
|
224
|
+
declickSpeech,
|
|
225
|
+
describeDeclick,
|
|
226
|
+
findImpulses,
|
|
227
|
+
getDeclickGain,
|
|
228
|
+
getGateWindows,
|
|
229
|
+
getRunningMedian,
|
|
230
|
+
type ActiveDeclickLevel,
|
|
231
|
+
type DeclickLevel,
|
|
232
|
+
type DeclickReport,
|
|
233
|
+
type DeclickSettings,
|
|
234
|
+
type DeclickSpeechOptions,
|
|
235
|
+
type TimeSpan as DeclickSpan,
|
|
236
|
+
} from "./footage/declick.js";
|
|
209
237
|
export {
|
|
210
238
|
MIN_CLIP_SECONDS,
|
|
211
239
|
describeProbe,
|
|
@@ -295,6 +323,7 @@ export {
|
|
|
295
323
|
diffEdl,
|
|
296
324
|
edlSchema,
|
|
297
325
|
findEdlProblems,
|
|
326
|
+
findSegmentAt,
|
|
298
327
|
getEdlDuration,
|
|
299
328
|
getEdlJsonSchema,
|
|
300
329
|
getSegmentStarts,
|
|
@@ -307,6 +336,8 @@ export {
|
|
|
307
336
|
type BuildEdlOptions,
|
|
308
337
|
type Edl,
|
|
309
338
|
type EdlAudio,
|
|
339
|
+
type EdlCaption,
|
|
340
|
+
type EdlCaptionBounds,
|
|
310
341
|
type EdlClip,
|
|
311
342
|
type EdlSegment,
|
|
312
343
|
type SegmentMotion,
|
|
@@ -314,14 +345,23 @@ export {
|
|
|
314
345
|
export { findRetakes, splitFilmSentences, splitSentences, type RetakeKind, type RetakeSuggestion, type Sentence } from "./footage/sentences.js";
|
|
315
346
|
export {
|
|
316
347
|
CAPTION_SAFE_ZONES,
|
|
348
|
+
applySegmentCaption,
|
|
317
349
|
findMissingCaptionGlyphs,
|
|
350
|
+
getCaptionBounds,
|
|
351
|
+
getCaptionChunkLayouts,
|
|
352
|
+
getCaptionKeepsWithNext,
|
|
353
|
+
getFootageCaptionChunks,
|
|
318
354
|
getCaptionPresetLayout,
|
|
319
355
|
getCaptionSpans,
|
|
320
356
|
getFootageCaptionLayout,
|
|
357
|
+
getSegmentCaptionLayout,
|
|
358
|
+
isSameCaptionPlace,
|
|
321
359
|
phraseChunks,
|
|
322
360
|
type CaptionSpan,
|
|
361
|
+
type CaptionWordsFilm,
|
|
323
362
|
type MissingCaptionGlyphs,
|
|
324
363
|
type PhraseChunk,
|
|
364
|
+
type PhraseChunkOptions,
|
|
325
365
|
type SafeZone,
|
|
326
366
|
} from "./footage/captions.js";
|
|
327
367
|
export {
|
|
@@ -371,21 +411,36 @@ export {
|
|
|
371
411
|
DEFAULT_LOUDNESS,
|
|
372
412
|
buildLoudnessArgs,
|
|
373
413
|
buildLoudnessMeasureArgs,
|
|
414
|
+
buildMixArgs,
|
|
415
|
+
findLoudnessProblems,
|
|
416
|
+
formatDb,
|
|
417
|
+
getFirstMixAttempt,
|
|
374
418
|
getLoudnessFilter,
|
|
419
|
+
getMixFilter,
|
|
420
|
+
getMixGain,
|
|
421
|
+
getMixTolerance,
|
|
422
|
+
getNextMixAttempt,
|
|
375
423
|
isSilent,
|
|
376
424
|
measureLoudness,
|
|
425
|
+
MIX_ATTEMPTS,
|
|
426
|
+
MIX_ENCODE_HEADROOM,
|
|
427
|
+
MIX_LOUDNESS_TOLERANCE,
|
|
377
428
|
normalizeLoudness,
|
|
378
429
|
readLoudnessMeasurement,
|
|
379
430
|
type LoudnessMeasureOutcome,
|
|
380
431
|
type LoudnessMeasurement,
|
|
381
432
|
type LoudnessOutcome,
|
|
382
433
|
type LoudnessTarget,
|
|
434
|
+
type MixAttempt,
|
|
435
|
+
type MixLoudness,
|
|
436
|
+
type MixLoudnessTarget,
|
|
383
437
|
} from "./footage/loudness.js";
|
|
384
438
|
export {
|
|
385
439
|
buildCoverArgs,
|
|
386
440
|
buildFinishArgs,
|
|
387
441
|
clampCoverSeconds,
|
|
388
442
|
findFinishProblems,
|
|
443
|
+
findFinishVideoProblems,
|
|
389
444
|
getCoverPath,
|
|
390
445
|
getDefaultCoverSeconds,
|
|
391
446
|
isFastStart,
|
|
@@ -396,6 +451,7 @@ export {
|
|
|
396
451
|
readFilmFacts,
|
|
397
452
|
readTopLevelBoxes,
|
|
398
453
|
type FilmFacts,
|
|
454
|
+
type FinishVideo,
|
|
399
455
|
} from "./footage/publish.js";
|
|
400
456
|
export {
|
|
401
457
|
readFfmpegProgressSeconds,
|
|
@@ -412,6 +468,7 @@ export { FFMPEG_FAILURE_STDERR_LINES, formatFfmpegCommand, splitFilterGraph, typ
|
|
|
412
468
|
export { buildFfmpegFailureScript, FFMPEG_FAILURE_FILES, writeFfmpegFailure, type FfmpegFailureInput } from "./footage/ffmpeg-failure.js";
|
|
413
469
|
export {
|
|
414
470
|
estimateFootageFilm,
|
|
471
|
+
estimateSpeechRanges,
|
|
415
472
|
findCachedStep,
|
|
416
473
|
getDownloadPath,
|
|
417
474
|
type EstimateFootageOptions,
|
|
@@ -419,6 +476,19 @@ export {
|
|
|
419
476
|
type FootageEstimate,
|
|
420
477
|
type FootageEstimateItem,
|
|
421
478
|
} from "./footage/paid.js";
|
|
479
|
+
export {
|
|
480
|
+
DEFAULT_SPEECH_RANGE_MARGIN,
|
|
481
|
+
buildRangeAudioArgs,
|
|
482
|
+
buildRangeLayArgs,
|
|
483
|
+
getSpeechRangeCache,
|
|
484
|
+
getSpeechRangeWindows,
|
|
485
|
+
planSpeechRanges,
|
|
486
|
+
type LaidRange,
|
|
487
|
+
type SpeechRange,
|
|
488
|
+
type SpeechRangeClip,
|
|
489
|
+
type SpeechRangeWindow,
|
|
490
|
+
} from "./footage/speech-ranges.js";
|
|
491
|
+
export { isolateSpeechRanges, type IsolateSpeechRangesOptions, type IsolatedSpeech, type IsolatedSpeechRange } from "./footage/isolate-ranges.js";
|
|
422
492
|
export { RENDER_MIN_FREE_BYTES, findLowDiskProblems, getFreeBytes, getRenderTempDir, type FreeBytesReader } from "./footage/disk.js";
|
|
423
493
|
export { DRAFT_FILTERS, REQUIRED_DECODERS, REQUIRED_FILTERS, checkFootageTools, findBrowserProblem, readFfmpegListing, type FootageToolsOptions } from "./footage/tools.js";
|
|
424
494
|
export {
|
|
@@ -429,6 +499,7 @@ export {
|
|
|
429
499
|
findFootageMusic,
|
|
430
500
|
getEdlPath,
|
|
431
501
|
getFrame,
|
|
502
|
+
getSpeechChainFiles,
|
|
432
503
|
prepareFootage,
|
|
433
504
|
getFootageSentences,
|
|
434
505
|
readEdlFile,
|
|
@@ -437,6 +508,7 @@ export {
|
|
|
437
508
|
renderFootageFilm,
|
|
438
509
|
transcribeFootage,
|
|
439
510
|
type FinishedFootage,
|
|
511
|
+
type FinishedMix,
|
|
440
512
|
type FootageBrand,
|
|
441
513
|
type FootageMusicLookup,
|
|
442
514
|
type FootageResult,
|