@remotion/renderer 4.0.119 → 4.0.121
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/dist/assets/get-audio-channels.d.ts +8 -2
- package/dist/assets/get-audio-channels.js +18 -6
- package/dist/browser/BrowserPage.js +29 -10
- package/dist/call-ffmpeg.d.ts +4 -2
- package/dist/call-ffmpeg.js +14 -4
- package/dist/can-concatenate-seamlessly.d.ts +3 -0
- package/dist/can-concatenate-seamlessly.js +7 -0
- package/dist/client.d.ts +135 -45
- package/dist/combine-audio.d.ts +6 -1
- package/dist/combine-audio.js +33 -12
- package/dist/combine-video-streams-seamlessly.d.ts +3 -0
- package/dist/combine-video-streams-seamlessly.js +8 -0
- package/dist/combine-video-streams.d.ts +4 -1
- package/dist/combine-video-streams.js +9 -3
- package/dist/combine-videos.d.ts +1 -0
- package/dist/combine-videos.js +2 -1
- package/dist/compositor/compose.d.ts +1 -1
- package/dist/compositor/compose.js +7 -2
- package/dist/compositor/compositor.d.ts +9 -2
- package/dist/compositor/compositor.js +19 -8
- package/dist/compositor/get-executable-path.d.ts +6 -1
- package/dist/compositor/get-executable-path.js +2 -2
- package/dist/compress-audio.d.ts +13 -0
- package/dist/compress-audio.js +28 -0
- package/dist/copy-to-clipboard.d.ts +1 -1
- package/dist/copy-to-clipboard.js +2 -1
- package/dist/create-audio.d.ts +21 -0
- package/dist/create-audio.js +82 -0
- package/dist/create-combined-video.d.ts +18 -0
- package/dist/create-combined-video.js +27 -0
- package/dist/create-silent-audio.d.ts +2 -1
- package/dist/create-silent-audio.js +2 -1
- package/dist/extract-audio.d.ts +1 -0
- package/dist/extract-audio.js +2 -1
- package/dist/get-compositions.js +5 -2
- package/dist/get-extension-from-audio-codec.d.ts +2 -0
- package/dist/get-extension-from-audio-codec.js +19 -0
- package/dist/get-silent-parts.d.ts +3 -2
- package/dist/get-silent-parts.js +2 -1
- package/dist/get-video-metadata.d.ts +1 -0
- package/dist/get-video-metadata.js +2 -1
- package/dist/guess-extension-for-media.d.ts +2 -1
- package/dist/guess-extension-for-media.js +2 -1
- package/dist/index.d.ts +78 -23
- package/dist/merge-audio-track.d.ts +1 -0
- package/dist/merge-audio-track.js +11 -2
- package/dist/mux-video-and-audio.d.ts +5 -1
- package/dist/mux-video-and-audio.js +12 -3
- package/dist/offthread-video-server.d.ts +2 -1
- package/dist/offthread-video-server.js +12 -6
- package/dist/options/binaries-directory.d.ts +15 -0
- package/dist/options/binaries-directory.js +35 -0
- package/dist/options/index.d.ts +21 -6
- package/dist/options/index.js +2 -0
- package/dist/options/log-level.d.ts +2 -2
- package/dist/options/option.d.ts +1 -1
- package/dist/options/options-map.d.ts +114 -39
- package/dist/options/options-map.js +6 -0
- package/dist/options/prefer-lossless.d.ts +12 -2
- package/dist/options/prefer-lossless.js +19 -4
- package/dist/options/x264-preset.d.ts +2 -2
- package/dist/prepare-server.d.ts +2 -1
- package/dist/prepare-server.js +3 -1
- package/dist/preprocess-audio-track.d.ts +1 -0
- package/dist/preprocess-audio-track.js +9 -3
- package/dist/prespawn-ffmpeg.d.ts +1 -0
- package/dist/prespawn-ffmpeg.js +1 -0
- package/dist/provide-screenshot.d.ts +2 -2
- package/dist/provide-screenshot.js +2 -1
- package/dist/puppeteer-screenshot.d.ts +1 -1
- package/dist/puppeteer-screenshot.js +1 -0
- package/dist/render-frames.js +7 -3
- package/dist/render-media.d.ts +3 -1
- package/dist/render-media.js +7 -2
- package/dist/render-still.js +3 -1
- package/dist/screenshot-dom-element.d.ts +2 -2
- package/dist/screenshot-dom-element.js +2 -1
- package/dist/screenshot-task.d.ts +2 -2
- package/dist/screenshot-task.js +11 -9
- package/dist/select-composition.d.ts +1 -1
- package/dist/select-composition.js +5 -2
- package/dist/serve-static.d.ts +1 -0
- package/dist/serve-static.js +1 -0
- package/dist/should-seamless.d.ts +3 -0
- package/dist/should-seamless.js +7 -0
- package/dist/stitch-frames-to-video.d.ts +4 -1
- package/dist/stitch-frames-to-video.js +9 -3
- package/dist/take-frame-and-compose.d.ts +0 -1
- package/dist/take-frame-and-compose.js +1 -0
- package/package.json +9 -9
package/dist/options/index.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.allOptions = void 0;
|
|
4
4
|
const audio_bitrate_1 = require("./audio-bitrate");
|
|
5
5
|
const beep_on_finish_1 = require("./beep-on-finish");
|
|
6
|
+
const binaries_directory_1 = require("./binaries-directory");
|
|
6
7
|
const color_space_1 = require("./color-space");
|
|
7
8
|
const crf_1 = require("./crf");
|
|
8
9
|
const delete_after_1 = require("./delete-after");
|
|
@@ -54,4 +55,5 @@ exports.allOptions = {
|
|
|
54
55
|
delayRenderTimeoutInMillisecondsOption: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
55
56
|
headlessOption: headless_1.headlessOption,
|
|
56
57
|
overwriteOption: overwrite_1.overwriteOption,
|
|
58
|
+
binariesDirectoryOption: binaries_directory_1.binariesDirectoryOption,
|
|
57
59
|
};
|
|
@@ -8,9 +8,9 @@ export declare const logLevelOption: {
|
|
|
8
8
|
getValue: ({ commandLine }: {
|
|
9
9
|
commandLine: Record<string, unknown>;
|
|
10
10
|
}) => {
|
|
11
|
-
value: "
|
|
11
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
12
12
|
source: string;
|
|
13
13
|
};
|
|
14
14
|
setConfig: (newLogLevel: LogLevel) => void;
|
|
15
|
-
type: "
|
|
15
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
16
16
|
};
|
package/dist/options/option.d.ts
CHANGED
|
@@ -72,17 +72,17 @@ export declare const optionsMap: {
|
|
|
72
72
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
73
73
|
ssrName: "x264Preset";
|
|
74
74
|
docLink: string;
|
|
75
|
-
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
75
|
+
type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
76
76
|
getValue: ({ commandLine }: {
|
|
77
77
|
commandLine: Record<string, unknown>;
|
|
78
78
|
}) => {
|
|
79
|
-
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
79
|
+
value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
80
80
|
source: string;
|
|
81
81
|
} | {
|
|
82
82
|
value: null;
|
|
83
83
|
source: string;
|
|
84
84
|
};
|
|
85
|
-
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
85
|
+
setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
86
86
|
};
|
|
87
87
|
readonly audioBitrate: {
|
|
88
88
|
name: string;
|
|
@@ -213,11 +213,11 @@ export declare const optionsMap: {
|
|
|
213
213
|
getValue: ({ commandLine }: {
|
|
214
214
|
commandLine: Record<string, unknown>;
|
|
215
215
|
}) => {
|
|
216
|
-
value: "
|
|
216
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
217
217
|
source: string;
|
|
218
218
|
};
|
|
219
|
-
setConfig: (newLogLevel: "
|
|
220
|
-
type: "
|
|
219
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
220
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
221
221
|
};
|
|
222
222
|
readonly timeoutInMilliseconds: {
|
|
223
223
|
name: string;
|
|
@@ -234,6 +234,21 @@ export declare const optionsMap: {
|
|
|
234
234
|
};
|
|
235
235
|
setConfig: (value: number) => void;
|
|
236
236
|
};
|
|
237
|
+
readonly binariesDirectory: {
|
|
238
|
+
name: string;
|
|
239
|
+
cliFlag: "binaries-directory";
|
|
240
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
241
|
+
ssrName: "binariesDirectory";
|
|
242
|
+
docLink: string;
|
|
243
|
+
type: string | null;
|
|
244
|
+
getValue: ({ commandLine }: {
|
|
245
|
+
commandLine: Record<string, unknown>;
|
|
246
|
+
}) => {
|
|
247
|
+
source: string;
|
|
248
|
+
value: string | null;
|
|
249
|
+
};
|
|
250
|
+
setConfig: (value: string | null) => void;
|
|
251
|
+
};
|
|
237
252
|
};
|
|
238
253
|
readonly renderStill: {
|
|
239
254
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -278,11 +293,11 @@ export declare const optionsMap: {
|
|
|
278
293
|
getValue: ({ commandLine }: {
|
|
279
294
|
commandLine: Record<string, unknown>;
|
|
280
295
|
}) => {
|
|
281
|
-
value: "
|
|
296
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
282
297
|
source: string;
|
|
283
298
|
};
|
|
284
|
-
setConfig: (newLogLevel: "
|
|
285
|
-
type: "
|
|
299
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
300
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
286
301
|
};
|
|
287
302
|
readonly timeoutInMilliseconds: {
|
|
288
303
|
name: string;
|
|
@@ -299,6 +314,21 @@ export declare const optionsMap: {
|
|
|
299
314
|
};
|
|
300
315
|
setConfig: (value: number) => void;
|
|
301
316
|
};
|
|
317
|
+
readonly binariesDirectory: {
|
|
318
|
+
name: string;
|
|
319
|
+
cliFlag: "binaries-directory";
|
|
320
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
321
|
+
ssrName: "binariesDirectory";
|
|
322
|
+
docLink: string;
|
|
323
|
+
type: string | null;
|
|
324
|
+
getValue: ({ commandLine }: {
|
|
325
|
+
commandLine: Record<string, unknown>;
|
|
326
|
+
}) => {
|
|
327
|
+
source: string;
|
|
328
|
+
value: string | null;
|
|
329
|
+
};
|
|
330
|
+
setConfig: (value: string | null) => void;
|
|
331
|
+
};
|
|
302
332
|
};
|
|
303
333
|
readonly getCompositions: {
|
|
304
334
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -328,11 +358,11 @@ export declare const optionsMap: {
|
|
|
328
358
|
getValue: ({ commandLine }: {
|
|
329
359
|
commandLine: Record<string, unknown>;
|
|
330
360
|
}) => {
|
|
331
|
-
value: "
|
|
361
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
332
362
|
source: string;
|
|
333
363
|
};
|
|
334
|
-
setConfig: (newLogLevel: "
|
|
335
|
-
type: "
|
|
364
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
365
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
336
366
|
};
|
|
337
367
|
readonly timeoutInMilliseconds: {
|
|
338
368
|
name: string;
|
|
@@ -349,6 +379,21 @@ export declare const optionsMap: {
|
|
|
349
379
|
};
|
|
350
380
|
setConfig: (value: number) => void;
|
|
351
381
|
};
|
|
382
|
+
readonly binariesDirectory: {
|
|
383
|
+
name: string;
|
|
384
|
+
cliFlag: "binaries-directory";
|
|
385
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
386
|
+
ssrName: "binariesDirectory";
|
|
387
|
+
docLink: string;
|
|
388
|
+
type: string | null;
|
|
389
|
+
getValue: ({ commandLine }: {
|
|
390
|
+
commandLine: Record<string, unknown>;
|
|
391
|
+
}) => {
|
|
392
|
+
source: string;
|
|
393
|
+
value: string | null;
|
|
394
|
+
};
|
|
395
|
+
setConfig: (value: string | null) => void;
|
|
396
|
+
};
|
|
352
397
|
};
|
|
353
398
|
readonly selectComposition: {
|
|
354
399
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -378,11 +423,11 @@ export declare const optionsMap: {
|
|
|
378
423
|
getValue: ({ commandLine }: {
|
|
379
424
|
commandLine: Record<string, unknown>;
|
|
380
425
|
}) => {
|
|
381
|
-
value: "
|
|
426
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
382
427
|
source: string;
|
|
383
428
|
};
|
|
384
|
-
setConfig: (newLogLevel: "
|
|
385
|
-
type: "
|
|
429
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
430
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
386
431
|
};
|
|
387
432
|
readonly timeoutInMilliseconds: {
|
|
388
433
|
name: string;
|
|
@@ -399,6 +444,21 @@ export declare const optionsMap: {
|
|
|
399
444
|
};
|
|
400
445
|
setConfig: (value: number) => void;
|
|
401
446
|
};
|
|
447
|
+
readonly binariesDirectory: {
|
|
448
|
+
name: string;
|
|
449
|
+
cliFlag: "binaries-directory";
|
|
450
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
451
|
+
ssrName: "binariesDirectory";
|
|
452
|
+
docLink: string;
|
|
453
|
+
type: string | null;
|
|
454
|
+
getValue: ({ commandLine }: {
|
|
455
|
+
commandLine: Record<string, unknown>;
|
|
456
|
+
}) => {
|
|
457
|
+
source: string;
|
|
458
|
+
value: string | null;
|
|
459
|
+
};
|
|
460
|
+
setConfig: (value: string | null) => void;
|
|
461
|
+
};
|
|
402
462
|
};
|
|
403
463
|
readonly renderFrames: {
|
|
404
464
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -443,11 +503,11 @@ export declare const optionsMap: {
|
|
|
443
503
|
getValue: ({ commandLine }: {
|
|
444
504
|
commandLine: Record<string, unknown>;
|
|
445
505
|
}) => {
|
|
446
|
-
value: "
|
|
506
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
447
507
|
source: string;
|
|
448
508
|
};
|
|
449
|
-
setConfig: (newLogLevel: "
|
|
450
|
-
type: "
|
|
509
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
510
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
451
511
|
};
|
|
452
512
|
readonly timeoutInMilliseconds: {
|
|
453
513
|
name: string;
|
|
@@ -464,6 +524,21 @@ export declare const optionsMap: {
|
|
|
464
524
|
};
|
|
465
525
|
setConfig: (value: number) => void;
|
|
466
526
|
};
|
|
527
|
+
readonly binariesDirectory: {
|
|
528
|
+
name: string;
|
|
529
|
+
cliFlag: "binaries-directory";
|
|
530
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
531
|
+
ssrName: "binariesDirectory";
|
|
532
|
+
docLink: string;
|
|
533
|
+
type: string | null;
|
|
534
|
+
getValue: ({ commandLine }: {
|
|
535
|
+
commandLine: Record<string, unknown>;
|
|
536
|
+
}) => {
|
|
537
|
+
source: string;
|
|
538
|
+
value: string | null;
|
|
539
|
+
};
|
|
540
|
+
setConfig: (value: string | null) => void;
|
|
541
|
+
};
|
|
467
542
|
};
|
|
468
543
|
readonly renderMediaOnLambda: {
|
|
469
544
|
readonly offthreadVideoCacheSizeInBytes: {
|
|
@@ -559,17 +634,17 @@ export declare const optionsMap: {
|
|
|
559
634
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
560
635
|
ssrName: "x264Preset";
|
|
561
636
|
docLink: string;
|
|
562
|
-
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
637
|
+
type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
563
638
|
getValue: ({ commandLine }: {
|
|
564
639
|
commandLine: Record<string, unknown>;
|
|
565
640
|
}) => {
|
|
566
|
-
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
641
|
+
value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
567
642
|
source: string;
|
|
568
643
|
} | {
|
|
569
644
|
value: null;
|
|
570
645
|
source: string;
|
|
571
646
|
};
|
|
572
|
-
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
647
|
+
setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
573
648
|
};
|
|
574
649
|
readonly encodingMaxRate: {
|
|
575
650
|
name: string;
|
|
@@ -646,11 +721,11 @@ export declare const optionsMap: {
|
|
|
646
721
|
getValue: ({ commandLine }: {
|
|
647
722
|
commandLine: Record<string, unknown>;
|
|
648
723
|
}) => {
|
|
649
|
-
value: "
|
|
724
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
650
725
|
source: string;
|
|
651
726
|
};
|
|
652
|
-
setConfig: (newLogLevel: "
|
|
653
|
-
type: "
|
|
727
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
728
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
654
729
|
};
|
|
655
730
|
readonly timeoutInMilliseconds: {
|
|
656
731
|
name: string;
|
|
@@ -711,11 +786,11 @@ export declare const optionsMap: {
|
|
|
711
786
|
getValue: ({ commandLine }: {
|
|
712
787
|
commandLine: Record<string, unknown>;
|
|
713
788
|
}) => {
|
|
714
|
-
value: "
|
|
789
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
715
790
|
source: string;
|
|
716
791
|
};
|
|
717
|
-
setConfig: (newLogLevel: "
|
|
718
|
-
type: "
|
|
792
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
793
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
719
794
|
};
|
|
720
795
|
readonly deleteAfter: {
|
|
721
796
|
name: string;
|
|
@@ -794,11 +869,11 @@ export declare const optionsMap: {
|
|
|
794
869
|
getValue: ({ commandLine }: {
|
|
795
870
|
commandLine: Record<string, unknown>;
|
|
796
871
|
}) => {
|
|
797
|
-
value: "
|
|
872
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
798
873
|
source: string;
|
|
799
874
|
};
|
|
800
|
-
setConfig: (newLogLevel: "
|
|
801
|
-
type: "
|
|
875
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
876
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
802
877
|
};
|
|
803
878
|
readonly timeoutInMilliseconds: {
|
|
804
879
|
name: string;
|
|
@@ -907,17 +982,17 @@ export declare const optionsMap: {
|
|
|
907
982
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
908
983
|
ssrName: "x264Preset";
|
|
909
984
|
docLink: string;
|
|
910
|
-
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
985
|
+
type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
911
986
|
getValue: ({ commandLine }: {
|
|
912
987
|
commandLine: Record<string, unknown>;
|
|
913
988
|
}) => {
|
|
914
|
-
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
989
|
+
value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
915
990
|
source: string;
|
|
916
991
|
} | {
|
|
917
992
|
value: null;
|
|
918
993
|
source: string;
|
|
919
994
|
};
|
|
920
|
-
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
995
|
+
setConfig: (profile: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
921
996
|
};
|
|
922
997
|
readonly encodingMaxRate: {
|
|
923
998
|
name: string;
|
|
@@ -979,11 +1054,11 @@ export declare const optionsMap: {
|
|
|
979
1054
|
getValue: ({ commandLine }: {
|
|
980
1055
|
commandLine: Record<string, unknown>;
|
|
981
1056
|
}) => {
|
|
982
|
-
value: "
|
|
1057
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
983
1058
|
source: string;
|
|
984
1059
|
};
|
|
985
|
-
setConfig: (newLogLevel: "
|
|
986
|
-
type: "
|
|
1060
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
1061
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
987
1062
|
};
|
|
988
1063
|
readonly delayRenderTimeoutInMilliseconds: {
|
|
989
1064
|
name: string;
|
|
@@ -1089,11 +1164,11 @@ export declare const optionsMap: {
|
|
|
1089
1164
|
getValue: ({ commandLine }: {
|
|
1090
1165
|
commandLine: Record<string, unknown>;
|
|
1091
1166
|
}) => {
|
|
1092
|
-
value: "
|
|
1167
|
+
value: "error" | "verbose" | "info" | "warn";
|
|
1093
1168
|
source: string;
|
|
1094
1169
|
};
|
|
1095
|
-
setConfig: (newLogLevel: "
|
|
1096
|
-
type: "
|
|
1170
|
+
setConfig: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
1171
|
+
type: "error" | "verbose" | "info" | "warn";
|
|
1097
1172
|
};
|
|
1098
1173
|
readonly scale: {
|
|
1099
1174
|
name: string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.optionsMap = void 0;
|
|
4
4
|
const audio_bitrate_1 = require("./audio-bitrate");
|
|
5
|
+
const binaries_directory_1 = require("./binaries-directory");
|
|
5
6
|
const color_space_1 = require("./color-space");
|
|
6
7
|
const crf_1 = require("./crf");
|
|
7
8
|
const delete_after_1 = require("./delete-after");
|
|
@@ -35,28 +36,33 @@ exports.optionsMap = {
|
|
|
35
36
|
muted: mute_1.mutedOption,
|
|
36
37
|
logLevel: log_level_1.logLevelOption,
|
|
37
38
|
timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
39
|
+
binariesDirectory: binaries_directory_1.binariesDirectoryOption,
|
|
38
40
|
},
|
|
39
41
|
renderStill: {
|
|
40
42
|
offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
41
43
|
jpegQuality: jpeg_quality_1.jpegQualityOption,
|
|
42
44
|
logLevel: log_level_1.logLevelOption,
|
|
43
45
|
timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
46
|
+
binariesDirectory: binaries_directory_1.binariesDirectoryOption,
|
|
44
47
|
},
|
|
45
48
|
getCompositions: {
|
|
46
49
|
offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
47
50
|
logLevel: log_level_1.logLevelOption,
|
|
48
51
|
timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
52
|
+
binariesDirectory: binaries_directory_1.binariesDirectoryOption,
|
|
49
53
|
},
|
|
50
54
|
selectComposition: {
|
|
51
55
|
offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
52
56
|
logLevel: log_level_1.logLevelOption,
|
|
53
57
|
timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
58
|
+
binariesDirectory: binaries_directory_1.binariesDirectoryOption,
|
|
54
59
|
},
|
|
55
60
|
renderFrames: {
|
|
56
61
|
offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
57
62
|
jpegQuality: jpeg_quality_1.jpegQualityOption,
|
|
58
63
|
logLevel: log_level_1.logLevelOption,
|
|
59
64
|
timeoutInMilliseconds: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
65
|
+
binariesDirectory: binaries_directory_1.binariesDirectoryOption,
|
|
60
66
|
},
|
|
61
67
|
renderMediaOnLambda: {
|
|
62
68
|
offthreadVideoCacheSizeInBytes: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const preferLosslessAudioOption: {
|
|
2
2
|
name: string;
|
|
3
3
|
cliFlag: "prefer-lossless";
|
|
4
|
-
description: () =>
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
docLink: string;
|
|
6
6
|
type: boolean;
|
|
7
7
|
ssrName: "preferLossless";
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
value: true;
|
|
12
|
+
source: string;
|
|
13
|
+
} | {
|
|
14
|
+
value: false;
|
|
15
|
+
source: string;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (val: boolean) => void;
|
|
8
18
|
};
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.preferLosslessAudioOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'prefer-lossless';
|
|
6
|
+
let input = false;
|
|
7
|
+
exports.preferLosslessAudioOption = {
|
|
5
8
|
name: 'Prefer lossless',
|
|
6
|
-
cliFlag
|
|
7
|
-
description: () =>
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Uses a lossless audio codec, if one is available for the codec. If you set", (0, jsx_runtime_1.jsx)("code", { children: "audioCodec" }), ", it takes priority over", ' ', (0, jsx_runtime_1.jsx)("code", { children: "preferLossless" }), "."] })),
|
|
8
11
|
docLink: 'https://www.remotion.dev/docs/encoding',
|
|
9
12
|
type: false,
|
|
10
13
|
ssrName: 'preferLossless',
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag]) {
|
|
16
|
+
return { value: true, source: 'cli' };
|
|
17
|
+
}
|
|
18
|
+
if (input === true) {
|
|
19
|
+
return { value: true, source: 'config' };
|
|
20
|
+
}
|
|
21
|
+
return { value: false, source: 'default' };
|
|
22
|
+
},
|
|
23
|
+
setConfig: (val) => {
|
|
24
|
+
input = val;
|
|
25
|
+
},
|
|
11
26
|
};
|
|
@@ -11,11 +11,11 @@ export declare const x264Option: {
|
|
|
11
11
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
ssrName: "x264Preset";
|
|
13
13
|
docLink: string;
|
|
14
|
-
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
14
|
+
type: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
15
15
|
getValue: ({ commandLine }: {
|
|
16
16
|
commandLine: Record<string, unknown>;
|
|
17
17
|
}) => {
|
|
18
|
-
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "
|
|
18
|
+
value: "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
19
19
|
source: string;
|
|
20
20
|
} | {
|
|
21
21
|
value: null;
|
package/dist/prepare-server.d.ts
CHANGED
|
@@ -19,8 +19,9 @@ type PrepareServerOptions = {
|
|
|
19
19
|
logLevel: LogLevel;
|
|
20
20
|
indent: boolean;
|
|
21
21
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
22
|
+
binariesDirectory: string | null;
|
|
22
23
|
};
|
|
23
|
-
export declare const prepareServer: ({ webpackConfigOrServeUrl, port, remotionRoot, concurrency, logLevel, indent, offthreadVideoCacheSizeInBytes, }: PrepareServerOptions) => Promise<RemotionServer>;
|
|
24
|
+
export declare const prepareServer: ({ webpackConfigOrServeUrl, port, remotionRoot, concurrency, logLevel, indent, offthreadVideoCacheSizeInBytes, binariesDirectory, }: PrepareServerOptions) => Promise<RemotionServer>;
|
|
24
25
|
export declare const makeOrReuseServer: (server: RemotionServer | undefined, config: PrepareServerOptions, { onDownload, onError, }: {
|
|
25
26
|
onError: (err: Error) => void;
|
|
26
27
|
onDownload: RenderMediaOnDownload | null;
|
package/dist/prepare-server.js
CHANGED
|
@@ -15,7 +15,7 @@ const logger_1 = require("./logger");
|
|
|
15
15
|
const serve_static_1 = require("./serve-static");
|
|
16
16
|
const symbolicate_stacktrace_1 = require("./symbolicate-stacktrace");
|
|
17
17
|
const wait_for_symbolication_error_to_be_done_1 = require("./wait-for-symbolication-error-to-be-done");
|
|
18
|
-
const prepareServer = async ({ webpackConfigOrServeUrl, port, remotionRoot, concurrency, logLevel, indent, offthreadVideoCacheSizeInBytes, }) => {
|
|
18
|
+
const prepareServer = async ({ webpackConfigOrServeUrl, port, remotionRoot, concurrency, logLevel, indent, offthreadVideoCacheSizeInBytes, binariesDirectory, }) => {
|
|
19
19
|
const downloadMap = (0, download_map_1.makeDownloadMap)();
|
|
20
20
|
logger_1.Log.verbose({ indent, logLevel }, 'Created directory for temporary files', downloadMap.assetDir);
|
|
21
21
|
if ((0, is_serve_url_1.isServeUrl)(webpackConfigOrServeUrl)) {
|
|
@@ -27,6 +27,7 @@ const prepareServer = async ({ webpackConfigOrServeUrl, port, remotionRoot, conc
|
|
|
27
27
|
logLevel,
|
|
28
28
|
indent,
|
|
29
29
|
offthreadVideoCacheSizeInBytes,
|
|
30
|
+
binariesDirectory,
|
|
30
31
|
});
|
|
31
32
|
let remoteSourceMap = null;
|
|
32
33
|
(0, symbolicate_stacktrace_1.getSourceMapFromRemoteUrl)((0, get_bundle_url_from_serve_url_1.getBundleMapUrlFromServeUrl)(webpackConfigOrServeUrl))
|
|
@@ -72,6 +73,7 @@ const prepareServer = async ({ webpackConfigOrServeUrl, port, remotionRoot, conc
|
|
|
72
73
|
logLevel,
|
|
73
74
|
indent,
|
|
74
75
|
offthreadVideoCacheSizeInBytes,
|
|
76
|
+
binariesDirectory,
|
|
75
77
|
});
|
|
76
78
|
return Promise.resolve({
|
|
77
79
|
closeServer: async (force) => {
|
|
@@ -8,8 +8,14 @@ const ffmpeg_filter_file_1 = require("./ffmpeg-filter-file");
|
|
|
8
8
|
const p_limit_1 = require("./p-limit");
|
|
9
9
|
const resolve_asset_src_1 = require("./resolve-asset-src");
|
|
10
10
|
const sample_rate_1 = require("./sample-rate");
|
|
11
|
-
const preprocessAudioTrackUnlimited = async ({ outName, asset, expectedFrames, fps, downloadMap, indent, logLevel, }) => {
|
|
12
|
-
const { channels, duration } = await (0, get_audio_channels_1.getAudioChannelsAndDuration)(
|
|
11
|
+
const preprocessAudioTrackUnlimited = async ({ outName, asset, expectedFrames, fps, downloadMap, indent, logLevel, binariesDirectory, }) => {
|
|
12
|
+
const { channels, duration } = await (0, get_audio_channels_1.getAudioChannelsAndDuration)({
|
|
13
|
+
downloadMap,
|
|
14
|
+
src: (0, resolve_asset_src_1.resolveAssetSrc)(asset.src),
|
|
15
|
+
indent,
|
|
16
|
+
logLevel,
|
|
17
|
+
binariesDirectory,
|
|
18
|
+
});
|
|
13
19
|
const filter = (0, calculate_ffmpeg_filters_1.calculateFfmpegFilter)({
|
|
14
20
|
asset,
|
|
15
21
|
durationInFrames: expectedFrames,
|
|
@@ -29,7 +35,7 @@ const preprocessAudioTrackUnlimited = async ({ outName, asset, expectedFrames, f
|
|
|
29
35
|
['-ar', String(sample_rate_1.DEFAULT_SAMPLE_RATE)],
|
|
30
36
|
['-y', outName],
|
|
31
37
|
].flat(2);
|
|
32
|
-
await (0, call_ffmpeg_1.callFf)({ bin: 'ffmpeg', args, indent, logLevel });
|
|
38
|
+
await (0, call_ffmpeg_1.callFf)({ bin: 'ffmpeg', args, indent, logLevel, binariesDirectory });
|
|
33
39
|
cleanup();
|
|
34
40
|
return { outName, filter };
|
|
35
41
|
};
|
|
@@ -37,6 +37,7 @@ type PreStitcherOptions = {
|
|
|
37
37
|
encodingBufferSize: string | null;
|
|
38
38
|
indent: boolean;
|
|
39
39
|
colorSpace: ColorSpace;
|
|
40
|
+
binariesDirectory: string | null;
|
|
40
41
|
};
|
|
41
42
|
export declare const prespawnFfmpeg: (options: PreStitcherOptions) => {
|
|
42
43
|
task: import("execa").ExecaChildProcess<string>;
|
package/dist/prespawn-ffmpeg.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { ClipRegion } from 'remotion/no-react';
|
|
3
2
|
import type { Page } from './browser/BrowserPage';
|
|
4
3
|
import type { StillImageFormat } from './image-format';
|
|
5
|
-
export declare const provideScreenshot: ({ page, imageFormat, options, jpegQuality, height, width, clipRegion, timeoutInMilliseconds, }: {
|
|
4
|
+
export declare const provideScreenshot: ({ page, imageFormat, options, jpegQuality, height, width, clipRegion, timeoutInMilliseconds, scale, }: {
|
|
6
5
|
page: Page;
|
|
7
6
|
imageFormat: StillImageFormat;
|
|
8
7
|
jpegQuality: number | undefined;
|
|
@@ -14,4 +13,5 @@ export declare const provideScreenshot: ({ page, imageFormat, options, jpegQuali
|
|
|
14
13
|
width: number;
|
|
15
14
|
clipRegion: ClipRegion | null;
|
|
16
15
|
timeoutInMilliseconds: number;
|
|
16
|
+
scale: number;
|
|
17
17
|
}) => Promise<Buffer>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.provideScreenshot = void 0;
|
|
4
4
|
const screenshot_dom_element_1 = require("./screenshot-dom-element");
|
|
5
|
-
const provideScreenshot = ({ page, imageFormat, options, jpegQuality, height, width, clipRegion, timeoutInMilliseconds, }) => {
|
|
5
|
+
const provideScreenshot = ({ page, imageFormat, options, jpegQuality, height, width, clipRegion, timeoutInMilliseconds, scale, }) => {
|
|
6
6
|
return (0, screenshot_dom_element_1.screenshotDOMElement)({
|
|
7
7
|
page,
|
|
8
8
|
opts: {
|
|
@@ -14,6 +14,7 @@ const provideScreenshot = ({ page, imageFormat, options, jpegQuality, height, wi
|
|
|
14
14
|
width,
|
|
15
15
|
clipRegion,
|
|
16
16
|
timeoutInMilliseconds,
|
|
17
|
+
scale,
|
|
17
18
|
});
|
|
18
19
|
};
|
|
19
20
|
exports.provideScreenshot = provideScreenshot;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { ClipRegion } from 'remotion/no-react';
|
|
3
2
|
import type { Page } from './browser/BrowserPage';
|
|
4
3
|
import type { StillImageFormat } from './image-format';
|
|
@@ -11,4 +10,5 @@ export declare const screenshot: (options: {
|
|
|
11
10
|
width: number;
|
|
12
11
|
height: number;
|
|
13
12
|
clipRegion: ClipRegion | null;
|
|
13
|
+
scale: number;
|
|
14
14
|
}) => Promise<Buffer | string>;
|