@remotion/renderer 4.0.512 → 4.0.514
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/client.d.ts +62 -0
- package/dist/compositor/compositor.d.ts +7 -0
- package/dist/compositor/compositor.js +45 -1
- package/dist/ensure-browser.d.ts +2 -0
- package/dist/esm/client.mjs +939 -839
- package/dist/esm/index.mjs +52 -8
- package/dist/index.d.ts +12 -0
- package/dist/offthread-video-server.js +3 -8
- package/dist/options/ask-ai.d.ts +2 -0
- package/dist/options/ask-ai.js +7 -0
- package/dist/options/beep-on-finish.d.ts +2 -0
- package/dist/options/beep-on-finish.js +7 -0
- package/dist/options/cross-site-isolation.d.ts +2 -0
- package/dist/options/cross-site-isolation.js +7 -0
- package/dist/options/index.d.ts +34 -0
- package/dist/options/index.js +2 -0
- package/dist/options/interactivity.d.ts +2 -0
- package/dist/options/interactivity.js +7 -0
- package/dist/options/keyboard-shortcuts.d.ts +2 -0
- package/dist/options/keyboard-shortcuts.js +7 -0
- package/dist/options/latency-hint.d.ts +2 -0
- package/dist/options/latency-hint.js +4 -0
- package/dist/options/log-level.d.ts +2 -0
- package/dist/options/log-level.js +7 -0
- package/dist/options/number-of-shared-audio-tags.d.ts +2 -0
- package/dist/options/number-of-shared-audio-tags.js +7 -0
- package/dist/options/option.d.ts +1 -0
- package/dist/options/options-map.d.ts +28 -0
- package/dist/options/rspack.d.ts +2 -0
- package/dist/options/rspack.js +7 -0
- package/dist/render-frames.js +8 -2
- package/package.json +13 -13
package/dist/esm/client.mjs
CHANGED
|
@@ -304,17 +304,56 @@ var isValidLogLevel = (level) => {
|
|
|
304
304
|
return getNumberForLogLevel(level) > -1;
|
|
305
305
|
};
|
|
306
306
|
|
|
307
|
-
// src/options/
|
|
307
|
+
// src/options/allow-html-in-canvas.tsx
|
|
308
308
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
309
|
+
var allowHtmlInCanvasEnabled = false;
|
|
310
|
+
var cliFlag = "allow-html-in-canvas";
|
|
311
|
+
var allowHtmlInCanvasOption = {
|
|
312
|
+
name: "Allow HTML-in-canvas for client-side rendering",
|
|
313
|
+
cliFlag,
|
|
314
|
+
description: () => /* @__PURE__ */ jsxs(Fragment, {
|
|
315
|
+
children: [
|
|
316
|
+
"When client-side rendering is enabled in the Studio, allow the experimental Chromium HTML-in-canvas API to be used for capturing frames. See",
|
|
317
|
+
" ",
|
|
318
|
+
/* @__PURE__ */ jsx("a", {
|
|
319
|
+
href: "/docs/client-side-rendering/html-in-canvas",
|
|
320
|
+
children: "HTML-in-canvas docs"
|
|
321
|
+
}),
|
|
322
|
+
"."
|
|
323
|
+
]
|
|
324
|
+
}),
|
|
325
|
+
ssrName: null,
|
|
326
|
+
docLink: "https://www.remotion.dev/docs/client-side-rendering/html-in-canvas",
|
|
327
|
+
type: false,
|
|
328
|
+
getValue: ({ commandLine }) => {
|
|
329
|
+
if (commandLine[cliFlag] !== null) {
|
|
330
|
+
return {
|
|
331
|
+
value: commandLine[cliFlag],
|
|
332
|
+
source: "cli"
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
return {
|
|
336
|
+
value: allowHtmlInCanvasEnabled,
|
|
337
|
+
source: "config"
|
|
338
|
+
};
|
|
339
|
+
},
|
|
340
|
+
setConfig(value) {
|
|
341
|
+
allowHtmlInCanvasEnabled = value;
|
|
342
|
+
},
|
|
343
|
+
id: cliFlag
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
// src/options/api-key.tsx
|
|
347
|
+
import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
309
348
|
var currentApiKey = null;
|
|
310
|
-
var
|
|
349
|
+
var cliFlag2 = "api-key";
|
|
311
350
|
var apiKeyOption = {
|
|
312
351
|
name: "API key",
|
|
313
|
-
cliFlag,
|
|
314
|
-
description: () => /* @__PURE__ */
|
|
352
|
+
cliFlag: cliFlag2,
|
|
353
|
+
description: () => /* @__PURE__ */ jsxs2(Fragment2, {
|
|
315
354
|
children: [
|
|
316
355
|
"API key for sending a usage event using ",
|
|
317
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ jsx2("code", {
|
|
318
357
|
children: "@remotion/licensing"
|
|
319
358
|
}),
|
|
320
359
|
"."
|
|
@@ -324,10 +363,10 @@ var apiKeyOption = {
|
|
|
324
363
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
325
364
|
type: null,
|
|
326
365
|
getValue: ({ commandLine }) => {
|
|
327
|
-
if (commandLine[
|
|
366
|
+
if (commandLine[cliFlag2] !== undefined) {
|
|
328
367
|
return {
|
|
329
368
|
source: "cli",
|
|
330
|
-
value: commandLine[
|
|
369
|
+
value: commandLine[cliFlag2]
|
|
331
370
|
};
|
|
332
371
|
}
|
|
333
372
|
return {
|
|
@@ -338,24 +377,25 @@ var apiKeyOption = {
|
|
|
338
377
|
setConfig: (value) => {
|
|
339
378
|
currentApiKey = value;
|
|
340
379
|
},
|
|
341
|
-
id:
|
|
380
|
+
id: cliFlag2
|
|
342
381
|
};
|
|
343
382
|
|
|
344
383
|
// src/options/ask-ai.tsx
|
|
345
|
-
import { jsx as
|
|
384
|
+
import { jsx as jsx3, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
346
385
|
var askAIEnabled = true;
|
|
347
|
-
var
|
|
386
|
+
var configuredAskAIEnabled = null;
|
|
387
|
+
var cliFlag3 = "disable-ask-ai";
|
|
348
388
|
var askAIOption = {
|
|
349
389
|
name: "Disable or Enable the Ask AI option",
|
|
350
|
-
cliFlag:
|
|
351
|
-
description: () => /* @__PURE__ */
|
|
390
|
+
cliFlag: cliFlag3,
|
|
391
|
+
description: () => /* @__PURE__ */ jsx3(Fragment3, {
|
|
352
392
|
children: "If the Cmd + I shortcut of the Ask AI modal conflicts with your Studio, you can disable it using this."
|
|
353
393
|
}),
|
|
354
394
|
ssrName: null,
|
|
355
395
|
docLink: "https://www.remotion.dev/docs/config#setaskaienabled",
|
|
356
396
|
type: false,
|
|
357
397
|
getValue: ({ commandLine }) => {
|
|
358
|
-
if (commandLine[
|
|
398
|
+
if (commandLine[cliFlag3] !== undefined) {
|
|
359
399
|
askAIEnabled = false;
|
|
360
400
|
return {
|
|
361
401
|
value: askAIEnabled,
|
|
@@ -369,35 +409,41 @@ var askAIOption = {
|
|
|
369
409
|
},
|
|
370
410
|
setConfig(value) {
|
|
371
411
|
askAIEnabled = value;
|
|
412
|
+
configuredAskAIEnabled = value;
|
|
372
413
|
},
|
|
373
|
-
|
|
414
|
+
getConfigValue: () => configuredAskAIEnabled,
|
|
415
|
+
reset: () => {
|
|
416
|
+
askAIEnabled = true;
|
|
417
|
+
configuredAskAIEnabled = null;
|
|
418
|
+
},
|
|
419
|
+
id: cliFlag3
|
|
374
420
|
};
|
|
375
421
|
|
|
376
422
|
// src/options/audio-bitrate.tsx
|
|
377
|
-
import { jsx as
|
|
378
|
-
var
|
|
423
|
+
import { jsx as jsx4, jsxs as jsxs3, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
424
|
+
var cliFlag4 = "audio-bitrate";
|
|
379
425
|
var audioBitrate = null;
|
|
380
426
|
var audioBitrateOption = {
|
|
381
427
|
name: "Audio Bitrate",
|
|
382
|
-
cliFlag:
|
|
383
|
-
description: () => /* @__PURE__ */
|
|
428
|
+
cliFlag: cliFlag4,
|
|
429
|
+
description: () => /* @__PURE__ */ jsxs3(Fragment4, {
|
|
384
430
|
children: [
|
|
385
431
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
386
432
|
"'",
|
|
387
433
|
"s ",
|
|
388
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ jsx4("code", {
|
|
389
435
|
children: "-b:a"
|
|
390
436
|
}),
|
|
391
437
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact audio bitrate specified. Example values: ",
|
|
392
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ jsx4("code", {
|
|
393
439
|
children: "512K"
|
|
394
440
|
}),
|
|
395
441
|
" for 512 kbps, ",
|
|
396
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ jsx4("code", {
|
|
397
443
|
children: "1M"
|
|
398
444
|
}),
|
|
399
445
|
" for 1 Mbps. Default: ",
|
|
400
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ jsx4("code", {
|
|
401
447
|
children: "320k"
|
|
402
448
|
})
|
|
403
449
|
]
|
|
@@ -406,9 +452,9 @@ var audioBitrateOption = {
|
|
|
406
452
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#audiobitrate-",
|
|
407
453
|
type: "0",
|
|
408
454
|
getValue: ({ commandLine }) => {
|
|
409
|
-
if (commandLine[
|
|
455
|
+
if (commandLine[cliFlag4]) {
|
|
410
456
|
return {
|
|
411
|
-
value: commandLine[
|
|
457
|
+
value: commandLine[cliFlag4],
|
|
412
458
|
source: "cli"
|
|
413
459
|
};
|
|
414
460
|
}
|
|
@@ -426,21 +472,21 @@ var audioBitrateOption = {
|
|
|
426
472
|
setConfig: (value) => {
|
|
427
473
|
audioBitrate = value;
|
|
428
474
|
},
|
|
429
|
-
id:
|
|
475
|
+
id: cliFlag4
|
|
430
476
|
};
|
|
431
477
|
|
|
432
478
|
// src/options/separate-audio.tsx
|
|
433
479
|
var DEFAULT = null;
|
|
434
|
-
var
|
|
480
|
+
var cliFlag5 = "separate-audio-to";
|
|
435
481
|
var separateAudioOption = {
|
|
436
|
-
cliFlag:
|
|
482
|
+
cliFlag: cliFlag5,
|
|
437
483
|
description: () => `If set, the audio will not be included in the main output but rendered as a separate file at the location you pass. It is recommended to use an absolute path. If a relative path is passed, it is relative to the Remotion Root.`,
|
|
438
484
|
docLink: "https://remotion.dev/docs/renderer/render-media",
|
|
439
485
|
getValue: ({ commandLine }) => {
|
|
440
|
-
if (commandLine[
|
|
486
|
+
if (commandLine[cliFlag5]) {
|
|
441
487
|
return {
|
|
442
488
|
source: "cli",
|
|
443
|
-
value: commandLine[
|
|
489
|
+
value: commandLine[cliFlag5]
|
|
444
490
|
};
|
|
445
491
|
}
|
|
446
492
|
return {
|
|
@@ -454,7 +500,7 @@ var separateAudioOption = {
|
|
|
454
500
|
},
|
|
455
501
|
ssrName: "separateAudioTo",
|
|
456
502
|
type: "string",
|
|
457
|
-
id:
|
|
503
|
+
id: cliFlag5
|
|
458
504
|
};
|
|
459
505
|
|
|
460
506
|
// src/options/audio-codec.tsx
|
|
@@ -476,7 +522,7 @@ var supportedAudioCodecs = {
|
|
|
476
522
|
};
|
|
477
523
|
var _satisfies = supportedAudioCodecs;
|
|
478
524
|
if (_satisfies) {}
|
|
479
|
-
var
|
|
525
|
+
var cliFlag6 = "audio-codec";
|
|
480
526
|
var ssrName = "audioCodec";
|
|
481
527
|
var defaultAudioCodecs = {
|
|
482
528
|
"h264-mkv": {
|
|
@@ -584,7 +630,7 @@ var getDefaultAudioCodec = ({
|
|
|
584
630
|
};
|
|
585
631
|
var _audioCodec = null;
|
|
586
632
|
var audioCodecOption = {
|
|
587
|
-
cliFlag:
|
|
633
|
+
cliFlag: cliFlag6,
|
|
588
634
|
setConfig: (audioCodec) => {
|
|
589
635
|
if (audioCodec === null) {
|
|
590
636
|
_audioCodec = null;
|
|
@@ -596,14 +642,14 @@ var audioCodecOption = {
|
|
|
596
642
|
_audioCodec = audioCodec;
|
|
597
643
|
},
|
|
598
644
|
getValue: ({ commandLine }) => {
|
|
599
|
-
if (commandLine[
|
|
600
|
-
const codec = commandLine[
|
|
601
|
-
if (!validAudioCodecs.includes(commandLine[
|
|
645
|
+
if (commandLine[cliFlag6]) {
|
|
646
|
+
const codec = commandLine[cliFlag6];
|
|
647
|
+
if (!validAudioCodecs.includes(commandLine[cliFlag6])) {
|
|
602
648
|
throw new Error(`Audio codec must be one of the following: ${validAudioCodecs.join(", ")}, but got ${codec}`);
|
|
603
649
|
}
|
|
604
650
|
return {
|
|
605
651
|
source: "cli",
|
|
606
|
-
value: commandLine[
|
|
652
|
+
value: commandLine[cliFlag6]
|
|
607
653
|
};
|
|
608
654
|
}
|
|
609
655
|
if (_audioCodec !== null) {
|
|
@@ -622,26 +668,27 @@ var audioCodecOption = {
|
|
|
622
668
|
name: "Audio Codec",
|
|
623
669
|
ssrName,
|
|
624
670
|
type: "aac",
|
|
625
|
-
id:
|
|
671
|
+
id: cliFlag6
|
|
626
672
|
};
|
|
627
673
|
|
|
628
674
|
// src/options/beep-on-finish.tsx
|
|
629
|
-
import { jsx as
|
|
675
|
+
import { jsx as jsx5, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
630
676
|
var beepOnFinish = false;
|
|
631
|
-
var
|
|
677
|
+
var configuredBeepOnFinish = null;
|
|
678
|
+
var cliFlag7 = "beep-on-finish";
|
|
632
679
|
var beepOnFinishOption = {
|
|
633
680
|
name: "Beep on finish",
|
|
634
|
-
cliFlag:
|
|
635
|
-
description: () => /* @__PURE__ */
|
|
681
|
+
cliFlag: cliFlag7,
|
|
682
|
+
description: () => /* @__PURE__ */ jsx5(Fragment5, {
|
|
636
683
|
children: "Whether the Remotion Studio tab should beep when the render is finished."
|
|
637
684
|
}),
|
|
638
685
|
ssrName: null,
|
|
639
686
|
docLink: "https://www.remotion.dev/docs/config#setbeeponfinish",
|
|
640
687
|
type: false,
|
|
641
688
|
getValue: ({ commandLine }) => {
|
|
642
|
-
if (commandLine[
|
|
689
|
+
if (commandLine[cliFlag7] !== undefined && commandLine[cliFlag7] !== null) {
|
|
643
690
|
return {
|
|
644
|
-
value: commandLine[
|
|
691
|
+
value: commandLine[cliFlag7],
|
|
645
692
|
source: "cli"
|
|
646
693
|
};
|
|
647
694
|
}
|
|
@@ -658,22 +705,28 @@ var beepOnFinishOption = {
|
|
|
658
705
|
},
|
|
659
706
|
setConfig(value) {
|
|
660
707
|
beepOnFinish = value;
|
|
708
|
+
configuredBeepOnFinish = value;
|
|
661
709
|
},
|
|
662
|
-
|
|
710
|
+
getConfigValue: () => configuredBeepOnFinish,
|
|
711
|
+
reset: () => {
|
|
712
|
+
beepOnFinish = false;
|
|
713
|
+
configuredBeepOnFinish = null;
|
|
714
|
+
},
|
|
715
|
+
id: cliFlag7
|
|
663
716
|
};
|
|
664
717
|
|
|
665
718
|
// src/options/benchmark-concurrencies.tsx
|
|
666
|
-
import { jsx as
|
|
719
|
+
import { jsx as jsx6, jsxs as jsxs4, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
667
720
|
var currentConcurrencies = null;
|
|
668
|
-
var
|
|
721
|
+
var cliFlag8 = "concurrencies";
|
|
669
722
|
var benchmarkConcurrenciesOption = {
|
|
670
723
|
name: "Benchmark concurrencies",
|
|
671
|
-
cliFlag:
|
|
672
|
-
description: () => /* @__PURE__ */
|
|
724
|
+
cliFlag: cliFlag8,
|
|
725
|
+
description: () => /* @__PURE__ */ jsxs4(Fragment6, {
|
|
673
726
|
children: [
|
|
674
727
|
"Specify which concurrency values should be used while benchmarking. Multiple values can be passed separated by comma. Learn more about",
|
|
675
728
|
" ",
|
|
676
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ jsx6("a", {
|
|
677
730
|
href: "https://remotion.dev/docs/terminology/concurrency",
|
|
678
731
|
children: "concurrency"
|
|
679
732
|
}),
|
|
@@ -684,8 +737,8 @@ var benchmarkConcurrenciesOption = {
|
|
|
684
737
|
docLink: "https://www.remotion.dev/docs/cli/benchmark#--concurrencies",
|
|
685
738
|
type: null,
|
|
686
739
|
getValue: ({ commandLine }) => {
|
|
687
|
-
if (commandLine[
|
|
688
|
-
return { value: commandLine[
|
|
740
|
+
if (commandLine[cliFlag8] !== undefined) {
|
|
741
|
+
return { value: commandLine[cliFlag8], source: "cli" };
|
|
689
742
|
}
|
|
690
743
|
if (currentConcurrencies !== null) {
|
|
691
744
|
return { value: currentConcurrencies, source: "config" };
|
|
@@ -695,38 +748,38 @@ var benchmarkConcurrenciesOption = {
|
|
|
695
748
|
setConfig: (value) => {
|
|
696
749
|
currentConcurrencies = value;
|
|
697
750
|
},
|
|
698
|
-
id:
|
|
751
|
+
id: cliFlag8
|
|
699
752
|
};
|
|
700
753
|
|
|
701
754
|
// src/options/binaries-directory.tsx
|
|
702
|
-
import { jsx as
|
|
703
|
-
var
|
|
755
|
+
import { jsx as jsx7, jsxs as jsxs5, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
756
|
+
var cliFlag9 = "binaries-directory";
|
|
704
757
|
var currentDirectory = null;
|
|
705
758
|
var binariesDirectoryOption = {
|
|
706
759
|
name: "Binaries Directory",
|
|
707
|
-
cliFlag:
|
|
708
|
-
description: () => /* @__PURE__ */
|
|
760
|
+
cliFlag: cliFlag9,
|
|
761
|
+
description: () => /* @__PURE__ */ jsxs5(Fragment7, {
|
|
709
762
|
children: [
|
|
710
763
|
"The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ",
|
|
711
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ jsx7("code", {
|
|
712
765
|
children: "ffmpeg"
|
|
713
766
|
}),
|
|
714
767
|
" and",
|
|
715
768
|
" ",
|
|
716
|
-
/* @__PURE__ */
|
|
769
|
+
/* @__PURE__ */ jsx7("code", {
|
|
717
770
|
children: "ffprobe"
|
|
718
771
|
}),
|
|
719
772
|
" binary, a Rust binary for various tasks, and various shared libraries. If the value is set to ",
|
|
720
|
-
/* @__PURE__ */
|
|
773
|
+
/* @__PURE__ */ jsx7("code", {
|
|
721
774
|
children: "null"
|
|
722
775
|
}),
|
|
723
776
|
", which is the default, then the path of a platform-specific package located at",
|
|
724
777
|
" ",
|
|
725
|
-
/* @__PURE__ */
|
|
778
|
+
/* @__PURE__ */ jsx7("code", {
|
|
726
779
|
children: "node_modules/@remotion/compositor-*"
|
|
727
780
|
}),
|
|
728
781
|
" is selected.",
|
|
729
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ jsx7("br", {}),
|
|
730
783
|
"This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron."
|
|
731
784
|
]
|
|
732
785
|
}),
|
|
@@ -734,10 +787,10 @@ var binariesDirectoryOption = {
|
|
|
734
787
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
735
788
|
type: "",
|
|
736
789
|
getValue: ({ commandLine }) => {
|
|
737
|
-
if (commandLine[
|
|
790
|
+
if (commandLine[cliFlag9] !== undefined) {
|
|
738
791
|
return {
|
|
739
792
|
source: "cli",
|
|
740
|
-
value: commandLine[
|
|
793
|
+
value: commandLine[cliFlag9]
|
|
741
794
|
};
|
|
742
795
|
}
|
|
743
796
|
if (currentDirectory !== null) {
|
|
@@ -754,20 +807,20 @@ var binariesDirectoryOption = {
|
|
|
754
807
|
setConfig: (value) => {
|
|
755
808
|
currentDirectory = value;
|
|
756
809
|
},
|
|
757
|
-
id:
|
|
810
|
+
id: cliFlag9
|
|
758
811
|
};
|
|
759
812
|
|
|
760
813
|
// src/options/browser.tsx
|
|
761
|
-
import { jsx as
|
|
762
|
-
var
|
|
814
|
+
import { jsx as jsx8, jsxs as jsxs6, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
815
|
+
var cliFlag10 = "browser";
|
|
763
816
|
var browserOption = {
|
|
764
817
|
name: "Browser",
|
|
765
|
-
cliFlag:
|
|
766
|
-
description: () => /* @__PURE__ */
|
|
818
|
+
cliFlag: cliFlag10,
|
|
819
|
+
description: () => /* @__PURE__ */ jsxs6(Fragment8, {
|
|
767
820
|
children: [
|
|
768
821
|
"Specify the browser which should be used for opening a tab. The default browser will be used by default. Pass an absolute path or",
|
|
769
822
|
" ",
|
|
770
|
-
/* @__PURE__ */
|
|
823
|
+
/* @__PURE__ */ jsx8("code", {
|
|
771
824
|
children: '"chrome"'
|
|
772
825
|
}),
|
|
773
826
|
" to use Chrome. If Chrome is selected as the browser and you are on macOS, Remotion will try to reuse an existing tab."
|
|
@@ -776,10 +829,10 @@ var browserOption = {
|
|
|
776
829
|
ssrName: null,
|
|
777
830
|
docLink: "https://www.remotion.dev/docs/cli/studio#--browser",
|
|
778
831
|
getValue: ({ commandLine }) => {
|
|
779
|
-
if (commandLine[
|
|
832
|
+
if (commandLine[cliFlag10] !== undefined) {
|
|
780
833
|
return {
|
|
781
834
|
source: "cli",
|
|
782
|
-
value: commandLine[
|
|
835
|
+
value: commandLine[cliFlag10]
|
|
783
836
|
};
|
|
784
837
|
}
|
|
785
838
|
return {
|
|
@@ -791,27 +844,27 @@ var browserOption = {
|
|
|
791
844
|
throw new Error("setBrowser is not supported. Pass --browser via the CLI instead.");
|
|
792
845
|
},
|
|
793
846
|
type: "",
|
|
794
|
-
id:
|
|
847
|
+
id: cliFlag10
|
|
795
848
|
};
|
|
796
849
|
|
|
797
850
|
// src/options/browser-executable.tsx
|
|
798
|
-
import { jsx as
|
|
851
|
+
import { jsx as jsx9, Fragment as Fragment9 } from "react/jsx-runtime";
|
|
799
852
|
var currentBrowserExecutablePath = null;
|
|
800
|
-
var
|
|
853
|
+
var cliFlag11 = "browser-executable";
|
|
801
854
|
var browserExecutableOption = {
|
|
802
855
|
name: "Browser executable",
|
|
803
|
-
cliFlag:
|
|
804
|
-
description: () => /* @__PURE__ */
|
|
856
|
+
cliFlag: cliFlag11,
|
|
857
|
+
description: () => /* @__PURE__ */ jsx9(Fragment9, {
|
|
805
858
|
children: "Set a custom Chrome or Chromium executable path. By default Remotion will try to find an existing version of Chrome on your system and if not found, it will download one. This flag is useful if you don't have Chrome installed in a standard location and you want to prevent downloading an additional browser or need support for the H264 codec."
|
|
806
859
|
}),
|
|
807
860
|
ssrName: "browserExecutable",
|
|
808
861
|
docLink: "https://www.remotion.dev/docs/config#setbrowserexecutable",
|
|
809
862
|
type: null,
|
|
810
863
|
getValue: ({ commandLine }) => {
|
|
811
|
-
if (commandLine[
|
|
864
|
+
if (commandLine[cliFlag11] !== undefined) {
|
|
812
865
|
return {
|
|
813
866
|
source: "cli",
|
|
814
|
-
value: commandLine[
|
|
867
|
+
value: commandLine[cliFlag11]
|
|
815
868
|
};
|
|
816
869
|
}
|
|
817
870
|
if (currentBrowserExecutablePath !== null) {
|
|
@@ -828,21 +881,21 @@ var browserExecutableOption = {
|
|
|
828
881
|
setConfig: (value) => {
|
|
829
882
|
currentBrowserExecutablePath = value;
|
|
830
883
|
},
|
|
831
|
-
id:
|
|
884
|
+
id: cliFlag11
|
|
832
885
|
};
|
|
833
886
|
|
|
834
887
|
// src/options/bundle-cache.tsx
|
|
835
|
-
import { jsx as
|
|
836
|
-
var
|
|
888
|
+
import { jsx as jsx10, jsxs as jsxs7, Fragment as Fragment10 } from "react/jsx-runtime";
|
|
889
|
+
var cliFlag12 = "bundle-cache";
|
|
837
890
|
var cachingEnabled = true;
|
|
838
891
|
var bundleCacheOption = {
|
|
839
892
|
name: "Webpack Bundle Caching",
|
|
840
|
-
cliFlag:
|
|
841
|
-
description: () => /* @__PURE__ */
|
|
893
|
+
cliFlag: cliFlag12,
|
|
894
|
+
description: () => /* @__PURE__ */ jsxs7(Fragment10, {
|
|
842
895
|
children: [
|
|
843
896
|
"Enable or disable Webpack caching. This flag is enabled by default, use",
|
|
844
897
|
" ",
|
|
845
|
-
/* @__PURE__ */
|
|
898
|
+
/* @__PURE__ */ jsx10("code", {
|
|
846
899
|
children: "--bundle-cache=false"
|
|
847
900
|
}),
|
|
848
901
|
" to disable caching."
|
|
@@ -851,10 +904,10 @@ var bundleCacheOption = {
|
|
|
851
904
|
ssrName: null,
|
|
852
905
|
docLink: "https://www.remotion.dev/docs/config#setcachingenabled",
|
|
853
906
|
getValue: ({ commandLine }) => {
|
|
854
|
-
if (commandLine[
|
|
907
|
+
if (commandLine[cliFlag12] !== undefined && commandLine[cliFlag12] !== null) {
|
|
855
908
|
return {
|
|
856
909
|
source: "cli",
|
|
857
|
-
value: Boolean(commandLine[
|
|
910
|
+
value: Boolean(commandLine[cliFlag12])
|
|
858
911
|
};
|
|
859
912
|
}
|
|
860
913
|
return {
|
|
@@ -864,48 +917,48 @@ var bundleCacheOption = {
|
|
|
864
917
|
},
|
|
865
918
|
setConfig: (value) => {
|
|
866
919
|
if (typeof value !== "boolean") {
|
|
867
|
-
throw new TypeError(`Value for "${
|
|
920
|
+
throw new TypeError(`Value for "${cliFlag12}" must be a boolean, but got ${typeof value}.`);
|
|
868
921
|
}
|
|
869
922
|
cachingEnabled = value;
|
|
870
923
|
},
|
|
871
924
|
type: true,
|
|
872
|
-
id:
|
|
925
|
+
id: cliFlag12
|
|
873
926
|
};
|
|
874
927
|
|
|
875
928
|
// src/options/chrome-mode.tsx
|
|
876
|
-
import { jsx as
|
|
929
|
+
import { jsx as jsx11, jsxs as jsxs8, Fragment as Fragment11 } from "react/jsx-runtime";
|
|
877
930
|
var validChromeModeOptions = [
|
|
878
931
|
"headless-shell",
|
|
879
932
|
"chrome-for-testing"
|
|
880
933
|
];
|
|
881
|
-
var
|
|
934
|
+
var cliFlag13 = "chrome-mode";
|
|
882
935
|
var configSelection = null;
|
|
883
936
|
var chromeModeOption = {
|
|
884
|
-
cliFlag:
|
|
937
|
+
cliFlag: cliFlag13,
|
|
885
938
|
name: "Chrome Mode",
|
|
886
939
|
ssrName: "chromeMode",
|
|
887
940
|
description: () => {
|
|
888
|
-
return /* @__PURE__ */
|
|
941
|
+
return /* @__PURE__ */ jsxs8(Fragment11, {
|
|
889
942
|
children: [
|
|
890
943
|
"One of",
|
|
891
944
|
" ",
|
|
892
|
-
validChromeModeOptions.map((option, i) => /* @__PURE__ */
|
|
945
|
+
validChromeModeOptions.map((option, i) => /* @__PURE__ */ jsxs8("code", {
|
|
893
946
|
children: [
|
|
894
947
|
option,
|
|
895
948
|
i === validChromeModeOptions.length - 1 ? "" : ", "
|
|
896
949
|
]
|
|
897
950
|
}, option)),
|
|
898
951
|
". Default ",
|
|
899
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ jsx11("code", {
|
|
900
953
|
children: "headless-shell"
|
|
901
954
|
}),
|
|
902
955
|
".",
|
|
903
956
|
" ",
|
|
904
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ jsxs8("a", {
|
|
905
958
|
href: "https://remotion.dev/docs/miscellaneous/chrome-headless-shell",
|
|
906
959
|
children: [
|
|
907
960
|
"Use ",
|
|
908
|
-
/* @__PURE__ */
|
|
961
|
+
/* @__PURE__ */ jsx11("code", {
|
|
909
962
|
children: "chrome-for-testing"
|
|
910
963
|
}),
|
|
911
964
|
" to take advantage of GPU drivers on Linux."
|
|
@@ -916,12 +969,12 @@ var chromeModeOption = {
|
|
|
916
969
|
},
|
|
917
970
|
docLink: "https://www.remotion.dev/chrome-for-testing",
|
|
918
971
|
getValue: ({ commandLine }) => {
|
|
919
|
-
if (commandLine[
|
|
920
|
-
if (!validChromeModeOptions.includes(commandLine[
|
|
921
|
-
throw new Error(`Invalid \`--${
|
|
972
|
+
if (commandLine[cliFlag13]) {
|
|
973
|
+
if (!validChromeModeOptions.includes(commandLine[cliFlag13])) {
|
|
974
|
+
throw new Error(`Invalid \`--${cliFlag13}\` value passed. Accepted values: ${validChromeModeOptions.map((l) => `'${l}'`).join(", ")}.`);
|
|
922
975
|
}
|
|
923
976
|
return {
|
|
924
|
-
value: commandLine[
|
|
977
|
+
value: commandLine[cliFlag13],
|
|
925
978
|
source: "cli"
|
|
926
979
|
};
|
|
927
980
|
}
|
|
@@ -940,26 +993,26 @@ var chromeModeOption = {
|
|
|
940
993
|
configSelection = newChromeMode;
|
|
941
994
|
},
|
|
942
995
|
type: "headless-shell",
|
|
943
|
-
id:
|
|
996
|
+
id: cliFlag13
|
|
944
997
|
};
|
|
945
998
|
|
|
946
999
|
// src/options/color-space.tsx
|
|
947
1000
|
import { NoReactInternals } from "remotion/no-react";
|
|
948
|
-
import { jsx as
|
|
1001
|
+
import { jsx as jsx12, jsxs as jsxs9, Fragment as Fragment12 } from "react/jsx-runtime";
|
|
949
1002
|
var validV4ColorSpaces = ["default", "bt601", "bt709", "bt2020-ncl"];
|
|
950
1003
|
var validV5ColorSpaces = ["bt601", "bt709", "bt2020-ncl"];
|
|
951
1004
|
var validColorSpaces = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? validV5ColorSpaces : validV4ColorSpaces;
|
|
952
1005
|
var DEFAULT_COLOR_SPACE = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? "bt709" : "default";
|
|
953
1006
|
var colorSpace = DEFAULT_COLOR_SPACE;
|
|
954
|
-
var
|
|
1007
|
+
var cliFlag14 = "color-space";
|
|
955
1008
|
var colorSpaceOption = {
|
|
956
1009
|
name: "Color space",
|
|
957
1010
|
cliFlag: "color-space",
|
|
958
|
-
description: () => /* @__PURE__ */
|
|
1011
|
+
description: () => /* @__PURE__ */ jsxs9(Fragment12, {
|
|
959
1012
|
children: [
|
|
960
1013
|
"Color space to use for the video. Acceptable values:",
|
|
961
1014
|
" ",
|
|
962
|
-
/* @__PURE__ */
|
|
1015
|
+
/* @__PURE__ */ jsxs9("code", {
|
|
963
1016
|
children: [
|
|
964
1017
|
'"',
|
|
965
1018
|
DEFAULT_COLOR_SPACE,
|
|
@@ -968,16 +1021,16 @@ var colorSpaceOption = {
|
|
|
968
1021
|
}),
|
|
969
1022
|
"(default since 5.0),",
|
|
970
1023
|
" ",
|
|
971
|
-
NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */
|
|
1024
|
+
NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */ jsxs9("code", {
|
|
972
1025
|
children: [
|
|
973
1026
|
'"',
|
|
974
1027
|
"bt601",
|
|
975
1028
|
'"',
|
|
976
1029
|
", "
|
|
977
1030
|
]
|
|
978
|
-
}) : /* @__PURE__ */
|
|
1031
|
+
}) : /* @__PURE__ */ jsxs9(Fragment12, {
|
|
979
1032
|
children: [
|
|
980
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ jsxs9("code", {
|
|
981
1034
|
children: [
|
|
982
1035
|
'"',
|
|
983
1036
|
"bt601",
|
|
@@ -987,7 +1040,7 @@ var colorSpaceOption = {
|
|
|
987
1040
|
" ",
|
|
988
1041
|
"(same as",
|
|
989
1042
|
" ",
|
|
990
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ jsxs9("code", {
|
|
991
1044
|
children: [
|
|
992
1045
|
'"',
|
|
993
1046
|
"default",
|
|
@@ -996,7 +1049,7 @@ var colorSpaceOption = {
|
|
|
996
1049
|
}),
|
|
997
1050
|
", since v4.0.424),",
|
|
998
1051
|
" ",
|
|
999
|
-
/* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ jsxs9("code", {
|
|
1000
1053
|
children: [
|
|
1001
1054
|
'"',
|
|
1002
1055
|
"bt709",
|
|
@@ -1008,7 +1061,7 @@ var colorSpaceOption = {
|
|
|
1008
1061
|
" "
|
|
1009
1062
|
]
|
|
1010
1063
|
}),
|
|
1011
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ jsxs9("code", {
|
|
1012
1065
|
children: [
|
|
1013
1066
|
'"',
|
|
1014
1067
|
"bt2020-ncl",
|
|
@@ -1018,7 +1071,7 @@ var colorSpaceOption = {
|
|
|
1018
1071
|
" ",
|
|
1019
1072
|
"(since v4.0.88),",
|
|
1020
1073
|
" ",
|
|
1021
|
-
/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ jsxs9("code", {
|
|
1022
1075
|
children: [
|
|
1023
1076
|
'"',
|
|
1024
1077
|
"bt2020-cl",
|
|
@@ -1027,10 +1080,10 @@ var colorSpaceOption = {
|
|
|
1027
1080
|
}),
|
|
1028
1081
|
" ",
|
|
1029
1082
|
"(since v4.0.88), .",
|
|
1030
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ jsx12("br", {}),
|
|
1031
1084
|
"For best color accuracy, it is recommended to also use",
|
|
1032
1085
|
" ",
|
|
1033
|
-
/* @__PURE__ */
|
|
1086
|
+
/* @__PURE__ */ jsxs9("code", {
|
|
1034
1087
|
children: [
|
|
1035
1088
|
'"',
|
|
1036
1089
|
"png",
|
|
@@ -1039,7 +1092,7 @@ var colorSpaceOption = {
|
|
|
1039
1092
|
}),
|
|
1040
1093
|
" ",
|
|
1041
1094
|
"as the image format to have accurate color transformations throughout.",
|
|
1042
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ jsx12("br", {}),
|
|
1043
1096
|
"Only since v4.0.83, colorspace conversion is actually performed, previously it would only tag the metadata of the video."
|
|
1044
1097
|
]
|
|
1045
1098
|
}),
|
|
@@ -1047,10 +1100,10 @@ var colorSpaceOption = {
|
|
|
1047
1100
|
ssrName: "colorSpace",
|
|
1048
1101
|
type: DEFAULT_COLOR_SPACE,
|
|
1049
1102
|
getValue: ({ commandLine }) => {
|
|
1050
|
-
if (commandLine[
|
|
1103
|
+
if (commandLine[cliFlag14] !== undefined) {
|
|
1051
1104
|
return {
|
|
1052
1105
|
source: "cli",
|
|
1053
|
-
value: commandLine[
|
|
1106
|
+
value: commandLine[cliFlag14]
|
|
1054
1107
|
};
|
|
1055
1108
|
}
|
|
1056
1109
|
if (colorSpace !== DEFAULT_COLOR_SPACE) {
|
|
@@ -1067,13 +1120,13 @@ var colorSpaceOption = {
|
|
|
1067
1120
|
setConfig: (value) => {
|
|
1068
1121
|
colorSpace = value ?? DEFAULT_COLOR_SPACE;
|
|
1069
1122
|
},
|
|
1070
|
-
id:
|
|
1123
|
+
id: cliFlag14
|
|
1071
1124
|
};
|
|
1072
1125
|
|
|
1073
1126
|
// src/options/concurrency.tsx
|
|
1074
|
-
import { jsx as
|
|
1127
|
+
import { jsx as jsx13, jsxs as jsxs10, Fragment as Fragment13 } from "react/jsx-runtime";
|
|
1075
1128
|
var currentConcurrency = null;
|
|
1076
|
-
var
|
|
1129
|
+
var cliFlag15 = "concurrency";
|
|
1077
1130
|
var validateConcurrencyValue = (value, setting) => {
|
|
1078
1131
|
if (typeof value === "undefined" || value === null) {
|
|
1079
1132
|
return;
|
|
@@ -1091,15 +1144,15 @@ var validateConcurrencyValue = (value, setting) => {
|
|
|
1091
1144
|
};
|
|
1092
1145
|
var concurrencyOption = {
|
|
1093
1146
|
name: "Concurrency",
|
|
1094
|
-
cliFlag:
|
|
1095
|
-
description: () => /* @__PURE__ */
|
|
1147
|
+
cliFlag: cliFlag15,
|
|
1148
|
+
description: () => /* @__PURE__ */ jsxs10(Fragment13, {
|
|
1096
1149
|
children: [
|
|
1097
1150
|
"How many CPU threads to use. Minimum 1. The maximum is the amount of threads you have (In Node.JS ",
|
|
1098
|
-
/* @__PURE__ */
|
|
1151
|
+
/* @__PURE__ */ jsx13("code", {
|
|
1099
1152
|
children: "os.cpus().length"
|
|
1100
1153
|
}),
|
|
1101
1154
|
"). You can also provide a percentage value (e.g. ",
|
|
1102
|
-
/* @__PURE__ */
|
|
1155
|
+
/* @__PURE__ */ jsx13("code", {
|
|
1103
1156
|
children: "50%"
|
|
1104
1157
|
}),
|
|
1105
1158
|
")."
|
|
@@ -1109,8 +1162,8 @@ var concurrencyOption = {
|
|
|
1109
1162
|
docLink: "https://www.remotion.dev/docs/config#setconcurrency",
|
|
1110
1163
|
type: null,
|
|
1111
1164
|
getValue: ({ commandLine }) => {
|
|
1112
|
-
if (commandLine[
|
|
1113
|
-
const value = commandLine[
|
|
1165
|
+
if (commandLine[cliFlag15] !== undefined) {
|
|
1166
|
+
const value = commandLine[cliFlag15];
|
|
1114
1167
|
validateConcurrencyValue(value, "concurrency");
|
|
1115
1168
|
return {
|
|
1116
1169
|
source: "cli",
|
|
@@ -1132,25 +1185,25 @@ var concurrencyOption = {
|
|
|
1132
1185
|
validateConcurrencyValue(value, "Config.setConcurrency");
|
|
1133
1186
|
currentConcurrency = value;
|
|
1134
1187
|
},
|
|
1135
|
-
id:
|
|
1188
|
+
id: cliFlag15
|
|
1136
1189
|
};
|
|
1137
1190
|
|
|
1138
1191
|
// src/options/config.tsx
|
|
1139
|
-
import { jsx as
|
|
1140
|
-
var
|
|
1192
|
+
import { jsx as jsx14, Fragment as Fragment14 } from "react/jsx-runtime";
|
|
1193
|
+
var cliFlag16 = "config";
|
|
1141
1194
|
var configOption = {
|
|
1142
1195
|
name: "Config file",
|
|
1143
|
-
cliFlag:
|
|
1144
|
-
description: () => /* @__PURE__ */
|
|
1196
|
+
cliFlag: cliFlag16,
|
|
1197
|
+
description: () => /* @__PURE__ */ jsx14(Fragment14, {
|
|
1145
1198
|
children: "Specify a location for the Remotion config file."
|
|
1146
1199
|
}),
|
|
1147
1200
|
ssrName: null,
|
|
1148
1201
|
docLink: "https://www.remotion.dev/docs/config",
|
|
1149
1202
|
getValue: ({ commandLine }) => {
|
|
1150
|
-
if (commandLine[
|
|
1203
|
+
if (commandLine[cliFlag16] !== undefined) {
|
|
1151
1204
|
return {
|
|
1152
1205
|
source: "cli",
|
|
1153
|
-
value: commandLine[
|
|
1206
|
+
value: commandLine[cliFlag16]
|
|
1154
1207
|
};
|
|
1155
1208
|
}
|
|
1156
1209
|
return {
|
|
@@ -1162,33 +1215,33 @@ var configOption = {
|
|
|
1162
1215
|
throw new Error("setConfig is not supported. Pass --config via the CLI instead.");
|
|
1163
1216
|
},
|
|
1164
1217
|
type: "",
|
|
1165
|
-
id:
|
|
1218
|
+
id: cliFlag16
|
|
1166
1219
|
};
|
|
1167
1220
|
|
|
1168
1221
|
// src/options/crf.tsx
|
|
1169
|
-
import { jsx as
|
|
1222
|
+
import { jsx as jsx15, Fragment as Fragment15 } from "react/jsx-runtime";
|
|
1170
1223
|
var currentCrf;
|
|
1171
1224
|
var validateCrf = (newCrf) => {
|
|
1172
1225
|
if (typeof newCrf !== "number" && newCrf !== undefined) {
|
|
1173
1226
|
throw new TypeError("The CRF must be a number or undefined.");
|
|
1174
1227
|
}
|
|
1175
1228
|
};
|
|
1176
|
-
var
|
|
1229
|
+
var cliFlag17 = "crf";
|
|
1177
1230
|
var crfOption = {
|
|
1178
1231
|
name: "CRF",
|
|
1179
|
-
cliFlag:
|
|
1180
|
-
description: () => /* @__PURE__ */
|
|
1232
|
+
cliFlag: cliFlag17,
|
|
1233
|
+
description: () => /* @__PURE__ */ jsx15(Fragment15, {
|
|
1181
1234
|
children: "No matter which codec you end up using, there's always a tradeoff between file size and video quality. You can control it by setting the CRF (Constant Rate Factor). The lower the number, the better the quality, the higher the number, the smaller the file is – of course at the cost of quality."
|
|
1182
1235
|
}),
|
|
1183
1236
|
ssrName: "crf",
|
|
1184
1237
|
docLink: "https://www.remotion.dev/docs/encoding/#controlling-quality-using-the-crf-setting",
|
|
1185
1238
|
type: 0,
|
|
1186
1239
|
getValue: ({ commandLine }) => {
|
|
1187
|
-
if (commandLine[
|
|
1188
|
-
validateCrf(commandLine[
|
|
1240
|
+
if (commandLine[cliFlag17] !== undefined) {
|
|
1241
|
+
validateCrf(commandLine[cliFlag17]);
|
|
1189
1242
|
return {
|
|
1190
1243
|
source: "cli",
|
|
1191
|
-
value: commandLine[
|
|
1244
|
+
value: commandLine[cliFlag17]
|
|
1192
1245
|
};
|
|
1193
1246
|
}
|
|
1194
1247
|
if (currentCrf !== null) {
|
|
@@ -1206,21 +1259,22 @@ var crfOption = {
|
|
|
1206
1259
|
validateCrf(crf);
|
|
1207
1260
|
currentCrf = crf;
|
|
1208
1261
|
},
|
|
1209
|
-
id:
|
|
1262
|
+
id: cliFlag17
|
|
1210
1263
|
};
|
|
1211
1264
|
|
|
1212
1265
|
// src/options/cross-site-isolation.tsx
|
|
1213
|
-
import { jsx as
|
|
1266
|
+
import { jsx as jsx16, jsxs as jsxs11, Fragment as Fragment16 } from "react/jsx-runtime";
|
|
1214
1267
|
var enableCrossSiteIsolation = false;
|
|
1215
|
-
var
|
|
1268
|
+
var configuredEnableCrossSiteIsolation = null;
|
|
1269
|
+
var cliFlag18 = "cross-site-isolation";
|
|
1216
1270
|
var enableCrossSiteIsolationOption = {
|
|
1217
1271
|
name: "Enable Cross-Site Isolation",
|
|
1218
|
-
cliFlag:
|
|
1219
|
-
description: () => /* @__PURE__ */
|
|
1272
|
+
cliFlag: cliFlag18,
|
|
1273
|
+
description: () => /* @__PURE__ */ jsxs11(Fragment16, {
|
|
1220
1274
|
children: [
|
|
1221
1275
|
"Enable Cross-Site Isolation in the Studio (sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers, required for",
|
|
1222
1276
|
" ",
|
|
1223
|
-
/* @__PURE__ */
|
|
1277
|
+
/* @__PURE__ */ jsx16("code", {
|
|
1224
1278
|
children: "@remotion/whisper-web"
|
|
1225
1279
|
}),
|
|
1226
1280
|
")."
|
|
@@ -1230,9 +1284,9 @@ var enableCrossSiteIsolationOption = {
|
|
|
1230
1284
|
docLink: "https://www.remotion.dev/docs/config#setenablecrosssiteisolation",
|
|
1231
1285
|
type: false,
|
|
1232
1286
|
getValue: ({ commandLine }) => {
|
|
1233
|
-
if (commandLine[
|
|
1287
|
+
if (commandLine[cliFlag18] !== undefined) {
|
|
1234
1288
|
return {
|
|
1235
|
-
value: commandLine[
|
|
1289
|
+
value: commandLine[cliFlag18],
|
|
1236
1290
|
source: "cli"
|
|
1237
1291
|
};
|
|
1238
1292
|
}
|
|
@@ -1243,23 +1297,29 @@ var enableCrossSiteIsolationOption = {
|
|
|
1243
1297
|
},
|
|
1244
1298
|
setConfig(value) {
|
|
1245
1299
|
enableCrossSiteIsolation = value;
|
|
1300
|
+
configuredEnableCrossSiteIsolation = value;
|
|
1246
1301
|
},
|
|
1247
|
-
|
|
1302
|
+
getConfigValue: () => configuredEnableCrossSiteIsolation,
|
|
1303
|
+
reset: () => {
|
|
1304
|
+
enableCrossSiteIsolation = false;
|
|
1305
|
+
configuredEnableCrossSiteIsolation = null;
|
|
1306
|
+
},
|
|
1307
|
+
id: cliFlag18
|
|
1248
1308
|
};
|
|
1249
1309
|
|
|
1250
1310
|
// src/options/dark-mode.tsx
|
|
1251
|
-
import { jsx as
|
|
1311
|
+
import { jsx as jsx17, jsxs as jsxs12, Fragment as Fragment17 } from "react/jsx-runtime";
|
|
1252
1312
|
var DEFAULT_VALUE = false;
|
|
1253
1313
|
var darkMode = DEFAULT_VALUE;
|
|
1254
|
-
var
|
|
1314
|
+
var cliFlag19 = "dark-mode";
|
|
1255
1315
|
var darkModeOption = {
|
|
1256
1316
|
name: "Dark Mode",
|
|
1257
|
-
cliFlag:
|
|
1258
|
-
description: () => /* @__PURE__ */
|
|
1317
|
+
cliFlag: cliFlag19,
|
|
1318
|
+
description: () => /* @__PURE__ */ jsxs12(Fragment17, {
|
|
1259
1319
|
children: [
|
|
1260
1320
|
"Whether Chromium should pretend to be in dark mode by emulating the media feature 'prefers-color-scheme: dark'. Default is",
|
|
1261
1321
|
" ",
|
|
1262
|
-
/* @__PURE__ */
|
|
1322
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1263
1323
|
children: String(DEFAULT_VALUE)
|
|
1264
1324
|
}),
|
|
1265
1325
|
"."
|
|
@@ -1269,10 +1329,10 @@ var darkModeOption = {
|
|
|
1269
1329
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--dark-mode",
|
|
1270
1330
|
type: false,
|
|
1271
1331
|
getValue: ({ commandLine }) => {
|
|
1272
|
-
if (commandLine[
|
|
1332
|
+
if (commandLine[cliFlag19] !== undefined && commandLine[cliFlag19] !== null) {
|
|
1273
1333
|
return {
|
|
1274
1334
|
source: "cli",
|
|
1275
|
-
value: commandLine[
|
|
1335
|
+
value: commandLine[cliFlag19]
|
|
1276
1336
|
};
|
|
1277
1337
|
}
|
|
1278
1338
|
if (darkMode !== DEFAULT_VALUE) {
|
|
@@ -1289,18 +1349,18 @@ var darkModeOption = {
|
|
|
1289
1349
|
setConfig: (value) => {
|
|
1290
1350
|
darkMode = value;
|
|
1291
1351
|
},
|
|
1292
|
-
id:
|
|
1352
|
+
id: cliFlag19
|
|
1293
1353
|
};
|
|
1294
1354
|
|
|
1295
1355
|
// src/options/default-coding-agent.tsx
|
|
1296
|
-
import { jsx as
|
|
1356
|
+
import { jsx as jsx18, jsxs as jsxs13, Fragment as Fragment18 } from "react/jsx-runtime";
|
|
1297
1357
|
var defaultCodingAgentIds = [
|
|
1298
1358
|
"codex",
|
|
1299
1359
|
"cursor",
|
|
1300
1360
|
"copilot",
|
|
1301
1361
|
"claude-code"
|
|
1302
1362
|
];
|
|
1303
|
-
var
|
|
1363
|
+
var cliFlag20 = "coding-agent";
|
|
1304
1364
|
var defaultCodingAgent = null;
|
|
1305
1365
|
var validateDefaultCodingAgent = (value, source) => {
|
|
1306
1366
|
if (value === null) {
|
|
@@ -1313,12 +1373,12 @@ var validateDefaultCodingAgent = (value, source) => {
|
|
|
1313
1373
|
};
|
|
1314
1374
|
var defaultCodingAgentOption = {
|
|
1315
1375
|
name: "Default coding agent",
|
|
1316
|
-
cliFlag:
|
|
1317
|
-
description: () => /* @__PURE__ */
|
|
1376
|
+
cliFlag: cliFlag20,
|
|
1377
|
+
description: () => /* @__PURE__ */ jsxs13(Fragment18, {
|
|
1318
1378
|
children: [
|
|
1319
1379
|
"Set the default coding agent for Remotion Studio. Available coding agents:",
|
|
1320
1380
|
" ",
|
|
1321
|
-
/* @__PURE__ */
|
|
1381
|
+
/* @__PURE__ */ jsx18("code", {
|
|
1322
1382
|
children: defaultCodingAgentIds.join(", ")
|
|
1323
1383
|
}),
|
|
1324
1384
|
"."
|
|
@@ -1328,10 +1388,10 @@ var defaultCodingAgentOption = {
|
|
|
1328
1388
|
docLink: "https://www.remotion.dev/docs/config#setdefaultcodingagent",
|
|
1329
1389
|
type: null,
|
|
1330
1390
|
getValue: ({ commandLine }) => {
|
|
1331
|
-
const cliValue = commandLine[
|
|
1391
|
+
const cliValue = commandLine[cliFlag20];
|
|
1332
1392
|
if (cliValue !== undefined && cliValue !== null) {
|
|
1333
1393
|
return {
|
|
1334
|
-
value: validateDefaultCodingAgent(cliValue, `--${
|
|
1394
|
+
value: validateDefaultCodingAgent(cliValue, `--${cliFlag20}`),
|
|
1335
1395
|
source: "cli"
|
|
1336
1396
|
};
|
|
1337
1397
|
}
|
|
@@ -1343,11 +1403,11 @@ var defaultCodingAgentOption = {
|
|
|
1343
1403
|
setConfig(value) {
|
|
1344
1404
|
defaultCodingAgent = validateDefaultCodingAgent(value, "Config.setDefaultCodingAgent()");
|
|
1345
1405
|
},
|
|
1346
|
-
id:
|
|
1406
|
+
id: cliFlag20
|
|
1347
1407
|
};
|
|
1348
1408
|
|
|
1349
1409
|
// src/options/default-editor.tsx
|
|
1350
|
-
import { jsx as
|
|
1410
|
+
import { jsx as jsx19, jsxs as jsxs14, Fragment as Fragment19 } from "react/jsx-runtime";
|
|
1351
1411
|
var defaultEditorIds = [
|
|
1352
1412
|
"vscode",
|
|
1353
1413
|
"cursor",
|
|
@@ -1360,7 +1420,7 @@ var defaultEditorIds = [
|
|
|
1360
1420
|
var customEditorTargetPathPlaceholder = "%TARGET_PATH%";
|
|
1361
1421
|
var customEditorLineNumberPlaceholder = "%LINE_NUMBER%";
|
|
1362
1422
|
var customEditorColumnNumberPlaceholder = "%COLUMN_NUMBER%";
|
|
1363
|
-
var
|
|
1423
|
+
var cliFlag21 = "editor";
|
|
1364
1424
|
var defaultEditor = null;
|
|
1365
1425
|
var validateBuiltInEditor = (value, source) => {
|
|
1366
1426
|
if (typeof value !== "string" || !defaultEditorIds.includes(value)) {
|
|
@@ -1398,11 +1458,11 @@ var validateDefaultEditor = (value, source) => {
|
|
|
1398
1458
|
};
|
|
1399
1459
|
var defaultEditorOption = {
|
|
1400
1460
|
name: "Default editor",
|
|
1401
|
-
cliFlag:
|
|
1402
|
-
description: () => /* @__PURE__ */
|
|
1461
|
+
cliFlag: cliFlag21,
|
|
1462
|
+
description: () => /* @__PURE__ */ jsxs14(Fragment19, {
|
|
1403
1463
|
children: [
|
|
1404
1464
|
"Set the default editor for opening files from Remotion Studio. Available editors: ",
|
|
1405
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ jsx19("code", {
|
|
1406
1466
|
children: defaultEditorIds.join(", ")
|
|
1407
1467
|
}),
|
|
1408
1468
|
"."
|
|
@@ -1412,10 +1472,10 @@ var defaultEditorOption = {
|
|
|
1412
1472
|
docLink: "https://www.remotion.dev/docs/studio/open-in-editor",
|
|
1413
1473
|
type: null,
|
|
1414
1474
|
getValue: ({ commandLine }) => {
|
|
1415
|
-
const cliValue = commandLine[
|
|
1475
|
+
const cliValue = commandLine[cliFlag21];
|
|
1416
1476
|
if (cliValue !== undefined && cliValue !== null) {
|
|
1417
1477
|
return {
|
|
1418
|
-
value: validateBuiltInEditor(cliValue, `--${
|
|
1478
|
+
value: validateBuiltInEditor(cliValue, `--${cliFlag21}`),
|
|
1419
1479
|
source: "cli"
|
|
1420
1480
|
};
|
|
1421
1481
|
}
|
|
@@ -1427,41 +1487,41 @@ var defaultEditorOption = {
|
|
|
1427
1487
|
setConfig(value) {
|
|
1428
1488
|
defaultEditor = validateDefaultEditor(value, "Config.setDefaultEditor()");
|
|
1429
1489
|
},
|
|
1430
|
-
id:
|
|
1490
|
+
id: cliFlag21
|
|
1431
1491
|
};
|
|
1432
1492
|
|
|
1433
1493
|
// src/options/delete-after.tsx
|
|
1434
|
-
import { jsx as
|
|
1435
|
-
var
|
|
1494
|
+
import { jsx as jsx20, jsxs as jsxs15, Fragment as Fragment20 } from "react/jsx-runtime";
|
|
1495
|
+
var cliFlag22 = "delete-after";
|
|
1436
1496
|
var deleteAfter = null;
|
|
1437
1497
|
var deleteAfterOption = {
|
|
1438
1498
|
name: "Lambda render expiration",
|
|
1439
|
-
cliFlag:
|
|
1499
|
+
cliFlag: cliFlag22,
|
|
1440
1500
|
description: () => {
|
|
1441
|
-
return /* @__PURE__ */
|
|
1501
|
+
return /* @__PURE__ */ jsxs15(Fragment20, {
|
|
1442
1502
|
children: [
|
|
1443
1503
|
"Automatically delete the render after a certain period. Accepted values are ",
|
|
1444
|
-
/* @__PURE__ */
|
|
1504
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1445
1505
|
children: "1-day"
|
|
1446
1506
|
}),
|
|
1447
1507
|
", ",
|
|
1448
|
-
/* @__PURE__ */
|
|
1508
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1449
1509
|
children: "3-days"
|
|
1450
1510
|
}),
|
|
1451
1511
|
", ",
|
|
1452
|
-
/* @__PURE__ */
|
|
1512
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1453
1513
|
children: "7-days"
|
|
1454
1514
|
}),
|
|
1455
1515
|
" and",
|
|
1456
1516
|
" ",
|
|
1457
|
-
/* @__PURE__ */
|
|
1517
|
+
/* @__PURE__ */ jsx20("code", {
|
|
1458
1518
|
children: "30-days"
|
|
1459
1519
|
}),
|
|
1460
1520
|
".",
|
|
1461
|
-
/* @__PURE__ */
|
|
1521
|
+
/* @__PURE__ */ jsx20("br", {}),
|
|
1462
1522
|
" For this to work, your bucket needs to have",
|
|
1463
1523
|
" ",
|
|
1464
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ jsx20("a", {
|
|
1465
1525
|
href: "/docs/lambda/autodelete",
|
|
1466
1526
|
children: "lifecycles enabled"
|
|
1467
1527
|
}),
|
|
@@ -1473,10 +1533,10 @@ var deleteAfterOption = {
|
|
|
1473
1533
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
1474
1534
|
type: "1-day",
|
|
1475
1535
|
getValue: ({ commandLine }) => {
|
|
1476
|
-
if (commandLine[
|
|
1536
|
+
if (commandLine[cliFlag22] !== undefined) {
|
|
1477
1537
|
return {
|
|
1478
1538
|
source: "cli",
|
|
1479
|
-
value: commandLine[
|
|
1539
|
+
value: commandLine[cliFlag22]
|
|
1480
1540
|
};
|
|
1481
1541
|
}
|
|
1482
1542
|
if (deleteAfter !== null) {
|
|
@@ -1493,21 +1553,21 @@ var deleteAfterOption = {
|
|
|
1493
1553
|
setConfig: (value) => {
|
|
1494
1554
|
deleteAfter = value;
|
|
1495
1555
|
},
|
|
1496
|
-
id:
|
|
1556
|
+
id: cliFlag22
|
|
1497
1557
|
};
|
|
1498
1558
|
|
|
1499
1559
|
// src/options/disable-git-source.tsx
|
|
1500
1560
|
var DEFAULT2 = false;
|
|
1501
|
-
var
|
|
1561
|
+
var cliFlag23 = "disable-git-source";
|
|
1502
1562
|
var disableGitSourceOption = {
|
|
1503
|
-
cliFlag:
|
|
1563
|
+
cliFlag: cliFlag23,
|
|
1504
1564
|
description: () => `Disables the Git Source being connected to the Remotion Studio. Clicking on stack traces and certain menu items will be disabled.`,
|
|
1505
1565
|
docLink: "https://remotion.dev/docs/bundle",
|
|
1506
1566
|
getValue: ({ commandLine }) => {
|
|
1507
|
-
if (commandLine[
|
|
1567
|
+
if (commandLine[cliFlag23]) {
|
|
1508
1568
|
return {
|
|
1509
1569
|
source: "cli",
|
|
1510
|
-
value: commandLine[
|
|
1570
|
+
value: commandLine[cliFlag23]
|
|
1511
1571
|
};
|
|
1512
1572
|
}
|
|
1513
1573
|
return {
|
|
@@ -1521,27 +1581,27 @@ var disableGitSourceOption = {
|
|
|
1521
1581
|
},
|
|
1522
1582
|
ssrName: "disableGitSource",
|
|
1523
1583
|
type: false,
|
|
1524
|
-
id:
|
|
1584
|
+
id: cliFlag23
|
|
1525
1585
|
};
|
|
1526
1586
|
|
|
1527
1587
|
// src/options/disable-web-security.tsx
|
|
1528
|
-
import { jsx as
|
|
1588
|
+
import { jsx as jsx21, Fragment as Fragment21 } from "react/jsx-runtime";
|
|
1529
1589
|
var disableWebSecurity = false;
|
|
1530
|
-
var
|
|
1590
|
+
var cliFlag24 = "disable-web-security";
|
|
1531
1591
|
var disableWebSecurityOption = {
|
|
1532
1592
|
name: "Disable web security",
|
|
1533
|
-
cliFlag:
|
|
1534
|
-
description: () => /* @__PURE__ */
|
|
1593
|
+
cliFlag: cliFlag24,
|
|
1594
|
+
description: () => /* @__PURE__ */ jsx21(Fragment21, {
|
|
1535
1595
|
children: "This will most notably disable CORS in Chrome among other security features."
|
|
1536
1596
|
}),
|
|
1537
1597
|
ssrName: "disableWebSecurity",
|
|
1538
1598
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-web-security",
|
|
1539
1599
|
type: false,
|
|
1540
1600
|
getValue: ({ commandLine }) => {
|
|
1541
|
-
if (commandLine[
|
|
1601
|
+
if (commandLine[cliFlag24] !== undefined && commandLine[cliFlag24] !== null) {
|
|
1542
1602
|
return {
|
|
1543
1603
|
source: "cli",
|
|
1544
|
-
value: Boolean(commandLine[
|
|
1604
|
+
value: Boolean(commandLine[cliFlag24])
|
|
1545
1605
|
};
|
|
1546
1606
|
}
|
|
1547
1607
|
if (disableWebSecurity) {
|
|
@@ -1558,26 +1618,26 @@ var disableWebSecurityOption = {
|
|
|
1558
1618
|
setConfig: (value) => {
|
|
1559
1619
|
disableWebSecurity = value;
|
|
1560
1620
|
},
|
|
1561
|
-
id:
|
|
1621
|
+
id: cliFlag24
|
|
1562
1622
|
};
|
|
1563
1623
|
|
|
1564
1624
|
// src/options/disallow-parallel-encoding.tsx
|
|
1565
|
-
import { jsx as
|
|
1625
|
+
import { jsx as jsx22, Fragment as Fragment22 } from "react/jsx-runtime";
|
|
1566
1626
|
var disallowParallelEncoding = false;
|
|
1567
|
-
var
|
|
1627
|
+
var cliFlag25 = "disallow-parallel-encoding";
|
|
1568
1628
|
var disallowParallelEncodingOption = {
|
|
1569
1629
|
name: "Disallow parallel encoding",
|
|
1570
|
-
cliFlag:
|
|
1571
|
-
description: () => /* @__PURE__ */
|
|
1630
|
+
cliFlag: cliFlag25,
|
|
1631
|
+
description: () => /* @__PURE__ */ jsx22(Fragment22, {
|
|
1572
1632
|
children: "Disallows the renderer from doing rendering frames and encoding at the same time. This makes the rendering process more memory-efficient, but possibly slower."
|
|
1573
1633
|
}),
|
|
1574
1634
|
ssrName: "disallowParallelEncoding",
|
|
1575
1635
|
docLink: "https://www.remotion.dev/docs/config#setdisallowparallelencoding",
|
|
1576
1636
|
type: false,
|
|
1577
1637
|
getValue: ({ commandLine }) => {
|
|
1578
|
-
if (commandLine[
|
|
1638
|
+
if (commandLine[cliFlag25] !== undefined && commandLine[cliFlag25] !== null) {
|
|
1579
1639
|
return {
|
|
1580
|
-
value: commandLine[
|
|
1640
|
+
value: commandLine[cliFlag25],
|
|
1581
1641
|
source: "cli"
|
|
1582
1642
|
};
|
|
1583
1643
|
}
|
|
@@ -1595,21 +1655,21 @@ var disallowParallelEncodingOption = {
|
|
|
1595
1655
|
setConfig(value) {
|
|
1596
1656
|
disallowParallelEncoding = value;
|
|
1597
1657
|
},
|
|
1598
|
-
id:
|
|
1658
|
+
id: cliFlag25
|
|
1599
1659
|
};
|
|
1600
1660
|
|
|
1601
1661
|
// src/options/enable-lambda-insights.tsx
|
|
1602
|
-
import { jsx as
|
|
1603
|
-
var
|
|
1662
|
+
import { jsx as jsx23, jsxs as jsxs16, Fragment as Fragment23 } from "react/jsx-runtime";
|
|
1663
|
+
var cliFlag26 = "enable-lambda-insights";
|
|
1604
1664
|
var option = false;
|
|
1605
1665
|
var enableLambdaInsights = {
|
|
1606
1666
|
name: "Enable Lambda Insights",
|
|
1607
|
-
cliFlag:
|
|
1608
|
-
description: () => /* @__PURE__ */
|
|
1667
|
+
cliFlag: cliFlag26,
|
|
1668
|
+
description: () => /* @__PURE__ */ jsxs16(Fragment23, {
|
|
1609
1669
|
children: [
|
|
1610
1670
|
"Enable",
|
|
1611
1671
|
" ",
|
|
1612
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ jsx23("a", {
|
|
1613
1673
|
href: "https://remotion.dev/docs/lambda/insights",
|
|
1614
1674
|
children: "Lambda Insights in AWS CloudWatch"
|
|
1615
1675
|
}),
|
|
@@ -1623,9 +1683,9 @@ var enableLambdaInsights = {
|
|
|
1623
1683
|
option = value;
|
|
1624
1684
|
},
|
|
1625
1685
|
getValue: ({ commandLine }) => {
|
|
1626
|
-
if (commandLine[
|
|
1686
|
+
if (commandLine[cliFlag26] !== undefined) {
|
|
1627
1687
|
return {
|
|
1628
|
-
value: commandLine[
|
|
1688
|
+
value: commandLine[cliFlag26],
|
|
1629
1689
|
source: "cli"
|
|
1630
1690
|
};
|
|
1631
1691
|
}
|
|
@@ -1640,41 +1700,41 @@ var enableLambdaInsights = {
|
|
|
1640
1700
|
source: "default"
|
|
1641
1701
|
};
|
|
1642
1702
|
},
|
|
1643
|
-
id:
|
|
1703
|
+
id: cliFlag26
|
|
1644
1704
|
};
|
|
1645
1705
|
|
|
1646
1706
|
// src/options/enable-multiprocess-on-linux.tsx
|
|
1647
|
-
import { jsx as
|
|
1707
|
+
import { jsx as jsx24, jsxs as jsxs17, Fragment as Fragment24 } from "react/jsx-runtime";
|
|
1648
1708
|
var DEFAULT_VALUE2 = true;
|
|
1649
1709
|
var multiProcessOnLinux = DEFAULT_VALUE2;
|
|
1650
|
-
var
|
|
1710
|
+
var cliFlag27 = "enable-multiprocess-on-linux";
|
|
1651
1711
|
var enableMultiprocessOnLinuxOption = {
|
|
1652
1712
|
name: "Enable Multiprocess on Linux",
|
|
1653
|
-
cliFlag:
|
|
1654
|
-
description: () => /* @__PURE__ */
|
|
1713
|
+
cliFlag: cliFlag27,
|
|
1714
|
+
description: () => /* @__PURE__ */ jsxs17(Fragment24, {
|
|
1655
1715
|
children: [
|
|
1656
1716
|
"Removes the ",
|
|
1657
|
-
/* @__PURE__ */
|
|
1717
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1658
1718
|
children: "--single-process"
|
|
1659
1719
|
}),
|
|
1660
1720
|
" flag that gets passed to Chromium on Linux by default. This will make the render faster because multiple processes can be used, but may cause issues with some Linux distributions or if window server libraries are missing.",
|
|
1661
|
-
/* @__PURE__ */
|
|
1721
|
+
/* @__PURE__ */ jsx24("br", {}),
|
|
1662
1722
|
"Default: ",
|
|
1663
|
-
/* @__PURE__ */
|
|
1723
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1664
1724
|
children: "false"
|
|
1665
1725
|
}),
|
|
1666
1726
|
" until v4.0.136, then ",
|
|
1667
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1668
1728
|
children: "true"
|
|
1669
1729
|
}),
|
|
1670
1730
|
" from v4.0.137 on because newer Chrome versions ",
|
|
1671
1731
|
"don't",
|
|
1672
1732
|
" allow rendering with the ",
|
|
1673
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ jsx24("code", {
|
|
1674
1734
|
children: "--single-process"
|
|
1675
1735
|
}),
|
|
1676
1736
|
" flag. ",
|
|
1677
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ jsx24("br", {}),
|
|
1678
1738
|
"This flag will be removed in Remotion v5.0."
|
|
1679
1739
|
]
|
|
1680
1740
|
}),
|
|
@@ -1682,10 +1742,10 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1682
1742
|
docLink: "https://www.remotion.dev/docs/chromium-flags",
|
|
1683
1743
|
type: false,
|
|
1684
1744
|
getValue: ({ commandLine }) => {
|
|
1685
|
-
if (commandLine[
|
|
1745
|
+
if (commandLine[cliFlag27] !== undefined) {
|
|
1686
1746
|
return {
|
|
1687
1747
|
source: "cli",
|
|
1688
|
-
value: commandLine[
|
|
1748
|
+
value: commandLine[cliFlag27]
|
|
1689
1749
|
};
|
|
1690
1750
|
}
|
|
1691
1751
|
if (multiProcessOnLinux !== false) {
|
|
@@ -1702,23 +1762,23 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1702
1762
|
setConfig: (value) => {
|
|
1703
1763
|
multiProcessOnLinux = value;
|
|
1704
1764
|
},
|
|
1705
|
-
id:
|
|
1765
|
+
id: cliFlag27
|
|
1706
1766
|
};
|
|
1707
1767
|
|
|
1708
1768
|
// src/options/encoding-buffer-size.tsx
|
|
1709
|
-
import { jsx as
|
|
1769
|
+
import { jsx as jsx25, jsxs as jsxs18, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
1710
1770
|
var encodingBufferSize = null;
|
|
1711
1771
|
var setEncodingBufferSize = (bitrate) => {
|
|
1712
1772
|
encodingBufferSize = bitrate;
|
|
1713
1773
|
};
|
|
1714
|
-
var
|
|
1774
|
+
var cliFlag28 = "buffer-size";
|
|
1715
1775
|
var encodingBufferSizeOption = {
|
|
1716
1776
|
name: "FFmpeg -bufsize flag",
|
|
1717
|
-
cliFlag:
|
|
1718
|
-
description: () => /* @__PURE__ */
|
|
1777
|
+
cliFlag: cliFlag28,
|
|
1778
|
+
description: () => /* @__PURE__ */ jsxs18(Fragment25, {
|
|
1719
1779
|
children: [
|
|
1720
1780
|
"The value for the ",
|
|
1721
|
-
/* @__PURE__ */
|
|
1781
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1722
1782
|
children: "-bufsize"
|
|
1723
1783
|
}),
|
|
1724
1784
|
" flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."
|
|
@@ -1728,9 +1788,9 @@ var encodingBufferSizeOption = {
|
|
|
1728
1788
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize",
|
|
1729
1789
|
type: "",
|
|
1730
1790
|
getValue: ({ commandLine }) => {
|
|
1731
|
-
if (commandLine[
|
|
1791
|
+
if (commandLine[cliFlag28] !== undefined) {
|
|
1732
1792
|
return {
|
|
1733
|
-
value: commandLine[
|
|
1793
|
+
value: commandLine[cliFlag28],
|
|
1734
1794
|
source: "cli"
|
|
1735
1795
|
};
|
|
1736
1796
|
}
|
|
@@ -1746,20 +1806,20 @@ var encodingBufferSizeOption = {
|
|
|
1746
1806
|
};
|
|
1747
1807
|
},
|
|
1748
1808
|
setConfig: setEncodingBufferSize,
|
|
1749
|
-
id:
|
|
1809
|
+
id: cliFlag28
|
|
1750
1810
|
};
|
|
1751
1811
|
|
|
1752
1812
|
// src/options/encoding-max-rate.tsx
|
|
1753
|
-
import { jsx as
|
|
1813
|
+
import { jsx as jsx26, jsxs as jsxs19, Fragment as Fragment26 } from "react/jsx-runtime";
|
|
1754
1814
|
var encodingMaxRate = null;
|
|
1755
|
-
var
|
|
1815
|
+
var cliFlag29 = "max-rate";
|
|
1756
1816
|
var encodingMaxRateOption = {
|
|
1757
1817
|
name: "FFmpeg -maxrate flag",
|
|
1758
|
-
cliFlag:
|
|
1759
|
-
description: () => /* @__PURE__ */
|
|
1818
|
+
cliFlag: cliFlag29,
|
|
1819
|
+
description: () => /* @__PURE__ */ jsxs19(Fragment26, {
|
|
1760
1820
|
children: [
|
|
1761
1821
|
"The value for the ",
|
|
1762
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1763
1823
|
children: "-maxrate"
|
|
1764
1824
|
}),
|
|
1765
1825
|
" flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."
|
|
@@ -1769,9 +1829,9 @@ var encodingMaxRateOption = {
|
|
|
1769
1829
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate",
|
|
1770
1830
|
type: "",
|
|
1771
1831
|
getValue: ({ commandLine }) => {
|
|
1772
|
-
if (commandLine[
|
|
1832
|
+
if (commandLine[cliFlag29] !== undefined) {
|
|
1773
1833
|
return {
|
|
1774
|
-
value: commandLine[
|
|
1834
|
+
value: commandLine[cliFlag29],
|
|
1775
1835
|
source: "cli"
|
|
1776
1836
|
};
|
|
1777
1837
|
}
|
|
@@ -1789,25 +1849,25 @@ var encodingMaxRateOption = {
|
|
|
1789
1849
|
setConfig: (newMaxRate) => {
|
|
1790
1850
|
encodingMaxRate = newMaxRate;
|
|
1791
1851
|
},
|
|
1792
|
-
id:
|
|
1852
|
+
id: cliFlag29
|
|
1793
1853
|
};
|
|
1794
1854
|
|
|
1795
1855
|
// src/options/enforce-audio.tsx
|
|
1796
|
-
import { jsx as
|
|
1856
|
+
import { jsx as jsx27, Fragment as Fragment27 } from "react/jsx-runtime";
|
|
1797
1857
|
var DEFAULT_ENFORCE_AUDIO_TRACK = false;
|
|
1798
1858
|
var enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
|
|
1799
|
-
var
|
|
1859
|
+
var cliFlag30 = "enforce-audio-track";
|
|
1800
1860
|
var enforceAudioOption = {
|
|
1801
1861
|
name: "Enforce Audio Track",
|
|
1802
|
-
cliFlag:
|
|
1803
|
-
description: () => /* @__PURE__ */
|
|
1862
|
+
cliFlag: cliFlag30,
|
|
1863
|
+
description: () => /* @__PURE__ */ jsx27(Fragment27, {
|
|
1804
1864
|
children: "Render a silent audio track if there would be none otherwise."
|
|
1805
1865
|
}),
|
|
1806
1866
|
ssrName: "enforceAudioTrack",
|
|
1807
1867
|
docLink: "https://www.remotion.dev/docs/config#setenforceaudiotrack-",
|
|
1808
1868
|
type: false,
|
|
1809
1869
|
getValue: ({ commandLine }) => {
|
|
1810
|
-
if (commandLine[
|
|
1870
|
+
if (commandLine[cliFlag30]) {
|
|
1811
1871
|
return {
|
|
1812
1872
|
source: "cli",
|
|
1813
1873
|
value: true
|
|
@@ -1827,20 +1887,20 @@ var enforceAudioOption = {
|
|
|
1827
1887
|
setConfig: (value) => {
|
|
1828
1888
|
enforceAudioTrackState = value;
|
|
1829
1889
|
},
|
|
1830
|
-
id:
|
|
1890
|
+
id: cliFlag30
|
|
1831
1891
|
};
|
|
1832
1892
|
|
|
1833
1893
|
// src/options/env-file.tsx
|
|
1834
|
-
import { jsx as
|
|
1835
|
-
var
|
|
1894
|
+
import { jsx as jsx28, jsxs as jsxs20, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
1895
|
+
var cliFlag31 = "env-file";
|
|
1836
1896
|
var envFileLocation = null;
|
|
1837
1897
|
var envFileOption = {
|
|
1838
1898
|
name: "Env File",
|
|
1839
|
-
cliFlag:
|
|
1840
|
-
description: () => /* @__PURE__ */
|
|
1899
|
+
cliFlag: cliFlag31,
|
|
1900
|
+
description: () => /* @__PURE__ */ jsxs20(Fragment28, {
|
|
1841
1901
|
children: [
|
|
1842
1902
|
"Specify a location for a dotenv file. Default ",
|
|
1843
|
-
/* @__PURE__ */
|
|
1903
|
+
/* @__PURE__ */ jsx28("code", {
|
|
1844
1904
|
children: ".env"
|
|
1845
1905
|
}),
|
|
1846
1906
|
"."
|
|
@@ -1849,10 +1909,10 @@ var envFileOption = {
|
|
|
1849
1909
|
ssrName: null,
|
|
1850
1910
|
docLink: "https://www.remotion.dev/docs/cli/render#--env-file",
|
|
1851
1911
|
getValue: ({ commandLine }) => {
|
|
1852
|
-
if (commandLine[
|
|
1912
|
+
if (commandLine[cliFlag31] !== undefined) {
|
|
1853
1913
|
return {
|
|
1854
1914
|
source: "cli",
|
|
1855
|
-
value: commandLine[
|
|
1915
|
+
value: commandLine[cliFlag31]
|
|
1856
1916
|
};
|
|
1857
1917
|
}
|
|
1858
1918
|
if (envFileLocation !== null) {
|
|
@@ -1870,30 +1930,30 @@ var envFileOption = {
|
|
|
1870
1930
|
envFileLocation = value;
|
|
1871
1931
|
},
|
|
1872
1932
|
type: "",
|
|
1873
|
-
id:
|
|
1933
|
+
id: cliFlag31
|
|
1874
1934
|
};
|
|
1875
1935
|
|
|
1876
1936
|
// src/options/every-nth-frame.tsx
|
|
1877
|
-
import { jsx as
|
|
1937
|
+
import { jsx as jsx29, jsxs as jsxs21, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
1878
1938
|
var DEFAULT_EVERY_NTH_FRAME = 1;
|
|
1879
1939
|
var everyNthFrame = DEFAULT_EVERY_NTH_FRAME;
|
|
1880
|
-
var
|
|
1940
|
+
var cliFlag32 = "every-nth-frame";
|
|
1881
1941
|
var everyNthFrameOption = {
|
|
1882
1942
|
name: "Every nth frame",
|
|
1883
|
-
cliFlag:
|
|
1884
|
-
description: () => /* @__PURE__ */
|
|
1943
|
+
cliFlag: cliFlag32,
|
|
1944
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment29, {
|
|
1885
1945
|
children: [
|
|
1886
1946
|
"This option may only be set when rendering GIFs. It determines how many frames are rendered, while the other ones get skipped in order to lower the FPS of the GIF. For example, if the ",
|
|
1887
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1888
1948
|
children: "fps"
|
|
1889
1949
|
}),
|
|
1890
1950
|
" is 30, and",
|
|
1891
1951
|
" ",
|
|
1892
|
-
/* @__PURE__ */
|
|
1952
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1893
1953
|
children: "everyNthFrame"
|
|
1894
1954
|
}),
|
|
1895
1955
|
" is 2, the FPS of the GIF is ",
|
|
1896
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx29("code", {
|
|
1897
1957
|
children: "15"
|
|
1898
1958
|
}),
|
|
1899
1959
|
"."
|
|
@@ -1903,10 +1963,10 @@ var everyNthFrameOption = {
|
|
|
1903
1963
|
docLink: "https://www.remotion.dev/docs/config#seteverynthframe",
|
|
1904
1964
|
type: DEFAULT_EVERY_NTH_FRAME,
|
|
1905
1965
|
getValue: ({ commandLine }) => {
|
|
1906
|
-
if (commandLine[
|
|
1966
|
+
if (commandLine[cliFlag32] !== undefined) {
|
|
1907
1967
|
return {
|
|
1908
1968
|
source: "cli",
|
|
1909
|
-
value: commandLine[
|
|
1969
|
+
value: commandLine[cliFlag32]
|
|
1910
1970
|
};
|
|
1911
1971
|
}
|
|
1912
1972
|
if (everyNthFrame !== DEFAULT_EVERY_NTH_FRAME) {
|
|
@@ -1923,20 +1983,20 @@ var everyNthFrameOption = {
|
|
|
1923
1983
|
setConfig: (value) => {
|
|
1924
1984
|
everyNthFrame = value;
|
|
1925
1985
|
},
|
|
1926
|
-
id:
|
|
1986
|
+
id: cliFlag32
|
|
1927
1987
|
};
|
|
1928
1988
|
|
|
1929
1989
|
// src/options/experimental-keep-audio-context-alive.tsx
|
|
1930
|
-
import { jsx as
|
|
1990
|
+
import { jsx as jsx30, jsxs as jsxs22, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
1931
1991
|
var experimentalKeepAudioContextAlive = false;
|
|
1932
|
-
var
|
|
1992
|
+
var cliFlag33 = "experimental-keep-audio-context-alive";
|
|
1933
1993
|
var experimentalKeepAudioContextAliveOption = {
|
|
1934
1994
|
name: "Keep AudioContext alive (experimental)",
|
|
1935
|
-
cliFlag:
|
|
1936
|
-
description: () => /* @__PURE__ */
|
|
1995
|
+
cliFlag: cliFlag33,
|
|
1996
|
+
description: () => /* @__PURE__ */ jsxs22(Fragment30, {
|
|
1937
1997
|
children: [
|
|
1938
1998
|
"Keeps the shared ",
|
|
1939
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ jsx30("code", {
|
|
1940
2000
|
children: "AudioContext"
|
|
1941
2001
|
}),
|
|
1942
2002
|
" running while the Remotion Studio is paused."
|
|
@@ -1946,9 +2006,9 @@ var experimentalKeepAudioContextAliveOption = {
|
|
|
1946
2006
|
docLink: "https://www.remotion.dev/docs/config#setexperimentalkeepaudiocontextalive",
|
|
1947
2007
|
type: false,
|
|
1948
2008
|
getValue: ({ commandLine }) => {
|
|
1949
|
-
if (commandLine[
|
|
2009
|
+
if (commandLine[cliFlag33] !== undefined && commandLine[cliFlag33] !== null) {
|
|
1950
2010
|
return {
|
|
1951
|
-
value: commandLine[
|
|
2011
|
+
value: commandLine[cliFlag33],
|
|
1952
2012
|
source: "cli"
|
|
1953
2013
|
};
|
|
1954
2014
|
}
|
|
@@ -1960,26 +2020,26 @@ var experimentalKeepAudioContextAliveOption = {
|
|
|
1960
2020
|
setConfig(value) {
|
|
1961
2021
|
experimentalKeepAudioContextAlive = value;
|
|
1962
2022
|
},
|
|
1963
|
-
id:
|
|
2023
|
+
id: cliFlag33
|
|
1964
2024
|
};
|
|
1965
2025
|
|
|
1966
2026
|
// src/options/folder-expiry.tsx
|
|
1967
|
-
import { jsx as
|
|
2027
|
+
import { jsx as jsx31, jsxs as jsxs23, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
1968
2028
|
var enableFolderExpiry = null;
|
|
1969
|
-
var
|
|
2029
|
+
var cliFlag34 = "enable-folder-expiry";
|
|
1970
2030
|
var folderExpiryOption = {
|
|
1971
2031
|
name: "Lambda render expiration",
|
|
1972
|
-
cliFlag:
|
|
2032
|
+
cliFlag: cliFlag34,
|
|
1973
2033
|
description: () => {
|
|
1974
|
-
return /* @__PURE__ */
|
|
2034
|
+
return /* @__PURE__ */ jsxs23(Fragment31, {
|
|
1975
2035
|
children: [
|
|
1976
2036
|
"When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
|
|
1977
2037
|
" ",
|
|
1978
|
-
/* @__PURE__ */
|
|
2038
|
+
/* @__PURE__ */ jsx31("code", {
|
|
1979
2039
|
children: "null"
|
|
1980
2040
|
}),
|
|
1981
2041
|
", which does not change any lifecycle policies of the S3 bucket. See: ",
|
|
1982
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ jsx31("a", {
|
|
1983
2043
|
href: "/docs/lambda/autodelete",
|
|
1984
2044
|
children: "Lambda autodelete"
|
|
1985
2045
|
}),
|
|
@@ -1991,10 +2051,10 @@ var folderExpiryOption = {
|
|
|
1991
2051
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
1992
2052
|
type: false,
|
|
1993
2053
|
getValue: ({ commandLine }) => {
|
|
1994
|
-
if (commandLine[
|
|
2054
|
+
if (commandLine[cliFlag34] !== undefined) {
|
|
1995
2055
|
return {
|
|
1996
2056
|
source: "cli",
|
|
1997
|
-
value: commandLine[
|
|
2057
|
+
value: commandLine[cliFlag34]
|
|
1998
2058
|
};
|
|
1999
2059
|
}
|
|
2000
2060
|
if (enableFolderExpiry !== null) {
|
|
@@ -2011,28 +2071,28 @@ var folderExpiryOption = {
|
|
|
2011
2071
|
setConfig: (value) => {
|
|
2012
2072
|
enableFolderExpiry = value;
|
|
2013
2073
|
},
|
|
2014
|
-
id:
|
|
2074
|
+
id: cliFlag34
|
|
2015
2075
|
};
|
|
2016
2076
|
|
|
2017
2077
|
// src/options/for-seamless-aac-concatenation.tsx
|
|
2018
|
-
import { jsx as
|
|
2078
|
+
import { jsx as jsx32, jsxs as jsxs24, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2019
2079
|
var DEFAULT3 = false;
|
|
2020
2080
|
var forSeamlessAacConcatenation = DEFAULT3;
|
|
2021
|
-
var
|
|
2081
|
+
var cliFlag35 = "for-seamless-aac-concatenation";
|
|
2022
2082
|
var forSeamlessAacConcatenationOption = {
|
|
2023
2083
|
name: "For seamless AAC concatenation",
|
|
2024
|
-
cliFlag:
|
|
2025
|
-
description: () => /* @__PURE__ */
|
|
2084
|
+
cliFlag: cliFlag35,
|
|
2085
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment32, {
|
|
2026
2086
|
children: [
|
|
2027
2087
|
"If enabled, the audio is trimmed to the nearest AAC frame, which is required for seamless concatenation of AAC files. This is a requirement if you later want to combine multiple video snippets seamlessly.",
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ jsx32("br", {}),
|
|
2089
|
+
/* @__PURE__ */ jsx32("br", {}),
|
|
2030
2090
|
" This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
|
|
2031
2091
|
]
|
|
2032
2092
|
}),
|
|
2033
2093
|
docLink: "https://remotion.dev/docs/renderer",
|
|
2034
2094
|
getValue: ({ commandLine }) => {
|
|
2035
|
-
if (commandLine[
|
|
2095
|
+
if (commandLine[cliFlag35]) {
|
|
2036
2096
|
return {
|
|
2037
2097
|
source: "cli",
|
|
2038
2098
|
value: true
|
|
@@ -2054,26 +2114,26 @@ var forSeamlessAacConcatenationOption = {
|
|
|
2054
2114
|
},
|
|
2055
2115
|
ssrName: "forSeamlessAacConcatenation",
|
|
2056
2116
|
type: false,
|
|
2057
|
-
id:
|
|
2117
|
+
id: cliFlag35
|
|
2058
2118
|
};
|
|
2059
2119
|
|
|
2060
2120
|
// src/options/force-new-studio.tsx
|
|
2061
|
-
import { jsx as
|
|
2121
|
+
import { jsx as jsx33, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2062
2122
|
var forceNewEnabled = false;
|
|
2063
|
-
var
|
|
2123
|
+
var cliFlag36 = "force-new";
|
|
2064
2124
|
var forceNewStudioOption = {
|
|
2065
2125
|
name: "Force New Studio",
|
|
2066
|
-
cliFlag:
|
|
2067
|
-
description: () => /* @__PURE__ */
|
|
2126
|
+
cliFlag: cliFlag36,
|
|
2127
|
+
description: () => /* @__PURE__ */ jsx33(Fragment33, {
|
|
2068
2128
|
children: "Forces starting a new Studio instance even if one is already running on the same port for the same project."
|
|
2069
2129
|
}),
|
|
2070
2130
|
ssrName: null,
|
|
2071
2131
|
docLink: "https://www.remotion.dev/docs/config#setforcenewstudioenabled",
|
|
2072
2132
|
type: false,
|
|
2073
2133
|
getValue: ({ commandLine }) => {
|
|
2074
|
-
if (commandLine[
|
|
2134
|
+
if (commandLine[cliFlag36] !== undefined && commandLine[cliFlag36] !== null) {
|
|
2075
2135
|
return {
|
|
2076
|
-
value: commandLine[
|
|
2136
|
+
value: commandLine[cliFlag36],
|
|
2077
2137
|
source: "cli"
|
|
2078
2138
|
};
|
|
2079
2139
|
}
|
|
@@ -2085,7 +2145,7 @@ var forceNewStudioOption = {
|
|
|
2085
2145
|
setConfig(value) {
|
|
2086
2146
|
forceNewEnabled = value;
|
|
2087
2147
|
},
|
|
2088
|
-
id:
|
|
2148
|
+
id: cliFlag36
|
|
2089
2149
|
};
|
|
2090
2150
|
|
|
2091
2151
|
// src/frame-range.ts
|
|
@@ -2204,8 +2264,8 @@ var validateSelectedFrames = ({
|
|
|
2204
2264
|
};
|
|
2205
2265
|
|
|
2206
2266
|
// src/options/frames.tsx
|
|
2207
|
-
import { jsx as
|
|
2208
|
-
var
|
|
2267
|
+
import { jsx as jsx34, jsxs as jsxs25, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2268
|
+
var cliFlag37 = "frames";
|
|
2209
2269
|
var frameSelection = null;
|
|
2210
2270
|
var parseFrameRangeFromCli = (newFrameRange) => {
|
|
2211
2271
|
if (typeof newFrameRange === "number") {
|
|
@@ -2282,16 +2342,16 @@ var parseFrameRangeFromCli = (newFrameRange) => {
|
|
|
2282
2342
|
};
|
|
2283
2343
|
var framesOption = {
|
|
2284
2344
|
name: "Frame Range",
|
|
2285
|
-
cliFlag:
|
|
2286
|
-
description: () => /* @__PURE__ */
|
|
2345
|
+
cliFlag: cliFlag37,
|
|
2346
|
+
description: () => /* @__PURE__ */ jsxs25(Fragment34, {
|
|
2287
2347
|
children: [
|
|
2288
2348
|
"Render a subset of a video. Pass a single number to render a still, or a range (e.g. ",
|
|
2289
|
-
/* @__PURE__ */
|
|
2349
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2290
2350
|
children: "0-9"
|
|
2291
2351
|
}),
|
|
2292
2352
|
") to render a subset of frames. Pass",
|
|
2293
2353
|
" ",
|
|
2294
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ jsx34("code", {
|
|
2295
2355
|
children: "100-"
|
|
2296
2356
|
}),
|
|
2297
2357
|
" to render from frame 100 to the end."
|
|
@@ -2301,8 +2361,8 @@ var framesOption = {
|
|
|
2301
2361
|
docLink: "https://www.remotion.dev/docs/config#setframerange",
|
|
2302
2362
|
type: null,
|
|
2303
2363
|
getValue: ({ commandLine }) => {
|
|
2304
|
-
if (commandLine[
|
|
2305
|
-
const value = parseFrameRangeFromCli(commandLine[
|
|
2364
|
+
if (commandLine[cliFlag37] !== undefined) {
|
|
2365
|
+
const value = parseFrameRangeFromCli(commandLine[cliFlag37]);
|
|
2306
2366
|
if (typeof value === "object" && !Array.isArray(value)) {
|
|
2307
2367
|
validateSelectedFrames({
|
|
2308
2368
|
frames: value.frames,
|
|
@@ -2329,12 +2389,12 @@ var framesOption = {
|
|
|
2329
2389
|
}
|
|
2330
2390
|
frameSelection = value;
|
|
2331
2391
|
},
|
|
2332
|
-
id:
|
|
2392
|
+
id: cliFlag37
|
|
2333
2393
|
};
|
|
2334
2394
|
|
|
2335
2395
|
// src/options/gl.tsx
|
|
2336
2396
|
import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
|
|
2337
|
-
import { jsx as
|
|
2397
|
+
import { jsx as jsx35, jsxs as jsxs26, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2338
2398
|
var validOpenGlRenderers = [
|
|
2339
2399
|
"swangle",
|
|
2340
2400
|
"angle",
|
|
@@ -2349,42 +2409,42 @@ var getDefaultOpenGlRenderer = (enableV5BreakingChanges) => {
|
|
|
2349
2409
|
var DEFAULT_OPENGL_RENDERER = getDefaultOpenGlRenderer(NoReactInternals2.ENABLE_V5_BREAKING_CHANGES);
|
|
2350
2410
|
var openGlRenderer = DEFAULT_OPENGL_RENDERER;
|
|
2351
2411
|
var AngleChangelog = () => {
|
|
2352
|
-
return /* @__PURE__ */
|
|
2412
|
+
return /* @__PURE__ */ jsxs26("details", {
|
|
2353
2413
|
style: { fontSize: "0.9em", marginBottom: "1em" },
|
|
2354
2414
|
children: [
|
|
2355
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ jsx35("summary", {
|
|
2356
2416
|
children: "Changelog"
|
|
2357
2417
|
}),
|
|
2358
|
-
/* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ jsxs26("ul", {
|
|
2359
2419
|
children: [
|
|
2360
|
-
/* @__PURE__ */
|
|
2420
|
+
/* @__PURE__ */ jsxs26("li", {
|
|
2361
2421
|
children: [
|
|
2362
2422
|
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
|
|
2363
2423
|
" ",
|
|
2364
|
-
/* @__PURE__ */
|
|
2424
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2365
2425
|
children: "swiftshader"
|
|
2366
2426
|
}),
|
|
2367
2427
|
", but from v3.0.8 the default is",
|
|
2368
2428
|
" ",
|
|
2369
|
-
/* @__PURE__ */
|
|
2429
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2370
2430
|
children: "swangle"
|
|
2371
2431
|
}),
|
|
2372
2432
|
" (Swiftshader on Angle) since Chrome 101 added support for it."
|
|
2373
2433
|
]
|
|
2374
2434
|
}),
|
|
2375
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ jsxs26("li", {
|
|
2376
2436
|
children: [
|
|
2377
2437
|
"From Remotion v2.4.3 until v2.6.6, the default was ",
|
|
2378
|
-
/* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2379
2439
|
children: "angle"
|
|
2380
2440
|
}),
|
|
2381
2441
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
2382
2442
|
]
|
|
2383
2443
|
}),
|
|
2384
|
-
NoReactInternals2.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */
|
|
2444
|
+
NoReactInternals2.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */ jsxs26("li", {
|
|
2385
2445
|
children: [
|
|
2386
2446
|
"From Remotion v5.0, the default is ",
|
|
2387
|
-
/* @__PURE__ */
|
|
2447
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2388
2448
|
children: "angle"
|
|
2389
2449
|
}),
|
|
2390
2450
|
". If no compatible GPU is available, Chromium automatically falls back to SwiftShader."
|
|
@@ -2395,65 +2455,65 @@ var AngleChangelog = () => {
|
|
|
2395
2455
|
]
|
|
2396
2456
|
});
|
|
2397
2457
|
};
|
|
2398
|
-
var
|
|
2458
|
+
var cliFlag38 = "gl";
|
|
2399
2459
|
var glOption = {
|
|
2400
|
-
cliFlag:
|
|
2460
|
+
cliFlag: cliFlag38,
|
|
2401
2461
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
|
|
2402
2462
|
name: "OpenGL renderer",
|
|
2403
2463
|
type: "angle",
|
|
2404
2464
|
ssrName: "gl",
|
|
2405
2465
|
description: () => {
|
|
2406
|
-
return /* @__PURE__ */
|
|
2466
|
+
return /* @__PURE__ */ jsxs26(Fragment35, {
|
|
2407
2467
|
children: [
|
|
2408
|
-
/* @__PURE__ */
|
|
2409
|
-
/* @__PURE__ */
|
|
2468
|
+
/* @__PURE__ */ jsx35(AngleChangelog, {}),
|
|
2469
|
+
/* @__PURE__ */ jsxs26("p", {
|
|
2410
2470
|
children: [
|
|
2411
2471
|
"Select the OpenGL renderer backend for Chromium. ",
|
|
2412
|
-
/* @__PURE__ */
|
|
2472
|
+
/* @__PURE__ */ jsx35("br", {}),
|
|
2413
2473
|
"Accepted values:"
|
|
2414
2474
|
]
|
|
2415
2475
|
}),
|
|
2416
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ jsxs26("ul", {
|
|
2417
2477
|
children: [
|
|
2418
|
-
/* @__PURE__ */
|
|
2419
|
-
children: /* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ jsx35("li", {
|
|
2479
|
+
children: /* @__PURE__ */ jsx35("code", {
|
|
2420
2480
|
children: '"angle"'
|
|
2421
2481
|
})
|
|
2422
2482
|
}),
|
|
2423
|
-
/* @__PURE__ */
|
|
2424
|
-
children: /* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ jsx35("li", {
|
|
2484
|
+
children: /* @__PURE__ */ jsx35("code", {
|
|
2425
2485
|
children: '"egl"'
|
|
2426
2486
|
})
|
|
2427
2487
|
}),
|
|
2428
|
-
/* @__PURE__ */
|
|
2429
|
-
children: /* @__PURE__ */
|
|
2488
|
+
/* @__PURE__ */ jsx35("li", {
|
|
2489
|
+
children: /* @__PURE__ */ jsx35("code", {
|
|
2430
2490
|
children: '"swiftshader"'
|
|
2431
2491
|
})
|
|
2432
2492
|
}),
|
|
2433
|
-
/* @__PURE__ */
|
|
2434
|
-
children: /* @__PURE__ */
|
|
2493
|
+
/* @__PURE__ */ jsx35("li", {
|
|
2494
|
+
children: /* @__PURE__ */ jsx35("code", {
|
|
2435
2495
|
children: '"swangle"'
|
|
2436
2496
|
})
|
|
2437
2497
|
}),
|
|
2438
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ jsxs26("li", {
|
|
2439
2499
|
children: [
|
|
2440
|
-
/* @__PURE__ */
|
|
2500
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2441
2501
|
children: '"vulkan"'
|
|
2442
2502
|
}),
|
|
2443
2503
|
" (",
|
|
2444
|
-
/* @__PURE__ */
|
|
2504
|
+
/* @__PURE__ */ jsx35("em", {
|
|
2445
2505
|
children: "from Remotion v4.0.41"
|
|
2446
2506
|
}),
|
|
2447
2507
|
")"
|
|
2448
2508
|
]
|
|
2449
2509
|
}),
|
|
2450
|
-
/* @__PURE__ */
|
|
2510
|
+
/* @__PURE__ */ jsxs26("li", {
|
|
2451
2511
|
children: [
|
|
2452
|
-
/* @__PURE__ */
|
|
2512
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2453
2513
|
children: '"angle-egl"'
|
|
2454
2514
|
}),
|
|
2455
2515
|
" (",
|
|
2456
|
-
/* @__PURE__ */
|
|
2516
|
+
/* @__PURE__ */ jsx35("em", {
|
|
2457
2517
|
children: "from Remotion v4.0.51"
|
|
2458
2518
|
}),
|
|
2459
2519
|
")"
|
|
@@ -2461,16 +2521,16 @@ var glOption = {
|
|
|
2461
2521
|
})
|
|
2462
2522
|
]
|
|
2463
2523
|
}),
|
|
2464
|
-
/* @__PURE__ */
|
|
2524
|
+
/* @__PURE__ */ jsxs26("p", {
|
|
2465
2525
|
children: [
|
|
2466
2526
|
"The default is",
|
|
2467
2527
|
" ",
|
|
2468
|
-
/* @__PURE__ */
|
|
2528
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2469
2529
|
children: DEFAULT_OPENGL_RENDERER === null ? "null" : `"${DEFAULT_OPENGL_RENDERER}"`
|
|
2470
2530
|
}),
|
|
2471
2531
|
DEFAULT_OPENGL_RENDERER === null ? ", letting Chrome decide" : ", with automatic fallback to SwiftShader if no compatible GPU is available",
|
|
2472
2532
|
", except on Lambda where the default is ",
|
|
2473
|
-
/* @__PURE__ */
|
|
2533
|
+
/* @__PURE__ */ jsx35("code", {
|
|
2474
2534
|
children: '"swangle"'
|
|
2475
2535
|
})
|
|
2476
2536
|
]
|
|
@@ -2479,10 +2539,10 @@ var glOption = {
|
|
|
2479
2539
|
});
|
|
2480
2540
|
},
|
|
2481
2541
|
getValue: ({ commandLine }) => {
|
|
2482
|
-
if (commandLine[
|
|
2483
|
-
validateOpenGlRenderer(commandLine[
|
|
2542
|
+
if (commandLine[cliFlag38]) {
|
|
2543
|
+
validateOpenGlRenderer(commandLine[cliFlag38]);
|
|
2484
2544
|
return {
|
|
2485
|
-
value: commandLine[
|
|
2545
|
+
value: commandLine[cliFlag38],
|
|
2486
2546
|
source: "cli"
|
|
2487
2547
|
};
|
|
2488
2548
|
}
|
|
@@ -2501,7 +2561,7 @@ var glOption = {
|
|
|
2501
2561
|
validateOpenGlRenderer(value);
|
|
2502
2562
|
openGlRenderer = value;
|
|
2503
2563
|
},
|
|
2504
|
-
id:
|
|
2564
|
+
id: cliFlag38
|
|
2505
2565
|
};
|
|
2506
2566
|
var validateOpenGlRenderer = (option2) => {
|
|
2507
2567
|
if (option2 === null) {
|
|
@@ -2514,7 +2574,7 @@ var validateOpenGlRenderer = (option2) => {
|
|
|
2514
2574
|
};
|
|
2515
2575
|
|
|
2516
2576
|
// src/options/gop-size.tsx
|
|
2517
|
-
import { jsx as
|
|
2577
|
+
import { jsx as jsx36, jsxs as jsxs27, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2518
2578
|
var gopSize = null;
|
|
2519
2579
|
var validateGopSize = (value) => {
|
|
2520
2580
|
if (value === null) {
|
|
@@ -2524,14 +2584,14 @@ var validateGopSize = (value) => {
|
|
|
2524
2584
|
throw new TypeError("The GOP size must be an integer greater than 0 or null.");
|
|
2525
2585
|
}
|
|
2526
2586
|
};
|
|
2527
|
-
var
|
|
2587
|
+
var cliFlag39 = "gop";
|
|
2528
2588
|
var gopSizeOption = {
|
|
2529
2589
|
name: "GOP size",
|
|
2530
|
-
cliFlag:
|
|
2531
|
-
description: () => /* @__PURE__ */
|
|
2590
|
+
cliFlag: cliFlag39,
|
|
2591
|
+
description: () => /* @__PURE__ */ jsxs27(Fragment36, {
|
|
2532
2592
|
children: [
|
|
2533
2593
|
"Set the maximum number of frames between two keyframes. This maps to FFmpeg's ",
|
|
2534
|
-
/* @__PURE__ */
|
|
2594
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2535
2595
|
children: "-g"
|
|
2536
2596
|
}),
|
|
2537
2597
|
" option. Default: Let the encoder decide."
|
|
@@ -2541,7 +2601,7 @@ var gopSizeOption = {
|
|
|
2541
2601
|
docLink: "https://www.remotion.dev/docs/config#setgopsize",
|
|
2542
2602
|
type: null,
|
|
2543
2603
|
getValue: ({ commandLine }) => {
|
|
2544
|
-
const value = commandLine[
|
|
2604
|
+
const value = commandLine[cliFlag39];
|
|
2545
2605
|
if (value !== undefined) {
|
|
2546
2606
|
validateGopSize(value);
|
|
2547
2607
|
return { value, source: "cli" };
|
|
@@ -2552,7 +2612,7 @@ var gopSizeOption = {
|
|
|
2552
2612
|
validateGopSize(value);
|
|
2553
2613
|
gopSize = value;
|
|
2554
2614
|
},
|
|
2555
|
-
id:
|
|
2615
|
+
id: cliFlag39
|
|
2556
2616
|
};
|
|
2557
2617
|
|
|
2558
2618
|
// src/options/hardware-acceleration.tsx
|
|
@@ -2561,11 +2621,11 @@ var hardwareAccelerationOptions = [
|
|
|
2561
2621
|
"if-possible",
|
|
2562
2622
|
"required"
|
|
2563
2623
|
];
|
|
2564
|
-
var
|
|
2624
|
+
var cliFlag40 = "hardware-acceleration";
|
|
2565
2625
|
var currentValue = null;
|
|
2566
2626
|
var hardwareAccelerationOption = {
|
|
2567
2627
|
name: "Hardware Acceleration",
|
|
2568
|
-
cliFlag:
|
|
2628
|
+
cliFlag: cliFlag40,
|
|
2569
2629
|
description: () => `
|
|
2570
2630
|
One of
|
|
2571
2631
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -2577,10 +2637,10 @@ var hardwareAccelerationOption = {
|
|
|
2577
2637
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
2578
2638
|
type: "disable",
|
|
2579
2639
|
getValue: ({ commandLine }) => {
|
|
2580
|
-
if (commandLine[
|
|
2581
|
-
const value = commandLine[
|
|
2640
|
+
if (commandLine[cliFlag40] !== undefined) {
|
|
2641
|
+
const value = commandLine[cliFlag40];
|
|
2582
2642
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2583
|
-
throw new Error(`Invalid value for --${
|
|
2643
|
+
throw new Error(`Invalid value for --${cliFlag40}: ${value}`);
|
|
2584
2644
|
}
|
|
2585
2645
|
return {
|
|
2586
2646
|
source: "cli",
|
|
@@ -2600,26 +2660,26 @@ var hardwareAccelerationOption = {
|
|
|
2600
2660
|
},
|
|
2601
2661
|
setConfig: (value) => {
|
|
2602
2662
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2603
|
-
throw new Error(`Invalid value for --${
|
|
2663
|
+
throw new Error(`Invalid value for --${cliFlag40}: ${value}`);
|
|
2604
2664
|
}
|
|
2605
2665
|
currentValue = value;
|
|
2606
2666
|
},
|
|
2607
|
-
id:
|
|
2667
|
+
id: cliFlag40
|
|
2608
2668
|
};
|
|
2609
2669
|
|
|
2610
2670
|
// src/options/headless.tsx
|
|
2611
|
-
import { jsx as
|
|
2671
|
+
import { jsx as jsx37, jsxs as jsxs28, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2612
2672
|
var DEFAULT4 = true;
|
|
2613
2673
|
var headlessMode = DEFAULT4;
|
|
2614
|
-
var
|
|
2674
|
+
var cliFlag41 = "disable-headless";
|
|
2615
2675
|
var headlessOption = {
|
|
2616
2676
|
name: "Disable Headless Mode",
|
|
2617
|
-
cliFlag:
|
|
2618
|
-
description: () => /* @__PURE__ */
|
|
2677
|
+
cliFlag: cliFlag41,
|
|
2678
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment37, {
|
|
2619
2679
|
children: [
|
|
2620
2680
|
"If disabled, the render will open an actual Chrome window where you can see the render happen. This requires",
|
|
2621
2681
|
" ",
|
|
2622
|
-
/* @__PURE__ */
|
|
2682
|
+
/* @__PURE__ */ jsx37("a", {
|
|
2623
2683
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
2624
2684
|
children: "Chrome for Testing"
|
|
2625
2685
|
}),
|
|
@@ -2631,10 +2691,10 @@ var headlessOption = {
|
|
|
2631
2691
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
2632
2692
|
type: false,
|
|
2633
2693
|
getValue: ({ commandLine }) => {
|
|
2634
|
-
if (commandLine[
|
|
2694
|
+
if (commandLine[cliFlag41] !== undefined && commandLine[cliFlag41] !== null) {
|
|
2635
2695
|
return {
|
|
2636
2696
|
source: "cli",
|
|
2637
|
-
value: !commandLine[
|
|
2697
|
+
value: !commandLine[cliFlag41]
|
|
2638
2698
|
};
|
|
2639
2699
|
}
|
|
2640
2700
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -2651,27 +2711,27 @@ var headlessOption = {
|
|
|
2651
2711
|
setConfig: (value) => {
|
|
2652
2712
|
headlessMode = value;
|
|
2653
2713
|
},
|
|
2654
|
-
id:
|
|
2714
|
+
id: cliFlag41
|
|
2655
2715
|
};
|
|
2656
2716
|
|
|
2657
2717
|
// src/options/ignore-certificate-errors.tsx
|
|
2658
|
-
import { jsx as
|
|
2718
|
+
import { jsx as jsx38, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2659
2719
|
var ignoreCertificateErrors = false;
|
|
2660
|
-
var
|
|
2720
|
+
var cliFlag42 = "ignore-certificate-errors";
|
|
2661
2721
|
var ignoreCertificateErrorsOption = {
|
|
2662
2722
|
name: "Ignore certificate errors",
|
|
2663
|
-
cliFlag:
|
|
2664
|
-
description: () => /* @__PURE__ */
|
|
2723
|
+
cliFlag: cliFlag42,
|
|
2724
|
+
description: () => /* @__PURE__ */ jsx38(Fragment38, {
|
|
2665
2725
|
children: "Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored."
|
|
2666
2726
|
}),
|
|
2667
2727
|
ssrName: "ignoreCertificateErrors",
|
|
2668
2728
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors",
|
|
2669
2729
|
type: false,
|
|
2670
2730
|
getValue: ({ commandLine }) => {
|
|
2671
|
-
if (commandLine[
|
|
2731
|
+
if (commandLine[cliFlag42] !== undefined && commandLine[cliFlag42] !== null) {
|
|
2672
2732
|
return {
|
|
2673
2733
|
source: "cli",
|
|
2674
|
-
value: Boolean(commandLine[
|
|
2734
|
+
value: Boolean(commandLine[cliFlag42])
|
|
2675
2735
|
};
|
|
2676
2736
|
}
|
|
2677
2737
|
if (ignoreCertificateErrors) {
|
|
@@ -2688,23 +2748,23 @@ var ignoreCertificateErrorsOption = {
|
|
|
2688
2748
|
setConfig: (value) => {
|
|
2689
2749
|
ignoreCertificateErrors = value;
|
|
2690
2750
|
},
|
|
2691
|
-
id:
|
|
2751
|
+
id: cliFlag42
|
|
2692
2752
|
};
|
|
2693
2753
|
|
|
2694
2754
|
// src/options/image-sequence.tsx
|
|
2695
|
-
import { jsx as
|
|
2696
|
-
var
|
|
2755
|
+
import { jsx as jsx39, jsxs as jsxs29, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2756
|
+
var cliFlag43 = "sequence";
|
|
2697
2757
|
var imageSequence = false;
|
|
2698
2758
|
var imageSequenceOption = {
|
|
2699
2759
|
name: "Image Sequence",
|
|
2700
|
-
cliFlag:
|
|
2701
|
-
description: () => /* @__PURE__ */
|
|
2760
|
+
cliFlag: cliFlag43,
|
|
2761
|
+
description: () => /* @__PURE__ */ jsxs29(Fragment39, {
|
|
2702
2762
|
children: [
|
|
2703
2763
|
"Pass this flag to output an image sequence instead of a video. The default image format is JPEG. See",
|
|
2704
2764
|
" ",
|
|
2705
|
-
/* @__PURE__ */
|
|
2765
|
+
/* @__PURE__ */ jsx39("a", {
|
|
2706
2766
|
href: "/docs/config#setimagesequence",
|
|
2707
|
-
children: /* @__PURE__ */
|
|
2767
|
+
children: /* @__PURE__ */ jsx39("code", {
|
|
2708
2768
|
children: "setImageSequence()"
|
|
2709
2769
|
})
|
|
2710
2770
|
}),
|
|
@@ -2715,10 +2775,10 @@ var imageSequenceOption = {
|
|
|
2715
2775
|
ssrName: null,
|
|
2716
2776
|
docLink: "https://www.remotion.dev/docs/config#setimagesequence",
|
|
2717
2777
|
getValue: ({ commandLine }) => {
|
|
2718
|
-
if (commandLine[
|
|
2778
|
+
if (commandLine[cliFlag43] !== undefined && commandLine[cliFlag43] !== null) {
|
|
2719
2779
|
return {
|
|
2720
2780
|
source: "cli",
|
|
2721
|
-
value: Boolean(commandLine[
|
|
2781
|
+
value: Boolean(commandLine[cliFlag43])
|
|
2722
2782
|
};
|
|
2723
2783
|
}
|
|
2724
2784
|
return {
|
|
@@ -2730,25 +2790,25 @@ var imageSequenceOption = {
|
|
|
2730
2790
|
imageSequence = value;
|
|
2731
2791
|
},
|
|
2732
2792
|
type: false,
|
|
2733
|
-
id:
|
|
2793
|
+
id: cliFlag43
|
|
2734
2794
|
};
|
|
2735
2795
|
|
|
2736
2796
|
// src/options/image-sequence-pattern.tsx
|
|
2737
|
-
import { jsx as
|
|
2738
|
-
var
|
|
2797
|
+
import { jsx as jsx40, jsxs as jsxs30, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2798
|
+
var cliFlag44 = "image-sequence-pattern";
|
|
2739
2799
|
var currentImageSequencePattern = null;
|
|
2740
2800
|
var imageSequencePatternOption = {
|
|
2741
2801
|
name: "Image Sequence Pattern",
|
|
2742
|
-
cliFlag:
|
|
2802
|
+
cliFlag: cliFlag44,
|
|
2743
2803
|
ssrName: "imageSequencePattern",
|
|
2744
|
-
description: () => /* @__PURE__ */
|
|
2804
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment40, {
|
|
2745
2805
|
children: [
|
|
2746
2806
|
"Pattern for naming image sequence files. Supports ",
|
|
2747
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ jsx40("code", {
|
|
2748
2808
|
children: "[frame]"
|
|
2749
2809
|
}),
|
|
2750
2810
|
" for the zero-padded frame number and ",
|
|
2751
|
-
/* @__PURE__ */
|
|
2811
|
+
/* @__PURE__ */ jsx40("code", {
|
|
2752
2812
|
children: "[ext]"
|
|
2753
2813
|
}),
|
|
2754
2814
|
" for the file extension."
|
|
@@ -2764,7 +2824,7 @@ var imageSequencePatternOption = {
|
|
|
2764
2824
|
};
|
|
2765
2825
|
}
|
|
2766
2826
|
return {
|
|
2767
|
-
value: commandLine[
|
|
2827
|
+
value: commandLine[cliFlag44],
|
|
2768
2828
|
source: "cli"
|
|
2769
2829
|
};
|
|
2770
2830
|
},
|
|
@@ -2774,25 +2834,26 @@ var imageSequencePatternOption = {
|
|
|
2774
2834
|
reset: () => {
|
|
2775
2835
|
currentImageSequencePattern = null;
|
|
2776
2836
|
},
|
|
2777
|
-
id:
|
|
2837
|
+
id: cliFlag44
|
|
2778
2838
|
};
|
|
2779
2839
|
|
|
2780
2840
|
// src/options/interactivity.tsx
|
|
2781
|
-
import { jsx as
|
|
2841
|
+
import { jsx as jsx41, Fragment as Fragment41 } from "react/jsx-runtime";
|
|
2782
2842
|
var interactivityEnabled = true;
|
|
2783
|
-
var
|
|
2843
|
+
var configuredInteractivityEnabled = null;
|
|
2844
|
+
var cliFlag45 = "disable-interactivity";
|
|
2784
2845
|
var interactivityOption = {
|
|
2785
2846
|
name: "Disable or enable Studio interactivity",
|
|
2786
|
-
cliFlag:
|
|
2787
|
-
description: () => /* @__PURE__ */
|
|
2847
|
+
cliFlag: cliFlag45,
|
|
2848
|
+
description: () => /* @__PURE__ */ jsx41(Fragment41, {
|
|
2788
2849
|
children: "Enable or disable interactive editing in the Remotion Studio. When disabled, the Studio keeps previewing and source navigation available, but disables preview outlines, the sequence inspector, visual controls, timeline selection and timeline editing gestures."
|
|
2789
2850
|
}),
|
|
2790
2851
|
ssrName: null,
|
|
2791
2852
|
docLink: "https://www.remotion.dev/docs/config#setinteractivityenabled",
|
|
2792
2853
|
type: false,
|
|
2793
2854
|
getValue: ({ commandLine }) => {
|
|
2794
|
-
if (commandLine[
|
|
2795
|
-
interactivityEnabled = commandLine[
|
|
2855
|
+
if (commandLine[cliFlag45] !== undefined && commandLine[cliFlag45] !== null) {
|
|
2856
|
+
interactivityEnabled = commandLine[cliFlag45] === false;
|
|
2796
2857
|
return {
|
|
2797
2858
|
value: interactivityEnabled,
|
|
2798
2859
|
source: "cli"
|
|
@@ -2805,27 +2866,33 @@ var interactivityOption = {
|
|
|
2805
2866
|
},
|
|
2806
2867
|
setConfig(value) {
|
|
2807
2868
|
interactivityEnabled = value;
|
|
2869
|
+
configuredInteractivityEnabled = value;
|
|
2808
2870
|
},
|
|
2809
|
-
|
|
2871
|
+
getConfigValue: () => configuredInteractivityEnabled,
|
|
2872
|
+
reset: () => {
|
|
2873
|
+
interactivityEnabled = true;
|
|
2874
|
+
configuredInteractivityEnabled = null;
|
|
2875
|
+
},
|
|
2876
|
+
id: cliFlag45
|
|
2810
2877
|
};
|
|
2811
2878
|
|
|
2812
2879
|
// src/options/ipv4.tsx
|
|
2813
|
-
import { jsx as
|
|
2880
|
+
import { jsx as jsx42, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
2814
2881
|
var forceIPv4 = false;
|
|
2815
|
-
var
|
|
2882
|
+
var cliFlag46 = "ipv4";
|
|
2816
2883
|
var ipv4Option = {
|
|
2817
2884
|
name: "IPv4",
|
|
2818
|
-
cliFlag:
|
|
2819
|
-
description: () => /* @__PURE__ */
|
|
2885
|
+
cliFlag: cliFlag46,
|
|
2886
|
+
description: () => /* @__PURE__ */ jsx42(Fragment42, {
|
|
2820
2887
|
children: "Forces Remotion to bind to an IPv4 interface for the Studio server."
|
|
2821
2888
|
}),
|
|
2822
2889
|
ssrName: null,
|
|
2823
2890
|
docLink: "https://www.remotion.dev/docs/cli/studio",
|
|
2824
2891
|
type: false,
|
|
2825
2892
|
getValue: ({ commandLine }) => {
|
|
2826
|
-
if (commandLine[
|
|
2893
|
+
if (commandLine[cliFlag46] !== undefined && commandLine[cliFlag46] !== null) {
|
|
2827
2894
|
return {
|
|
2828
|
-
value: commandLine[
|
|
2895
|
+
value: commandLine[cliFlag46],
|
|
2829
2896
|
source: "cli"
|
|
2830
2897
|
};
|
|
2831
2898
|
}
|
|
@@ -2837,25 +2904,25 @@ var ipv4Option = {
|
|
|
2837
2904
|
setConfig(value) {
|
|
2838
2905
|
forceIPv4 = value;
|
|
2839
2906
|
},
|
|
2840
|
-
id:
|
|
2907
|
+
id: cliFlag46
|
|
2841
2908
|
};
|
|
2842
2909
|
|
|
2843
2910
|
// src/options/is-production.tsx
|
|
2844
|
-
import { jsx as
|
|
2845
|
-
var
|
|
2911
|
+
import { jsx as jsx43, jsxs as jsxs31, Fragment as Fragment43 } from "react/jsx-runtime";
|
|
2912
|
+
var cliFlag47 = "is-production";
|
|
2846
2913
|
var currentIsProductionKey = null;
|
|
2847
2914
|
var isProductionOption = {
|
|
2848
2915
|
name: "Is Production",
|
|
2849
|
-
cliFlag:
|
|
2850
|
-
description: () => /* @__PURE__ */
|
|
2916
|
+
cliFlag: cliFlag47,
|
|
2917
|
+
description: () => /* @__PURE__ */ jsxs31(Fragment43, {
|
|
2851
2918
|
children: [
|
|
2852
2919
|
"Pass ",
|
|
2853
|
-
/* @__PURE__ */
|
|
2920
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2854
2921
|
children: "false"
|
|
2855
2922
|
}),
|
|
2856
2923
|
" if this a development render to not count it as a billable render on remotion.pro. Only can be used in conjuction with",
|
|
2857
2924
|
" ",
|
|
2858
|
-
/* @__PURE__ */
|
|
2925
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2859
2926
|
children: "licenseKey"
|
|
2860
2927
|
}),
|
|
2861
2928
|
"."
|
|
@@ -2864,10 +2931,10 @@ var isProductionOption = {
|
|
|
2864
2931
|
ssrName: "isProduction",
|
|
2865
2932
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2866
2933
|
getValue: ({ commandLine }) => {
|
|
2867
|
-
if (commandLine[
|
|
2934
|
+
if (commandLine[cliFlag47] !== undefined && commandLine[cliFlag47] !== null) {
|
|
2868
2935
|
return {
|
|
2869
2936
|
source: "cli",
|
|
2870
|
-
value: commandLine[
|
|
2937
|
+
value: commandLine[cliFlag47]
|
|
2871
2938
|
};
|
|
2872
2939
|
}
|
|
2873
2940
|
if (currentIsProductionKey !== null) {
|
|
@@ -2885,11 +2952,11 @@ var isProductionOption = {
|
|
|
2885
2952
|
currentIsProductionKey = value;
|
|
2886
2953
|
},
|
|
2887
2954
|
type: false,
|
|
2888
|
-
id:
|
|
2955
|
+
id: cliFlag47
|
|
2889
2956
|
};
|
|
2890
2957
|
|
|
2891
2958
|
// src/options/jpeg-quality.tsx
|
|
2892
|
-
import { jsx as
|
|
2959
|
+
import { jsx as jsx44, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
2893
2960
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
2894
2961
|
var quality = defaultValue;
|
|
2895
2962
|
var setJpegQuality = (q) => {
|
|
@@ -2900,11 +2967,11 @@ var setJpegQuality = (q) => {
|
|
|
2900
2967
|
}
|
|
2901
2968
|
quality = q;
|
|
2902
2969
|
};
|
|
2903
|
-
var
|
|
2970
|
+
var cliFlag48 = "jpeg-quality";
|
|
2904
2971
|
var jpegQualityOption = {
|
|
2905
2972
|
name: "JPEG Quality",
|
|
2906
|
-
cliFlag:
|
|
2907
|
-
description: () => /* @__PURE__ */
|
|
2973
|
+
cliFlag: cliFlag48,
|
|
2974
|
+
description: () => /* @__PURE__ */ jsx44(Fragment44, {
|
|
2908
2975
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
2909
2976
|
}),
|
|
2910
2977
|
ssrName: "jpegQuality",
|
|
@@ -2912,11 +2979,11 @@ var jpegQualityOption = {
|
|
|
2912
2979
|
type: 0,
|
|
2913
2980
|
setConfig: setJpegQuality,
|
|
2914
2981
|
getValue: ({ commandLine }) => {
|
|
2915
|
-
if (commandLine[
|
|
2916
|
-
validateJpegQuality(commandLine[
|
|
2982
|
+
if (commandLine[cliFlag48] !== undefined) {
|
|
2983
|
+
validateJpegQuality(commandLine[cliFlag48]);
|
|
2917
2984
|
return {
|
|
2918
2985
|
source: "cli",
|
|
2919
|
-
value: commandLine[
|
|
2986
|
+
value: commandLine[cliFlag48]
|
|
2920
2987
|
};
|
|
2921
2988
|
}
|
|
2922
2989
|
if (quality !== defaultValue) {
|
|
@@ -2930,25 +2997,26 @@ var jpegQualityOption = {
|
|
|
2930
2997
|
value: defaultValue
|
|
2931
2998
|
};
|
|
2932
2999
|
},
|
|
2933
|
-
id:
|
|
3000
|
+
id: cliFlag48
|
|
2934
3001
|
};
|
|
2935
3002
|
|
|
2936
3003
|
// src/options/keyboard-shortcuts.tsx
|
|
2937
|
-
import { jsx as
|
|
3004
|
+
import { jsx as jsx45, Fragment as Fragment45 } from "react/jsx-runtime";
|
|
2938
3005
|
var keyboardShortcutsEnabled = true;
|
|
2939
|
-
var
|
|
3006
|
+
var configuredKeyboardShortcutsEnabled = null;
|
|
3007
|
+
var cliFlag49 = "disable-keyboard-shortcuts";
|
|
2940
3008
|
var keyboardShortcutsOption = {
|
|
2941
3009
|
name: "Disable or Enable keyboard shortcuts",
|
|
2942
|
-
cliFlag:
|
|
2943
|
-
description: () => /* @__PURE__ */
|
|
3010
|
+
cliFlag: cliFlag49,
|
|
3011
|
+
description: () => /* @__PURE__ */ jsx45(Fragment45, {
|
|
2944
3012
|
children: "Enable or disable keyboard shortcuts in the Remotion Studio."
|
|
2945
3013
|
}),
|
|
2946
3014
|
ssrName: null,
|
|
2947
3015
|
docLink: "https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled",
|
|
2948
3016
|
type: false,
|
|
2949
3017
|
getValue: ({ commandLine }) => {
|
|
2950
|
-
if (commandLine[
|
|
2951
|
-
keyboardShortcutsEnabled = commandLine[
|
|
3018
|
+
if (commandLine[cliFlag49] !== undefined && commandLine[cliFlag49] !== null) {
|
|
3019
|
+
keyboardShortcutsEnabled = commandLine[cliFlag49] === false;
|
|
2952
3020
|
return {
|
|
2953
3021
|
value: keyboardShortcutsEnabled,
|
|
2954
3022
|
source: "cli"
|
|
@@ -2961,43 +3029,49 @@ var keyboardShortcutsOption = {
|
|
|
2961
3029
|
},
|
|
2962
3030
|
setConfig(value) {
|
|
2963
3031
|
keyboardShortcutsEnabled = value;
|
|
3032
|
+
configuredKeyboardShortcutsEnabled = value;
|
|
2964
3033
|
},
|
|
2965
|
-
|
|
3034
|
+
getConfigValue: () => configuredKeyboardShortcutsEnabled,
|
|
3035
|
+
reset: () => {
|
|
3036
|
+
keyboardShortcutsEnabled = true;
|
|
3037
|
+
configuredKeyboardShortcutsEnabled = null;
|
|
3038
|
+
},
|
|
3039
|
+
id: cliFlag49
|
|
2966
3040
|
};
|
|
2967
3041
|
|
|
2968
3042
|
// src/options/latency-hint.tsx
|
|
2969
|
-
import { jsx as
|
|
2970
|
-
var
|
|
3043
|
+
import { jsx as jsx46, jsxs as jsxs32, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
3044
|
+
var cliFlag50 = "audio-latency-hint";
|
|
2971
3045
|
var value = null;
|
|
2972
3046
|
var audioLatencyHintOption = {
|
|
2973
3047
|
name: "Audio Latency Hint",
|
|
2974
|
-
cliFlag:
|
|
2975
|
-
description: () => /* @__PURE__ */
|
|
3048
|
+
cliFlag: cliFlag50,
|
|
3049
|
+
description: () => /* @__PURE__ */ jsxs32(Fragment46, {
|
|
2976
3050
|
children: [
|
|
2977
3051
|
"Sets the",
|
|
2978
3052
|
" ",
|
|
2979
|
-
/* @__PURE__ */
|
|
3053
|
+
/* @__PURE__ */ jsx46("a", {
|
|
2980
3054
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
2981
3055
|
children: "audio latency"
|
|
2982
3056
|
}),
|
|
2983
3057
|
" ",
|
|
2984
3058
|
"hint for the global ",
|
|
2985
|
-
/* @__PURE__ */
|
|
3059
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2986
3060
|
children: "AudioContext"
|
|
2987
3061
|
}),
|
|
2988
3062
|
" context that Remotion uses to play audio.",
|
|
2989
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ jsx46("br", {}),
|
|
2990
3064
|
"Possible values: ",
|
|
2991
|
-
/* @__PURE__ */
|
|
3065
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2992
3066
|
children: "interactive"
|
|
2993
3067
|
}),
|
|
2994
3068
|
", ",
|
|
2995
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ jsx46("code", {
|
|
2996
3070
|
children: "balanced"
|
|
2997
3071
|
}),
|
|
2998
3072
|
",",
|
|
2999
3073
|
" ",
|
|
3000
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ jsx46("code", {
|
|
3001
3075
|
children: "playback"
|
|
3002
3076
|
})
|
|
3003
3077
|
]
|
|
@@ -3006,7 +3080,7 @@ var audioLatencyHintOption = {
|
|
|
3006
3080
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
3007
3081
|
type: "playback",
|
|
3008
3082
|
getValue: ({ commandLine }) => {
|
|
3009
|
-
const val = commandLine[
|
|
3083
|
+
const val = commandLine[cliFlag50];
|
|
3010
3084
|
if (typeof val !== "undefined") {
|
|
3011
3085
|
return { value: val, source: "cli" };
|
|
3012
3086
|
}
|
|
@@ -3018,21 +3092,25 @@ var audioLatencyHintOption = {
|
|
|
3018
3092
|
setConfig: (profile) => {
|
|
3019
3093
|
value = profile;
|
|
3020
3094
|
},
|
|
3021
|
-
|
|
3095
|
+
getConfigValue: () => value,
|
|
3096
|
+
reset: () => {
|
|
3097
|
+
value = null;
|
|
3098
|
+
},
|
|
3099
|
+
id: cliFlag50
|
|
3022
3100
|
};
|
|
3023
3101
|
|
|
3024
3102
|
// src/options/license-key.tsx
|
|
3025
|
-
import { jsx as
|
|
3103
|
+
import { jsx as jsx47, jsxs as jsxs33, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
3026
3104
|
var currentLicenseKey = null;
|
|
3027
|
-
var
|
|
3105
|
+
var cliFlag51 = "license-key";
|
|
3028
3106
|
var licenseKeyOption = {
|
|
3029
3107
|
name: "License key",
|
|
3030
|
-
cliFlag:
|
|
3031
|
-
description: () => /* @__PURE__ */
|
|
3108
|
+
cliFlag: cliFlag51,
|
|
3109
|
+
description: () => /* @__PURE__ */ jsxs33(Fragment47, {
|
|
3032
3110
|
children: [
|
|
3033
3111
|
"License key for sending a usage event using",
|
|
3034
3112
|
" ",
|
|
3035
|
-
/* @__PURE__ */
|
|
3113
|
+
/* @__PURE__ */ jsx47("code", {
|
|
3036
3114
|
children: "@remotion/licensing"
|
|
3037
3115
|
}),
|
|
3038
3116
|
"."
|
|
@@ -3042,10 +3120,10 @@ var licenseKeyOption = {
|
|
|
3042
3120
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
3043
3121
|
type: null,
|
|
3044
3122
|
getValue: ({ commandLine }) => {
|
|
3045
|
-
if (commandLine[
|
|
3123
|
+
if (commandLine[cliFlag51] !== undefined) {
|
|
3046
3124
|
return {
|
|
3047
3125
|
source: "cli",
|
|
3048
|
-
value: commandLine[
|
|
3126
|
+
value: commandLine[cliFlag51]
|
|
3049
3127
|
};
|
|
3050
3128
|
}
|
|
3051
3129
|
return {
|
|
@@ -3056,47 +3134,48 @@ var licenseKeyOption = {
|
|
|
3056
3134
|
setConfig: (value2) => {
|
|
3057
3135
|
currentLicenseKey = value2;
|
|
3058
3136
|
},
|
|
3059
|
-
id:
|
|
3137
|
+
id: cliFlag51
|
|
3060
3138
|
};
|
|
3061
3139
|
|
|
3062
3140
|
// src/options/log-level.tsx
|
|
3063
|
-
import { jsx as
|
|
3141
|
+
import { jsx as jsx48, jsxs as jsxs34, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
3064
3142
|
var logLevel = "info";
|
|
3065
|
-
var
|
|
3143
|
+
var configuredLogLevel = null;
|
|
3144
|
+
var cliFlag52 = "log";
|
|
3066
3145
|
var logLevelOption = {
|
|
3067
|
-
cliFlag:
|
|
3146
|
+
cliFlag: cliFlag52,
|
|
3068
3147
|
name: "Log Level",
|
|
3069
3148
|
ssrName: "logLevel",
|
|
3070
|
-
description: () => /* @__PURE__ */
|
|
3149
|
+
description: () => /* @__PURE__ */ jsxs34(Fragment48, {
|
|
3071
3150
|
children: [
|
|
3072
3151
|
"One of ",
|
|
3073
|
-
/* @__PURE__ */
|
|
3152
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3074
3153
|
children: "trace"
|
|
3075
3154
|
}),
|
|
3076
3155
|
", ",
|
|
3077
|
-
/* @__PURE__ */
|
|
3156
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3078
3157
|
children: "verbose"
|
|
3079
3158
|
}),
|
|
3080
3159
|
", ",
|
|
3081
|
-
/* @__PURE__ */
|
|
3160
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3082
3161
|
children: "info"
|
|
3083
3162
|
}),
|
|
3084
3163
|
",",
|
|
3085
3164
|
" ",
|
|
3086
|
-
/* @__PURE__ */
|
|
3165
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3087
3166
|
children: "warn"
|
|
3088
3167
|
}),
|
|
3089
3168
|
", ",
|
|
3090
|
-
/* @__PURE__ */
|
|
3169
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3091
3170
|
children: "error"
|
|
3092
3171
|
}),
|
|
3093
3172
|
".",
|
|
3094
|
-
/* @__PURE__ */
|
|
3173
|
+
/* @__PURE__ */ jsx48("br", {}),
|
|
3095
3174
|
" Determines how much info is being logged to the console.",
|
|
3096
|
-
/* @__PURE__ */
|
|
3097
|
-
/* @__PURE__ */
|
|
3175
|
+
/* @__PURE__ */ jsx48("br", {}),
|
|
3176
|
+
/* @__PURE__ */ jsx48("br", {}),
|
|
3098
3177
|
" Default ",
|
|
3099
|
-
/* @__PURE__ */
|
|
3178
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3100
3179
|
children: "info"
|
|
3101
3180
|
}),
|
|
3102
3181
|
"."
|
|
@@ -3104,11 +3183,11 @@ var logLevelOption = {
|
|
|
3104
3183
|
}),
|
|
3105
3184
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
3106
3185
|
getValue: ({ commandLine }) => {
|
|
3107
|
-
if (commandLine[
|
|
3108
|
-
if (!isValidLogLevel(commandLine[
|
|
3186
|
+
if (commandLine[cliFlag52]) {
|
|
3187
|
+
if (!isValidLogLevel(commandLine[cliFlag52])) {
|
|
3109
3188
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
3110
3189
|
}
|
|
3111
|
-
return { value: commandLine[
|
|
3190
|
+
return { value: commandLine[cliFlag52], source: "cli" };
|
|
3112
3191
|
}
|
|
3113
3192
|
if (logLevel !== "info") {
|
|
3114
3193
|
return { value: logLevel, source: "config" };
|
|
@@ -3117,25 +3196,31 @@ var logLevelOption = {
|
|
|
3117
3196
|
},
|
|
3118
3197
|
setConfig: (newLogLevel) => {
|
|
3119
3198
|
logLevel = newLogLevel;
|
|
3199
|
+
configuredLogLevel = newLogLevel;
|
|
3200
|
+
},
|
|
3201
|
+
getConfigValue: () => configuredLogLevel,
|
|
3202
|
+
reset: () => {
|
|
3203
|
+
logLevel = "info";
|
|
3204
|
+
configuredLogLevel = null;
|
|
3120
3205
|
},
|
|
3121
3206
|
type: "error",
|
|
3122
|
-
id:
|
|
3207
|
+
id: cliFlag52
|
|
3123
3208
|
};
|
|
3124
3209
|
|
|
3125
3210
|
// src/options/metadata.tsx
|
|
3126
|
-
import { jsx as
|
|
3211
|
+
import { jsx as jsx49, jsxs as jsxs35, Fragment as Fragment49 } from "react/jsx-runtime";
|
|
3127
3212
|
var metadata = {};
|
|
3128
|
-
var
|
|
3213
|
+
var cliFlag53 = "metadata";
|
|
3129
3214
|
var metadataOption = {
|
|
3130
3215
|
name: "Metadata",
|
|
3131
|
-
cliFlag:
|
|
3216
|
+
cliFlag: cliFlag53,
|
|
3132
3217
|
description: (mode) => {
|
|
3133
3218
|
if (mode === "ssr") {
|
|
3134
|
-
return /* @__PURE__ */
|
|
3219
|
+
return /* @__PURE__ */ jsxs35(Fragment49, {
|
|
3135
3220
|
children: [
|
|
3136
3221
|
"An object containing metadata to be embedded in the video. See",
|
|
3137
3222
|
" ",
|
|
3138
|
-
/* @__PURE__ */
|
|
3223
|
+
/* @__PURE__ */ jsx49("a", {
|
|
3139
3224
|
href: "/docs/metadata",
|
|
3140
3225
|
children: "here"
|
|
3141
3226
|
}),
|
|
@@ -3143,18 +3228,18 @@ var metadataOption = {
|
|
|
3143
3228
|
]
|
|
3144
3229
|
});
|
|
3145
3230
|
}
|
|
3146
|
-
return /* @__PURE__ */
|
|
3231
|
+
return /* @__PURE__ */ jsxs35(Fragment49, {
|
|
3147
3232
|
children: [
|
|
3148
3233
|
"Metadata to be embedded in the video. See",
|
|
3149
3234
|
" ",
|
|
3150
|
-
/* @__PURE__ */
|
|
3235
|
+
/* @__PURE__ */ jsx49("a", {
|
|
3151
3236
|
href: "/docs/metadata",
|
|
3152
3237
|
children: "here"
|
|
3153
3238
|
}),
|
|
3154
3239
|
" for which metadata is accepted.",
|
|
3155
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ jsx49("br", {}),
|
|
3156
3241
|
"The parameter must be in the format of ",
|
|
3157
|
-
/* @__PURE__ */
|
|
3242
|
+
/* @__PURE__ */ jsx49("code", {
|
|
3158
3243
|
children: "--metadata key=value"
|
|
3159
3244
|
}),
|
|
3160
3245
|
" ",
|
|
@@ -3165,8 +3250,8 @@ var metadataOption = {
|
|
|
3165
3250
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
3166
3251
|
type: {},
|
|
3167
3252
|
getValue: ({ commandLine }) => {
|
|
3168
|
-
if (commandLine[
|
|
3169
|
-
const val = commandLine[
|
|
3253
|
+
if (commandLine[cliFlag53] !== undefined) {
|
|
3254
|
+
const val = commandLine[cliFlag53];
|
|
3170
3255
|
const array = typeof val === "string" ? [val] : val;
|
|
3171
3256
|
const keyValues = array.map((a) => {
|
|
3172
3257
|
if (!a.includes("=")) {
|
|
@@ -3193,28 +3278,28 @@ var metadataOption = {
|
|
|
3193
3278
|
metadata = newMetadata;
|
|
3194
3279
|
},
|
|
3195
3280
|
ssrName: "metadata",
|
|
3196
|
-
id:
|
|
3281
|
+
id: cliFlag53
|
|
3197
3282
|
};
|
|
3198
3283
|
|
|
3199
3284
|
// src/options/mute.tsx
|
|
3200
|
-
import { jsx as
|
|
3285
|
+
import { jsx as jsx50, Fragment as Fragment50 } from "react/jsx-runtime";
|
|
3201
3286
|
var DEFAULT_MUTED_STATE = false;
|
|
3202
3287
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
3203
|
-
var
|
|
3288
|
+
var cliFlag54 = "muted";
|
|
3204
3289
|
var mutedOption = {
|
|
3205
3290
|
name: "Muted",
|
|
3206
|
-
cliFlag:
|
|
3207
|
-
description: () => /* @__PURE__ */
|
|
3291
|
+
cliFlag: cliFlag54,
|
|
3292
|
+
description: () => /* @__PURE__ */ jsx50(Fragment50, {
|
|
3208
3293
|
children: "The Audio of the video will be omitted."
|
|
3209
3294
|
}),
|
|
3210
3295
|
ssrName: "muted",
|
|
3211
3296
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
3212
3297
|
type: false,
|
|
3213
3298
|
getValue: ({ commandLine }) => {
|
|
3214
|
-
if (commandLine[
|
|
3299
|
+
if (commandLine[cliFlag54] !== null) {
|
|
3215
3300
|
return {
|
|
3216
3301
|
source: "cli",
|
|
3217
|
-
value: commandLine[
|
|
3302
|
+
value: commandLine[cliFlag54]
|
|
3218
3303
|
};
|
|
3219
3304
|
}
|
|
3220
3305
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -3234,17 +3319,17 @@ var mutedOption = {
|
|
|
3234
3319
|
reset: () => {
|
|
3235
3320
|
mutedState = DEFAULT_MUTED_STATE;
|
|
3236
3321
|
},
|
|
3237
|
-
id:
|
|
3322
|
+
id: cliFlag54
|
|
3238
3323
|
};
|
|
3239
3324
|
|
|
3240
3325
|
// src/options/no-open.tsx
|
|
3241
|
-
import { jsx as
|
|
3326
|
+
import { jsx as jsx51, Fragment as Fragment51 } from "react/jsx-runtime";
|
|
3242
3327
|
var shouldOpenBrowser = true;
|
|
3243
|
-
var
|
|
3328
|
+
var cliFlag55 = "no-open";
|
|
3244
3329
|
var noOpenOption = {
|
|
3245
3330
|
name: "Disable browser auto-open",
|
|
3246
|
-
cliFlag:
|
|
3247
|
-
description: () => /* @__PURE__ */
|
|
3331
|
+
cliFlag: cliFlag55,
|
|
3332
|
+
description: () => /* @__PURE__ */ jsx51(Fragment51, {
|
|
3248
3333
|
children: "If specified, Remotion will not open a browser window when starting the Studio."
|
|
3249
3334
|
}),
|
|
3250
3335
|
ssrName: null,
|
|
@@ -3266,54 +3351,54 @@ var noOpenOption = {
|
|
|
3266
3351
|
reset: () => {
|
|
3267
3352
|
shouldOpenBrowser = true;
|
|
3268
3353
|
},
|
|
3269
|
-
id:
|
|
3354
|
+
id: cliFlag55
|
|
3270
3355
|
};
|
|
3271
3356
|
|
|
3272
3357
|
// src/options/number-of-gif-loops.tsx
|
|
3273
|
-
import { jsx as
|
|
3358
|
+
import { jsx as jsx52, jsxs as jsxs36, Fragment as Fragment52 } from "react/jsx-runtime";
|
|
3274
3359
|
var currentLoop = null;
|
|
3275
3360
|
var validate = (newLoop) => {
|
|
3276
3361
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
3277
3362
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
3278
3363
|
}
|
|
3279
3364
|
};
|
|
3280
|
-
var
|
|
3365
|
+
var cliFlag56 = "number-of-gif-loops";
|
|
3281
3366
|
var numberOfGifLoopsOption = {
|
|
3282
3367
|
name: "Number of GIF loops",
|
|
3283
|
-
cliFlag:
|
|
3368
|
+
cliFlag: cliFlag56,
|
|
3284
3369
|
description: () => {
|
|
3285
|
-
return /* @__PURE__ */
|
|
3370
|
+
return /* @__PURE__ */ jsxs36(Fragment52, {
|
|
3286
3371
|
children: [
|
|
3287
3372
|
"Allows you to set the number of loops as follows:",
|
|
3288
|
-
/* @__PURE__ */
|
|
3373
|
+
/* @__PURE__ */ jsxs36("ul", {
|
|
3289
3374
|
children: [
|
|
3290
|
-
/* @__PURE__ */
|
|
3375
|
+
/* @__PURE__ */ jsxs36("li", {
|
|
3291
3376
|
children: [
|
|
3292
|
-
/* @__PURE__ */
|
|
3377
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3293
3378
|
children: "null"
|
|
3294
3379
|
}),
|
|
3295
3380
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
3296
3381
|
]
|
|
3297
3382
|
}),
|
|
3298
|
-
/* @__PURE__ */
|
|
3383
|
+
/* @__PURE__ */ jsxs36("li", {
|
|
3299
3384
|
children: [
|
|
3300
|
-
/* @__PURE__ */
|
|
3385
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3301
3386
|
children: "0"
|
|
3302
3387
|
}),
|
|
3303
3388
|
" disables looping"
|
|
3304
3389
|
]
|
|
3305
3390
|
}),
|
|
3306
|
-
/* @__PURE__ */
|
|
3391
|
+
/* @__PURE__ */ jsxs36("li", {
|
|
3307
3392
|
children: [
|
|
3308
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3309
3394
|
children: "1"
|
|
3310
3395
|
}),
|
|
3311
3396
|
" loops the GIF once (plays twice in total)"
|
|
3312
3397
|
]
|
|
3313
3398
|
}),
|
|
3314
|
-
/* @__PURE__ */
|
|
3399
|
+
/* @__PURE__ */ jsxs36("li", {
|
|
3315
3400
|
children: [
|
|
3316
|
-
/* @__PURE__ */
|
|
3401
|
+
/* @__PURE__ */ jsx52("code", {
|
|
3317
3402
|
children: "2"
|
|
3318
3403
|
}),
|
|
3319
3404
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -3328,10 +3413,10 @@ var numberOfGifLoopsOption = {
|
|
|
3328
3413
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
3329
3414
|
type: 0,
|
|
3330
3415
|
getValue: ({ commandLine }) => {
|
|
3331
|
-
if (commandLine[
|
|
3332
|
-
validate(commandLine[
|
|
3416
|
+
if (commandLine[cliFlag56] !== undefined) {
|
|
3417
|
+
validate(commandLine[cliFlag56]);
|
|
3333
3418
|
return {
|
|
3334
|
-
value: commandLine[
|
|
3419
|
+
value: commandLine[cliFlag56],
|
|
3335
3420
|
source: "cli"
|
|
3336
3421
|
};
|
|
3337
3422
|
}
|
|
@@ -3350,21 +3435,22 @@ var numberOfGifLoopsOption = {
|
|
|
3350
3435
|
validate(newLoop);
|
|
3351
3436
|
currentLoop = newLoop;
|
|
3352
3437
|
},
|
|
3353
|
-
id:
|
|
3438
|
+
id: cliFlag56
|
|
3354
3439
|
};
|
|
3355
3440
|
|
|
3356
3441
|
// src/options/number-of-shared-audio-tags.tsx
|
|
3357
|
-
import { jsx as
|
|
3442
|
+
import { jsx as jsx53, jsxs as jsxs37, Fragment as Fragment53 } from "react/jsx-runtime";
|
|
3358
3443
|
var numberOfSharedAudioTags = 0;
|
|
3359
|
-
var
|
|
3444
|
+
var configuredNumberOfSharedAudioTags = null;
|
|
3445
|
+
var cliFlag57 = "number-of-shared-audio-tags";
|
|
3360
3446
|
var numberOfSharedAudioTagsOption = {
|
|
3361
3447
|
name: "Number of shared audio tags",
|
|
3362
|
-
cliFlag:
|
|
3363
|
-
description: () => /* @__PURE__ */
|
|
3448
|
+
cliFlag: cliFlag57,
|
|
3449
|
+
description: () => /* @__PURE__ */ jsxs37(Fragment53, {
|
|
3364
3450
|
children: [
|
|
3365
3451
|
"Set number of shared audio tags. See",
|
|
3366
3452
|
" ",
|
|
3367
|
-
/* @__PURE__ */
|
|
3453
|
+
/* @__PURE__ */ jsx53("a", {
|
|
3368
3454
|
href: "https://www.remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop",
|
|
3369
3455
|
children: "Using the numberOfSharedAudioTags prop"
|
|
3370
3456
|
}),
|
|
@@ -3376,9 +3462,9 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3376
3462
|
docLink: "https://www.remotion.dev/docs/config#setnumberofsharedaudiotags",
|
|
3377
3463
|
type: 0,
|
|
3378
3464
|
getValue: ({ commandLine }) => {
|
|
3379
|
-
if (commandLine[
|
|
3465
|
+
if (commandLine[cliFlag57] !== undefined) {
|
|
3380
3466
|
return {
|
|
3381
|
-
value: commandLine[
|
|
3467
|
+
value: commandLine[cliFlag57],
|
|
3382
3468
|
source: "cli"
|
|
3383
3469
|
};
|
|
3384
3470
|
}
|
|
@@ -3389,40 +3475,46 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3389
3475
|
},
|
|
3390
3476
|
setConfig(value2) {
|
|
3391
3477
|
numberOfSharedAudioTags = value2;
|
|
3478
|
+
configuredNumberOfSharedAudioTags = value2;
|
|
3392
3479
|
},
|
|
3393
|
-
|
|
3480
|
+
getConfigValue: () => configuredNumberOfSharedAudioTags,
|
|
3481
|
+
reset: () => {
|
|
3482
|
+
numberOfSharedAudioTags = 0;
|
|
3483
|
+
configuredNumberOfSharedAudioTags = null;
|
|
3484
|
+
},
|
|
3485
|
+
id: cliFlag57
|
|
3394
3486
|
};
|
|
3395
3487
|
|
|
3396
3488
|
// src/options/offthreadvideo-cache-size.tsx
|
|
3397
|
-
import { jsx as
|
|
3489
|
+
import { jsx as jsx54, jsxs as jsxs38, Fragment as Fragment54 } from "react/jsx-runtime";
|
|
3398
3490
|
var offthreadVideoCacheSizeInBytes = null;
|
|
3399
|
-
var
|
|
3491
|
+
var cliFlag58 = "offthreadvideo-cache-size-in-bytes";
|
|
3400
3492
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
3401
3493
|
name: "OffthreadVideo cache size",
|
|
3402
|
-
cliFlag:
|
|
3403
|
-
description: () => /* @__PURE__ */
|
|
3494
|
+
cliFlag: cliFlag58,
|
|
3495
|
+
description: () => /* @__PURE__ */ jsxs38(Fragment54, {
|
|
3404
3496
|
children: [
|
|
3405
3497
|
"From v4.0, Remotion has a cache for",
|
|
3406
3498
|
" ",
|
|
3407
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ jsx54("a", {
|
|
3408
3500
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3409
|
-
children: /* @__PURE__ */
|
|
3501
|
+
children: /* @__PURE__ */ jsx54("code", {
|
|
3410
3502
|
children: "<OffthreadVideo>"
|
|
3411
3503
|
})
|
|
3412
3504
|
}),
|
|
3413
3505
|
" ",
|
|
3414
3506
|
"frames. The default is ",
|
|
3415
|
-
/* @__PURE__ */
|
|
3507
|
+
/* @__PURE__ */ jsx54("code", {
|
|
3416
3508
|
children: "null"
|
|
3417
3509
|
}),
|
|
3418
3510
|
", corresponding to half of the system memory available when the render starts.",
|
|
3419
|
-
/* @__PURE__ */
|
|
3511
|
+
/* @__PURE__ */ jsx54("br", {}),
|
|
3420
3512
|
" This option allows to override the size of the cache. The higher it is, the faster the render will be, but the more memory will be used.",
|
|
3421
|
-
/* @__PURE__ */
|
|
3513
|
+
/* @__PURE__ */ jsx54("br", {}),
|
|
3422
3514
|
"The used value will be printed when running in verbose mode.",
|
|
3423
|
-
/* @__PURE__ */
|
|
3515
|
+
/* @__PURE__ */ jsx54("br", {}),
|
|
3424
3516
|
"Default: ",
|
|
3425
|
-
/* @__PURE__ */
|
|
3517
|
+
/* @__PURE__ */ jsx54("code", {
|
|
3426
3518
|
children: "null"
|
|
3427
3519
|
})
|
|
3428
3520
|
]
|
|
@@ -3431,10 +3523,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3431
3523
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3432
3524
|
type: 0,
|
|
3433
3525
|
getValue: ({ commandLine }) => {
|
|
3434
|
-
if (commandLine[
|
|
3526
|
+
if (commandLine[cliFlag58] !== undefined) {
|
|
3435
3527
|
return {
|
|
3436
3528
|
source: "cli",
|
|
3437
|
-
value: commandLine[
|
|
3529
|
+
value: commandLine[cliFlag58]
|
|
3438
3530
|
};
|
|
3439
3531
|
}
|
|
3440
3532
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -3451,22 +3543,22 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3451
3543
|
setConfig: (size) => {
|
|
3452
3544
|
offthreadVideoCacheSizeInBytes = size ?? null;
|
|
3453
3545
|
},
|
|
3454
|
-
id:
|
|
3546
|
+
id: cliFlag58
|
|
3455
3547
|
};
|
|
3456
3548
|
|
|
3457
3549
|
// src/options/offthreadvideo-threads.tsx
|
|
3458
|
-
import { jsx as
|
|
3550
|
+
import { jsx as jsx55, jsxs as jsxs39, Fragment as Fragment55 } from "react/jsx-runtime";
|
|
3459
3551
|
var value2 = null;
|
|
3460
|
-
var
|
|
3552
|
+
var cliFlag59 = "offthreadvideo-video-threads";
|
|
3461
3553
|
var offthreadVideoThreadsOption = {
|
|
3462
3554
|
name: "OffthreadVideo threads",
|
|
3463
|
-
cliFlag:
|
|
3464
|
-
description: () => /* @__PURE__ */
|
|
3555
|
+
cliFlag: cliFlag59,
|
|
3556
|
+
description: () => /* @__PURE__ */ jsxs39(Fragment55, {
|
|
3465
3557
|
children: [
|
|
3466
3558
|
"The number of threads that",
|
|
3467
|
-
/* @__PURE__ */
|
|
3559
|
+
/* @__PURE__ */ jsx55("a", {
|
|
3468
3560
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3469
|
-
children: /* @__PURE__ */
|
|
3561
|
+
children: /* @__PURE__ */ jsx55("code", {
|
|
3470
3562
|
children: "<OffthreadVideo>"
|
|
3471
3563
|
})
|
|
3472
3564
|
}),
|
|
@@ -3481,10 +3573,10 @@ var offthreadVideoThreadsOption = {
|
|
|
3481
3573
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3482
3574
|
type: 0,
|
|
3483
3575
|
getValue: ({ commandLine }) => {
|
|
3484
|
-
if (commandLine[
|
|
3576
|
+
if (commandLine[cliFlag59] !== undefined) {
|
|
3485
3577
|
return {
|
|
3486
3578
|
source: "cli",
|
|
3487
|
-
value: commandLine[
|
|
3579
|
+
value: commandLine[cliFlag59]
|
|
3488
3580
|
};
|
|
3489
3581
|
}
|
|
3490
3582
|
if (value2 !== null) {
|
|
@@ -3501,21 +3593,21 @@ var offthreadVideoThreadsOption = {
|
|
|
3501
3593
|
setConfig: (size) => {
|
|
3502
3594
|
value2 = size ?? null;
|
|
3503
3595
|
},
|
|
3504
|
-
id:
|
|
3596
|
+
id: cliFlag59
|
|
3505
3597
|
};
|
|
3506
3598
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
3507
3599
|
|
|
3508
3600
|
// src/options/on-browser-download.tsx
|
|
3509
|
-
import { jsx as
|
|
3510
|
-
var
|
|
3601
|
+
import { jsx as jsx56, jsxs as jsxs40, Fragment as Fragment56 } from "react/jsx-runtime";
|
|
3602
|
+
var cliFlag60 = "on-browser-download";
|
|
3511
3603
|
var onBrowserDownloadOption = {
|
|
3512
3604
|
name: "Browser download callback function",
|
|
3513
|
-
cliFlag:
|
|
3514
|
-
description: () => /* @__PURE__ */
|
|
3605
|
+
cliFlag: cliFlag60,
|
|
3606
|
+
description: () => /* @__PURE__ */ jsxs40(Fragment56, {
|
|
3515
3607
|
children: [
|
|
3516
3608
|
"Gets called when no compatible local browser is detected on the system and this API needs to download a browser. Return a callback to observe progress.",
|
|
3517
3609
|
" ",
|
|
3518
|
-
/* @__PURE__ */
|
|
3610
|
+
/* @__PURE__ */ jsx56("a", {
|
|
3519
3611
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
3520
3612
|
children: "See here for how to use this option."
|
|
3521
3613
|
})
|
|
@@ -3530,26 +3622,26 @@ var onBrowserDownloadOption = {
|
|
|
3530
3622
|
setConfig: () => {
|
|
3531
3623
|
throw new Error("does not support config file");
|
|
3532
3624
|
},
|
|
3533
|
-
id:
|
|
3625
|
+
id: cliFlag60
|
|
3534
3626
|
};
|
|
3535
3627
|
|
|
3536
3628
|
// src/options/out-dir.tsx
|
|
3537
|
-
import { jsx as
|
|
3538
|
-
var
|
|
3629
|
+
import { jsx as jsx57, jsxs as jsxs41, Fragment as Fragment57 } from "react/jsx-runtime";
|
|
3630
|
+
var cliFlag61 = "out-dir";
|
|
3539
3631
|
var currentOutDir = null;
|
|
3540
3632
|
var outDirOption = {
|
|
3541
3633
|
name: "Output Directory",
|
|
3542
|
-
cliFlag:
|
|
3634
|
+
cliFlag: cliFlag61,
|
|
3543
3635
|
description: () => {
|
|
3544
|
-
return /* @__PURE__ */
|
|
3636
|
+
return /* @__PURE__ */ jsxs41(Fragment57, {
|
|
3545
3637
|
children: [
|
|
3546
3638
|
"Define the location of the resulting bundle. By default it is a folder called ",
|
|
3547
|
-
/* @__PURE__ */
|
|
3639
|
+
/* @__PURE__ */ jsx57("code", {
|
|
3548
3640
|
children: "build"
|
|
3549
3641
|
}),
|
|
3550
3642
|
", adjacent to the",
|
|
3551
3643
|
" ",
|
|
3552
|
-
/* @__PURE__ */
|
|
3644
|
+
/* @__PURE__ */ jsx57("a", {
|
|
3553
3645
|
href: "/docs/terminology/remotion-root",
|
|
3554
3646
|
children: "Remotion Root"
|
|
3555
3647
|
}),
|
|
@@ -3560,10 +3652,10 @@ var outDirOption = {
|
|
|
3560
3652
|
ssrName: "outDir",
|
|
3561
3653
|
docLink: "https://www.remotion.dev/docs/cli/bundle#--out-dir",
|
|
3562
3654
|
getValue: ({ commandLine }) => {
|
|
3563
|
-
if (commandLine[
|
|
3655
|
+
if (commandLine[cliFlag61] !== undefined) {
|
|
3564
3656
|
return {
|
|
3565
3657
|
source: "cli",
|
|
3566
|
-
value: commandLine[
|
|
3658
|
+
value: commandLine[cliFlag61]
|
|
3567
3659
|
};
|
|
3568
3660
|
}
|
|
3569
3661
|
if (currentOutDir !== null) {
|
|
@@ -3581,7 +3673,7 @@ var outDirOption = {
|
|
|
3581
3673
|
currentOutDir = value3;
|
|
3582
3674
|
},
|
|
3583
3675
|
type: "",
|
|
3584
|
-
id:
|
|
3676
|
+
id: cliFlag61
|
|
3585
3677
|
};
|
|
3586
3678
|
|
|
3587
3679
|
// src/validate.ts
|
|
@@ -3591,21 +3683,21 @@ var validateDimension = NoReactInternals3.validateDimension;
|
|
|
3591
3683
|
var validateDurationInFrames = NoReactInternals3.validateDurationInFrames;
|
|
3592
3684
|
|
|
3593
3685
|
// src/options/override-duration.tsx
|
|
3594
|
-
import { jsx as
|
|
3686
|
+
import { jsx as jsx58, Fragment as Fragment58 } from "react/jsx-runtime";
|
|
3595
3687
|
var currentDuration = null;
|
|
3596
|
-
var
|
|
3688
|
+
var cliFlag62 = "duration";
|
|
3597
3689
|
var overrideDurationOption = {
|
|
3598
3690
|
name: "Override Duration",
|
|
3599
|
-
cliFlag:
|
|
3600
|
-
description: () => /* @__PURE__ */
|
|
3691
|
+
cliFlag: cliFlag62,
|
|
3692
|
+
description: () => /* @__PURE__ */ jsx58(Fragment58, {
|
|
3601
3693
|
children: "Overrides the duration in frames of the composition."
|
|
3602
3694
|
}),
|
|
3603
3695
|
ssrName: null,
|
|
3604
3696
|
docLink: "https://www.remotion.dev/docs/config#overrideduration",
|
|
3605
3697
|
type: null,
|
|
3606
3698
|
getValue: ({ commandLine }) => {
|
|
3607
|
-
if (commandLine[
|
|
3608
|
-
const value3 = commandLine[
|
|
3699
|
+
if (commandLine[cliFlag62] !== undefined) {
|
|
3700
|
+
const value3 = commandLine[cliFlag62];
|
|
3609
3701
|
validateDurationInFrames(value3, {
|
|
3610
3702
|
component: "in --duration flag",
|
|
3611
3703
|
allowFloats: false
|
|
@@ -3636,25 +3728,25 @@ var overrideDurationOption = {
|
|
|
3636
3728
|
reset: () => {
|
|
3637
3729
|
currentDuration = null;
|
|
3638
3730
|
},
|
|
3639
|
-
id:
|
|
3731
|
+
id: cliFlag62
|
|
3640
3732
|
};
|
|
3641
3733
|
|
|
3642
3734
|
// src/options/override-fps.tsx
|
|
3643
|
-
import { jsx as
|
|
3735
|
+
import { jsx as jsx59, Fragment as Fragment59 } from "react/jsx-runtime";
|
|
3644
3736
|
var currentFps = null;
|
|
3645
|
-
var
|
|
3737
|
+
var cliFlag63 = "fps";
|
|
3646
3738
|
var overrideFpsOption = {
|
|
3647
3739
|
name: "Override FPS",
|
|
3648
|
-
cliFlag:
|
|
3649
|
-
description: () => /* @__PURE__ */
|
|
3740
|
+
cliFlag: cliFlag63,
|
|
3741
|
+
description: () => /* @__PURE__ */ jsx59(Fragment59, {
|
|
3650
3742
|
children: "Overrides the frames per second of the composition."
|
|
3651
3743
|
}),
|
|
3652
3744
|
ssrName: null,
|
|
3653
3745
|
docLink: "https://www.remotion.dev/docs/config#overridefps",
|
|
3654
3746
|
type: null,
|
|
3655
3747
|
getValue: ({ commandLine }) => {
|
|
3656
|
-
if (commandLine[
|
|
3657
|
-
const value3 = commandLine[
|
|
3748
|
+
if (commandLine[cliFlag63] !== undefined) {
|
|
3749
|
+
const value3 = commandLine[cliFlag63];
|
|
3658
3750
|
validateFps(value3, "in --fps flag", false);
|
|
3659
3751
|
return {
|
|
3660
3752
|
source: "cli",
|
|
@@ -3679,25 +3771,25 @@ var overrideFpsOption = {
|
|
|
3679
3771
|
reset: () => {
|
|
3680
3772
|
currentFps = null;
|
|
3681
3773
|
},
|
|
3682
|
-
id:
|
|
3774
|
+
id: cliFlag63
|
|
3683
3775
|
};
|
|
3684
3776
|
|
|
3685
3777
|
// src/options/override-height.tsx
|
|
3686
|
-
import { jsx as
|
|
3778
|
+
import { jsx as jsx60, Fragment as Fragment60 } from "react/jsx-runtime";
|
|
3687
3779
|
var currentHeight = null;
|
|
3688
|
-
var
|
|
3780
|
+
var cliFlag64 = "height";
|
|
3689
3781
|
var overrideHeightOption = {
|
|
3690
3782
|
name: "Override Height",
|
|
3691
|
-
cliFlag:
|
|
3692
|
-
description: () => /* @__PURE__ */
|
|
3783
|
+
cliFlag: cliFlag64,
|
|
3784
|
+
description: () => /* @__PURE__ */ jsx60(Fragment60, {
|
|
3693
3785
|
children: "Overrides the height of the composition."
|
|
3694
3786
|
}),
|
|
3695
3787
|
ssrName: null,
|
|
3696
3788
|
docLink: "https://www.remotion.dev/docs/config#overrideheight",
|
|
3697
3789
|
type: null,
|
|
3698
3790
|
getValue: ({ commandLine }) => {
|
|
3699
|
-
if (commandLine[
|
|
3700
|
-
const value3 = commandLine[
|
|
3791
|
+
if (commandLine[cliFlag64] !== undefined) {
|
|
3792
|
+
const value3 = commandLine[cliFlag64];
|
|
3701
3793
|
validateDimension(value3, "height", "in --height flag");
|
|
3702
3794
|
return {
|
|
3703
3795
|
source: "cli",
|
|
@@ -3722,25 +3814,25 @@ var overrideHeightOption = {
|
|
|
3722
3814
|
reset: () => {
|
|
3723
3815
|
currentHeight = null;
|
|
3724
3816
|
},
|
|
3725
|
-
id:
|
|
3817
|
+
id: cliFlag64
|
|
3726
3818
|
};
|
|
3727
3819
|
|
|
3728
3820
|
// src/options/override-width.tsx
|
|
3729
|
-
import { jsx as
|
|
3821
|
+
import { jsx as jsx61, Fragment as Fragment61 } from "react/jsx-runtime";
|
|
3730
3822
|
var currentWidth = null;
|
|
3731
|
-
var
|
|
3823
|
+
var cliFlag65 = "width";
|
|
3732
3824
|
var overrideWidthOption = {
|
|
3733
3825
|
name: "Override Width",
|
|
3734
|
-
cliFlag:
|
|
3735
|
-
description: () => /* @__PURE__ */
|
|
3826
|
+
cliFlag: cliFlag65,
|
|
3827
|
+
description: () => /* @__PURE__ */ jsx61(Fragment61, {
|
|
3736
3828
|
children: "Overrides the width of the composition."
|
|
3737
3829
|
}),
|
|
3738
3830
|
ssrName: null,
|
|
3739
3831
|
docLink: "https://www.remotion.dev/docs/config#overridewidth",
|
|
3740
3832
|
type: null,
|
|
3741
3833
|
getValue: ({ commandLine }) => {
|
|
3742
|
-
if (commandLine[
|
|
3743
|
-
const value3 = commandLine[
|
|
3834
|
+
if (commandLine[cliFlag65] !== undefined) {
|
|
3835
|
+
const value3 = commandLine[cliFlag65];
|
|
3744
3836
|
validateDimension(value3, "width", "in --width flag");
|
|
3745
3837
|
return {
|
|
3746
3838
|
source: "cli",
|
|
@@ -3765,13 +3857,13 @@ var overrideWidthOption = {
|
|
|
3765
3857
|
reset: () => {
|
|
3766
3858
|
currentWidth = null;
|
|
3767
3859
|
},
|
|
3768
|
-
id:
|
|
3860
|
+
id: cliFlag65
|
|
3769
3861
|
};
|
|
3770
3862
|
|
|
3771
3863
|
// src/options/overwrite.tsx
|
|
3772
|
-
import { jsx as
|
|
3864
|
+
import { jsx as jsx62, jsxs as jsxs42, Fragment as Fragment62 } from "react/jsx-runtime";
|
|
3773
3865
|
var shouldOverwrite = null;
|
|
3774
|
-
var
|
|
3866
|
+
var cliFlag66 = "overwrite";
|
|
3775
3867
|
var validate2 = (value3) => {
|
|
3776
3868
|
if (typeof value3 !== "boolean") {
|
|
3777
3869
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -3779,15 +3871,15 @@ var validate2 = (value3) => {
|
|
|
3779
3871
|
};
|
|
3780
3872
|
var overwriteOption = {
|
|
3781
3873
|
name: "Overwrite output",
|
|
3782
|
-
cliFlag:
|
|
3783
|
-
description: () => /* @__PURE__ */
|
|
3874
|
+
cliFlag: cliFlag66,
|
|
3875
|
+
description: () => /* @__PURE__ */ jsxs42(Fragment62, {
|
|
3784
3876
|
children: [
|
|
3785
3877
|
"If set to ",
|
|
3786
|
-
/* @__PURE__ */
|
|
3878
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3787
3879
|
children: "false"
|
|
3788
3880
|
}),
|
|
3789
3881
|
", will prevent rendering to a path that already exists. Default is ",
|
|
3790
|
-
/* @__PURE__ */
|
|
3882
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3791
3883
|
children: "true"
|
|
3792
3884
|
}),
|
|
3793
3885
|
"."
|
|
@@ -3797,11 +3889,11 @@ var overwriteOption = {
|
|
|
3797
3889
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
3798
3890
|
type: false,
|
|
3799
3891
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
3800
|
-
if (commandLine[
|
|
3801
|
-
validate2(commandLine[
|
|
3892
|
+
if (commandLine[cliFlag66] !== undefined && commandLine[cliFlag66] !== null) {
|
|
3893
|
+
validate2(commandLine[cliFlag66]);
|
|
3802
3894
|
return {
|
|
3803
3895
|
source: "cli",
|
|
3804
|
-
value: commandLine[
|
|
3896
|
+
value: commandLine[cliFlag66]
|
|
3805
3897
|
};
|
|
3806
3898
|
}
|
|
3807
3899
|
if (shouldOverwrite !== null) {
|
|
@@ -3822,36 +3914,36 @@ var overwriteOption = {
|
|
|
3822
3914
|
reset: () => {
|
|
3823
3915
|
shouldOverwrite = null;
|
|
3824
3916
|
},
|
|
3825
|
-
id:
|
|
3917
|
+
id: cliFlag66
|
|
3826
3918
|
};
|
|
3827
3919
|
|
|
3828
3920
|
// src/options/package-manager.tsx
|
|
3829
|
-
import { jsx as
|
|
3830
|
-
var
|
|
3921
|
+
import { jsx as jsx63, jsxs as jsxs43, Fragment as Fragment63 } from "react/jsx-runtime";
|
|
3922
|
+
var cliFlag67 = "package-manager";
|
|
3831
3923
|
var currentPackageManager = null;
|
|
3832
3924
|
var packageManagerOption = {
|
|
3833
3925
|
name: "Package Manager",
|
|
3834
|
-
cliFlag:
|
|
3926
|
+
cliFlag: cliFlag67,
|
|
3835
3927
|
description: () => {
|
|
3836
|
-
return /* @__PURE__ */
|
|
3928
|
+
return /* @__PURE__ */ jsxs43(Fragment63, {
|
|
3837
3929
|
children: [
|
|
3838
3930
|
"Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.",
|
|
3839
|
-
/* @__PURE__ */
|
|
3931
|
+
/* @__PURE__ */ jsx63("br", {}),
|
|
3840
3932
|
"Acceptable values are ",
|
|
3841
|
-
/* @__PURE__ */
|
|
3933
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3842
3934
|
children: "npm"
|
|
3843
3935
|
}),
|
|
3844
3936
|
", ",
|
|
3845
|
-
/* @__PURE__ */
|
|
3937
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3846
3938
|
children: "yarn"
|
|
3847
3939
|
}),
|
|
3848
3940
|
",",
|
|
3849
3941
|
" ",
|
|
3850
|
-
/* @__PURE__ */
|
|
3942
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3851
3943
|
children: "pnpm"
|
|
3852
3944
|
}),
|
|
3853
3945
|
" and ",
|
|
3854
|
-
/* @__PURE__ */
|
|
3946
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3855
3947
|
children: "bun"
|
|
3856
3948
|
}),
|
|
3857
3949
|
"."
|
|
@@ -3861,10 +3953,10 @@ var packageManagerOption = {
|
|
|
3861
3953
|
ssrName: "packageManager",
|
|
3862
3954
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--package-manager",
|
|
3863
3955
|
getValue: ({ commandLine }) => {
|
|
3864
|
-
if (commandLine[
|
|
3956
|
+
if (commandLine[cliFlag67] !== undefined) {
|
|
3865
3957
|
return {
|
|
3866
3958
|
source: "cli",
|
|
3867
|
-
value: commandLine[
|
|
3959
|
+
value: commandLine[cliFlag67]
|
|
3868
3960
|
};
|
|
3869
3961
|
}
|
|
3870
3962
|
if (currentPackageManager !== null) {
|
|
@@ -3882,7 +3974,7 @@ var packageManagerOption = {
|
|
|
3882
3974
|
currentPackageManager = value3;
|
|
3883
3975
|
},
|
|
3884
3976
|
type: "",
|
|
3885
|
-
id:
|
|
3977
|
+
id: cliFlag67
|
|
3886
3978
|
};
|
|
3887
3979
|
|
|
3888
3980
|
// src/pixel-format.ts
|
|
@@ -3905,17 +3997,17 @@ var validPixelFormatsForCodec = (codec) => {
|
|
|
3905
3997
|
};
|
|
3906
3998
|
|
|
3907
3999
|
// src/options/pixel-format.tsx
|
|
3908
|
-
import { jsx as
|
|
4000
|
+
import { jsx as jsx64, jsxs as jsxs44, Fragment as Fragment64 } from "react/jsx-runtime";
|
|
3909
4001
|
var currentPixelFormat = DEFAULT_PIXEL_FORMAT;
|
|
3910
|
-
var
|
|
4002
|
+
var cliFlag68 = "pixel-format";
|
|
3911
4003
|
var pixelFormatOption = {
|
|
3912
4004
|
name: "Pixel format",
|
|
3913
|
-
cliFlag:
|
|
3914
|
-
description: () => /* @__PURE__ */
|
|
4005
|
+
cliFlag: cliFlag68,
|
|
4006
|
+
description: () => /* @__PURE__ */ jsxs44(Fragment64, {
|
|
3915
4007
|
children: [
|
|
3916
4008
|
"Sets the pixel format in FFmpeg. See",
|
|
3917
4009
|
" ",
|
|
3918
|
-
/* @__PURE__ */
|
|
4010
|
+
/* @__PURE__ */ jsx64("a", {
|
|
3919
4011
|
href: "https://trac.ffmpeg.org/wiki/Chroma%20Subsampling",
|
|
3920
4012
|
children: "the FFmpeg docs for an explanation"
|
|
3921
4013
|
}),
|
|
@@ -3934,10 +4026,10 @@ var pixelFormatOption = {
|
|
|
3934
4026
|
value: options.uiPixelFormat
|
|
3935
4027
|
};
|
|
3936
4028
|
}
|
|
3937
|
-
if (commandLine[
|
|
4029
|
+
if (commandLine[cliFlag68] !== undefined) {
|
|
3938
4030
|
return {
|
|
3939
4031
|
source: "from --pixel-format flag",
|
|
3940
|
-
value: commandLine[
|
|
4032
|
+
value: commandLine[cliFlag68]
|
|
3941
4033
|
};
|
|
3942
4034
|
}
|
|
3943
4035
|
if (options && options.compositionDefaultPixelFormat !== null) {
|
|
@@ -3963,26 +4055,26 @@ var pixelFormatOption = {
|
|
|
3963
4055
|
}
|
|
3964
4056
|
currentPixelFormat = value3;
|
|
3965
4057
|
},
|
|
3966
|
-
id:
|
|
4058
|
+
id: cliFlag68
|
|
3967
4059
|
};
|
|
3968
4060
|
|
|
3969
4061
|
// src/options/port.tsx
|
|
3970
|
-
import { jsx as
|
|
3971
|
-
var
|
|
4062
|
+
import { jsx as jsx65, Fragment as Fragment65 } from "react/jsx-runtime";
|
|
4063
|
+
var cliFlag69 = "port";
|
|
3972
4064
|
var currentPort = null;
|
|
3973
4065
|
var portOption = {
|
|
3974
4066
|
name: "Port",
|
|
3975
|
-
cliFlag:
|
|
3976
|
-
description: () => /* @__PURE__ */
|
|
4067
|
+
cliFlag: cliFlag69,
|
|
4068
|
+
description: () => /* @__PURE__ */ jsx65(Fragment65, {
|
|
3977
4069
|
children: "Set a custom HTTP server port for the Studio or the render process. If not defined, Remotion will try to find a free port."
|
|
3978
4070
|
}),
|
|
3979
4071
|
ssrName: null,
|
|
3980
4072
|
docLink: "https://www.remotion.dev/docs/config#setstudioport",
|
|
3981
4073
|
getValue: ({ commandLine }) => {
|
|
3982
|
-
if (commandLine[
|
|
4074
|
+
if (commandLine[cliFlag69] !== undefined) {
|
|
3983
4075
|
return {
|
|
3984
4076
|
source: "cli",
|
|
3985
|
-
value: commandLine[
|
|
4077
|
+
value: commandLine[cliFlag69]
|
|
3986
4078
|
};
|
|
3987
4079
|
}
|
|
3988
4080
|
if (currentPort !== null) {
|
|
@@ -4000,25 +4092,25 @@ var portOption = {
|
|
|
4000
4092
|
currentPort = value3;
|
|
4001
4093
|
},
|
|
4002
4094
|
type: 0,
|
|
4003
|
-
id:
|
|
4095
|
+
id: cliFlag69
|
|
4004
4096
|
};
|
|
4005
4097
|
|
|
4006
4098
|
// src/options/prefer-lossless.tsx
|
|
4007
|
-
import { jsx as
|
|
4008
|
-
var
|
|
4099
|
+
import { jsx as jsx66, jsxs as jsxs45, Fragment as Fragment66 } from "react/jsx-runtime";
|
|
4100
|
+
var cliFlag70 = "prefer-lossless";
|
|
4009
4101
|
var input = false;
|
|
4010
4102
|
var preferLosslessAudioOption = {
|
|
4011
4103
|
name: "Prefer lossless",
|
|
4012
|
-
cliFlag:
|
|
4013
|
-
description: () => /* @__PURE__ */
|
|
4104
|
+
cliFlag: cliFlag70,
|
|
4105
|
+
description: () => /* @__PURE__ */ jsxs45(Fragment66, {
|
|
4014
4106
|
children: [
|
|
4015
4107
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
4016
|
-
/* @__PURE__ */
|
|
4108
|
+
/* @__PURE__ */ jsx66("code", {
|
|
4017
4109
|
children: "audioCodec"
|
|
4018
4110
|
}),
|
|
4019
4111
|
", it takes priority over",
|
|
4020
4112
|
" ",
|
|
4021
|
-
/* @__PURE__ */
|
|
4113
|
+
/* @__PURE__ */ jsx66("code", {
|
|
4022
4114
|
children: "preferLossless"
|
|
4023
4115
|
}),
|
|
4024
4116
|
"."
|
|
@@ -4028,7 +4120,7 @@ var preferLosslessAudioOption = {
|
|
|
4028
4120
|
type: false,
|
|
4029
4121
|
ssrName: "preferLossless",
|
|
4030
4122
|
getValue: ({ commandLine }) => {
|
|
4031
|
-
if (commandLine[
|
|
4123
|
+
if (commandLine[cliFlag70]) {
|
|
4032
4124
|
return { value: true, source: "cli" };
|
|
4033
4125
|
}
|
|
4034
4126
|
if (input === true) {
|
|
@@ -4039,20 +4131,20 @@ var preferLosslessAudioOption = {
|
|
|
4039
4131
|
setConfig: (val) => {
|
|
4040
4132
|
input = val;
|
|
4041
4133
|
},
|
|
4042
|
-
id:
|
|
4134
|
+
id: cliFlag70
|
|
4043
4135
|
};
|
|
4044
4136
|
|
|
4045
4137
|
// src/options/preview-sample-rate.tsx
|
|
4046
|
-
import { jsx as
|
|
4047
|
-
var
|
|
4138
|
+
import { jsx as jsx67, jsxs as jsxs46, Fragment as Fragment67 } from "react/jsx-runtime";
|
|
4139
|
+
var cliFlag71 = "preview-sample-rate";
|
|
4048
4140
|
var currentPreviewSampleRate = null;
|
|
4049
4141
|
var previewSampleRateOption = {
|
|
4050
4142
|
name: "Preview Sample Rate",
|
|
4051
|
-
cliFlag:
|
|
4052
|
-
description: () => /* @__PURE__ */
|
|
4143
|
+
cliFlag: cliFlag71,
|
|
4144
|
+
description: () => /* @__PURE__ */ jsxs46(Fragment67, {
|
|
4053
4145
|
children: [
|
|
4054
4146
|
"Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
|
|
4055
|
-
/* @__PURE__ */
|
|
4147
|
+
/* @__PURE__ */ jsx67("code", {
|
|
4056
4148
|
children: "48000"
|
|
4057
4149
|
}),
|
|
4058
4150
|
" Hz."
|
|
@@ -4062,8 +4154,8 @@ var previewSampleRateOption = {
|
|
|
4062
4154
|
docLink: "https://www.remotion.dev/docs/config#setpreviewsamplerate",
|
|
4063
4155
|
type: null,
|
|
4064
4156
|
getValue: ({ commandLine }) => {
|
|
4065
|
-
if (commandLine[
|
|
4066
|
-
return { value: commandLine[
|
|
4157
|
+
if (commandLine[cliFlag71] !== undefined) {
|
|
4158
|
+
return { value: commandLine[cliFlag71], source: "cli" };
|
|
4067
4159
|
}
|
|
4068
4160
|
if (currentPreviewSampleRate !== null) {
|
|
4069
4161
|
return { value: currentPreviewSampleRate, source: "config file" };
|
|
@@ -4073,19 +4165,19 @@ var previewSampleRateOption = {
|
|
|
4073
4165
|
setConfig: (value3) => {
|
|
4074
4166
|
currentPreviewSampleRate = value3;
|
|
4075
4167
|
},
|
|
4076
|
-
id:
|
|
4168
|
+
id: cliFlag71
|
|
4077
4169
|
};
|
|
4078
4170
|
|
|
4079
4171
|
// src/options/props.tsx
|
|
4080
|
-
import { jsx as
|
|
4081
|
-
var
|
|
4172
|
+
import { jsx as jsx68, jsxs as jsxs47, Fragment as Fragment68 } from "react/jsx-runtime";
|
|
4173
|
+
var cliFlag72 = "props";
|
|
4082
4174
|
var propsOption = {
|
|
4083
4175
|
name: "Input Props",
|
|
4084
|
-
cliFlag:
|
|
4085
|
-
description: () => /* @__PURE__ */
|
|
4176
|
+
cliFlag: cliFlag72,
|
|
4177
|
+
description: () => /* @__PURE__ */ jsxs47(Fragment68, {
|
|
4086
4178
|
children: [
|
|
4087
4179
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
4088
|
-
/* @__PURE__ */
|
|
4180
|
+
/* @__PURE__ */ jsxs47("code", {
|
|
4089
4181
|
children: [
|
|
4090
4182
|
"--props='",
|
|
4091
4183
|
"{",
|
|
@@ -4095,7 +4187,7 @@ var propsOption = {
|
|
|
4095
4187
|
]
|
|
4096
4188
|
}),
|
|
4097
4189
|
") or a path to a JSON file (",
|
|
4098
|
-
/* @__PURE__ */
|
|
4190
|
+
/* @__PURE__ */ jsx68("code", {
|
|
4099
4191
|
children: "./path/to/props.json"
|
|
4100
4192
|
}),
|
|
4101
4193
|
")."
|
|
@@ -4104,10 +4196,10 @@ var propsOption = {
|
|
|
4104
4196
|
ssrName: null,
|
|
4105
4197
|
docLink: "https://www.remotion.dev/docs/passing-props#passing-input-props-in-the-cli",
|
|
4106
4198
|
getValue: ({ commandLine }) => {
|
|
4107
|
-
if (commandLine[
|
|
4199
|
+
if (commandLine[cliFlag72] !== undefined) {
|
|
4108
4200
|
return {
|
|
4109
4201
|
source: "cli",
|
|
4110
|
-
value: commandLine[
|
|
4202
|
+
value: commandLine[cliFlag72]
|
|
4111
4203
|
};
|
|
4112
4204
|
}
|
|
4113
4205
|
return {
|
|
@@ -4119,11 +4211,11 @@ var propsOption = {
|
|
|
4119
4211
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
4120
4212
|
},
|
|
4121
4213
|
type: "",
|
|
4122
|
-
id:
|
|
4214
|
+
id: cliFlag72
|
|
4123
4215
|
};
|
|
4124
4216
|
|
|
4125
4217
|
// src/options/prores-profile.tsx
|
|
4126
|
-
import { jsx as
|
|
4218
|
+
import { jsx as jsx69, jsxs as jsxs48, Fragment as Fragment69 } from "react/jsx-runtime";
|
|
4127
4219
|
var validProResProfiles = [
|
|
4128
4220
|
"4444-xq",
|
|
4129
4221
|
"4444",
|
|
@@ -4133,14 +4225,14 @@ var validProResProfiles = [
|
|
|
4133
4225
|
"proxy"
|
|
4134
4226
|
];
|
|
4135
4227
|
var proResProfile;
|
|
4136
|
-
var
|
|
4228
|
+
var cliFlag73 = "prores-profile";
|
|
4137
4229
|
var proResProfileOption = {
|
|
4138
4230
|
name: "ProRes profile",
|
|
4139
|
-
cliFlag:
|
|
4140
|
-
description: () => /* @__PURE__ */
|
|
4231
|
+
cliFlag: cliFlag73,
|
|
4232
|
+
description: () => /* @__PURE__ */ jsxs48(Fragment69, {
|
|
4141
4233
|
children: [
|
|
4142
4234
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
4143
|
-
/* @__PURE__ */
|
|
4235
|
+
/* @__PURE__ */ jsx69("code", {
|
|
4144
4236
|
children: "prores"
|
|
4145
4237
|
}),
|
|
4146
4238
|
". Possible values:",
|
|
@@ -4148,12 +4240,12 @@ var proResProfileOption = {
|
|
|
4148
4240
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
4149
4241
|
". Default:",
|
|
4150
4242
|
" ",
|
|
4151
|
-
/* @__PURE__ */
|
|
4243
|
+
/* @__PURE__ */ jsx69("code", {
|
|
4152
4244
|
children: '"hq"'
|
|
4153
4245
|
}),
|
|
4154
4246
|
". See",
|
|
4155
4247
|
" ",
|
|
4156
|
-
/* @__PURE__ */
|
|
4248
|
+
/* @__PURE__ */ jsx69("a", {
|
|
4157
4249
|
href: "https://video.stackexchange.com/a/14715",
|
|
4158
4250
|
children: "here"
|
|
4159
4251
|
}),
|
|
@@ -4170,10 +4262,10 @@ var proResProfileOption = {
|
|
|
4170
4262
|
value: options.uiProResProfile
|
|
4171
4263
|
};
|
|
4172
4264
|
}
|
|
4173
|
-
if (commandLine[
|
|
4265
|
+
if (commandLine[cliFlag73] !== undefined) {
|
|
4174
4266
|
return {
|
|
4175
4267
|
source: "from --prores-profile flag",
|
|
4176
|
-
value: String(commandLine[
|
|
4268
|
+
value: String(commandLine[cliFlag73])
|
|
4177
4269
|
};
|
|
4178
4270
|
}
|
|
4179
4271
|
if (options && options.compositionDefaultProResProfile !== null) {
|
|
@@ -4196,24 +4288,24 @@ var proResProfileOption = {
|
|
|
4196
4288
|
setConfig: (value3) => {
|
|
4197
4289
|
proResProfile = value3;
|
|
4198
4290
|
},
|
|
4199
|
-
id:
|
|
4291
|
+
id: cliFlag73
|
|
4200
4292
|
};
|
|
4201
4293
|
|
|
4202
4294
|
// src/options/public-dir.tsx
|
|
4203
|
-
import { jsx as
|
|
4204
|
-
var
|
|
4295
|
+
import { jsx as jsx70, jsxs as jsxs49, Fragment as Fragment70 } from "react/jsx-runtime";
|
|
4296
|
+
var cliFlag74 = "public-dir";
|
|
4205
4297
|
var currentPublicDir = null;
|
|
4206
4298
|
var publicDirOption = {
|
|
4207
4299
|
name: "Public Directory",
|
|
4208
|
-
cliFlag:
|
|
4300
|
+
cliFlag: cliFlag74,
|
|
4209
4301
|
description: () => {
|
|
4210
|
-
return /* @__PURE__ */
|
|
4302
|
+
return /* @__PURE__ */ jsxs49(Fragment70, {
|
|
4211
4303
|
children: [
|
|
4212
4304
|
"Define the location of the",
|
|
4213
4305
|
" ",
|
|
4214
|
-
/* @__PURE__ */
|
|
4306
|
+
/* @__PURE__ */ jsx70("a", {
|
|
4215
4307
|
href: "/docs/terminology/public-dir",
|
|
4216
|
-
children: /* @__PURE__ */
|
|
4308
|
+
children: /* @__PURE__ */ jsx70("code", {
|
|
4217
4309
|
children: "public/ directory"
|
|
4218
4310
|
})
|
|
4219
4311
|
}),
|
|
@@ -4224,10 +4316,10 @@ var publicDirOption = {
|
|
|
4224
4316
|
ssrName: "publicDir",
|
|
4225
4317
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
4226
4318
|
getValue: ({ commandLine }) => {
|
|
4227
|
-
if (commandLine[
|
|
4319
|
+
if (commandLine[cliFlag74] !== undefined) {
|
|
4228
4320
|
return {
|
|
4229
4321
|
source: "cli",
|
|
4230
|
-
value: commandLine[
|
|
4322
|
+
value: commandLine[cliFlag74]
|
|
4231
4323
|
};
|
|
4232
4324
|
}
|
|
4233
4325
|
if (currentPublicDir !== null) {
|
|
@@ -4245,20 +4337,20 @@ var publicDirOption = {
|
|
|
4245
4337
|
currentPublicDir = value3;
|
|
4246
4338
|
},
|
|
4247
4339
|
type: "",
|
|
4248
|
-
id:
|
|
4340
|
+
id: cliFlag74
|
|
4249
4341
|
};
|
|
4250
4342
|
|
|
4251
4343
|
// src/options/public-license-key.tsx
|
|
4252
|
-
import { jsx as
|
|
4253
|
-
var
|
|
4344
|
+
import { jsx as jsx71, jsxs as jsxs50, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4345
|
+
var cliFlag75 = "public-license-key";
|
|
4254
4346
|
var currentPublicLicenseKey = null;
|
|
4255
4347
|
var publicLicenseKeyOption = {
|
|
4256
4348
|
name: "Public License Key",
|
|
4257
|
-
cliFlag:
|
|
4258
|
-
description: () => /* @__PURE__ */
|
|
4349
|
+
cliFlag: cliFlag75,
|
|
4350
|
+
description: () => /* @__PURE__ */ jsxs50(Fragment71, {
|
|
4259
4351
|
children: [
|
|
4260
4352
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
4261
|
-
/* @__PURE__ */
|
|
4353
|
+
/* @__PURE__ */ jsx71("a", {
|
|
4262
4354
|
href: "https://remotion.pro/dashboard",
|
|
4263
4355
|
children: "remotion.pro"
|
|
4264
4356
|
}),
|
|
@@ -4268,10 +4360,10 @@ var publicLicenseKeyOption = {
|
|
|
4268
4360
|
ssrName: "publicLicenseKey",
|
|
4269
4361
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
4270
4362
|
getValue: ({ commandLine }) => {
|
|
4271
|
-
if (commandLine[
|
|
4363
|
+
if (commandLine[cliFlag75] !== undefined) {
|
|
4272
4364
|
return {
|
|
4273
4365
|
source: "cli",
|
|
4274
|
-
value: commandLine[
|
|
4366
|
+
value: commandLine[cliFlag75]
|
|
4275
4367
|
};
|
|
4276
4368
|
}
|
|
4277
4369
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -4292,25 +4384,25 @@ var publicLicenseKeyOption = {
|
|
|
4292
4384
|
currentPublicLicenseKey = value3;
|
|
4293
4385
|
},
|
|
4294
4386
|
type: null,
|
|
4295
|
-
id:
|
|
4387
|
+
id: cliFlag75
|
|
4296
4388
|
};
|
|
4297
4389
|
|
|
4298
4390
|
// src/options/public-path.tsx
|
|
4299
|
-
import { jsx as
|
|
4300
|
-
var
|
|
4391
|
+
import { jsx as jsx72, jsxs as jsxs51, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4392
|
+
var cliFlag76 = "public-path";
|
|
4301
4393
|
var currentPublicPath = null;
|
|
4302
4394
|
var publicPathOption = {
|
|
4303
4395
|
name: "Public Path",
|
|
4304
|
-
cliFlag:
|
|
4396
|
+
cliFlag: cliFlag76,
|
|
4305
4397
|
description: () => {
|
|
4306
|
-
return /* @__PURE__ */
|
|
4398
|
+
return /* @__PURE__ */ jsxs51(Fragment72, {
|
|
4307
4399
|
children: [
|
|
4308
4400
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
4309
|
-
/* @__PURE__ */
|
|
4401
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4310
4402
|
children: "./"
|
|
4311
4403
|
}),
|
|
4312
4404
|
", making the bundle relocatable. Set an absolute path such as ",
|
|
4313
|
-
/* @__PURE__ */
|
|
4405
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4314
4406
|
children: "/sites/my-site/"
|
|
4315
4407
|
}),
|
|
4316
4408
|
" to host the bundle at a fixed location."
|
|
@@ -4320,10 +4412,10 @@ var publicPathOption = {
|
|
|
4320
4412
|
ssrName: "publicPath",
|
|
4321
4413
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
4322
4414
|
getValue: ({ commandLine }) => {
|
|
4323
|
-
if (commandLine[
|
|
4415
|
+
if (commandLine[cliFlag76] !== undefined) {
|
|
4324
4416
|
return {
|
|
4325
4417
|
source: "cli",
|
|
4326
|
-
value: commandLine[
|
|
4418
|
+
value: commandLine[cliFlag76]
|
|
4327
4419
|
};
|
|
4328
4420
|
}
|
|
4329
4421
|
if (currentPublicPath !== null) {
|
|
@@ -4341,29 +4433,29 @@ var publicPathOption = {
|
|
|
4341
4433
|
currentPublicPath = value3;
|
|
4342
4434
|
},
|
|
4343
4435
|
type: "",
|
|
4344
|
-
id:
|
|
4436
|
+
id: cliFlag76
|
|
4345
4437
|
};
|
|
4346
4438
|
|
|
4347
4439
|
// src/options/repro.tsx
|
|
4348
|
-
import { jsx as
|
|
4440
|
+
import { jsx as jsx73, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4349
4441
|
var enableRepro = false;
|
|
4350
4442
|
var setRepro = (should) => {
|
|
4351
4443
|
enableRepro = should;
|
|
4352
4444
|
};
|
|
4353
|
-
var
|
|
4445
|
+
var cliFlag77 = "repro";
|
|
4354
4446
|
var reproOption = {
|
|
4355
4447
|
name: "Create reproduction",
|
|
4356
|
-
cliFlag:
|
|
4357
|
-
description: () => /* @__PURE__ */
|
|
4448
|
+
cliFlag: cliFlag77,
|
|
4449
|
+
description: () => /* @__PURE__ */ jsx73(Fragment73, {
|
|
4358
4450
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
4359
4451
|
}),
|
|
4360
4452
|
ssrName: "repro",
|
|
4361
4453
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
4362
4454
|
type: false,
|
|
4363
4455
|
getValue: ({ commandLine }) => {
|
|
4364
|
-
if (commandLine[
|
|
4456
|
+
if (commandLine[cliFlag77] !== undefined && commandLine[cliFlag77] !== null) {
|
|
4365
4457
|
return {
|
|
4366
|
-
value: commandLine[
|
|
4458
|
+
value: commandLine[cliFlag77],
|
|
4367
4459
|
source: "cli"
|
|
4368
4460
|
};
|
|
4369
4461
|
}
|
|
@@ -4379,26 +4471,27 @@ var reproOption = {
|
|
|
4379
4471
|
};
|
|
4380
4472
|
},
|
|
4381
4473
|
setConfig: setRepro,
|
|
4382
|
-
id:
|
|
4474
|
+
id: cliFlag77
|
|
4383
4475
|
};
|
|
4384
4476
|
|
|
4385
4477
|
// src/options/rspack.tsx
|
|
4386
|
-
import { jsx as
|
|
4478
|
+
import { jsx as jsx74, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4387
4479
|
var rspackEnabled = false;
|
|
4388
|
-
var
|
|
4480
|
+
var configuredRspackEnabled = null;
|
|
4481
|
+
var cliFlag78 = "rspack";
|
|
4389
4482
|
var rspackOption = {
|
|
4390
4483
|
name: "Rspack",
|
|
4391
|
-
cliFlag:
|
|
4392
|
-
description: () => /* @__PURE__ */
|
|
4484
|
+
cliFlag: cliFlag78,
|
|
4485
|
+
description: () => /* @__PURE__ */ jsx74(Fragment74, {
|
|
4393
4486
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4394
4487
|
}),
|
|
4395
4488
|
ssrName: null,
|
|
4396
4489
|
docLink: null,
|
|
4397
4490
|
type: false,
|
|
4398
4491
|
getValue: ({ commandLine }) => {
|
|
4399
|
-
if (commandLine[
|
|
4492
|
+
if (commandLine[cliFlag78] !== undefined && commandLine[cliFlag78] !== null) {
|
|
4400
4493
|
return {
|
|
4401
|
-
value: commandLine[
|
|
4494
|
+
value: commandLine[cliFlag78],
|
|
4402
4495
|
source: "cli"
|
|
4403
4496
|
};
|
|
4404
4497
|
}
|
|
@@ -4409,22 +4502,28 @@ var rspackOption = {
|
|
|
4409
4502
|
},
|
|
4410
4503
|
setConfig(value3) {
|
|
4411
4504
|
rspackEnabled = value3;
|
|
4505
|
+
configuredRspackEnabled = value3;
|
|
4412
4506
|
},
|
|
4413
|
-
|
|
4507
|
+
getConfigValue: () => configuredRspackEnabled,
|
|
4508
|
+
reset: () => {
|
|
4509
|
+
rspackEnabled = false;
|
|
4510
|
+
configuredRspackEnabled = null;
|
|
4511
|
+
},
|
|
4512
|
+
id: cliFlag78
|
|
4414
4513
|
};
|
|
4415
4514
|
|
|
4416
4515
|
// src/options/runs.tsx
|
|
4417
|
-
import { jsx as
|
|
4516
|
+
import { jsx as jsx75, jsxs as jsxs52, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4418
4517
|
var DEFAULT_RUNS = 3;
|
|
4419
4518
|
var currentRuns = DEFAULT_RUNS;
|
|
4420
|
-
var
|
|
4519
|
+
var cliFlag79 = "runs";
|
|
4421
4520
|
var runsOption = {
|
|
4422
4521
|
name: "Benchmark runs",
|
|
4423
|
-
cliFlag:
|
|
4424
|
-
description: () => /* @__PURE__ */
|
|
4522
|
+
cliFlag: cliFlag79,
|
|
4523
|
+
description: () => /* @__PURE__ */ jsxs52(Fragment75, {
|
|
4425
4524
|
children: [
|
|
4426
4525
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
4427
|
-
/* @__PURE__ */
|
|
4526
|
+
/* @__PURE__ */ jsx75("code", {
|
|
4428
4527
|
children: DEFAULT_RUNS
|
|
4429
4528
|
}),
|
|
4430
4529
|
"."
|
|
@@ -4434,10 +4533,10 @@ var runsOption = {
|
|
|
4434
4533
|
docLink: "https://www.remotion.dev/docs/cli/benchmark#--runs",
|
|
4435
4534
|
type: DEFAULT_RUNS,
|
|
4436
4535
|
getValue: ({ commandLine }) => {
|
|
4437
|
-
if (commandLine[
|
|
4438
|
-
const value3 = Number(commandLine[
|
|
4536
|
+
if (commandLine[cliFlag79] !== undefined) {
|
|
4537
|
+
const value3 = Number(commandLine[cliFlag79]);
|
|
4439
4538
|
if (isNaN(value3) || value3 < 1) {
|
|
4440
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
4539
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag79]}`);
|
|
4441
4540
|
}
|
|
4442
4541
|
return { value: value3, source: "cli" };
|
|
4443
4542
|
}
|
|
@@ -4452,21 +4551,21 @@ var runsOption = {
|
|
|
4452
4551
|
}
|
|
4453
4552
|
currentRuns = value3;
|
|
4454
4553
|
},
|
|
4455
|
-
id:
|
|
4554
|
+
id: cliFlag79
|
|
4456
4555
|
};
|
|
4457
4556
|
|
|
4458
4557
|
// src/options/sample-rate.tsx
|
|
4459
|
-
import { jsx as
|
|
4460
|
-
var
|
|
4558
|
+
import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4559
|
+
var cliFlag80 = "sample-rate";
|
|
4461
4560
|
var currentSampleRate = 48000;
|
|
4462
4561
|
var sampleRateOption = {
|
|
4463
4562
|
name: "Sample Rate",
|
|
4464
|
-
cliFlag:
|
|
4465
|
-
description: () => /* @__PURE__ */
|
|
4563
|
+
cliFlag: cliFlag80,
|
|
4564
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment76, {
|
|
4466
4565
|
children: [
|
|
4467
4566
|
"Controls the sample rate of the output audio. The default is",
|
|
4468
4567
|
" ",
|
|
4469
|
-
/* @__PURE__ */
|
|
4568
|
+
/* @__PURE__ */ jsx76("code", {
|
|
4470
4569
|
children: "48000"
|
|
4471
4570
|
}),
|
|
4472
4571
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -4476,8 +4575,8 @@ var sampleRateOption = {
|
|
|
4476
4575
|
docLink: "https://www.remotion.dev/docs/sample-rate",
|
|
4477
4576
|
type: 48000,
|
|
4478
4577
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
4479
|
-
if (commandLine[
|
|
4480
|
-
return { value: commandLine[
|
|
4578
|
+
if (commandLine[cliFlag80] !== undefined) {
|
|
4579
|
+
return { value: commandLine[cliFlag80], source: "cli" };
|
|
4481
4580
|
}
|
|
4482
4581
|
if (currentSampleRate !== 48000) {
|
|
4483
4582
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -4493,13 +4592,13 @@ var sampleRateOption = {
|
|
|
4493
4592
|
setConfig: (value3) => {
|
|
4494
4593
|
currentSampleRate = value3;
|
|
4495
4594
|
},
|
|
4496
|
-
id:
|
|
4595
|
+
id: cliFlag80
|
|
4497
4596
|
};
|
|
4498
4597
|
|
|
4499
4598
|
// src/options/scale.tsx
|
|
4500
|
-
import { jsx as
|
|
4599
|
+
import { jsx as jsx77, jsxs as jsxs54, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4501
4600
|
var currentScale = 1;
|
|
4502
|
-
var
|
|
4601
|
+
var cliFlag81 = "scale";
|
|
4503
4602
|
var validateScale = (value3) => {
|
|
4504
4603
|
if (typeof value3 !== "number") {
|
|
4505
4604
|
throw new Error("scale must be a number.");
|
|
@@ -4507,15 +4606,15 @@ var validateScale = (value3) => {
|
|
|
4507
4606
|
};
|
|
4508
4607
|
var scaleOption = {
|
|
4509
4608
|
name: "Scale",
|
|
4510
|
-
cliFlag:
|
|
4511
|
-
description: () => /* @__PURE__ */
|
|
4609
|
+
cliFlag: cliFlag81,
|
|
4610
|
+
description: () => /* @__PURE__ */ jsxs54(Fragment77, {
|
|
4512
4611
|
children: [
|
|
4513
4612
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
4514
|
-
/* @__PURE__ */
|
|
4613
|
+
/* @__PURE__ */ jsx77("code", {
|
|
4515
4614
|
children: "1.5"
|
|
4516
4615
|
}),
|
|
4517
4616
|
". See ",
|
|
4518
|
-
/* @__PURE__ */
|
|
4617
|
+
/* @__PURE__ */ jsx77("a", {
|
|
4519
4618
|
href: "https://www.remotion.dev/docs/scaling",
|
|
4520
4619
|
children: "Scaling"
|
|
4521
4620
|
}),
|
|
@@ -4526,11 +4625,11 @@ var scaleOption = {
|
|
|
4526
4625
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
4527
4626
|
type: 0,
|
|
4528
4627
|
getValue: ({ commandLine }) => {
|
|
4529
|
-
if (commandLine[
|
|
4530
|
-
validateScale(commandLine[
|
|
4628
|
+
if (commandLine[cliFlag81] !== undefined) {
|
|
4629
|
+
validateScale(commandLine[cliFlag81]);
|
|
4531
4630
|
return {
|
|
4532
4631
|
source: "cli",
|
|
4533
|
-
value: commandLine[
|
|
4632
|
+
value: commandLine[cliFlag81]
|
|
4534
4633
|
};
|
|
4535
4634
|
}
|
|
4536
4635
|
if (currentScale !== null) {
|
|
@@ -4547,22 +4646,22 @@ var scaleOption = {
|
|
|
4547
4646
|
setConfig: (scale) => {
|
|
4548
4647
|
currentScale = scale;
|
|
4549
4648
|
},
|
|
4550
|
-
id:
|
|
4649
|
+
id: cliFlag81
|
|
4551
4650
|
};
|
|
4552
4651
|
|
|
4553
4652
|
// src/options/skip-skills.tsx
|
|
4554
|
-
import { jsx as
|
|
4555
|
-
var
|
|
4653
|
+
import { jsx as jsx78, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4654
|
+
var cliFlag82 = "skip-skills";
|
|
4556
4655
|
var skipSkillsOption = {
|
|
4557
4656
|
name: "Skip Skills",
|
|
4558
|
-
cliFlag:
|
|
4559
|
-
description: () => /* @__PURE__ */
|
|
4657
|
+
cliFlag: cliFlag82,
|
|
4658
|
+
description: () => /* @__PURE__ */ jsx78(Fragment78, {
|
|
4560
4659
|
children: "Do not update installed Remotion Agent Skills while upgrading Remotion."
|
|
4561
4660
|
}),
|
|
4562
4661
|
ssrName: null,
|
|
4563
4662
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--skip-skills",
|
|
4564
4663
|
getValue: ({ commandLine }) => {
|
|
4565
|
-
if (commandLine[
|
|
4664
|
+
if (commandLine[cliFlag82]) {
|
|
4566
4665
|
return {
|
|
4567
4666
|
source: "cli",
|
|
4568
4667
|
value: true
|
|
@@ -4577,13 +4676,13 @@ var skipSkillsOption = {
|
|
|
4577
4676
|
throw new Error("Cannot skip updating skills via config file");
|
|
4578
4677
|
},
|
|
4579
4678
|
type: false,
|
|
4580
|
-
id:
|
|
4679
|
+
id: cliFlag82
|
|
4581
4680
|
};
|
|
4582
4681
|
|
|
4583
4682
|
// src/options/still-frame.tsx
|
|
4584
4683
|
import { NoReactInternals as NoReactInternals4 } from "remotion/no-react";
|
|
4585
|
-
import { jsx as
|
|
4586
|
-
var
|
|
4684
|
+
import { jsx as jsx79, jsxs as jsxs55, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4685
|
+
var cliFlag83 = "frame";
|
|
4587
4686
|
var currentFrame = null;
|
|
4588
4687
|
var validate3 = (frame) => {
|
|
4589
4688
|
NoReactInternals4.validateFrame({
|
|
@@ -4594,17 +4693,17 @@ var validate3 = (frame) => {
|
|
|
4594
4693
|
};
|
|
4595
4694
|
var stillFrameOption = {
|
|
4596
4695
|
name: "Frame",
|
|
4597
|
-
cliFlag:
|
|
4598
|
-
description: () => /* @__PURE__ */
|
|
4696
|
+
cliFlag: cliFlag83,
|
|
4697
|
+
description: () => /* @__PURE__ */ jsxs55(Fragment79, {
|
|
4599
4698
|
children: [
|
|
4600
4699
|
"Which frame should be rendered when rendering a still. Default",
|
|
4601
4700
|
" ",
|
|
4602
|
-
/* @__PURE__ */
|
|
4701
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4603
4702
|
children: "0"
|
|
4604
4703
|
}),
|
|
4605
4704
|
". From v3.2.27, negative values are allowed, with",
|
|
4606
4705
|
" ",
|
|
4607
|
-
/* @__PURE__ */
|
|
4706
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4608
4707
|
children: "-1"
|
|
4609
4708
|
}),
|
|
4610
4709
|
" being the last frame."
|
|
@@ -4613,8 +4712,8 @@ var stillFrameOption = {
|
|
|
4613
4712
|
ssrName: "frame",
|
|
4614
4713
|
docLink: "https://www.remotion.dev/docs/cli/still#--frame",
|
|
4615
4714
|
getValue: ({ commandLine }) => {
|
|
4616
|
-
if (commandLine[
|
|
4617
|
-
const frame = Number(commandLine[
|
|
4715
|
+
if (commandLine[cliFlag83] !== undefined) {
|
|
4716
|
+
const frame = Number(commandLine[cliFlag83]);
|
|
4618
4717
|
validate3(frame);
|
|
4619
4718
|
return {
|
|
4620
4719
|
source: "cli",
|
|
@@ -4639,24 +4738,24 @@ var stillFrameOption = {
|
|
|
4639
4738
|
currentFrame = value3;
|
|
4640
4739
|
},
|
|
4641
4740
|
type: 0,
|
|
4642
|
-
id:
|
|
4741
|
+
id: cliFlag83
|
|
4643
4742
|
};
|
|
4644
4743
|
|
|
4645
4744
|
// src/options/still-image-format.tsx
|
|
4646
|
-
import { jsx as
|
|
4745
|
+
import { jsx as jsx80, jsxs as jsxs56, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4647
4746
|
var currentStillImageFormat = null;
|
|
4648
|
-
var
|
|
4747
|
+
var cliFlag84 = "image-format";
|
|
4649
4748
|
var stillImageFormatOption = {
|
|
4650
4749
|
name: "Still Image Format",
|
|
4651
|
-
cliFlag:
|
|
4652
|
-
description: () => /* @__PURE__ */
|
|
4750
|
+
cliFlag: cliFlag84,
|
|
4751
|
+
description: () => /* @__PURE__ */ jsxs56(Fragment80, {
|
|
4653
4752
|
children: [
|
|
4654
4753
|
"The image format to use when rendering a still. Must be one of",
|
|
4655
4754
|
" ",
|
|
4656
4755
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
4657
4756
|
". Default:",
|
|
4658
4757
|
" ",
|
|
4659
|
-
/* @__PURE__ */
|
|
4758
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4660
4759
|
children: '"png"'
|
|
4661
4760
|
}),
|
|
4662
4761
|
"."
|
|
@@ -4666,8 +4765,8 @@ var stillImageFormatOption = {
|
|
|
4666
4765
|
docLink: "https://www.remotion.dev/docs/renderer/render-still#imageformat",
|
|
4667
4766
|
type: null,
|
|
4668
4767
|
getValue: ({ commandLine }) => {
|
|
4669
|
-
if (commandLine[
|
|
4670
|
-
const value3 = commandLine[
|
|
4768
|
+
if (commandLine[cliFlag84] !== undefined) {
|
|
4769
|
+
const value3 = commandLine[cliFlag84];
|
|
4671
4770
|
if (!validStillImageFormats.includes(value3)) {
|
|
4672
4771
|
throw new Error(`Invalid still image format: ${value3}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
4673
4772
|
}
|
|
@@ -4705,16 +4804,16 @@ var stillImageFormatOption = {
|
|
|
4705
4804
|
|
|
4706
4805
|
// src/options/throw-if-site-exists.tsx
|
|
4707
4806
|
var DEFAULT5 = false;
|
|
4708
|
-
var
|
|
4807
|
+
var cliFlag85 = "throw-if-site-exists";
|
|
4709
4808
|
var throwIfSiteExistsOption = {
|
|
4710
|
-
cliFlag:
|
|
4809
|
+
cliFlag: cliFlag85,
|
|
4711
4810
|
description: () => `Prevents accidential update of an existing site. If there are any files in the subfolder where the site should be placed, the function will throw.`,
|
|
4712
4811
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
4713
4812
|
getValue: ({ commandLine }) => {
|
|
4714
|
-
if (commandLine[
|
|
4813
|
+
if (commandLine[cliFlag85]) {
|
|
4715
4814
|
return {
|
|
4716
4815
|
source: "cli",
|
|
4717
|
-
value: commandLine[
|
|
4816
|
+
value: commandLine[cliFlag85]
|
|
4718
4817
|
};
|
|
4719
4818
|
}
|
|
4720
4819
|
return {
|
|
@@ -4728,41 +4827,41 @@ var throwIfSiteExistsOption = {
|
|
|
4728
4827
|
},
|
|
4729
4828
|
ssrName: "throwIfSiteExists",
|
|
4730
4829
|
type: false,
|
|
4731
|
-
id:
|
|
4830
|
+
id: cliFlag85
|
|
4732
4831
|
};
|
|
4733
4832
|
|
|
4734
4833
|
// src/options/timeout.tsx
|
|
4735
|
-
import { jsx as
|
|
4834
|
+
import { jsx as jsx81, jsxs as jsxs57, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
4736
4835
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
4737
4836
|
var validate4 = (value3) => {
|
|
4738
4837
|
if (typeof value3 !== "number") {
|
|
4739
4838
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
4740
4839
|
}
|
|
4741
4840
|
};
|
|
4742
|
-
var
|
|
4841
|
+
var cliFlag86 = "timeout";
|
|
4743
4842
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
4744
4843
|
name: "delayRender() timeout",
|
|
4745
|
-
cliFlag:
|
|
4746
|
-
description: () => /* @__PURE__ */
|
|
4844
|
+
cliFlag: cliFlag86,
|
|
4845
|
+
description: () => /* @__PURE__ */ jsxs57(Fragment81, {
|
|
4747
4846
|
children: [
|
|
4748
4847
|
"A number describing how long the render may take to resolve all",
|
|
4749
4848
|
" ",
|
|
4750
|
-
/* @__PURE__ */
|
|
4849
|
+
/* @__PURE__ */ jsx81("a", {
|
|
4751
4850
|
href: "https://remotion.dev/docs/delay-render",
|
|
4752
|
-
children: /* @__PURE__ */
|
|
4851
|
+
children: /* @__PURE__ */ jsx81("code", {
|
|
4753
4852
|
children: "delayRender()"
|
|
4754
4853
|
})
|
|
4755
4854
|
}),
|
|
4756
4855
|
" ",
|
|
4757
4856
|
"calls",
|
|
4758
4857
|
" ",
|
|
4759
|
-
/* @__PURE__ */
|
|
4858
|
+
/* @__PURE__ */ jsx81("a", {
|
|
4760
4859
|
style: { fontSize: "inherit" },
|
|
4761
4860
|
href: "https://remotion.dev/docs/timeout",
|
|
4762
4861
|
children: "before it times out"
|
|
4763
4862
|
}),
|
|
4764
4863
|
". Default: ",
|
|
4765
|
-
/* @__PURE__ */
|
|
4864
|
+
/* @__PURE__ */ jsx81("code", {
|
|
4766
4865
|
children: "30000"
|
|
4767
4866
|
})
|
|
4768
4867
|
]
|
|
@@ -4771,10 +4870,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4771
4870
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
4772
4871
|
type: 0,
|
|
4773
4872
|
getValue: ({ commandLine }) => {
|
|
4774
|
-
if (commandLine[
|
|
4873
|
+
if (commandLine[cliFlag86] !== undefined) {
|
|
4775
4874
|
return {
|
|
4776
4875
|
source: "cli",
|
|
4777
|
-
value: commandLine[
|
|
4876
|
+
value: commandLine[cliFlag86]
|
|
4778
4877
|
};
|
|
4779
4878
|
}
|
|
4780
4879
|
if (currentTimeout !== null) {
|
|
@@ -4793,27 +4892,27 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4793
4892
|
validate4(value3);
|
|
4794
4893
|
currentTimeout = value3;
|
|
4795
4894
|
},
|
|
4796
|
-
id:
|
|
4895
|
+
id: cliFlag86
|
|
4797
4896
|
};
|
|
4798
4897
|
|
|
4799
4898
|
// src/options/user-agent.tsx
|
|
4800
|
-
import { jsx as
|
|
4899
|
+
import { jsx as jsx82, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
4801
4900
|
var userAgent = null;
|
|
4802
|
-
var
|
|
4901
|
+
var cliFlag87 = "user-agent";
|
|
4803
4902
|
var userAgentOption = {
|
|
4804
4903
|
name: "User agent",
|
|
4805
|
-
cliFlag:
|
|
4806
|
-
description: () => /* @__PURE__ */
|
|
4904
|
+
cliFlag: cliFlag87,
|
|
4905
|
+
description: () => /* @__PURE__ */ jsx82(Fragment82, {
|
|
4807
4906
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
4808
4907
|
}),
|
|
4809
4908
|
ssrName: "userAgent",
|
|
4810
4909
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--user-agent",
|
|
4811
4910
|
type: null,
|
|
4812
4911
|
getValue: ({ commandLine }) => {
|
|
4813
|
-
if (commandLine[
|
|
4912
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
4814
4913
|
return {
|
|
4815
4914
|
source: "cli",
|
|
4816
|
-
value: commandLine[
|
|
4915
|
+
value: commandLine[cliFlag87]
|
|
4817
4916
|
};
|
|
4818
4917
|
}
|
|
4819
4918
|
if (userAgent !== null) {
|
|
@@ -4830,25 +4929,25 @@ var userAgentOption = {
|
|
|
4830
4929
|
setConfig: (value3) => {
|
|
4831
4930
|
userAgent = value3;
|
|
4832
4931
|
},
|
|
4833
|
-
id:
|
|
4932
|
+
id: cliFlag87
|
|
4834
4933
|
};
|
|
4835
4934
|
|
|
4836
4935
|
// src/options/version-flag.tsx
|
|
4837
|
-
import { jsx as
|
|
4838
|
-
var
|
|
4936
|
+
import { jsx as jsx83, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
4937
|
+
var cliFlag88 = "version";
|
|
4839
4938
|
var versionFlagOption = {
|
|
4840
4939
|
name: "Version",
|
|
4841
|
-
cliFlag:
|
|
4842
|
-
description: () => /* @__PURE__ */
|
|
4940
|
+
cliFlag: cliFlag88,
|
|
4941
|
+
description: () => /* @__PURE__ */ jsx83(Fragment83, {
|
|
4843
4942
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
4844
4943
|
}),
|
|
4845
4944
|
ssrName: null,
|
|
4846
4945
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--version",
|
|
4847
4946
|
getValue: ({ commandLine }) => {
|
|
4848
|
-
if (commandLine[
|
|
4947
|
+
if (commandLine[cliFlag88] !== undefined) {
|
|
4849
4948
|
return {
|
|
4850
4949
|
source: "cli",
|
|
4851
|
-
value: String(commandLine[
|
|
4950
|
+
value: String(commandLine[cliFlag88])
|
|
4852
4951
|
};
|
|
4853
4952
|
}
|
|
4854
4953
|
return {
|
|
@@ -4860,30 +4959,30 @@ var versionFlagOption = {
|
|
|
4860
4959
|
throw new Error("Cannot set version via config file");
|
|
4861
4960
|
},
|
|
4862
4961
|
type: "",
|
|
4863
|
-
id:
|
|
4962
|
+
id: cliFlag88
|
|
4864
4963
|
};
|
|
4865
4964
|
|
|
4866
4965
|
// src/options/video-bitrate.tsx
|
|
4867
|
-
import { jsx as
|
|
4966
|
+
import { jsx as jsx84, jsxs as jsxs58, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
4868
4967
|
var videoBitrate = null;
|
|
4869
|
-
var
|
|
4968
|
+
var cliFlag89 = "video-bitrate";
|
|
4870
4969
|
var videoBitrateOption = {
|
|
4871
4970
|
name: "Video Bitrate",
|
|
4872
|
-
cliFlag:
|
|
4873
|
-
description: () => /* @__PURE__ */
|
|
4971
|
+
cliFlag: cliFlag89,
|
|
4972
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment84, {
|
|
4874
4973
|
children: [
|
|
4875
4974
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
4876
4975
|
"'",
|
|
4877
4976
|
"s",
|
|
4878
|
-
/* @__PURE__ */
|
|
4977
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4879
4978
|
children: "-b:v"
|
|
4880
4979
|
}),
|
|
4881
4980
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
4882
|
-
/* @__PURE__ */
|
|
4981
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4883
4982
|
children: "512K"
|
|
4884
4983
|
}),
|
|
4885
4984
|
" for 512 kbps, ",
|
|
4886
|
-
/* @__PURE__ */
|
|
4985
|
+
/* @__PURE__ */ jsx84("code", {
|
|
4887
4986
|
children: "1M"
|
|
4888
4987
|
}),
|
|
4889
4988
|
" for 1 Mbps."
|
|
@@ -4893,10 +4992,10 @@ var videoBitrateOption = {
|
|
|
4893
4992
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
4894
4993
|
type: "",
|
|
4895
4994
|
getValue: ({ commandLine }) => {
|
|
4896
|
-
if (commandLine[
|
|
4995
|
+
if (commandLine[cliFlag89] !== undefined) {
|
|
4897
4996
|
return {
|
|
4898
4997
|
source: "cli",
|
|
4899
|
-
value: commandLine[
|
|
4998
|
+
value: commandLine[cliFlag89]
|
|
4900
4999
|
};
|
|
4901
5000
|
}
|
|
4902
5001
|
if (videoBitrate !== null) {
|
|
@@ -4913,34 +5012,34 @@ var videoBitrateOption = {
|
|
|
4913
5012
|
setConfig: (bitrate) => {
|
|
4914
5013
|
videoBitrate = bitrate;
|
|
4915
5014
|
},
|
|
4916
|
-
id:
|
|
5015
|
+
id: cliFlag89
|
|
4917
5016
|
};
|
|
4918
5017
|
|
|
4919
5018
|
// src/options/video-cache-size.tsx
|
|
4920
|
-
import { jsx as
|
|
5019
|
+
import { jsx as jsx85, jsxs as jsxs59, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
4921
5020
|
var mediaCacheSizeInBytes = null;
|
|
4922
|
-
var
|
|
5021
|
+
var cliFlag90 = "media-cache-size-in-bytes";
|
|
4923
5022
|
var mediaCacheSizeInBytesOption = {
|
|
4924
5023
|
name: "@remotion/media cache size",
|
|
4925
|
-
cliFlag:
|
|
4926
|
-
description: () => /* @__PURE__ */
|
|
5024
|
+
cliFlag: cliFlag90,
|
|
5025
|
+
description: () => /* @__PURE__ */ jsxs59(Fragment85, {
|
|
4927
5026
|
children: [
|
|
4928
5027
|
"Specify the memory budget for decoded media cached by",
|
|
4929
5028
|
" ",
|
|
4930
|
-
/* @__PURE__ */
|
|
5029
|
+
/* @__PURE__ */ jsx85("code", {
|
|
4931
5030
|
children: "<Video>"
|
|
4932
5031
|
}),
|
|
4933
5032
|
" and ",
|
|
4934
|
-
/* @__PURE__ */
|
|
5033
|
+
/* @__PURE__ */ jsx85("code", {
|
|
4935
5034
|
children: "<Audio>"
|
|
4936
5035
|
}),
|
|
4937
5036
|
" from",
|
|
4938
5037
|
" ",
|
|
4939
|
-
/* @__PURE__ */
|
|
5038
|
+
/* @__PURE__ */ jsx85("code", {
|
|
4940
5039
|
children: "@remotion/media"
|
|
4941
5040
|
}),
|
|
4942
5041
|
", in bytes. This value also determines the maximum read cache size for each distinct media source. It is not a limit on total memory usage. ",
|
|
4943
|
-
/* @__PURE__ */
|
|
5042
|
+
/* @__PURE__ */ jsx85("br", {}),
|
|
4944
5043
|
"The default is half of the available system memory when the render starts."
|
|
4945
5044
|
]
|
|
4946
5045
|
}),
|
|
@@ -4948,10 +5047,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4948
5047
|
docLink: "https://www.remotion.dev/docs/media/cache",
|
|
4949
5048
|
type: 0,
|
|
4950
5049
|
getValue: ({ commandLine }) => {
|
|
4951
|
-
if (commandLine[
|
|
5050
|
+
if (commandLine[cliFlag90] !== undefined) {
|
|
4952
5051
|
return {
|
|
4953
5052
|
source: "cli",
|
|
4954
|
-
value: commandLine[
|
|
5053
|
+
value: commandLine[cliFlag90]
|
|
4955
5054
|
};
|
|
4956
5055
|
}
|
|
4957
5056
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -4968,7 +5067,7 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4968
5067
|
setConfig: (size) => {
|
|
4969
5068
|
mediaCacheSizeInBytes = size ?? null;
|
|
4970
5069
|
},
|
|
4971
|
-
id:
|
|
5070
|
+
id: cliFlag90
|
|
4972
5071
|
};
|
|
4973
5072
|
|
|
4974
5073
|
// src/path-normalize.ts
|
|
@@ -5087,7 +5186,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
5087
5186
|
};
|
|
5088
5187
|
|
|
5089
5188
|
// src/options/video-codec.tsx
|
|
5090
|
-
import { jsx as
|
|
5189
|
+
import { jsx as jsx86, Fragment as Fragment86 } from "react/jsx-runtime";
|
|
5091
5190
|
var codec;
|
|
5092
5191
|
var setCodec = (newCodec) => {
|
|
5093
5192
|
if (newCodec === undefined) {
|
|
@@ -5111,11 +5210,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
5111
5210
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
5112
5211
|
};
|
|
5113
5212
|
};
|
|
5114
|
-
var
|
|
5213
|
+
var cliFlag91 = "codec";
|
|
5115
5214
|
var videoCodecOption = {
|
|
5116
5215
|
name: "Codec",
|
|
5117
|
-
cliFlag:
|
|
5118
|
-
description: () => /* @__PURE__ */
|
|
5216
|
+
cliFlag: cliFlag91,
|
|
5217
|
+
description: () => /* @__PURE__ */ jsx86(Fragment86, {
|
|
5119
5218
|
children: "H264 works well in most cases, but sometimes it's worth going for a different codec. WebM achieves higher compression but is slower to render. WebM, GIF and ProRes support transparency."
|
|
5120
5219
|
}),
|
|
5121
5220
|
ssrName: "codec",
|
|
@@ -5138,7 +5237,7 @@ var videoCodecOption = {
|
|
|
5138
5237
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
5139
5238
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
5140
5239
|
}
|
|
5141
|
-
const cliArgument = commandLine[
|
|
5240
|
+
const cliArgument = commandLine[cliFlag91];
|
|
5142
5241
|
if (cliArgument) {
|
|
5143
5242
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
5144
5243
|
throw new TypeError(`The download name is ${downloadName} but --codec=${cliArgument} was passed. The download name implies a codec of ${derivedDownloadCodecs.possible.join(" or ")} which does not align with the --codec flag.`);
|
|
@@ -5187,24 +5286,24 @@ var videoCodecOption = {
|
|
|
5187
5286
|
reset: () => {
|
|
5188
5287
|
codec = undefined;
|
|
5189
5288
|
},
|
|
5190
|
-
id:
|
|
5289
|
+
id: cliFlag91
|
|
5191
5290
|
};
|
|
5192
5291
|
|
|
5193
5292
|
// src/options/video-image-format.tsx
|
|
5194
|
-
import { jsx as
|
|
5293
|
+
import { jsx as jsx87, jsxs as jsxs60, Fragment as Fragment87 } from "react/jsx-runtime";
|
|
5195
5294
|
var currentVideoImageFormat = null;
|
|
5196
|
-
var
|
|
5295
|
+
var cliFlag92 = "image-format";
|
|
5197
5296
|
var videoImageFormatOption = {
|
|
5198
5297
|
name: "Video Image Format",
|
|
5199
|
-
cliFlag:
|
|
5200
|
-
description: () => /* @__PURE__ */
|
|
5298
|
+
cliFlag: cliFlag92,
|
|
5299
|
+
description: () => /* @__PURE__ */ jsxs60(Fragment87, {
|
|
5201
5300
|
children: [
|
|
5202
5301
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
5203
5302
|
" ",
|
|
5204
5303
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5205
5304
|
". Default:",
|
|
5206
5305
|
" ",
|
|
5207
|
-
/* @__PURE__ */
|
|
5306
|
+
/* @__PURE__ */ jsx87("code", {
|
|
5208
5307
|
children: '"jpeg"'
|
|
5209
5308
|
}),
|
|
5210
5309
|
". JPEG is faster, but does not support transparency."
|
|
@@ -5220,8 +5319,8 @@ var videoImageFormatOption = {
|
|
|
5220
5319
|
value: options.uiVideoImageFormat
|
|
5221
5320
|
};
|
|
5222
5321
|
}
|
|
5223
|
-
if (commandLine[
|
|
5224
|
-
const value3 = commandLine[
|
|
5322
|
+
if (commandLine[cliFlag92] !== undefined) {
|
|
5323
|
+
const value3 = commandLine[cliFlag92];
|
|
5225
5324
|
if (!validVideoImageFormats.includes(value3)) {
|
|
5226
5325
|
throw new Error(`Invalid video image format: ${value3}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
5227
5326
|
}
|
|
@@ -5285,12 +5384,12 @@ var videoImageFormatOption = {
|
|
|
5285
5384
|
};
|
|
5286
5385
|
|
|
5287
5386
|
// src/options/webhook-custom-data.tsx
|
|
5288
|
-
import { jsxs as
|
|
5289
|
-
var
|
|
5387
|
+
import { jsxs as jsxs61, Fragment as Fragment88 } from "react/jsx-runtime";
|
|
5388
|
+
var cliFlag93 = "webhook-custom-data";
|
|
5290
5389
|
var webhookCustomDataOption = {
|
|
5291
5390
|
name: "Webhook custom data",
|
|
5292
|
-
cliFlag:
|
|
5293
|
-
description: (type) => /* @__PURE__ */
|
|
5391
|
+
cliFlag: cliFlag93,
|
|
5392
|
+
description: (type) => /* @__PURE__ */ jsxs61(Fragment88, {
|
|
5294
5393
|
children: [
|
|
5295
5394
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
5296
5395
|
" ",
|
|
@@ -5306,24 +5405,24 @@ var webhookCustomDataOption = {
|
|
|
5306
5405
|
setConfig: () => {
|
|
5307
5406
|
throw new Error("Not implemented");
|
|
5308
5407
|
},
|
|
5309
|
-
id:
|
|
5408
|
+
id: cliFlag93
|
|
5310
5409
|
};
|
|
5311
5410
|
|
|
5312
5411
|
// src/options/webpack-poll.tsx
|
|
5313
|
-
import { jsx as
|
|
5314
|
-
var
|
|
5412
|
+
import { jsx as jsx88, Fragment as Fragment89 } from "react/jsx-runtime";
|
|
5413
|
+
var cliFlag94 = "webpack-poll";
|
|
5315
5414
|
var webpackPolling = null;
|
|
5316
5415
|
var webpackPollOption = {
|
|
5317
5416
|
name: "Webpack Polling",
|
|
5318
|
-
cliFlag:
|
|
5319
|
-
description: () => /* @__PURE__ */
|
|
5417
|
+
cliFlag: cliFlag94,
|
|
5418
|
+
description: () => /* @__PURE__ */ jsx88(Fragment89, {
|
|
5320
5419
|
children: "Enables Webpack polling instead of the file system event listeners for hot reloading. This is useful if you are inside a virtual machine or have a remote file system. Pass a value in milliseconds."
|
|
5321
5420
|
}),
|
|
5322
5421
|
ssrName: null,
|
|
5323
5422
|
docLink: "https://www.remotion.dev/docs/config#setwebpackpollinginmilliseconds",
|
|
5324
5423
|
getValue: ({ commandLine }) => {
|
|
5325
|
-
if (commandLine[
|
|
5326
|
-
const val = commandLine[
|
|
5424
|
+
if (commandLine[cliFlag94] !== undefined) {
|
|
5425
|
+
const val = commandLine[cliFlag94];
|
|
5327
5426
|
if (typeof val !== "number") {
|
|
5328
5427
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
5329
5428
|
}
|
|
@@ -5350,11 +5449,11 @@ var webpackPollOption = {
|
|
|
5350
5449
|
webpackPolling = value3;
|
|
5351
5450
|
},
|
|
5352
5451
|
type: 0,
|
|
5353
|
-
id:
|
|
5452
|
+
id: cliFlag94
|
|
5354
5453
|
};
|
|
5355
5454
|
|
|
5356
5455
|
// src/options/x264-preset.tsx
|
|
5357
|
-
import { jsx as
|
|
5456
|
+
import { jsx as jsx89, jsxs as jsxs62, Fragment as Fragment90 } from "react/jsx-runtime";
|
|
5358
5457
|
var x264PresetOptions = [
|
|
5359
5458
|
"ultrafast",
|
|
5360
5459
|
"superfast",
|
|
@@ -5368,63 +5467,63 @@ var x264PresetOptions = [
|
|
|
5368
5467
|
"placebo"
|
|
5369
5468
|
];
|
|
5370
5469
|
var preset = null;
|
|
5371
|
-
var
|
|
5470
|
+
var cliFlag95 = "x264-preset";
|
|
5372
5471
|
var DEFAULT_PRESET = "medium";
|
|
5373
5472
|
var x264Option = {
|
|
5374
5473
|
name: "x264 Preset",
|
|
5375
|
-
cliFlag:
|
|
5376
|
-
description: () => /* @__PURE__ */
|
|
5474
|
+
cliFlag: cliFlag95,
|
|
5475
|
+
description: () => /* @__PURE__ */ jsxs62(Fragment90, {
|
|
5377
5476
|
children: [
|
|
5378
5477
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
5379
5478
|
" ",
|
|
5380
|
-
/* @__PURE__ */
|
|
5479
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5381
5480
|
children: "h264"
|
|
5382
5481
|
}),
|
|
5383
5482
|
" codec.",
|
|
5384
|
-
/* @__PURE__ */
|
|
5483
|
+
/* @__PURE__ */ jsx89("br", {}),
|
|
5385
5484
|
"Possible values: ",
|
|
5386
|
-
/* @__PURE__ */
|
|
5485
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5387
5486
|
children: "superfast"
|
|
5388
5487
|
}),
|
|
5389
5488
|
", ",
|
|
5390
|
-
/* @__PURE__ */
|
|
5489
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5391
5490
|
children: "veryfast"
|
|
5392
5491
|
}),
|
|
5393
5492
|
",",
|
|
5394
5493
|
" ",
|
|
5395
|
-
/* @__PURE__ */
|
|
5494
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5396
5495
|
children: "faster"
|
|
5397
5496
|
}),
|
|
5398
5497
|
", ",
|
|
5399
|
-
/* @__PURE__ */
|
|
5498
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5400
5499
|
children: "fast"
|
|
5401
5500
|
}),
|
|
5402
5501
|
", ",
|
|
5403
|
-
/* @__PURE__ */
|
|
5502
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5404
5503
|
children: "medium"
|
|
5405
5504
|
}),
|
|
5406
5505
|
",",
|
|
5407
5506
|
" ",
|
|
5408
|
-
/* @__PURE__ */
|
|
5507
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5409
5508
|
children: "slow"
|
|
5410
5509
|
}),
|
|
5411
5510
|
", ",
|
|
5412
|
-
/* @__PURE__ */
|
|
5511
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5413
5512
|
children: "slower"
|
|
5414
5513
|
}),
|
|
5415
5514
|
", ",
|
|
5416
|
-
/* @__PURE__ */
|
|
5515
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5417
5516
|
children: "veryslow"
|
|
5418
5517
|
}),
|
|
5419
5518
|
",",
|
|
5420
5519
|
" ",
|
|
5421
|
-
/* @__PURE__ */
|
|
5520
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5422
5521
|
children: "placebo"
|
|
5423
5522
|
}),
|
|
5424
5523
|
".",
|
|
5425
|
-
/* @__PURE__ */
|
|
5524
|
+
/* @__PURE__ */ jsx89("br", {}),
|
|
5426
5525
|
"Default: ",
|
|
5427
|
-
/* @__PURE__ */
|
|
5526
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5428
5527
|
children: DEFAULT_PRESET
|
|
5429
5528
|
})
|
|
5430
5529
|
]
|
|
@@ -5433,7 +5532,7 @@ var x264Option = {
|
|
|
5433
5532
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
5434
5533
|
type: "fast",
|
|
5435
5534
|
getValue: ({ commandLine }) => {
|
|
5436
|
-
const value3 = commandLine[
|
|
5535
|
+
const value3 = commandLine[cliFlag95];
|
|
5437
5536
|
if (typeof value3 !== "undefined") {
|
|
5438
5537
|
return { value: value3, source: "cli" };
|
|
5439
5538
|
}
|
|
@@ -5445,11 +5544,12 @@ var x264Option = {
|
|
|
5445
5544
|
setConfig: (profile) => {
|
|
5446
5545
|
preset = profile;
|
|
5447
5546
|
},
|
|
5448
|
-
id:
|
|
5547
|
+
id: cliFlag95
|
|
5449
5548
|
};
|
|
5450
5549
|
|
|
5451
5550
|
// src/options/index.tsx
|
|
5452
5551
|
var allOptions = {
|
|
5552
|
+
allowHtmlInCanvasOption,
|
|
5453
5553
|
audioCodecOption,
|
|
5454
5554
|
benchmarkConcurrenciesOption,
|
|
5455
5555
|
browserExecutableOption,
|