@remotion/renderer 4.0.490 → 4.0.492
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 +0 -32
- package/dist/esm/client.mjs +810 -882
- package/dist/options/index.d.ts +0 -32
- package/dist/options/index.js +0 -4
- package/package.json +13 -13
package/dist/esm/client.mjs
CHANGED
|
@@ -304,56 +304,17 @@ var isValidLogLevel = (level) => {
|
|
|
304
304
|
return getNumberForLogLevel(level) > -1;
|
|
305
305
|
};
|
|
306
306
|
|
|
307
|
-
// src/options/allow-html-in-canvas.tsx
|
|
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
307
|
// src/options/api-key.tsx
|
|
347
|
-
import { jsx
|
|
308
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
348
309
|
var currentApiKey = null;
|
|
349
|
-
var
|
|
310
|
+
var cliFlag = "api-key";
|
|
350
311
|
var apiKeyOption = {
|
|
351
312
|
name: "API key",
|
|
352
|
-
cliFlag
|
|
353
|
-
description: () => /* @__PURE__ */
|
|
313
|
+
cliFlag,
|
|
314
|
+
description: () => /* @__PURE__ */ jsxs(Fragment, {
|
|
354
315
|
children: [
|
|
355
316
|
"API key for sending a usage event using ",
|
|
356
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ jsx("code", {
|
|
357
318
|
children: "@remotion/licensing"
|
|
358
319
|
}),
|
|
359
320
|
"."
|
|
@@ -363,10 +324,10 @@ var apiKeyOption = {
|
|
|
363
324
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
364
325
|
type: null,
|
|
365
326
|
getValue: ({ commandLine }) => {
|
|
366
|
-
if (commandLine[
|
|
327
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
367
328
|
return {
|
|
368
329
|
source: "cli",
|
|
369
|
-
value: commandLine[
|
|
330
|
+
value: commandLine[cliFlag]
|
|
370
331
|
};
|
|
371
332
|
}
|
|
372
333
|
return {
|
|
@@ -377,24 +338,24 @@ var apiKeyOption = {
|
|
|
377
338
|
setConfig: (value) => {
|
|
378
339
|
currentApiKey = value;
|
|
379
340
|
},
|
|
380
|
-
id:
|
|
341
|
+
id: cliFlag
|
|
381
342
|
};
|
|
382
343
|
|
|
383
344
|
// src/options/ask-ai.tsx
|
|
384
|
-
import { jsx as
|
|
345
|
+
import { jsx as jsx2, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
385
346
|
var askAIEnabled = true;
|
|
386
|
-
var
|
|
347
|
+
var cliFlag2 = "disable-ask-ai";
|
|
387
348
|
var askAIOption = {
|
|
388
349
|
name: "Disable or Enable the Ask AI option",
|
|
389
|
-
cliFlag:
|
|
390
|
-
description: () => /* @__PURE__ */
|
|
350
|
+
cliFlag: cliFlag2,
|
|
351
|
+
description: () => /* @__PURE__ */ jsx2(Fragment2, {
|
|
391
352
|
children: "If the Cmd + I shortcut of the Ask AI modal conflicts with your Studio, you can disable it using this."
|
|
392
353
|
}),
|
|
393
354
|
ssrName: null,
|
|
394
355
|
docLink: "https://www.remotion.dev/docs/config#setaskaienabled",
|
|
395
356
|
type: false,
|
|
396
357
|
getValue: ({ commandLine }) => {
|
|
397
|
-
if (commandLine[
|
|
358
|
+
if (commandLine[cliFlag2] !== undefined) {
|
|
398
359
|
askAIEnabled = false;
|
|
399
360
|
return {
|
|
400
361
|
value: askAIEnabled,
|
|
@@ -409,34 +370,34 @@ var askAIOption = {
|
|
|
409
370
|
setConfig(value) {
|
|
410
371
|
askAIEnabled = value;
|
|
411
372
|
},
|
|
412
|
-
id:
|
|
373
|
+
id: cliFlag2
|
|
413
374
|
};
|
|
414
375
|
|
|
415
376
|
// src/options/audio-bitrate.tsx
|
|
416
|
-
import { jsx as
|
|
417
|
-
var
|
|
377
|
+
import { jsx as jsx3, jsxs as jsxs2, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
378
|
+
var cliFlag3 = "audio-bitrate";
|
|
418
379
|
var audioBitrate = null;
|
|
419
380
|
var audioBitrateOption = {
|
|
420
381
|
name: "Audio Bitrate",
|
|
421
|
-
cliFlag:
|
|
422
|
-
description: () => /* @__PURE__ */
|
|
382
|
+
cliFlag: cliFlag3,
|
|
383
|
+
description: () => /* @__PURE__ */ jsxs2(Fragment3, {
|
|
423
384
|
children: [
|
|
424
385
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
425
386
|
"'",
|
|
426
387
|
"s ",
|
|
427
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ jsx3("code", {
|
|
428
389
|
children: "-b:a"
|
|
429
390
|
}),
|
|
430
391
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact audio bitrate specified. Example values: ",
|
|
431
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ jsx3("code", {
|
|
432
393
|
children: "512K"
|
|
433
394
|
}),
|
|
434
395
|
" for 512 kbps, ",
|
|
435
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ jsx3("code", {
|
|
436
397
|
children: "1M"
|
|
437
398
|
}),
|
|
438
399
|
" for 1 Mbps. Default: ",
|
|
439
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ jsx3("code", {
|
|
440
401
|
children: "320k"
|
|
441
402
|
})
|
|
442
403
|
]
|
|
@@ -445,9 +406,9 @@ var audioBitrateOption = {
|
|
|
445
406
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#audiobitrate-",
|
|
446
407
|
type: "0",
|
|
447
408
|
getValue: ({ commandLine }) => {
|
|
448
|
-
if (commandLine[
|
|
409
|
+
if (commandLine[cliFlag3]) {
|
|
449
410
|
return {
|
|
450
|
-
value: commandLine[
|
|
411
|
+
value: commandLine[cliFlag3],
|
|
451
412
|
source: "cli"
|
|
452
413
|
};
|
|
453
414
|
}
|
|
@@ -465,21 +426,21 @@ var audioBitrateOption = {
|
|
|
465
426
|
setConfig: (value) => {
|
|
466
427
|
audioBitrate = value;
|
|
467
428
|
},
|
|
468
|
-
id:
|
|
429
|
+
id: cliFlag3
|
|
469
430
|
};
|
|
470
431
|
|
|
471
432
|
// src/options/separate-audio.tsx
|
|
472
433
|
var DEFAULT = null;
|
|
473
|
-
var
|
|
434
|
+
var cliFlag4 = "separate-audio-to";
|
|
474
435
|
var separateAudioOption = {
|
|
475
|
-
cliFlag:
|
|
436
|
+
cliFlag: cliFlag4,
|
|
476
437
|
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.`,
|
|
477
438
|
docLink: "https://remotion.dev/docs/renderer/render-media",
|
|
478
439
|
getValue: ({ commandLine }) => {
|
|
479
|
-
if (commandLine[
|
|
440
|
+
if (commandLine[cliFlag4]) {
|
|
480
441
|
return {
|
|
481
442
|
source: "cli",
|
|
482
|
-
value: commandLine[
|
|
443
|
+
value: commandLine[cliFlag4]
|
|
483
444
|
};
|
|
484
445
|
}
|
|
485
446
|
return {
|
|
@@ -493,7 +454,7 @@ var separateAudioOption = {
|
|
|
493
454
|
},
|
|
494
455
|
ssrName: "separateAudioTo",
|
|
495
456
|
type: "string",
|
|
496
|
-
id:
|
|
457
|
+
id: cliFlag4
|
|
497
458
|
};
|
|
498
459
|
|
|
499
460
|
// src/options/audio-codec.tsx
|
|
@@ -515,7 +476,7 @@ var supportedAudioCodecs = {
|
|
|
515
476
|
};
|
|
516
477
|
var _satisfies = supportedAudioCodecs;
|
|
517
478
|
if (_satisfies) {}
|
|
518
|
-
var
|
|
479
|
+
var cliFlag5 = "audio-codec";
|
|
519
480
|
var ssrName = "audioCodec";
|
|
520
481
|
var defaultAudioCodecs = {
|
|
521
482
|
"h264-mkv": {
|
|
@@ -623,7 +584,7 @@ var getDefaultAudioCodec = ({
|
|
|
623
584
|
};
|
|
624
585
|
var _audioCodec = null;
|
|
625
586
|
var audioCodecOption = {
|
|
626
|
-
cliFlag:
|
|
587
|
+
cliFlag: cliFlag5,
|
|
627
588
|
setConfig: (audioCodec) => {
|
|
628
589
|
if (audioCodec === null) {
|
|
629
590
|
_audioCodec = null;
|
|
@@ -635,14 +596,14 @@ var audioCodecOption = {
|
|
|
635
596
|
_audioCodec = audioCodec;
|
|
636
597
|
},
|
|
637
598
|
getValue: ({ commandLine }) => {
|
|
638
|
-
if (commandLine[
|
|
639
|
-
const codec = commandLine[
|
|
640
|
-
if (!validAudioCodecs.includes(commandLine[
|
|
599
|
+
if (commandLine[cliFlag5]) {
|
|
600
|
+
const codec = commandLine[cliFlag5];
|
|
601
|
+
if (!validAudioCodecs.includes(commandLine[cliFlag5])) {
|
|
641
602
|
throw new Error(`Audio codec must be one of the following: ${validAudioCodecs.join(", ")}, but got ${codec}`);
|
|
642
603
|
}
|
|
643
604
|
return {
|
|
644
605
|
source: "cli",
|
|
645
|
-
value: commandLine[
|
|
606
|
+
value: commandLine[cliFlag5]
|
|
646
607
|
};
|
|
647
608
|
}
|
|
648
609
|
if (_audioCodec !== null) {
|
|
@@ -661,26 +622,26 @@ var audioCodecOption = {
|
|
|
661
622
|
name: "Audio Codec",
|
|
662
623
|
ssrName,
|
|
663
624
|
type: "aac",
|
|
664
|
-
id:
|
|
625
|
+
id: cliFlag5
|
|
665
626
|
};
|
|
666
627
|
|
|
667
628
|
// src/options/beep-on-finish.tsx
|
|
668
|
-
import { jsx as
|
|
629
|
+
import { jsx as jsx4, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
669
630
|
var beepOnFinish = false;
|
|
670
|
-
var
|
|
631
|
+
var cliFlag6 = "beep-on-finish";
|
|
671
632
|
var beepOnFinishOption = {
|
|
672
633
|
name: "Beep on finish",
|
|
673
|
-
cliFlag:
|
|
674
|
-
description: () => /* @__PURE__ */
|
|
634
|
+
cliFlag: cliFlag6,
|
|
635
|
+
description: () => /* @__PURE__ */ jsx4(Fragment4, {
|
|
675
636
|
children: "Whether the Remotion Studio tab should beep when the render is finished."
|
|
676
637
|
}),
|
|
677
638
|
ssrName: null,
|
|
678
639
|
docLink: "https://www.remotion.dev/docs/config#setbeeponfinish",
|
|
679
640
|
type: false,
|
|
680
641
|
getValue: ({ commandLine }) => {
|
|
681
|
-
if (commandLine[
|
|
642
|
+
if (commandLine[cliFlag6] !== undefined && commandLine[cliFlag6] !== null) {
|
|
682
643
|
return {
|
|
683
|
-
value: commandLine[
|
|
644
|
+
value: commandLine[cliFlag6],
|
|
684
645
|
source: "cli"
|
|
685
646
|
};
|
|
686
647
|
}
|
|
@@ -698,21 +659,21 @@ var beepOnFinishOption = {
|
|
|
698
659
|
setConfig(value) {
|
|
699
660
|
beepOnFinish = value;
|
|
700
661
|
},
|
|
701
|
-
id:
|
|
662
|
+
id: cliFlag6
|
|
702
663
|
};
|
|
703
664
|
|
|
704
665
|
// src/options/benchmark-concurrencies.tsx
|
|
705
|
-
import { jsx as
|
|
666
|
+
import { jsx as jsx5, jsxs as jsxs3, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
706
667
|
var currentConcurrencies = null;
|
|
707
|
-
var
|
|
668
|
+
var cliFlag7 = "concurrencies";
|
|
708
669
|
var benchmarkConcurrenciesOption = {
|
|
709
670
|
name: "Benchmark concurrencies",
|
|
710
|
-
cliFlag:
|
|
711
|
-
description: () => /* @__PURE__ */
|
|
671
|
+
cliFlag: cliFlag7,
|
|
672
|
+
description: () => /* @__PURE__ */ jsxs3(Fragment5, {
|
|
712
673
|
children: [
|
|
713
674
|
"Specify which concurrency values should be used while benchmarking. Multiple values can be passed separated by comma. Learn more about",
|
|
714
675
|
" ",
|
|
715
|
-
/* @__PURE__ */
|
|
676
|
+
/* @__PURE__ */ jsx5("a", {
|
|
716
677
|
href: "https://remotion.dev/docs/terminology/concurrency",
|
|
717
678
|
children: "concurrency"
|
|
718
679
|
}),
|
|
@@ -723,8 +684,8 @@ var benchmarkConcurrenciesOption = {
|
|
|
723
684
|
docLink: "https://www.remotion.dev/docs/cli/benchmark#--concurrencies",
|
|
724
685
|
type: null,
|
|
725
686
|
getValue: ({ commandLine }) => {
|
|
726
|
-
if (commandLine[
|
|
727
|
-
return { value: commandLine[
|
|
687
|
+
if (commandLine[cliFlag7] !== undefined) {
|
|
688
|
+
return { value: commandLine[cliFlag7], source: "cli" };
|
|
728
689
|
}
|
|
729
690
|
if (currentConcurrencies !== null) {
|
|
730
691
|
return { value: currentConcurrencies, source: "config" };
|
|
@@ -734,38 +695,38 @@ var benchmarkConcurrenciesOption = {
|
|
|
734
695
|
setConfig: (value) => {
|
|
735
696
|
currentConcurrencies = value;
|
|
736
697
|
},
|
|
737
|
-
id:
|
|
698
|
+
id: cliFlag7
|
|
738
699
|
};
|
|
739
700
|
|
|
740
701
|
// src/options/binaries-directory.tsx
|
|
741
|
-
import { jsx as
|
|
742
|
-
var
|
|
702
|
+
import { jsx as jsx6, jsxs as jsxs4, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
703
|
+
var cliFlag8 = "binaries-directory";
|
|
743
704
|
var currentDirectory = null;
|
|
744
705
|
var binariesDirectoryOption = {
|
|
745
706
|
name: "Binaries Directory",
|
|
746
|
-
cliFlag:
|
|
747
|
-
description: () => /* @__PURE__ */
|
|
707
|
+
cliFlag: cliFlag8,
|
|
708
|
+
description: () => /* @__PURE__ */ jsxs4(Fragment6, {
|
|
748
709
|
children: [
|
|
749
710
|
"The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ",
|
|
750
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ jsx6("code", {
|
|
751
712
|
children: "ffmpeg"
|
|
752
713
|
}),
|
|
753
714
|
" and",
|
|
754
715
|
" ",
|
|
755
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ jsx6("code", {
|
|
756
717
|
children: "ffprobe"
|
|
757
718
|
}),
|
|
758
719
|
" binary, a Rust binary for various tasks, and various shared libraries. If the value is set to ",
|
|
759
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ jsx6("code", {
|
|
760
721
|
children: "null"
|
|
761
722
|
}),
|
|
762
723
|
", which is the default, then the path of a platform-specific package located at",
|
|
763
724
|
" ",
|
|
764
|
-
/* @__PURE__ */
|
|
725
|
+
/* @__PURE__ */ jsx6("code", {
|
|
765
726
|
children: "node_modules/@remotion/compositor-*"
|
|
766
727
|
}),
|
|
767
728
|
" is selected.",
|
|
768
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ jsx6("br", {}),
|
|
769
730
|
"This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron."
|
|
770
731
|
]
|
|
771
732
|
}),
|
|
@@ -773,10 +734,10 @@ var binariesDirectoryOption = {
|
|
|
773
734
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
774
735
|
type: "",
|
|
775
736
|
getValue: ({ commandLine }) => {
|
|
776
|
-
if (commandLine[
|
|
737
|
+
if (commandLine[cliFlag8] !== undefined) {
|
|
777
738
|
return {
|
|
778
739
|
source: "cli",
|
|
779
|
-
value: commandLine[
|
|
740
|
+
value: commandLine[cliFlag8]
|
|
780
741
|
};
|
|
781
742
|
}
|
|
782
743
|
if (currentDirectory !== null) {
|
|
@@ -793,20 +754,20 @@ var binariesDirectoryOption = {
|
|
|
793
754
|
setConfig: (value) => {
|
|
794
755
|
currentDirectory = value;
|
|
795
756
|
},
|
|
796
|
-
id:
|
|
757
|
+
id: cliFlag8
|
|
797
758
|
};
|
|
798
759
|
|
|
799
760
|
// src/options/browser.tsx
|
|
800
|
-
import { jsx as
|
|
801
|
-
var
|
|
761
|
+
import { jsx as jsx7, jsxs as jsxs5, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
762
|
+
var cliFlag9 = "browser";
|
|
802
763
|
var browserOption = {
|
|
803
764
|
name: "Browser",
|
|
804
|
-
cliFlag:
|
|
805
|
-
description: () => /* @__PURE__ */
|
|
765
|
+
cliFlag: cliFlag9,
|
|
766
|
+
description: () => /* @__PURE__ */ jsxs5(Fragment7, {
|
|
806
767
|
children: [
|
|
807
768
|
"Specify the browser which should be used for opening a tab. The default browser will be used by default. Pass an absolute path or",
|
|
808
769
|
" ",
|
|
809
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ jsx7("code", {
|
|
810
771
|
children: '"chrome"'
|
|
811
772
|
}),
|
|
812
773
|
" to use Chrome. If Chrome is selected as the browser and you are on macOS, Remotion will try to reuse an existing tab."
|
|
@@ -815,10 +776,10 @@ var browserOption = {
|
|
|
815
776
|
ssrName: null,
|
|
816
777
|
docLink: "https://www.remotion.dev/docs/cli/studio#--browser",
|
|
817
778
|
getValue: ({ commandLine }) => {
|
|
818
|
-
if (commandLine[
|
|
779
|
+
if (commandLine[cliFlag9] !== undefined) {
|
|
819
780
|
return {
|
|
820
781
|
source: "cli",
|
|
821
|
-
value: commandLine[
|
|
782
|
+
value: commandLine[cliFlag9]
|
|
822
783
|
};
|
|
823
784
|
}
|
|
824
785
|
return {
|
|
@@ -830,27 +791,27 @@ var browserOption = {
|
|
|
830
791
|
throw new Error("setBrowser is not supported. Pass --browser via the CLI instead.");
|
|
831
792
|
},
|
|
832
793
|
type: "",
|
|
833
|
-
id:
|
|
794
|
+
id: cliFlag9
|
|
834
795
|
};
|
|
835
796
|
|
|
836
797
|
// src/options/browser-executable.tsx
|
|
837
|
-
import { jsx as
|
|
798
|
+
import { jsx as jsx8, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
838
799
|
var currentBrowserExecutablePath = null;
|
|
839
|
-
var
|
|
800
|
+
var cliFlag10 = "browser-executable";
|
|
840
801
|
var browserExecutableOption = {
|
|
841
802
|
name: "Browser executable",
|
|
842
|
-
cliFlag:
|
|
843
|
-
description: () => /* @__PURE__ */
|
|
803
|
+
cliFlag: cliFlag10,
|
|
804
|
+
description: () => /* @__PURE__ */ jsx8(Fragment8, {
|
|
844
805
|
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."
|
|
845
806
|
}),
|
|
846
807
|
ssrName: "browserExecutable",
|
|
847
808
|
docLink: "https://www.remotion.dev/docs/config#setbrowserexecutable",
|
|
848
809
|
type: null,
|
|
849
810
|
getValue: ({ commandLine }) => {
|
|
850
|
-
if (commandLine[
|
|
811
|
+
if (commandLine[cliFlag10] !== undefined) {
|
|
851
812
|
return {
|
|
852
813
|
source: "cli",
|
|
853
|
-
value: commandLine[
|
|
814
|
+
value: commandLine[cliFlag10]
|
|
854
815
|
};
|
|
855
816
|
}
|
|
856
817
|
if (currentBrowserExecutablePath !== null) {
|
|
@@ -867,21 +828,21 @@ var browserExecutableOption = {
|
|
|
867
828
|
setConfig: (value) => {
|
|
868
829
|
currentBrowserExecutablePath = value;
|
|
869
830
|
},
|
|
870
|
-
id:
|
|
831
|
+
id: cliFlag10
|
|
871
832
|
};
|
|
872
833
|
|
|
873
834
|
// src/options/bundle-cache.tsx
|
|
874
|
-
import { jsx as
|
|
875
|
-
var
|
|
835
|
+
import { jsx as jsx9, jsxs as jsxs6, Fragment as Fragment9 } from "react/jsx-runtime";
|
|
836
|
+
var cliFlag11 = "bundle-cache";
|
|
876
837
|
var cachingEnabled = true;
|
|
877
838
|
var bundleCacheOption = {
|
|
878
839
|
name: "Webpack Bundle Caching",
|
|
879
|
-
cliFlag:
|
|
880
|
-
description: () => /* @__PURE__ */
|
|
840
|
+
cliFlag: cliFlag11,
|
|
841
|
+
description: () => /* @__PURE__ */ jsxs6(Fragment9, {
|
|
881
842
|
children: [
|
|
882
843
|
"Enable or disable Webpack caching. This flag is enabled by default, use",
|
|
883
844
|
" ",
|
|
884
|
-
/* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ jsx9("code", {
|
|
885
846
|
children: "--bundle-cache=false"
|
|
886
847
|
}),
|
|
887
848
|
" to disable caching."
|
|
@@ -890,10 +851,10 @@ var bundleCacheOption = {
|
|
|
890
851
|
ssrName: null,
|
|
891
852
|
docLink: "https://www.remotion.dev/docs/config#setcachingenabled",
|
|
892
853
|
getValue: ({ commandLine }) => {
|
|
893
|
-
if (commandLine[
|
|
854
|
+
if (commandLine[cliFlag11] !== undefined && commandLine[cliFlag11] !== null) {
|
|
894
855
|
return {
|
|
895
856
|
source: "cli",
|
|
896
|
-
value: Boolean(commandLine[
|
|
857
|
+
value: Boolean(commandLine[cliFlag11])
|
|
897
858
|
};
|
|
898
859
|
}
|
|
899
860
|
return {
|
|
@@ -903,48 +864,48 @@ var bundleCacheOption = {
|
|
|
903
864
|
},
|
|
904
865
|
setConfig: (value) => {
|
|
905
866
|
if (typeof value !== "boolean") {
|
|
906
|
-
throw new TypeError(`Value for "${
|
|
867
|
+
throw new TypeError(`Value for "${cliFlag11}" must be a boolean, but got ${typeof value}.`);
|
|
907
868
|
}
|
|
908
869
|
cachingEnabled = value;
|
|
909
870
|
},
|
|
910
871
|
type: true,
|
|
911
|
-
id:
|
|
872
|
+
id: cliFlag11
|
|
912
873
|
};
|
|
913
874
|
|
|
914
875
|
// src/options/chrome-mode.tsx
|
|
915
|
-
import { jsx as
|
|
876
|
+
import { jsx as jsx10, jsxs as jsxs7, Fragment as Fragment10 } from "react/jsx-runtime";
|
|
916
877
|
var validChromeModeOptions = [
|
|
917
878
|
"headless-shell",
|
|
918
879
|
"chrome-for-testing"
|
|
919
880
|
];
|
|
920
|
-
var
|
|
881
|
+
var cliFlag12 = "chrome-mode";
|
|
921
882
|
var configSelection = null;
|
|
922
883
|
var chromeModeOption = {
|
|
923
|
-
cliFlag:
|
|
884
|
+
cliFlag: cliFlag12,
|
|
924
885
|
name: "Chrome Mode",
|
|
925
886
|
ssrName: "chromeMode",
|
|
926
887
|
description: () => {
|
|
927
|
-
return /* @__PURE__ */
|
|
888
|
+
return /* @__PURE__ */ jsxs7(Fragment10, {
|
|
928
889
|
children: [
|
|
929
890
|
"One of",
|
|
930
891
|
" ",
|
|
931
|
-
validChromeModeOptions.map((option, i) => /* @__PURE__ */
|
|
892
|
+
validChromeModeOptions.map((option, i) => /* @__PURE__ */ jsxs7("code", {
|
|
932
893
|
children: [
|
|
933
894
|
option,
|
|
934
895
|
i === validChromeModeOptions.length - 1 ? "" : ", "
|
|
935
896
|
]
|
|
936
897
|
}, option)),
|
|
937
898
|
". Default ",
|
|
938
|
-
/* @__PURE__ */
|
|
899
|
+
/* @__PURE__ */ jsx10("code", {
|
|
939
900
|
children: "headless-shell"
|
|
940
901
|
}),
|
|
941
902
|
".",
|
|
942
903
|
" ",
|
|
943
|
-
/* @__PURE__ */
|
|
904
|
+
/* @__PURE__ */ jsxs7("a", {
|
|
944
905
|
href: "https://remotion.dev/docs/miscellaneous/chrome-headless-shell",
|
|
945
906
|
children: [
|
|
946
907
|
"Use ",
|
|
947
|
-
/* @__PURE__ */
|
|
908
|
+
/* @__PURE__ */ jsx10("code", {
|
|
948
909
|
children: "chrome-for-testing"
|
|
949
910
|
}),
|
|
950
911
|
" to take advantage of GPU drivers on Linux."
|
|
@@ -955,12 +916,12 @@ var chromeModeOption = {
|
|
|
955
916
|
},
|
|
956
917
|
docLink: "https://www.remotion.dev/chrome-for-testing",
|
|
957
918
|
getValue: ({ commandLine }) => {
|
|
958
|
-
if (commandLine[
|
|
959
|
-
if (!validChromeModeOptions.includes(commandLine[
|
|
960
|
-
throw new Error(`Invalid \`--${
|
|
919
|
+
if (commandLine[cliFlag12]) {
|
|
920
|
+
if (!validChromeModeOptions.includes(commandLine[cliFlag12])) {
|
|
921
|
+
throw new Error(`Invalid \`--${cliFlag12}\` value passed. Accepted values: ${validChromeModeOptions.map((l) => `'${l}'`).join(", ")}.`);
|
|
961
922
|
}
|
|
962
923
|
return {
|
|
963
|
-
value: commandLine[
|
|
924
|
+
value: commandLine[cliFlag12],
|
|
964
925
|
source: "cli"
|
|
965
926
|
};
|
|
966
927
|
}
|
|
@@ -979,26 +940,26 @@ var chromeModeOption = {
|
|
|
979
940
|
configSelection = newChromeMode;
|
|
980
941
|
},
|
|
981
942
|
type: "headless-shell",
|
|
982
|
-
id:
|
|
943
|
+
id: cliFlag12
|
|
983
944
|
};
|
|
984
945
|
|
|
985
946
|
// src/options/color-space.tsx
|
|
986
947
|
import { NoReactInternals } from "remotion/no-react";
|
|
987
|
-
import { jsx as
|
|
948
|
+
import { jsx as jsx11, jsxs as jsxs8, Fragment as Fragment11 } from "react/jsx-runtime";
|
|
988
949
|
var validV4ColorSpaces = ["default", "bt601", "bt709", "bt2020-ncl"];
|
|
989
950
|
var validV5ColorSpaces = ["bt601", "bt709", "bt2020-ncl"];
|
|
990
951
|
var validColorSpaces = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? validV5ColorSpaces : validV4ColorSpaces;
|
|
991
952
|
var DEFAULT_COLOR_SPACE = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? "bt709" : "default";
|
|
992
953
|
var colorSpace = DEFAULT_COLOR_SPACE;
|
|
993
|
-
var
|
|
954
|
+
var cliFlag13 = "color-space";
|
|
994
955
|
var colorSpaceOption = {
|
|
995
956
|
name: "Color space",
|
|
996
957
|
cliFlag: "color-space",
|
|
997
|
-
description: () => /* @__PURE__ */
|
|
958
|
+
description: () => /* @__PURE__ */ jsxs8(Fragment11, {
|
|
998
959
|
children: [
|
|
999
960
|
"Color space to use for the video. Acceptable values:",
|
|
1000
961
|
" ",
|
|
1001
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ jsxs8("code", {
|
|
1002
963
|
children: [
|
|
1003
964
|
'"',
|
|
1004
965
|
DEFAULT_COLOR_SPACE,
|
|
@@ -1007,16 +968,16 @@ var colorSpaceOption = {
|
|
|
1007
968
|
}),
|
|
1008
969
|
"(default since 5.0),",
|
|
1009
970
|
" ",
|
|
1010
|
-
NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */
|
|
971
|
+
NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */ jsxs8("code", {
|
|
1011
972
|
children: [
|
|
1012
973
|
'"',
|
|
1013
974
|
"bt601",
|
|
1014
975
|
'"',
|
|
1015
976
|
", "
|
|
1016
977
|
]
|
|
1017
|
-
}) : /* @__PURE__ */
|
|
978
|
+
}) : /* @__PURE__ */ jsxs8(Fragment11, {
|
|
1018
979
|
children: [
|
|
1019
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ jsxs8("code", {
|
|
1020
981
|
children: [
|
|
1021
982
|
'"',
|
|
1022
983
|
"bt601",
|
|
@@ -1026,7 +987,7 @@ var colorSpaceOption = {
|
|
|
1026
987
|
" ",
|
|
1027
988
|
"(same as",
|
|
1028
989
|
" ",
|
|
1029
|
-
/* @__PURE__ */
|
|
990
|
+
/* @__PURE__ */ jsxs8("code", {
|
|
1030
991
|
children: [
|
|
1031
992
|
'"',
|
|
1032
993
|
"default",
|
|
@@ -1035,7 +996,7 @@ var colorSpaceOption = {
|
|
|
1035
996
|
}),
|
|
1036
997
|
", since v4.0.424),",
|
|
1037
998
|
" ",
|
|
1038
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ jsxs8("code", {
|
|
1039
1000
|
children: [
|
|
1040
1001
|
'"',
|
|
1041
1002
|
"bt709",
|
|
@@ -1047,7 +1008,7 @@ var colorSpaceOption = {
|
|
|
1047
1008
|
" "
|
|
1048
1009
|
]
|
|
1049
1010
|
}),
|
|
1050
|
-
/* @__PURE__ */
|
|
1011
|
+
/* @__PURE__ */ jsxs8("code", {
|
|
1051
1012
|
children: [
|
|
1052
1013
|
'"',
|
|
1053
1014
|
"bt2020-ncl",
|
|
@@ -1057,7 +1018,7 @@ var colorSpaceOption = {
|
|
|
1057
1018
|
" ",
|
|
1058
1019
|
"(since v4.0.88),",
|
|
1059
1020
|
" ",
|
|
1060
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ jsxs8("code", {
|
|
1061
1022
|
children: [
|
|
1062
1023
|
'"',
|
|
1063
1024
|
"bt2020-cl",
|
|
@@ -1066,10 +1027,10 @@ var colorSpaceOption = {
|
|
|
1066
1027
|
}),
|
|
1067
1028
|
" ",
|
|
1068
1029
|
"(since v4.0.88), .",
|
|
1069
|
-
/* @__PURE__ */
|
|
1030
|
+
/* @__PURE__ */ jsx11("br", {}),
|
|
1070
1031
|
"For best color accuracy, it is recommended to also use",
|
|
1071
1032
|
" ",
|
|
1072
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ jsxs8("code", {
|
|
1073
1034
|
children: [
|
|
1074
1035
|
'"',
|
|
1075
1036
|
"png",
|
|
@@ -1078,7 +1039,7 @@ var colorSpaceOption = {
|
|
|
1078
1039
|
}),
|
|
1079
1040
|
" ",
|
|
1080
1041
|
"as the image format to have accurate color transformations throughout.",
|
|
1081
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ jsx11("br", {}),
|
|
1082
1043
|
"Only since v4.0.83, colorspace conversion is actually performed, previously it would only tag the metadata of the video."
|
|
1083
1044
|
]
|
|
1084
1045
|
}),
|
|
@@ -1086,10 +1047,10 @@ var colorSpaceOption = {
|
|
|
1086
1047
|
ssrName: "colorSpace",
|
|
1087
1048
|
type: DEFAULT_COLOR_SPACE,
|
|
1088
1049
|
getValue: ({ commandLine }) => {
|
|
1089
|
-
if (commandLine[
|
|
1050
|
+
if (commandLine[cliFlag13] !== undefined) {
|
|
1090
1051
|
return {
|
|
1091
1052
|
source: "cli",
|
|
1092
|
-
value: commandLine[
|
|
1053
|
+
value: commandLine[cliFlag13]
|
|
1093
1054
|
};
|
|
1094
1055
|
}
|
|
1095
1056
|
if (colorSpace !== DEFAULT_COLOR_SPACE) {
|
|
@@ -1106,13 +1067,13 @@ var colorSpaceOption = {
|
|
|
1106
1067
|
setConfig: (value) => {
|
|
1107
1068
|
colorSpace = value ?? DEFAULT_COLOR_SPACE;
|
|
1108
1069
|
},
|
|
1109
|
-
id:
|
|
1070
|
+
id: cliFlag13
|
|
1110
1071
|
};
|
|
1111
1072
|
|
|
1112
1073
|
// src/options/concurrency.tsx
|
|
1113
|
-
import { jsx as
|
|
1074
|
+
import { jsx as jsx12, jsxs as jsxs9, Fragment as Fragment12 } from "react/jsx-runtime";
|
|
1114
1075
|
var currentConcurrency = null;
|
|
1115
|
-
var
|
|
1076
|
+
var cliFlag14 = "concurrency";
|
|
1116
1077
|
var validateConcurrencyValue = (value, setting) => {
|
|
1117
1078
|
if (typeof value === "undefined" || value === null) {
|
|
1118
1079
|
return;
|
|
@@ -1130,15 +1091,15 @@ var validateConcurrencyValue = (value, setting) => {
|
|
|
1130
1091
|
};
|
|
1131
1092
|
var concurrencyOption = {
|
|
1132
1093
|
name: "Concurrency",
|
|
1133
|
-
cliFlag:
|
|
1134
|
-
description: () => /* @__PURE__ */
|
|
1094
|
+
cliFlag: cliFlag14,
|
|
1095
|
+
description: () => /* @__PURE__ */ jsxs9(Fragment12, {
|
|
1135
1096
|
children: [
|
|
1136
1097
|
"How many CPU threads to use. Minimum 1. The maximum is the amount of threads you have (In Node.JS ",
|
|
1137
|
-
/* @__PURE__ */
|
|
1098
|
+
/* @__PURE__ */ jsx12("code", {
|
|
1138
1099
|
children: "os.cpus().length"
|
|
1139
1100
|
}),
|
|
1140
1101
|
"). You can also provide a percentage value (e.g. ",
|
|
1141
|
-
/* @__PURE__ */
|
|
1102
|
+
/* @__PURE__ */ jsx12("code", {
|
|
1142
1103
|
children: "50%"
|
|
1143
1104
|
}),
|
|
1144
1105
|
")."
|
|
@@ -1148,8 +1109,8 @@ var concurrencyOption = {
|
|
|
1148
1109
|
docLink: "https://www.remotion.dev/docs/config#setconcurrency",
|
|
1149
1110
|
type: null,
|
|
1150
1111
|
getValue: ({ commandLine }) => {
|
|
1151
|
-
if (commandLine[
|
|
1152
|
-
const value = commandLine[
|
|
1112
|
+
if (commandLine[cliFlag14] !== undefined) {
|
|
1113
|
+
const value = commandLine[cliFlag14];
|
|
1153
1114
|
validateConcurrencyValue(value, "concurrency");
|
|
1154
1115
|
return {
|
|
1155
1116
|
source: "cli",
|
|
@@ -1171,25 +1132,25 @@ var concurrencyOption = {
|
|
|
1171
1132
|
validateConcurrencyValue(value, "Config.setConcurrency");
|
|
1172
1133
|
currentConcurrency = value;
|
|
1173
1134
|
},
|
|
1174
|
-
id:
|
|
1135
|
+
id: cliFlag14
|
|
1175
1136
|
};
|
|
1176
1137
|
|
|
1177
1138
|
// src/options/config.tsx
|
|
1178
|
-
import { jsx as
|
|
1179
|
-
var
|
|
1139
|
+
import { jsx as jsx13, Fragment as Fragment13 } from "react/jsx-runtime";
|
|
1140
|
+
var cliFlag15 = "config";
|
|
1180
1141
|
var configOption = {
|
|
1181
1142
|
name: "Config file",
|
|
1182
|
-
cliFlag:
|
|
1183
|
-
description: () => /* @__PURE__ */
|
|
1143
|
+
cliFlag: cliFlag15,
|
|
1144
|
+
description: () => /* @__PURE__ */ jsx13(Fragment13, {
|
|
1184
1145
|
children: "Specify a location for the Remotion config file."
|
|
1185
1146
|
}),
|
|
1186
1147
|
ssrName: null,
|
|
1187
1148
|
docLink: "https://www.remotion.dev/docs/config",
|
|
1188
1149
|
getValue: ({ commandLine }) => {
|
|
1189
|
-
if (commandLine[
|
|
1150
|
+
if (commandLine[cliFlag15] !== undefined) {
|
|
1190
1151
|
return {
|
|
1191
1152
|
source: "cli",
|
|
1192
|
-
value: commandLine[
|
|
1153
|
+
value: commandLine[cliFlag15]
|
|
1193
1154
|
};
|
|
1194
1155
|
}
|
|
1195
1156
|
return {
|
|
@@ -1201,33 +1162,33 @@ var configOption = {
|
|
|
1201
1162
|
throw new Error("setConfig is not supported. Pass --config via the CLI instead.");
|
|
1202
1163
|
},
|
|
1203
1164
|
type: "",
|
|
1204
|
-
id:
|
|
1165
|
+
id: cliFlag15
|
|
1205
1166
|
};
|
|
1206
1167
|
|
|
1207
1168
|
// src/options/crf.tsx
|
|
1208
|
-
import { jsx as
|
|
1169
|
+
import { jsx as jsx14, Fragment as Fragment14 } from "react/jsx-runtime";
|
|
1209
1170
|
var currentCrf;
|
|
1210
1171
|
var validateCrf = (newCrf) => {
|
|
1211
1172
|
if (typeof newCrf !== "number" && newCrf !== undefined) {
|
|
1212
1173
|
throw new TypeError("The CRF must be a number or undefined.");
|
|
1213
1174
|
}
|
|
1214
1175
|
};
|
|
1215
|
-
var
|
|
1176
|
+
var cliFlag16 = "crf";
|
|
1216
1177
|
var crfOption = {
|
|
1217
1178
|
name: "CRF",
|
|
1218
|
-
cliFlag:
|
|
1219
|
-
description: () => /* @__PURE__ */
|
|
1179
|
+
cliFlag: cliFlag16,
|
|
1180
|
+
description: () => /* @__PURE__ */ jsx14(Fragment14, {
|
|
1220
1181
|
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."
|
|
1221
1182
|
}),
|
|
1222
1183
|
ssrName: "crf",
|
|
1223
1184
|
docLink: "https://www.remotion.dev/docs/encoding/#controlling-quality-using-the-crf-setting",
|
|
1224
1185
|
type: 0,
|
|
1225
1186
|
getValue: ({ commandLine }) => {
|
|
1226
|
-
if (commandLine[
|
|
1227
|
-
validateCrf(commandLine[
|
|
1187
|
+
if (commandLine[cliFlag16] !== undefined) {
|
|
1188
|
+
validateCrf(commandLine[cliFlag16]);
|
|
1228
1189
|
return {
|
|
1229
1190
|
source: "cli",
|
|
1230
|
-
value: commandLine[
|
|
1191
|
+
value: commandLine[cliFlag16]
|
|
1231
1192
|
};
|
|
1232
1193
|
}
|
|
1233
1194
|
if (currentCrf !== null) {
|
|
@@ -1245,21 +1206,21 @@ var crfOption = {
|
|
|
1245
1206
|
validateCrf(crf);
|
|
1246
1207
|
currentCrf = crf;
|
|
1247
1208
|
},
|
|
1248
|
-
id:
|
|
1209
|
+
id: cliFlag16
|
|
1249
1210
|
};
|
|
1250
1211
|
|
|
1251
1212
|
// src/options/cross-site-isolation.tsx
|
|
1252
|
-
import { jsx as
|
|
1213
|
+
import { jsx as jsx15, jsxs as jsxs10, Fragment as Fragment15 } from "react/jsx-runtime";
|
|
1253
1214
|
var enableCrossSiteIsolation = false;
|
|
1254
|
-
var
|
|
1215
|
+
var cliFlag17 = "cross-site-isolation";
|
|
1255
1216
|
var enableCrossSiteIsolationOption = {
|
|
1256
1217
|
name: "Enable Cross-Site Isolation",
|
|
1257
|
-
cliFlag:
|
|
1258
|
-
description: () => /* @__PURE__ */
|
|
1218
|
+
cliFlag: cliFlag17,
|
|
1219
|
+
description: () => /* @__PURE__ */ jsxs10(Fragment15, {
|
|
1259
1220
|
children: [
|
|
1260
1221
|
"Enable Cross-Site Isolation in the Studio (sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers, required for",
|
|
1261
1222
|
" ",
|
|
1262
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ jsx15("code", {
|
|
1263
1224
|
children: "@remotion/whisper-web"
|
|
1264
1225
|
}),
|
|
1265
1226
|
")."
|
|
@@ -1269,9 +1230,9 @@ var enableCrossSiteIsolationOption = {
|
|
|
1269
1230
|
docLink: "https://www.remotion.dev/docs/config#setenablecrosssiteisolation",
|
|
1270
1231
|
type: false,
|
|
1271
1232
|
getValue: ({ commandLine }) => {
|
|
1272
|
-
if (commandLine[
|
|
1233
|
+
if (commandLine[cliFlag17] !== undefined) {
|
|
1273
1234
|
return {
|
|
1274
|
-
value: commandLine[
|
|
1235
|
+
value: commandLine[cliFlag17],
|
|
1275
1236
|
source: "cli"
|
|
1276
1237
|
};
|
|
1277
1238
|
}
|
|
@@ -1283,22 +1244,22 @@ var enableCrossSiteIsolationOption = {
|
|
|
1283
1244
|
setConfig(value) {
|
|
1284
1245
|
enableCrossSiteIsolation = value;
|
|
1285
1246
|
},
|
|
1286
|
-
id:
|
|
1247
|
+
id: cliFlag17
|
|
1287
1248
|
};
|
|
1288
1249
|
|
|
1289
1250
|
// src/options/dark-mode.tsx
|
|
1290
|
-
import { jsx as
|
|
1251
|
+
import { jsx as jsx16, jsxs as jsxs11, Fragment as Fragment16 } from "react/jsx-runtime";
|
|
1291
1252
|
var DEFAULT_VALUE = false;
|
|
1292
1253
|
var darkMode = DEFAULT_VALUE;
|
|
1293
|
-
var
|
|
1254
|
+
var cliFlag18 = "dark-mode";
|
|
1294
1255
|
var darkModeOption = {
|
|
1295
1256
|
name: "Dark Mode",
|
|
1296
|
-
cliFlag:
|
|
1297
|
-
description: () => /* @__PURE__ */
|
|
1257
|
+
cliFlag: cliFlag18,
|
|
1258
|
+
description: () => /* @__PURE__ */ jsxs11(Fragment16, {
|
|
1298
1259
|
children: [
|
|
1299
1260
|
"Whether Chromium should pretend to be in dark mode by emulating the media feature 'prefers-color-scheme: dark'. Default is",
|
|
1300
1261
|
" ",
|
|
1301
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ jsx16("code", {
|
|
1302
1263
|
children: String(DEFAULT_VALUE)
|
|
1303
1264
|
}),
|
|
1304
1265
|
"."
|
|
@@ -1308,10 +1269,10 @@ var darkModeOption = {
|
|
|
1308
1269
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--dark-mode",
|
|
1309
1270
|
type: false,
|
|
1310
1271
|
getValue: ({ commandLine }) => {
|
|
1311
|
-
if (commandLine[
|
|
1272
|
+
if (commandLine[cliFlag18] !== undefined && commandLine[cliFlag18] !== null) {
|
|
1312
1273
|
return {
|
|
1313
1274
|
source: "cli",
|
|
1314
|
-
value: commandLine[
|
|
1275
|
+
value: commandLine[cliFlag18]
|
|
1315
1276
|
};
|
|
1316
1277
|
}
|
|
1317
1278
|
if (darkMode !== DEFAULT_VALUE) {
|
|
@@ -1328,41 +1289,41 @@ var darkModeOption = {
|
|
|
1328
1289
|
setConfig: (value) => {
|
|
1329
1290
|
darkMode = value;
|
|
1330
1291
|
},
|
|
1331
|
-
id:
|
|
1292
|
+
id: cliFlag18
|
|
1332
1293
|
};
|
|
1333
1294
|
|
|
1334
1295
|
// src/options/delete-after.tsx
|
|
1335
|
-
import { jsx as
|
|
1336
|
-
var
|
|
1296
|
+
import { jsx as jsx17, jsxs as jsxs12, Fragment as Fragment17 } from "react/jsx-runtime";
|
|
1297
|
+
var cliFlag19 = "delete-after";
|
|
1337
1298
|
var deleteAfter = null;
|
|
1338
1299
|
var deleteAfterOption = {
|
|
1339
1300
|
name: "Lambda render expiration",
|
|
1340
|
-
cliFlag:
|
|
1301
|
+
cliFlag: cliFlag19,
|
|
1341
1302
|
description: () => {
|
|
1342
|
-
return /* @__PURE__ */
|
|
1303
|
+
return /* @__PURE__ */ jsxs12(Fragment17, {
|
|
1343
1304
|
children: [
|
|
1344
1305
|
"Automatically delete the render after a certain period. Accepted values are ",
|
|
1345
|
-
/* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1346
1307
|
children: "1-day"
|
|
1347
1308
|
}),
|
|
1348
1309
|
", ",
|
|
1349
|
-
/* @__PURE__ */
|
|
1310
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1350
1311
|
children: "3-days"
|
|
1351
1312
|
}),
|
|
1352
1313
|
", ",
|
|
1353
|
-
/* @__PURE__ */
|
|
1314
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1354
1315
|
children: "7-days"
|
|
1355
1316
|
}),
|
|
1356
1317
|
" and",
|
|
1357
1318
|
" ",
|
|
1358
|
-
/* @__PURE__ */
|
|
1319
|
+
/* @__PURE__ */ jsx17("code", {
|
|
1359
1320
|
children: "30-days"
|
|
1360
1321
|
}),
|
|
1361
1322
|
".",
|
|
1362
|
-
/* @__PURE__ */
|
|
1323
|
+
/* @__PURE__ */ jsx17("br", {}),
|
|
1363
1324
|
" For this to work, your bucket needs to have",
|
|
1364
1325
|
" ",
|
|
1365
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ jsx17("a", {
|
|
1366
1327
|
href: "/docs/lambda/autodelete",
|
|
1367
1328
|
children: "lifecycles enabled"
|
|
1368
1329
|
}),
|
|
@@ -1374,10 +1335,10 @@ var deleteAfterOption = {
|
|
|
1374
1335
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
1375
1336
|
type: "1-day",
|
|
1376
1337
|
getValue: ({ commandLine }) => {
|
|
1377
|
-
if (commandLine[
|
|
1338
|
+
if (commandLine[cliFlag19] !== undefined) {
|
|
1378
1339
|
return {
|
|
1379
1340
|
source: "cli",
|
|
1380
|
-
value: commandLine[
|
|
1341
|
+
value: commandLine[cliFlag19]
|
|
1381
1342
|
};
|
|
1382
1343
|
}
|
|
1383
1344
|
if (deleteAfter !== null) {
|
|
@@ -1394,21 +1355,21 @@ var deleteAfterOption = {
|
|
|
1394
1355
|
setConfig: (value) => {
|
|
1395
1356
|
deleteAfter = value;
|
|
1396
1357
|
},
|
|
1397
|
-
id:
|
|
1358
|
+
id: cliFlag19
|
|
1398
1359
|
};
|
|
1399
1360
|
|
|
1400
1361
|
// src/options/disable-git-source.tsx
|
|
1401
1362
|
var DEFAULT2 = false;
|
|
1402
|
-
var
|
|
1363
|
+
var cliFlag20 = "disable-git-source";
|
|
1403
1364
|
var disableGitSourceOption = {
|
|
1404
|
-
cliFlag:
|
|
1365
|
+
cliFlag: cliFlag20,
|
|
1405
1366
|
description: () => `Disables the Git Source being connected to the Remotion Studio. Clicking on stack traces and certain menu items will be disabled.`,
|
|
1406
1367
|
docLink: "https://remotion.dev/docs/bundle",
|
|
1407
1368
|
getValue: ({ commandLine }) => {
|
|
1408
|
-
if (commandLine[
|
|
1369
|
+
if (commandLine[cliFlag20]) {
|
|
1409
1370
|
return {
|
|
1410
1371
|
source: "cli",
|
|
1411
|
-
value: commandLine[
|
|
1372
|
+
value: commandLine[cliFlag20]
|
|
1412
1373
|
};
|
|
1413
1374
|
}
|
|
1414
1375
|
return {
|
|
@@ -1422,27 +1383,27 @@ var disableGitSourceOption = {
|
|
|
1422
1383
|
},
|
|
1423
1384
|
ssrName: "disableGitSource",
|
|
1424
1385
|
type: false,
|
|
1425
|
-
id:
|
|
1386
|
+
id: cliFlag20
|
|
1426
1387
|
};
|
|
1427
1388
|
|
|
1428
1389
|
// src/options/disable-web-security.tsx
|
|
1429
|
-
import { jsx as
|
|
1390
|
+
import { jsx as jsx18, Fragment as Fragment18 } from "react/jsx-runtime";
|
|
1430
1391
|
var disableWebSecurity = false;
|
|
1431
|
-
var
|
|
1392
|
+
var cliFlag21 = "disable-web-security";
|
|
1432
1393
|
var disableWebSecurityOption = {
|
|
1433
1394
|
name: "Disable web security",
|
|
1434
|
-
cliFlag:
|
|
1435
|
-
description: () => /* @__PURE__ */
|
|
1395
|
+
cliFlag: cliFlag21,
|
|
1396
|
+
description: () => /* @__PURE__ */ jsx18(Fragment18, {
|
|
1436
1397
|
children: "This will most notably disable CORS in Chrome among other security features."
|
|
1437
1398
|
}),
|
|
1438
1399
|
ssrName: "disableWebSecurity",
|
|
1439
1400
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-web-security",
|
|
1440
1401
|
type: false,
|
|
1441
1402
|
getValue: ({ commandLine }) => {
|
|
1442
|
-
if (commandLine[
|
|
1403
|
+
if (commandLine[cliFlag21] !== undefined && commandLine[cliFlag21] !== null) {
|
|
1443
1404
|
return {
|
|
1444
1405
|
source: "cli",
|
|
1445
|
-
value: Boolean(commandLine[
|
|
1406
|
+
value: Boolean(commandLine[cliFlag21])
|
|
1446
1407
|
};
|
|
1447
1408
|
}
|
|
1448
1409
|
if (disableWebSecurity) {
|
|
@@ -1459,26 +1420,26 @@ var disableWebSecurityOption = {
|
|
|
1459
1420
|
setConfig: (value) => {
|
|
1460
1421
|
disableWebSecurity = value;
|
|
1461
1422
|
},
|
|
1462
|
-
id:
|
|
1423
|
+
id: cliFlag21
|
|
1463
1424
|
};
|
|
1464
1425
|
|
|
1465
1426
|
// src/options/disallow-parallel-encoding.tsx
|
|
1466
|
-
import { jsx as
|
|
1427
|
+
import { jsx as jsx19, Fragment as Fragment19 } from "react/jsx-runtime";
|
|
1467
1428
|
var disallowParallelEncoding = false;
|
|
1468
|
-
var
|
|
1429
|
+
var cliFlag22 = "disallow-parallel-encoding";
|
|
1469
1430
|
var disallowParallelEncodingOption = {
|
|
1470
1431
|
name: "Disallow parallel encoding",
|
|
1471
|
-
cliFlag:
|
|
1472
|
-
description: () => /* @__PURE__ */
|
|
1432
|
+
cliFlag: cliFlag22,
|
|
1433
|
+
description: () => /* @__PURE__ */ jsx19(Fragment19, {
|
|
1473
1434
|
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."
|
|
1474
1435
|
}),
|
|
1475
1436
|
ssrName: "disallowParallelEncoding",
|
|
1476
1437
|
docLink: "https://www.remotion.dev/docs/config#setdisallowparallelencoding",
|
|
1477
1438
|
type: false,
|
|
1478
1439
|
getValue: ({ commandLine }) => {
|
|
1479
|
-
if (commandLine[
|
|
1440
|
+
if (commandLine[cliFlag22] !== undefined && commandLine[cliFlag22] !== null) {
|
|
1480
1441
|
return {
|
|
1481
|
-
value: commandLine[
|
|
1442
|
+
value: commandLine[cliFlag22],
|
|
1482
1443
|
source: "cli"
|
|
1483
1444
|
};
|
|
1484
1445
|
}
|
|
@@ -1496,21 +1457,21 @@ var disallowParallelEncodingOption = {
|
|
|
1496
1457
|
setConfig(value) {
|
|
1497
1458
|
disallowParallelEncoding = value;
|
|
1498
1459
|
},
|
|
1499
|
-
id:
|
|
1460
|
+
id: cliFlag22
|
|
1500
1461
|
};
|
|
1501
1462
|
|
|
1502
1463
|
// src/options/enable-lambda-insights.tsx
|
|
1503
|
-
import { jsx as
|
|
1504
|
-
var
|
|
1464
|
+
import { jsx as jsx20, jsxs as jsxs13, Fragment as Fragment20 } from "react/jsx-runtime";
|
|
1465
|
+
var cliFlag23 = "enable-lambda-insights";
|
|
1505
1466
|
var option = false;
|
|
1506
1467
|
var enableLambdaInsights = {
|
|
1507
1468
|
name: "Enable Lambda Insights",
|
|
1508
|
-
cliFlag:
|
|
1509
|
-
description: () => /* @__PURE__ */
|
|
1469
|
+
cliFlag: cliFlag23,
|
|
1470
|
+
description: () => /* @__PURE__ */ jsxs13(Fragment20, {
|
|
1510
1471
|
children: [
|
|
1511
1472
|
"Enable",
|
|
1512
1473
|
" ",
|
|
1513
|
-
/* @__PURE__ */
|
|
1474
|
+
/* @__PURE__ */ jsx20("a", {
|
|
1514
1475
|
href: "https://remotion.dev/docs/lambda/insights",
|
|
1515
1476
|
children: "Lambda Insights in AWS CloudWatch"
|
|
1516
1477
|
}),
|
|
@@ -1524,9 +1485,9 @@ var enableLambdaInsights = {
|
|
|
1524
1485
|
option = value;
|
|
1525
1486
|
},
|
|
1526
1487
|
getValue: ({ commandLine }) => {
|
|
1527
|
-
if (commandLine[
|
|
1488
|
+
if (commandLine[cliFlag23] !== undefined) {
|
|
1528
1489
|
return {
|
|
1529
|
-
value: commandLine[
|
|
1490
|
+
value: commandLine[cliFlag23],
|
|
1530
1491
|
source: "cli"
|
|
1531
1492
|
};
|
|
1532
1493
|
}
|
|
@@ -1541,41 +1502,41 @@ var enableLambdaInsights = {
|
|
|
1541
1502
|
source: "default"
|
|
1542
1503
|
};
|
|
1543
1504
|
},
|
|
1544
|
-
id:
|
|
1505
|
+
id: cliFlag23
|
|
1545
1506
|
};
|
|
1546
1507
|
|
|
1547
1508
|
// src/options/enable-multiprocess-on-linux.tsx
|
|
1548
|
-
import { jsx as
|
|
1509
|
+
import { jsx as jsx21, jsxs as jsxs14, Fragment as Fragment21 } from "react/jsx-runtime";
|
|
1549
1510
|
var DEFAULT_VALUE2 = true;
|
|
1550
1511
|
var multiProcessOnLinux = DEFAULT_VALUE2;
|
|
1551
|
-
var
|
|
1512
|
+
var cliFlag24 = "enable-multiprocess-on-linux";
|
|
1552
1513
|
var enableMultiprocessOnLinuxOption = {
|
|
1553
1514
|
name: "Enable Multiprocess on Linux",
|
|
1554
|
-
cliFlag:
|
|
1555
|
-
description: () => /* @__PURE__ */
|
|
1515
|
+
cliFlag: cliFlag24,
|
|
1516
|
+
description: () => /* @__PURE__ */ jsxs14(Fragment21, {
|
|
1556
1517
|
children: [
|
|
1557
1518
|
"Removes the ",
|
|
1558
|
-
/* @__PURE__ */
|
|
1519
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1559
1520
|
children: "--single-process"
|
|
1560
1521
|
}),
|
|
1561
1522
|
" 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.",
|
|
1562
|
-
/* @__PURE__ */
|
|
1523
|
+
/* @__PURE__ */ jsx21("br", {}),
|
|
1563
1524
|
"Default: ",
|
|
1564
|
-
/* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1565
1526
|
children: "false"
|
|
1566
1527
|
}),
|
|
1567
1528
|
" until v4.0.136, then ",
|
|
1568
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1569
1530
|
children: "true"
|
|
1570
1531
|
}),
|
|
1571
1532
|
" from v4.0.137 on because newer Chrome versions ",
|
|
1572
1533
|
"don't",
|
|
1573
1534
|
" allow rendering with the ",
|
|
1574
|
-
/* @__PURE__ */
|
|
1535
|
+
/* @__PURE__ */ jsx21("code", {
|
|
1575
1536
|
children: "--single-process"
|
|
1576
1537
|
}),
|
|
1577
1538
|
" flag. ",
|
|
1578
|
-
/* @__PURE__ */
|
|
1539
|
+
/* @__PURE__ */ jsx21("br", {}),
|
|
1579
1540
|
"This flag will be removed in Remotion v5.0."
|
|
1580
1541
|
]
|
|
1581
1542
|
}),
|
|
@@ -1583,10 +1544,10 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1583
1544
|
docLink: "https://www.remotion.dev/docs/chromium-flags",
|
|
1584
1545
|
type: false,
|
|
1585
1546
|
getValue: ({ commandLine }) => {
|
|
1586
|
-
if (commandLine[
|
|
1547
|
+
if (commandLine[cliFlag24] !== undefined) {
|
|
1587
1548
|
return {
|
|
1588
1549
|
source: "cli",
|
|
1589
|
-
value: commandLine[
|
|
1550
|
+
value: commandLine[cliFlag24]
|
|
1590
1551
|
};
|
|
1591
1552
|
}
|
|
1592
1553
|
if (multiProcessOnLinux !== false) {
|
|
@@ -1603,23 +1564,23 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
1603
1564
|
setConfig: (value) => {
|
|
1604
1565
|
multiProcessOnLinux = value;
|
|
1605
1566
|
},
|
|
1606
|
-
id:
|
|
1567
|
+
id: cliFlag24
|
|
1607
1568
|
};
|
|
1608
1569
|
|
|
1609
1570
|
// src/options/encoding-buffer-size.tsx
|
|
1610
|
-
import { jsx as
|
|
1571
|
+
import { jsx as jsx22, jsxs as jsxs15, Fragment as Fragment22 } from "react/jsx-runtime";
|
|
1611
1572
|
var encodingBufferSize = null;
|
|
1612
1573
|
var setEncodingBufferSize = (bitrate) => {
|
|
1613
1574
|
encodingBufferSize = bitrate;
|
|
1614
1575
|
};
|
|
1615
|
-
var
|
|
1576
|
+
var cliFlag25 = "buffer-size";
|
|
1616
1577
|
var encodingBufferSizeOption = {
|
|
1617
1578
|
name: "FFmpeg -bufsize flag",
|
|
1618
|
-
cliFlag:
|
|
1619
|
-
description: () => /* @__PURE__ */
|
|
1579
|
+
cliFlag: cliFlag25,
|
|
1580
|
+
description: () => /* @__PURE__ */ jsxs15(Fragment22, {
|
|
1620
1581
|
children: [
|
|
1621
1582
|
"The value for the ",
|
|
1622
|
-
/* @__PURE__ */
|
|
1583
|
+
/* @__PURE__ */ jsx22("code", {
|
|
1623
1584
|
children: "-bufsize"
|
|
1624
1585
|
}),
|
|
1625
1586
|
" flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."
|
|
@@ -1629,9 +1590,9 @@ var encodingBufferSizeOption = {
|
|
|
1629
1590
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize",
|
|
1630
1591
|
type: "",
|
|
1631
1592
|
getValue: ({ commandLine }) => {
|
|
1632
|
-
if (commandLine[
|
|
1593
|
+
if (commandLine[cliFlag25] !== undefined) {
|
|
1633
1594
|
return {
|
|
1634
|
-
value: commandLine[
|
|
1595
|
+
value: commandLine[cliFlag25],
|
|
1635
1596
|
source: "cli"
|
|
1636
1597
|
};
|
|
1637
1598
|
}
|
|
@@ -1647,20 +1608,20 @@ var encodingBufferSizeOption = {
|
|
|
1647
1608
|
};
|
|
1648
1609
|
},
|
|
1649
1610
|
setConfig: setEncodingBufferSize,
|
|
1650
|
-
id:
|
|
1611
|
+
id: cliFlag25
|
|
1651
1612
|
};
|
|
1652
1613
|
|
|
1653
1614
|
// src/options/encoding-max-rate.tsx
|
|
1654
|
-
import { jsx as
|
|
1615
|
+
import { jsx as jsx23, jsxs as jsxs16, Fragment as Fragment23 } from "react/jsx-runtime";
|
|
1655
1616
|
var encodingMaxRate = null;
|
|
1656
|
-
var
|
|
1617
|
+
var cliFlag26 = "max-rate";
|
|
1657
1618
|
var encodingMaxRateOption = {
|
|
1658
1619
|
name: "FFmpeg -maxrate flag",
|
|
1659
|
-
cliFlag:
|
|
1660
|
-
description: () => /* @__PURE__ */
|
|
1620
|
+
cliFlag: cliFlag26,
|
|
1621
|
+
description: () => /* @__PURE__ */ jsxs16(Fragment23, {
|
|
1661
1622
|
children: [
|
|
1662
1623
|
"The value for the ",
|
|
1663
|
-
/* @__PURE__ */
|
|
1624
|
+
/* @__PURE__ */ jsx23("code", {
|
|
1664
1625
|
children: "-maxrate"
|
|
1665
1626
|
}),
|
|
1666
1627
|
" flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."
|
|
@@ -1670,9 +1631,9 @@ var encodingMaxRateOption = {
|
|
|
1670
1631
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate",
|
|
1671
1632
|
type: "",
|
|
1672
1633
|
getValue: ({ commandLine }) => {
|
|
1673
|
-
if (commandLine[
|
|
1634
|
+
if (commandLine[cliFlag26] !== undefined) {
|
|
1674
1635
|
return {
|
|
1675
|
-
value: commandLine[
|
|
1636
|
+
value: commandLine[cliFlag26],
|
|
1676
1637
|
source: "cli"
|
|
1677
1638
|
};
|
|
1678
1639
|
}
|
|
@@ -1690,25 +1651,25 @@ var encodingMaxRateOption = {
|
|
|
1690
1651
|
setConfig: (newMaxRate) => {
|
|
1691
1652
|
encodingMaxRate = newMaxRate;
|
|
1692
1653
|
},
|
|
1693
|
-
id:
|
|
1654
|
+
id: cliFlag26
|
|
1694
1655
|
};
|
|
1695
1656
|
|
|
1696
1657
|
// src/options/enforce-audio.tsx
|
|
1697
|
-
import { jsx as
|
|
1658
|
+
import { jsx as jsx24, Fragment as Fragment24 } from "react/jsx-runtime";
|
|
1698
1659
|
var DEFAULT_ENFORCE_AUDIO_TRACK = false;
|
|
1699
1660
|
var enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
|
|
1700
|
-
var
|
|
1661
|
+
var cliFlag27 = "enforce-audio-track";
|
|
1701
1662
|
var enforceAudioOption = {
|
|
1702
1663
|
name: "Enforce Audio Track",
|
|
1703
|
-
cliFlag:
|
|
1704
|
-
description: () => /* @__PURE__ */
|
|
1664
|
+
cliFlag: cliFlag27,
|
|
1665
|
+
description: () => /* @__PURE__ */ jsx24(Fragment24, {
|
|
1705
1666
|
children: "Render a silent audio track if there would be none otherwise."
|
|
1706
1667
|
}),
|
|
1707
1668
|
ssrName: "enforceAudioTrack",
|
|
1708
1669
|
docLink: "https://www.remotion.dev/docs/config#setenforceaudiotrack-",
|
|
1709
1670
|
type: false,
|
|
1710
1671
|
getValue: ({ commandLine }) => {
|
|
1711
|
-
if (commandLine[
|
|
1672
|
+
if (commandLine[cliFlag27]) {
|
|
1712
1673
|
return {
|
|
1713
1674
|
source: "cli",
|
|
1714
1675
|
value: true
|
|
@@ -1728,20 +1689,20 @@ var enforceAudioOption = {
|
|
|
1728
1689
|
setConfig: (value) => {
|
|
1729
1690
|
enforceAudioTrackState = value;
|
|
1730
1691
|
},
|
|
1731
|
-
id:
|
|
1692
|
+
id: cliFlag27
|
|
1732
1693
|
};
|
|
1733
1694
|
|
|
1734
1695
|
// src/options/env-file.tsx
|
|
1735
|
-
import { jsx as
|
|
1736
|
-
var
|
|
1696
|
+
import { jsx as jsx25, jsxs as jsxs17, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
1697
|
+
var cliFlag28 = "env-file";
|
|
1737
1698
|
var envFileLocation = null;
|
|
1738
1699
|
var envFileOption = {
|
|
1739
1700
|
name: "Env File",
|
|
1740
|
-
cliFlag:
|
|
1741
|
-
description: () => /* @__PURE__ */
|
|
1701
|
+
cliFlag: cliFlag28,
|
|
1702
|
+
description: () => /* @__PURE__ */ jsxs17(Fragment25, {
|
|
1742
1703
|
children: [
|
|
1743
1704
|
"Specify a location for a dotenv file. Default ",
|
|
1744
|
-
/* @__PURE__ */
|
|
1705
|
+
/* @__PURE__ */ jsx25("code", {
|
|
1745
1706
|
children: ".env"
|
|
1746
1707
|
}),
|
|
1747
1708
|
"."
|
|
@@ -1750,10 +1711,10 @@ var envFileOption = {
|
|
|
1750
1711
|
ssrName: null,
|
|
1751
1712
|
docLink: "https://www.remotion.dev/docs/cli/render#--env-file",
|
|
1752
1713
|
getValue: ({ commandLine }) => {
|
|
1753
|
-
if (commandLine[
|
|
1714
|
+
if (commandLine[cliFlag28] !== undefined) {
|
|
1754
1715
|
return {
|
|
1755
1716
|
source: "cli",
|
|
1756
|
-
value: commandLine[
|
|
1717
|
+
value: commandLine[cliFlag28]
|
|
1757
1718
|
};
|
|
1758
1719
|
}
|
|
1759
1720
|
if (envFileLocation !== null) {
|
|
@@ -1771,30 +1732,30 @@ var envFileOption = {
|
|
|
1771
1732
|
envFileLocation = value;
|
|
1772
1733
|
},
|
|
1773
1734
|
type: "",
|
|
1774
|
-
id:
|
|
1735
|
+
id: cliFlag28
|
|
1775
1736
|
};
|
|
1776
1737
|
|
|
1777
1738
|
// src/options/every-nth-frame.tsx
|
|
1778
|
-
import { jsx as
|
|
1739
|
+
import { jsx as jsx26, jsxs as jsxs18, Fragment as Fragment26 } from "react/jsx-runtime";
|
|
1779
1740
|
var DEFAULT_EVERY_NTH_FRAME = 1;
|
|
1780
1741
|
var everyNthFrame = DEFAULT_EVERY_NTH_FRAME;
|
|
1781
|
-
var
|
|
1742
|
+
var cliFlag29 = "every-nth-frame";
|
|
1782
1743
|
var everyNthFrameOption = {
|
|
1783
1744
|
name: "Every nth frame",
|
|
1784
|
-
cliFlag:
|
|
1785
|
-
description: () => /* @__PURE__ */
|
|
1745
|
+
cliFlag: cliFlag29,
|
|
1746
|
+
description: () => /* @__PURE__ */ jsxs18(Fragment26, {
|
|
1786
1747
|
children: [
|
|
1787
1748
|
"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 ",
|
|
1788
|
-
/* @__PURE__ */
|
|
1749
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1789
1750
|
children: "fps"
|
|
1790
1751
|
}),
|
|
1791
1752
|
" is 30, and",
|
|
1792
1753
|
" ",
|
|
1793
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1794
1755
|
children: "everyNthFrame"
|
|
1795
1756
|
}),
|
|
1796
1757
|
" is 2, the FPS of the GIF is ",
|
|
1797
|
-
/* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ jsx26("code", {
|
|
1798
1759
|
children: "15"
|
|
1799
1760
|
}),
|
|
1800
1761
|
"."
|
|
@@ -1804,10 +1765,10 @@ var everyNthFrameOption = {
|
|
|
1804
1765
|
docLink: "https://www.remotion.dev/docs/config#seteverynthframe",
|
|
1805
1766
|
type: DEFAULT_EVERY_NTH_FRAME,
|
|
1806
1767
|
getValue: ({ commandLine }) => {
|
|
1807
|
-
if (commandLine[
|
|
1768
|
+
if (commandLine[cliFlag29] !== undefined) {
|
|
1808
1769
|
return {
|
|
1809
1770
|
source: "cli",
|
|
1810
|
-
value: commandLine[
|
|
1771
|
+
value: commandLine[cliFlag29]
|
|
1811
1772
|
};
|
|
1812
1773
|
}
|
|
1813
1774
|
if (everyNthFrame !== DEFAULT_EVERY_NTH_FRAME) {
|
|
@@ -1824,57 +1785,26 @@ var everyNthFrameOption = {
|
|
|
1824
1785
|
setConfig: (value) => {
|
|
1825
1786
|
everyNthFrame = value;
|
|
1826
1787
|
},
|
|
1827
|
-
id:
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
|
-
// src/options/experimental-client-side-rendering.tsx
|
|
1831
|
-
import { jsx as jsx28, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
1832
|
-
var experimentalClientSideRenderingEnabled = false;
|
|
1833
|
-
var cliFlag31 = "enable-experimental-client-side-rendering";
|
|
1834
|
-
var experimentalClientSideRenderingOption = {
|
|
1835
|
-
name: "Enable Experimental Client-Side Rendering",
|
|
1836
|
-
cliFlag: cliFlag31,
|
|
1837
|
-
description: () => /* @__PURE__ */ jsx28(Fragment28, {
|
|
1838
|
-
children: "Enable WIP client-side rendering in the Remotion Studio. See https://www.remotion.dev/docs/client-side-rendering/ for notes."
|
|
1839
|
-
}),
|
|
1840
|
-
ssrName: null,
|
|
1841
|
-
docLink: "https://www.remotion.dev/docs/client-side-rendering",
|
|
1842
|
-
type: false,
|
|
1843
|
-
getValue: ({ commandLine }) => {
|
|
1844
|
-
if (commandLine[cliFlag31] !== null) {
|
|
1845
|
-
return {
|
|
1846
|
-
value: commandLine[cliFlag31],
|
|
1847
|
-
source: "cli"
|
|
1848
|
-
};
|
|
1849
|
-
}
|
|
1850
|
-
return {
|
|
1851
|
-
value: experimentalClientSideRenderingEnabled,
|
|
1852
|
-
source: "config"
|
|
1853
|
-
};
|
|
1854
|
-
},
|
|
1855
|
-
setConfig(value) {
|
|
1856
|
-
experimentalClientSideRenderingEnabled = value;
|
|
1857
|
-
},
|
|
1858
|
-
id: cliFlag31
|
|
1788
|
+
id: cliFlag29
|
|
1859
1789
|
};
|
|
1860
1790
|
|
|
1861
1791
|
// src/options/folder-expiry.tsx
|
|
1862
|
-
import { jsx as
|
|
1792
|
+
import { jsx as jsx27, jsxs as jsxs19, Fragment as Fragment27 } from "react/jsx-runtime";
|
|
1863
1793
|
var enableFolderExpiry = null;
|
|
1864
|
-
var
|
|
1794
|
+
var cliFlag30 = "enable-folder-expiry";
|
|
1865
1795
|
var folderExpiryOption = {
|
|
1866
1796
|
name: "Lambda render expiration",
|
|
1867
|
-
cliFlag:
|
|
1797
|
+
cliFlag: cliFlag30,
|
|
1868
1798
|
description: () => {
|
|
1869
|
-
return /* @__PURE__ */
|
|
1799
|
+
return /* @__PURE__ */ jsxs19(Fragment27, {
|
|
1870
1800
|
children: [
|
|
1871
1801
|
"When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
|
|
1872
1802
|
" ",
|
|
1873
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsx27("code", {
|
|
1874
1804
|
children: "null"
|
|
1875
1805
|
}),
|
|
1876
1806
|
", which does not change any lifecycle policies of the S3 bucket. See: ",
|
|
1877
|
-
/* @__PURE__ */
|
|
1807
|
+
/* @__PURE__ */ jsx27("a", {
|
|
1878
1808
|
href: "/docs/lambda/autodelete",
|
|
1879
1809
|
children: "Lambda autodelete"
|
|
1880
1810
|
}),
|
|
@@ -1886,10 +1816,10 @@ var folderExpiryOption = {
|
|
|
1886
1816
|
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
|
|
1887
1817
|
type: false,
|
|
1888
1818
|
getValue: ({ commandLine }) => {
|
|
1889
|
-
if (commandLine[
|
|
1819
|
+
if (commandLine[cliFlag30] !== undefined) {
|
|
1890
1820
|
return {
|
|
1891
1821
|
source: "cli",
|
|
1892
|
-
value: commandLine[
|
|
1822
|
+
value: commandLine[cliFlag30]
|
|
1893
1823
|
};
|
|
1894
1824
|
}
|
|
1895
1825
|
if (enableFolderExpiry !== null) {
|
|
@@ -1906,28 +1836,28 @@ var folderExpiryOption = {
|
|
|
1906
1836
|
setConfig: (value) => {
|
|
1907
1837
|
enableFolderExpiry = value;
|
|
1908
1838
|
},
|
|
1909
|
-
id:
|
|
1839
|
+
id: cliFlag30
|
|
1910
1840
|
};
|
|
1911
1841
|
|
|
1912
1842
|
// src/options/for-seamless-aac-concatenation.tsx
|
|
1913
|
-
import { jsx as
|
|
1843
|
+
import { jsx as jsx28, jsxs as jsxs20, Fragment as Fragment28 } from "react/jsx-runtime";
|
|
1914
1844
|
var DEFAULT3 = false;
|
|
1915
1845
|
var forSeamlessAacConcatenation = DEFAULT3;
|
|
1916
|
-
var
|
|
1846
|
+
var cliFlag31 = "for-seamless-aac-concatenation";
|
|
1917
1847
|
var forSeamlessAacConcatenationOption = {
|
|
1918
1848
|
name: "For seamless AAC concatenation",
|
|
1919
|
-
cliFlag:
|
|
1920
|
-
description: () => /* @__PURE__ */
|
|
1849
|
+
cliFlag: cliFlag31,
|
|
1850
|
+
description: () => /* @__PURE__ */ jsxs20(Fragment28, {
|
|
1921
1851
|
children: [
|
|
1922
1852
|
"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.",
|
|
1923
|
-
/* @__PURE__ */
|
|
1924
|
-
/* @__PURE__ */
|
|
1853
|
+
/* @__PURE__ */ jsx28("br", {}),
|
|
1854
|
+
/* @__PURE__ */ jsx28("br", {}),
|
|
1925
1855
|
" This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
|
|
1926
1856
|
]
|
|
1927
1857
|
}),
|
|
1928
1858
|
docLink: "https://remotion.dev/docs/renderer",
|
|
1929
1859
|
getValue: ({ commandLine }) => {
|
|
1930
|
-
if (commandLine[
|
|
1860
|
+
if (commandLine[cliFlag31]) {
|
|
1931
1861
|
return {
|
|
1932
1862
|
source: "cli",
|
|
1933
1863
|
value: true
|
|
@@ -1949,26 +1879,26 @@ var forSeamlessAacConcatenationOption = {
|
|
|
1949
1879
|
},
|
|
1950
1880
|
ssrName: "forSeamlessAacConcatenation",
|
|
1951
1881
|
type: false,
|
|
1952
|
-
id:
|
|
1882
|
+
id: cliFlag31
|
|
1953
1883
|
};
|
|
1954
1884
|
|
|
1955
1885
|
// src/options/force-new-studio.tsx
|
|
1956
|
-
import { jsx as
|
|
1886
|
+
import { jsx as jsx29, Fragment as Fragment29 } from "react/jsx-runtime";
|
|
1957
1887
|
var forceNewEnabled = false;
|
|
1958
|
-
var
|
|
1888
|
+
var cliFlag32 = "force-new";
|
|
1959
1889
|
var forceNewStudioOption = {
|
|
1960
1890
|
name: "Force New Studio",
|
|
1961
|
-
cliFlag:
|
|
1962
|
-
description: () => /* @__PURE__ */
|
|
1891
|
+
cliFlag: cliFlag32,
|
|
1892
|
+
description: () => /* @__PURE__ */ jsx29(Fragment29, {
|
|
1963
1893
|
children: "Forces starting a new Studio instance even if one is already running on the same port for the same project."
|
|
1964
1894
|
}),
|
|
1965
1895
|
ssrName: null,
|
|
1966
1896
|
docLink: "https://www.remotion.dev/docs/config#setforcenewstudioenabled",
|
|
1967
1897
|
type: false,
|
|
1968
1898
|
getValue: ({ commandLine }) => {
|
|
1969
|
-
if (commandLine[
|
|
1899
|
+
if (commandLine[cliFlag32] !== undefined && commandLine[cliFlag32] !== null) {
|
|
1970
1900
|
return {
|
|
1971
|
-
value: commandLine[
|
|
1901
|
+
value: commandLine[cliFlag32],
|
|
1972
1902
|
source: "cli"
|
|
1973
1903
|
};
|
|
1974
1904
|
}
|
|
@@ -1980,7 +1910,7 @@ var forceNewStudioOption = {
|
|
|
1980
1910
|
setConfig(value) {
|
|
1981
1911
|
forceNewEnabled = value;
|
|
1982
1912
|
},
|
|
1983
|
-
id:
|
|
1913
|
+
id: cliFlag32
|
|
1984
1914
|
};
|
|
1985
1915
|
|
|
1986
1916
|
// src/frame-range.ts
|
|
@@ -2041,8 +1971,8 @@ var validateFrameRange = (frameRange) => {
|
|
|
2041
1971
|
};
|
|
2042
1972
|
|
|
2043
1973
|
// src/options/frames.tsx
|
|
2044
|
-
import { jsx as
|
|
2045
|
-
var
|
|
1974
|
+
import { jsx as jsx30, jsxs as jsxs21, Fragment as Fragment30 } from "react/jsx-runtime";
|
|
1975
|
+
var cliFlag33 = "frames";
|
|
2046
1976
|
var frameRange = null;
|
|
2047
1977
|
var parseFrameRangeFromCli = (newFrameRange) => {
|
|
2048
1978
|
if (typeof newFrameRange === "number") {
|
|
@@ -2090,16 +2020,16 @@ var parseFrameRangeFromCli = (newFrameRange) => {
|
|
|
2090
2020
|
};
|
|
2091
2021
|
var framesOption = {
|
|
2092
2022
|
name: "Frame Range",
|
|
2093
|
-
cliFlag:
|
|
2094
|
-
description: () => /* @__PURE__ */
|
|
2023
|
+
cliFlag: cliFlag33,
|
|
2024
|
+
description: () => /* @__PURE__ */ jsxs21(Fragment30, {
|
|
2095
2025
|
children: [
|
|
2096
2026
|
"Render a subset of a video. Pass a single number to render a still, or a range (e.g. ",
|
|
2097
|
-
/* @__PURE__ */
|
|
2027
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2098
2028
|
children: "0-9"
|
|
2099
2029
|
}),
|
|
2100
2030
|
") to render a subset of frames. Pass",
|
|
2101
2031
|
" ",
|
|
2102
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ jsx30("code", {
|
|
2103
2033
|
children: "100-"
|
|
2104
2034
|
}),
|
|
2105
2035
|
" to render from frame 100 to the end."
|
|
@@ -2109,8 +2039,8 @@ var framesOption = {
|
|
|
2109
2039
|
docLink: "https://www.remotion.dev/docs/config#setframerange",
|
|
2110
2040
|
type: null,
|
|
2111
2041
|
getValue: ({ commandLine }) => {
|
|
2112
|
-
if (commandLine[
|
|
2113
|
-
const value = parseFrameRangeFromCli(commandLine[
|
|
2042
|
+
if (commandLine[cliFlag33] !== undefined) {
|
|
2043
|
+
const value = parseFrameRangeFromCli(commandLine[cliFlag33]);
|
|
2114
2044
|
validateFrameRange(value);
|
|
2115
2045
|
return {
|
|
2116
2046
|
source: "cli",
|
|
@@ -2128,11 +2058,11 @@ var framesOption = {
|
|
|
2128
2058
|
}
|
|
2129
2059
|
frameRange = value;
|
|
2130
2060
|
},
|
|
2131
|
-
id:
|
|
2061
|
+
id: cliFlag33
|
|
2132
2062
|
};
|
|
2133
2063
|
|
|
2134
2064
|
// src/options/gl.tsx
|
|
2135
|
-
import { jsx as
|
|
2065
|
+
import { jsx as jsx31, jsxs as jsxs22, Fragment as Fragment31 } from "react/jsx-runtime";
|
|
2136
2066
|
var validOpenGlRenderers = [
|
|
2137
2067
|
"swangle",
|
|
2138
2068
|
"angle",
|
|
@@ -2144,33 +2074,33 @@ var validOpenGlRenderers = [
|
|
|
2144
2074
|
var DEFAULT_OPENGL_RENDERER = null;
|
|
2145
2075
|
var openGlRenderer = DEFAULT_OPENGL_RENDERER;
|
|
2146
2076
|
var AngleChangelog = () => {
|
|
2147
|
-
return /* @__PURE__ */
|
|
2077
|
+
return /* @__PURE__ */ jsxs22("details", {
|
|
2148
2078
|
style: { fontSize: "0.9em", marginBottom: "1em" },
|
|
2149
2079
|
children: [
|
|
2150
|
-
/* @__PURE__ */
|
|
2080
|
+
/* @__PURE__ */ jsx31("summary", {
|
|
2151
2081
|
children: "Changelog"
|
|
2152
2082
|
}),
|
|
2153
|
-
/* @__PURE__ */
|
|
2083
|
+
/* @__PURE__ */ jsxs22("ul", {
|
|
2154
2084
|
children: [
|
|
2155
|
-
/* @__PURE__ */
|
|
2085
|
+
/* @__PURE__ */ jsxs22("li", {
|
|
2156
2086
|
children: [
|
|
2157
2087
|
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
|
|
2158
2088
|
" ",
|
|
2159
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2160
2090
|
children: "swiftshader"
|
|
2161
2091
|
}),
|
|
2162
2092
|
", but from v3.0.8 the default is",
|
|
2163
2093
|
" ",
|
|
2164
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2165
2095
|
children: "swangle"
|
|
2166
2096
|
}),
|
|
2167
2097
|
" (Swiftshader on Angle) since Chrome 101 added support for it."
|
|
2168
2098
|
]
|
|
2169
2099
|
}),
|
|
2170
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ jsxs22("li", {
|
|
2171
2101
|
children: [
|
|
2172
2102
|
"From Remotion v2.4.3 until v2.6.6, the default was ",
|
|
2173
|
-
/* @__PURE__ */
|
|
2103
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2174
2104
|
children: "angle"
|
|
2175
2105
|
}),
|
|
2176
2106
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
@@ -2181,65 +2111,65 @@ var AngleChangelog = () => {
|
|
|
2181
2111
|
]
|
|
2182
2112
|
});
|
|
2183
2113
|
};
|
|
2184
|
-
var
|
|
2114
|
+
var cliFlag34 = "gl";
|
|
2185
2115
|
var glOption = {
|
|
2186
|
-
cliFlag:
|
|
2116
|
+
cliFlag: cliFlag34,
|
|
2187
2117
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
|
|
2188
2118
|
name: "OpenGL renderer",
|
|
2189
2119
|
type: "angle",
|
|
2190
2120
|
ssrName: "gl",
|
|
2191
2121
|
description: () => {
|
|
2192
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ jsxs22(Fragment31, {
|
|
2193
2123
|
children: [
|
|
2194
|
-
/* @__PURE__ */
|
|
2195
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ jsx31(AngleChangelog, {}),
|
|
2125
|
+
/* @__PURE__ */ jsxs22("p", {
|
|
2196
2126
|
children: [
|
|
2197
2127
|
"Select the OpenGL renderer backend for Chromium. ",
|
|
2198
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ jsx31("br", {}),
|
|
2199
2129
|
"Accepted values:"
|
|
2200
2130
|
]
|
|
2201
2131
|
}),
|
|
2202
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ jsxs22("ul", {
|
|
2203
2133
|
children: [
|
|
2204
|
-
/* @__PURE__ */
|
|
2205
|
-
children: /* @__PURE__ */
|
|
2134
|
+
/* @__PURE__ */ jsx31("li", {
|
|
2135
|
+
children: /* @__PURE__ */ jsx31("code", {
|
|
2206
2136
|
children: '"angle"'
|
|
2207
2137
|
})
|
|
2208
2138
|
}),
|
|
2209
|
-
/* @__PURE__ */
|
|
2210
|
-
children: /* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ jsx31("li", {
|
|
2140
|
+
children: /* @__PURE__ */ jsx31("code", {
|
|
2211
2141
|
children: '"egl"'
|
|
2212
2142
|
})
|
|
2213
2143
|
}),
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
children: /* @__PURE__ */
|
|
2144
|
+
/* @__PURE__ */ jsx31("li", {
|
|
2145
|
+
children: /* @__PURE__ */ jsx31("code", {
|
|
2216
2146
|
children: '"swiftshader"'
|
|
2217
2147
|
})
|
|
2218
2148
|
}),
|
|
2219
|
-
/* @__PURE__ */
|
|
2220
|
-
children: /* @__PURE__ */
|
|
2149
|
+
/* @__PURE__ */ jsx31("li", {
|
|
2150
|
+
children: /* @__PURE__ */ jsx31("code", {
|
|
2221
2151
|
children: '"swangle"'
|
|
2222
2152
|
})
|
|
2223
2153
|
}),
|
|
2224
|
-
/* @__PURE__ */
|
|
2154
|
+
/* @__PURE__ */ jsxs22("li", {
|
|
2225
2155
|
children: [
|
|
2226
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2227
2157
|
children: '"vulkan"'
|
|
2228
2158
|
}),
|
|
2229
2159
|
" (",
|
|
2230
|
-
/* @__PURE__ */
|
|
2160
|
+
/* @__PURE__ */ jsx31("em", {
|
|
2231
2161
|
children: "from Remotion v4.0.41"
|
|
2232
2162
|
}),
|
|
2233
2163
|
")"
|
|
2234
2164
|
]
|
|
2235
2165
|
}),
|
|
2236
|
-
/* @__PURE__ */
|
|
2166
|
+
/* @__PURE__ */ jsxs22("li", {
|
|
2237
2167
|
children: [
|
|
2238
|
-
/* @__PURE__ */
|
|
2168
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2239
2169
|
children: '"angle-egl"'
|
|
2240
2170
|
}),
|
|
2241
2171
|
" (",
|
|
2242
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx31("em", {
|
|
2243
2173
|
children: "from Remotion v4.0.51"
|
|
2244
2174
|
}),
|
|
2245
2175
|
")"
|
|
@@ -2247,14 +2177,14 @@ var glOption = {
|
|
|
2247
2177
|
})
|
|
2248
2178
|
]
|
|
2249
2179
|
}),
|
|
2250
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ jsxs22("p", {
|
|
2251
2181
|
children: [
|
|
2252
2182
|
"The default is ",
|
|
2253
|
-
/* @__PURE__ */
|
|
2183
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2254
2184
|
children: "null"
|
|
2255
2185
|
}),
|
|
2256
2186
|
", letting Chrome decide, except on Lambda where the default is ",
|
|
2257
|
-
/* @__PURE__ */
|
|
2187
|
+
/* @__PURE__ */ jsx31("code", {
|
|
2258
2188
|
children: '"swangle"'
|
|
2259
2189
|
})
|
|
2260
2190
|
]
|
|
@@ -2263,10 +2193,10 @@ var glOption = {
|
|
|
2263
2193
|
});
|
|
2264
2194
|
},
|
|
2265
2195
|
getValue: ({ commandLine }) => {
|
|
2266
|
-
if (commandLine[
|
|
2267
|
-
validateOpenGlRenderer(commandLine[
|
|
2196
|
+
if (commandLine[cliFlag34]) {
|
|
2197
|
+
validateOpenGlRenderer(commandLine[cliFlag34]);
|
|
2268
2198
|
return {
|
|
2269
|
-
value: commandLine[
|
|
2199
|
+
value: commandLine[cliFlag34],
|
|
2270
2200
|
source: "cli"
|
|
2271
2201
|
};
|
|
2272
2202
|
}
|
|
@@ -2285,7 +2215,7 @@ var glOption = {
|
|
|
2285
2215
|
validateOpenGlRenderer(value);
|
|
2286
2216
|
openGlRenderer = value;
|
|
2287
2217
|
},
|
|
2288
|
-
id:
|
|
2218
|
+
id: cliFlag34
|
|
2289
2219
|
};
|
|
2290
2220
|
var validateOpenGlRenderer = (option2) => {
|
|
2291
2221
|
if (option2 === null) {
|
|
@@ -2298,7 +2228,7 @@ var validateOpenGlRenderer = (option2) => {
|
|
|
2298
2228
|
};
|
|
2299
2229
|
|
|
2300
2230
|
// src/options/gop-size.tsx
|
|
2301
|
-
import { jsx as
|
|
2231
|
+
import { jsx as jsx32, jsxs as jsxs23, Fragment as Fragment32 } from "react/jsx-runtime";
|
|
2302
2232
|
var gopSize = null;
|
|
2303
2233
|
var validateGopSize = (value) => {
|
|
2304
2234
|
if (value === null) {
|
|
@@ -2308,14 +2238,14 @@ var validateGopSize = (value) => {
|
|
|
2308
2238
|
throw new TypeError("The GOP size must be an integer greater than 0 or null.");
|
|
2309
2239
|
}
|
|
2310
2240
|
};
|
|
2311
|
-
var
|
|
2241
|
+
var cliFlag35 = "gop";
|
|
2312
2242
|
var gopSizeOption = {
|
|
2313
2243
|
name: "GOP size",
|
|
2314
|
-
cliFlag:
|
|
2315
|
-
description: () => /* @__PURE__ */
|
|
2244
|
+
cliFlag: cliFlag35,
|
|
2245
|
+
description: () => /* @__PURE__ */ jsxs23(Fragment32, {
|
|
2316
2246
|
children: [
|
|
2317
2247
|
"Set the maximum number of frames between two keyframes. This maps to FFmpeg's ",
|
|
2318
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ jsx32("code", {
|
|
2319
2249
|
children: "-g"
|
|
2320
2250
|
}),
|
|
2321
2251
|
" option. Default: Let the encoder decide."
|
|
@@ -2325,7 +2255,7 @@ var gopSizeOption = {
|
|
|
2325
2255
|
docLink: "https://www.remotion.dev/docs/config#setgopsize",
|
|
2326
2256
|
type: null,
|
|
2327
2257
|
getValue: ({ commandLine }) => {
|
|
2328
|
-
const value = commandLine[
|
|
2258
|
+
const value = commandLine[cliFlag35];
|
|
2329
2259
|
if (value !== undefined) {
|
|
2330
2260
|
validateGopSize(value);
|
|
2331
2261
|
return { value, source: "cli" };
|
|
@@ -2336,7 +2266,7 @@ var gopSizeOption = {
|
|
|
2336
2266
|
validateGopSize(value);
|
|
2337
2267
|
gopSize = value;
|
|
2338
2268
|
},
|
|
2339
|
-
id:
|
|
2269
|
+
id: cliFlag35
|
|
2340
2270
|
};
|
|
2341
2271
|
|
|
2342
2272
|
// src/options/hardware-acceleration.tsx
|
|
@@ -2345,11 +2275,11 @@ var hardwareAccelerationOptions = [
|
|
|
2345
2275
|
"if-possible",
|
|
2346
2276
|
"required"
|
|
2347
2277
|
];
|
|
2348
|
-
var
|
|
2278
|
+
var cliFlag36 = "hardware-acceleration";
|
|
2349
2279
|
var currentValue = null;
|
|
2350
2280
|
var hardwareAccelerationOption = {
|
|
2351
2281
|
name: "Hardware Acceleration",
|
|
2352
|
-
cliFlag:
|
|
2282
|
+
cliFlag: cliFlag36,
|
|
2353
2283
|
description: () => `
|
|
2354
2284
|
One of
|
|
2355
2285
|
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
|
|
@@ -2361,10 +2291,10 @@ var hardwareAccelerationOption = {
|
|
|
2361
2291
|
docLink: "https://www.remotion.dev/docs/encoding",
|
|
2362
2292
|
type: "disable",
|
|
2363
2293
|
getValue: ({ commandLine }) => {
|
|
2364
|
-
if (commandLine[
|
|
2365
|
-
const value = commandLine[
|
|
2294
|
+
if (commandLine[cliFlag36] !== undefined) {
|
|
2295
|
+
const value = commandLine[cliFlag36];
|
|
2366
2296
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2367
|
-
throw new Error(`Invalid value for --${
|
|
2297
|
+
throw new Error(`Invalid value for --${cliFlag36}: ${value}`);
|
|
2368
2298
|
}
|
|
2369
2299
|
return {
|
|
2370
2300
|
source: "cli",
|
|
@@ -2384,32 +2314,32 @@ var hardwareAccelerationOption = {
|
|
|
2384
2314
|
},
|
|
2385
2315
|
setConfig: (value) => {
|
|
2386
2316
|
if (!hardwareAccelerationOptions.includes(value)) {
|
|
2387
|
-
throw new Error(`Invalid value for --${
|
|
2317
|
+
throw new Error(`Invalid value for --${cliFlag36}: ${value}`);
|
|
2388
2318
|
}
|
|
2389
2319
|
currentValue = value;
|
|
2390
2320
|
},
|
|
2391
|
-
id:
|
|
2321
|
+
id: cliFlag36
|
|
2392
2322
|
};
|
|
2393
2323
|
|
|
2394
2324
|
// src/options/headless.tsx
|
|
2395
|
-
import { jsx as
|
|
2325
|
+
import { jsx as jsx33, jsxs as jsxs24, Fragment as Fragment33 } from "react/jsx-runtime";
|
|
2396
2326
|
var DEFAULT4 = true;
|
|
2397
2327
|
var headlessMode = DEFAULT4;
|
|
2398
|
-
var
|
|
2328
|
+
var cliFlag37 = "disable-headless";
|
|
2399
2329
|
var headlessOption = {
|
|
2400
2330
|
name: "Disable Headless Mode",
|
|
2401
|
-
cliFlag:
|
|
2402
|
-
description: () => /* @__PURE__ */
|
|
2331
|
+
cliFlag: cliFlag37,
|
|
2332
|
+
description: () => /* @__PURE__ */ jsxs24(Fragment33, {
|
|
2403
2333
|
children: [
|
|
2404
2334
|
"Deprecated - will be removed in 5.0.0. With the migration to",
|
|
2405
2335
|
" ",
|
|
2406
|
-
/* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ jsx33("a", {
|
|
2407
2337
|
href: "/docs/miscellaneous/chrome-headless-shell",
|
|
2408
2338
|
children: "Chrome Headless Shell"
|
|
2409
2339
|
}),
|
|
2410
2340
|
", this option is not functional anymore.",
|
|
2411
|
-
/* @__PURE__ */
|
|
2412
|
-
/* @__PURE__ */
|
|
2341
|
+
/* @__PURE__ */ jsx33("br", {}),
|
|
2342
|
+
/* @__PURE__ */ jsx33("br", {}),
|
|
2413
2343
|
" If disabled, the render will open an actual Chrome window where you can see the render happen. The default is headless mode."
|
|
2414
2344
|
]
|
|
2415
2345
|
}),
|
|
@@ -2417,10 +2347,10 @@ var headlessOption = {
|
|
|
2417
2347
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
|
|
2418
2348
|
type: false,
|
|
2419
2349
|
getValue: ({ commandLine }) => {
|
|
2420
|
-
if (commandLine[
|
|
2350
|
+
if (commandLine[cliFlag37] !== undefined && commandLine[cliFlag37] !== null) {
|
|
2421
2351
|
return {
|
|
2422
2352
|
source: "cli",
|
|
2423
|
-
value: !commandLine[
|
|
2353
|
+
value: !commandLine[cliFlag37]
|
|
2424
2354
|
};
|
|
2425
2355
|
}
|
|
2426
2356
|
if (headlessMode !== DEFAULT4) {
|
|
@@ -2437,27 +2367,27 @@ var headlessOption = {
|
|
|
2437
2367
|
setConfig: (value) => {
|
|
2438
2368
|
headlessMode = value;
|
|
2439
2369
|
},
|
|
2440
|
-
id:
|
|
2370
|
+
id: cliFlag37
|
|
2441
2371
|
};
|
|
2442
2372
|
|
|
2443
2373
|
// src/options/ignore-certificate-errors.tsx
|
|
2444
|
-
import { jsx as
|
|
2374
|
+
import { jsx as jsx34, Fragment as Fragment34 } from "react/jsx-runtime";
|
|
2445
2375
|
var ignoreCertificateErrors = false;
|
|
2446
|
-
var
|
|
2376
|
+
var cliFlag38 = "ignore-certificate-errors";
|
|
2447
2377
|
var ignoreCertificateErrorsOption = {
|
|
2448
2378
|
name: "Ignore certificate errors",
|
|
2449
|
-
cliFlag:
|
|
2450
|
-
description: () => /* @__PURE__ */
|
|
2379
|
+
cliFlag: cliFlag38,
|
|
2380
|
+
description: () => /* @__PURE__ */ jsx34(Fragment34, {
|
|
2451
2381
|
children: "Results in invalid SSL certificates in Chrome, such as self-signed ones, being ignored."
|
|
2452
2382
|
}),
|
|
2453
2383
|
ssrName: "ignoreCertificateErrors",
|
|
2454
2384
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors",
|
|
2455
2385
|
type: false,
|
|
2456
2386
|
getValue: ({ commandLine }) => {
|
|
2457
|
-
if (commandLine[
|
|
2387
|
+
if (commandLine[cliFlag38] !== undefined && commandLine[cliFlag38] !== null) {
|
|
2458
2388
|
return {
|
|
2459
2389
|
source: "cli",
|
|
2460
|
-
value: Boolean(commandLine[
|
|
2390
|
+
value: Boolean(commandLine[cliFlag38])
|
|
2461
2391
|
};
|
|
2462
2392
|
}
|
|
2463
2393
|
if (ignoreCertificateErrors) {
|
|
@@ -2474,23 +2404,23 @@ var ignoreCertificateErrorsOption = {
|
|
|
2474
2404
|
setConfig: (value) => {
|
|
2475
2405
|
ignoreCertificateErrors = value;
|
|
2476
2406
|
},
|
|
2477
|
-
id:
|
|
2407
|
+
id: cliFlag38
|
|
2478
2408
|
};
|
|
2479
2409
|
|
|
2480
2410
|
// src/options/image-sequence.tsx
|
|
2481
|
-
import { jsx as
|
|
2482
|
-
var
|
|
2411
|
+
import { jsx as jsx35, jsxs as jsxs25, Fragment as Fragment35 } from "react/jsx-runtime";
|
|
2412
|
+
var cliFlag39 = "sequence";
|
|
2483
2413
|
var imageSequence = false;
|
|
2484
2414
|
var imageSequenceOption = {
|
|
2485
2415
|
name: "Image Sequence",
|
|
2486
|
-
cliFlag:
|
|
2487
|
-
description: () => /* @__PURE__ */
|
|
2416
|
+
cliFlag: cliFlag39,
|
|
2417
|
+
description: () => /* @__PURE__ */ jsxs25(Fragment35, {
|
|
2488
2418
|
children: [
|
|
2489
2419
|
"Pass this flag to output an image sequence instead of a video. The default image format is JPEG. See",
|
|
2490
2420
|
" ",
|
|
2491
|
-
/* @__PURE__ */
|
|
2421
|
+
/* @__PURE__ */ jsx35("a", {
|
|
2492
2422
|
href: "/docs/config#setimagesequence",
|
|
2493
|
-
children: /* @__PURE__ */
|
|
2423
|
+
children: /* @__PURE__ */ jsx35("code", {
|
|
2494
2424
|
children: "setImageSequence()"
|
|
2495
2425
|
})
|
|
2496
2426
|
}),
|
|
@@ -2501,10 +2431,10 @@ var imageSequenceOption = {
|
|
|
2501
2431
|
ssrName: null,
|
|
2502
2432
|
docLink: "https://www.remotion.dev/docs/config#setimagesequence",
|
|
2503
2433
|
getValue: ({ commandLine }) => {
|
|
2504
|
-
if (commandLine[
|
|
2434
|
+
if (commandLine[cliFlag39] !== undefined && commandLine[cliFlag39] !== null) {
|
|
2505
2435
|
return {
|
|
2506
2436
|
source: "cli",
|
|
2507
|
-
value: Boolean(commandLine[
|
|
2437
|
+
value: Boolean(commandLine[cliFlag39])
|
|
2508
2438
|
};
|
|
2509
2439
|
}
|
|
2510
2440
|
return {
|
|
@@ -2516,25 +2446,25 @@ var imageSequenceOption = {
|
|
|
2516
2446
|
imageSequence = value;
|
|
2517
2447
|
},
|
|
2518
2448
|
type: false,
|
|
2519
|
-
id:
|
|
2449
|
+
id: cliFlag39
|
|
2520
2450
|
};
|
|
2521
2451
|
|
|
2522
2452
|
// src/options/image-sequence-pattern.tsx
|
|
2523
|
-
import { jsx as
|
|
2524
|
-
var
|
|
2453
|
+
import { jsx as jsx36, jsxs as jsxs26, Fragment as Fragment36 } from "react/jsx-runtime";
|
|
2454
|
+
var cliFlag40 = "image-sequence-pattern";
|
|
2525
2455
|
var currentImageSequencePattern = null;
|
|
2526
2456
|
var imageSequencePatternOption = {
|
|
2527
2457
|
name: "Image Sequence Pattern",
|
|
2528
|
-
cliFlag:
|
|
2458
|
+
cliFlag: cliFlag40,
|
|
2529
2459
|
ssrName: "imageSequencePattern",
|
|
2530
|
-
description: () => /* @__PURE__ */
|
|
2460
|
+
description: () => /* @__PURE__ */ jsxs26(Fragment36, {
|
|
2531
2461
|
children: [
|
|
2532
2462
|
"Pattern for naming image sequence files. Supports ",
|
|
2533
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2534
2464
|
children: "[frame]"
|
|
2535
2465
|
}),
|
|
2536
2466
|
" for the zero-padded frame number and ",
|
|
2537
|
-
/* @__PURE__ */
|
|
2467
|
+
/* @__PURE__ */ jsx36("code", {
|
|
2538
2468
|
children: "[ext]"
|
|
2539
2469
|
}),
|
|
2540
2470
|
" for the file extension."
|
|
@@ -2550,32 +2480,32 @@ var imageSequencePatternOption = {
|
|
|
2550
2480
|
};
|
|
2551
2481
|
}
|
|
2552
2482
|
return {
|
|
2553
|
-
value: commandLine[
|
|
2483
|
+
value: commandLine[cliFlag40],
|
|
2554
2484
|
source: "cli"
|
|
2555
2485
|
};
|
|
2556
2486
|
},
|
|
2557
2487
|
setConfig: (pattern) => {
|
|
2558
2488
|
currentImageSequencePattern = pattern;
|
|
2559
2489
|
},
|
|
2560
|
-
id:
|
|
2490
|
+
id: cliFlag40
|
|
2561
2491
|
};
|
|
2562
2492
|
|
|
2563
2493
|
// src/options/interactivity.tsx
|
|
2564
|
-
import { jsx as
|
|
2494
|
+
import { jsx as jsx37, Fragment as Fragment37 } from "react/jsx-runtime";
|
|
2565
2495
|
var interactivityEnabled = true;
|
|
2566
|
-
var
|
|
2496
|
+
var cliFlag41 = "disable-interactivity";
|
|
2567
2497
|
var interactivityOption = {
|
|
2568
2498
|
name: "Disable or enable Studio interactivity",
|
|
2569
|
-
cliFlag:
|
|
2570
|
-
description: () => /* @__PURE__ */
|
|
2499
|
+
cliFlag: cliFlag41,
|
|
2500
|
+
description: () => /* @__PURE__ */ jsx37(Fragment37, {
|
|
2571
2501
|
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."
|
|
2572
2502
|
}),
|
|
2573
2503
|
ssrName: null,
|
|
2574
2504
|
docLink: "https://www.remotion.dev/docs/config#setinteractivityenabled",
|
|
2575
2505
|
type: false,
|
|
2576
2506
|
getValue: ({ commandLine }) => {
|
|
2577
|
-
if (commandLine[
|
|
2578
|
-
interactivityEnabled = commandLine[
|
|
2507
|
+
if (commandLine[cliFlag41] !== undefined && commandLine[cliFlag41] !== null) {
|
|
2508
|
+
interactivityEnabled = commandLine[cliFlag41] === false;
|
|
2579
2509
|
return {
|
|
2580
2510
|
value: interactivityEnabled,
|
|
2581
2511
|
source: "cli"
|
|
@@ -2589,26 +2519,26 @@ var interactivityOption = {
|
|
|
2589
2519
|
setConfig(value) {
|
|
2590
2520
|
interactivityEnabled = value;
|
|
2591
2521
|
},
|
|
2592
|
-
id:
|
|
2522
|
+
id: cliFlag41
|
|
2593
2523
|
};
|
|
2594
2524
|
|
|
2595
2525
|
// src/options/ipv4.tsx
|
|
2596
|
-
import { jsx as
|
|
2526
|
+
import { jsx as jsx38, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
2597
2527
|
var forceIPv4 = false;
|
|
2598
|
-
var
|
|
2528
|
+
var cliFlag42 = "ipv4";
|
|
2599
2529
|
var ipv4Option = {
|
|
2600
2530
|
name: "IPv4",
|
|
2601
|
-
cliFlag:
|
|
2602
|
-
description: () => /* @__PURE__ */
|
|
2531
|
+
cliFlag: cliFlag42,
|
|
2532
|
+
description: () => /* @__PURE__ */ jsx38(Fragment38, {
|
|
2603
2533
|
children: "Forces Remotion to bind to an IPv4 interface for the Studio server."
|
|
2604
2534
|
}),
|
|
2605
2535
|
ssrName: null,
|
|
2606
2536
|
docLink: "https://www.remotion.dev/docs/cli/studio",
|
|
2607
2537
|
type: false,
|
|
2608
2538
|
getValue: ({ commandLine }) => {
|
|
2609
|
-
if (commandLine[
|
|
2539
|
+
if (commandLine[cliFlag42] !== undefined && commandLine[cliFlag42] !== null) {
|
|
2610
2540
|
return {
|
|
2611
|
-
value: commandLine[
|
|
2541
|
+
value: commandLine[cliFlag42],
|
|
2612
2542
|
source: "cli"
|
|
2613
2543
|
};
|
|
2614
2544
|
}
|
|
@@ -2620,25 +2550,25 @@ var ipv4Option = {
|
|
|
2620
2550
|
setConfig(value) {
|
|
2621
2551
|
forceIPv4 = value;
|
|
2622
2552
|
},
|
|
2623
|
-
id:
|
|
2553
|
+
id: cliFlag42
|
|
2624
2554
|
};
|
|
2625
2555
|
|
|
2626
2556
|
// src/options/is-production.tsx
|
|
2627
|
-
import { jsx as
|
|
2628
|
-
var
|
|
2557
|
+
import { jsx as jsx39, jsxs as jsxs27, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2558
|
+
var cliFlag43 = "is-production";
|
|
2629
2559
|
var currentIsProductionKey = null;
|
|
2630
2560
|
var isProductionOption = {
|
|
2631
2561
|
name: "Is Production",
|
|
2632
|
-
cliFlag:
|
|
2633
|
-
description: () => /* @__PURE__ */
|
|
2562
|
+
cliFlag: cliFlag43,
|
|
2563
|
+
description: () => /* @__PURE__ */ jsxs27(Fragment39, {
|
|
2634
2564
|
children: [
|
|
2635
2565
|
"Pass ",
|
|
2636
|
-
/* @__PURE__ */
|
|
2566
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2637
2567
|
children: "false"
|
|
2638
2568
|
}),
|
|
2639
2569
|
" if this a development render to not count it as a billable render on remotion.pro. Only can be used in conjuction with",
|
|
2640
2570
|
" ",
|
|
2641
|
-
/* @__PURE__ */
|
|
2571
|
+
/* @__PURE__ */ jsx39("code", {
|
|
2642
2572
|
children: "licenseKey"
|
|
2643
2573
|
}),
|
|
2644
2574
|
"."
|
|
@@ -2647,10 +2577,10 @@ var isProductionOption = {
|
|
|
2647
2577
|
ssrName: "isProduction",
|
|
2648
2578
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2649
2579
|
getValue: ({ commandLine }) => {
|
|
2650
|
-
if (commandLine[
|
|
2580
|
+
if (commandLine[cliFlag43] !== undefined && commandLine[cliFlag43] !== null) {
|
|
2651
2581
|
return {
|
|
2652
2582
|
source: "cli",
|
|
2653
|
-
value: commandLine[
|
|
2583
|
+
value: commandLine[cliFlag43]
|
|
2654
2584
|
};
|
|
2655
2585
|
}
|
|
2656
2586
|
if (currentIsProductionKey !== null) {
|
|
@@ -2668,11 +2598,11 @@ var isProductionOption = {
|
|
|
2668
2598
|
currentIsProductionKey = value;
|
|
2669
2599
|
},
|
|
2670
2600
|
type: false,
|
|
2671
|
-
id:
|
|
2601
|
+
id: cliFlag43
|
|
2672
2602
|
};
|
|
2673
2603
|
|
|
2674
2604
|
// src/options/jpeg-quality.tsx
|
|
2675
|
-
import { jsx as
|
|
2605
|
+
import { jsx as jsx40, Fragment as Fragment40 } from "react/jsx-runtime";
|
|
2676
2606
|
var defaultValue = DEFAULT_JPEG_QUALITY;
|
|
2677
2607
|
var quality = defaultValue;
|
|
2678
2608
|
var setJpegQuality = (q) => {
|
|
@@ -2683,11 +2613,11 @@ var setJpegQuality = (q) => {
|
|
|
2683
2613
|
}
|
|
2684
2614
|
quality = q;
|
|
2685
2615
|
};
|
|
2686
|
-
var
|
|
2616
|
+
var cliFlag44 = "jpeg-quality";
|
|
2687
2617
|
var jpegQualityOption = {
|
|
2688
2618
|
name: "JPEG Quality",
|
|
2689
|
-
cliFlag:
|
|
2690
|
-
description: () => /* @__PURE__ */
|
|
2619
|
+
cliFlag: cliFlag44,
|
|
2620
|
+
description: () => /* @__PURE__ */ jsx40(Fragment40, {
|
|
2691
2621
|
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
|
|
2692
2622
|
}),
|
|
2693
2623
|
ssrName: "jpegQuality",
|
|
@@ -2695,11 +2625,11 @@ var jpegQualityOption = {
|
|
|
2695
2625
|
type: 0,
|
|
2696
2626
|
setConfig: setJpegQuality,
|
|
2697
2627
|
getValue: ({ commandLine }) => {
|
|
2698
|
-
if (commandLine[
|
|
2699
|
-
validateJpegQuality(commandLine[
|
|
2628
|
+
if (commandLine[cliFlag44] !== undefined) {
|
|
2629
|
+
validateJpegQuality(commandLine[cliFlag44]);
|
|
2700
2630
|
return {
|
|
2701
2631
|
source: "cli",
|
|
2702
|
-
value: commandLine[
|
|
2632
|
+
value: commandLine[cliFlag44]
|
|
2703
2633
|
};
|
|
2704
2634
|
}
|
|
2705
2635
|
if (quality !== defaultValue) {
|
|
@@ -2713,25 +2643,25 @@ var jpegQualityOption = {
|
|
|
2713
2643
|
value: defaultValue
|
|
2714
2644
|
};
|
|
2715
2645
|
},
|
|
2716
|
-
id:
|
|
2646
|
+
id: cliFlag44
|
|
2717
2647
|
};
|
|
2718
2648
|
|
|
2719
2649
|
// src/options/keyboard-shortcuts.tsx
|
|
2720
|
-
import { jsx as
|
|
2650
|
+
import { jsx as jsx41, Fragment as Fragment41 } from "react/jsx-runtime";
|
|
2721
2651
|
var keyboardShortcutsEnabled = true;
|
|
2722
|
-
var
|
|
2652
|
+
var cliFlag45 = "disable-keyboard-shortcuts";
|
|
2723
2653
|
var keyboardShortcutsOption = {
|
|
2724
2654
|
name: "Disable or Enable keyboard shortcuts",
|
|
2725
|
-
cliFlag:
|
|
2726
|
-
description: () => /* @__PURE__ */
|
|
2655
|
+
cliFlag: cliFlag45,
|
|
2656
|
+
description: () => /* @__PURE__ */ jsx41(Fragment41, {
|
|
2727
2657
|
children: "Enable or disable keyboard shortcuts in the Remotion Studio."
|
|
2728
2658
|
}),
|
|
2729
2659
|
ssrName: null,
|
|
2730
2660
|
docLink: "https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled",
|
|
2731
2661
|
type: false,
|
|
2732
2662
|
getValue: ({ commandLine }) => {
|
|
2733
|
-
if (commandLine[
|
|
2734
|
-
keyboardShortcutsEnabled = commandLine[
|
|
2663
|
+
if (commandLine[cliFlag45] !== undefined && commandLine[cliFlag45] !== null) {
|
|
2664
|
+
keyboardShortcutsEnabled = commandLine[cliFlag45] === false;
|
|
2735
2665
|
return {
|
|
2736
2666
|
value: keyboardShortcutsEnabled,
|
|
2737
2667
|
source: "cli"
|
|
@@ -2745,42 +2675,42 @@ var keyboardShortcutsOption = {
|
|
|
2745
2675
|
setConfig(value) {
|
|
2746
2676
|
keyboardShortcutsEnabled = value;
|
|
2747
2677
|
},
|
|
2748
|
-
id:
|
|
2678
|
+
id: cliFlag45
|
|
2749
2679
|
};
|
|
2750
2680
|
|
|
2751
2681
|
// src/options/latency-hint.tsx
|
|
2752
|
-
import { jsx as
|
|
2753
|
-
var
|
|
2682
|
+
import { jsx as jsx42, jsxs as jsxs28, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
2683
|
+
var cliFlag46 = "audio-latency-hint";
|
|
2754
2684
|
var value = null;
|
|
2755
2685
|
var audioLatencyHintOption = {
|
|
2756
2686
|
name: "Audio Latency Hint",
|
|
2757
|
-
cliFlag:
|
|
2758
|
-
description: () => /* @__PURE__ */
|
|
2687
|
+
cliFlag: cliFlag46,
|
|
2688
|
+
description: () => /* @__PURE__ */ jsxs28(Fragment42, {
|
|
2759
2689
|
children: [
|
|
2760
2690
|
"Sets the",
|
|
2761
2691
|
" ",
|
|
2762
|
-
/* @__PURE__ */
|
|
2692
|
+
/* @__PURE__ */ jsx42("a", {
|
|
2763
2693
|
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
|
|
2764
2694
|
children: "audio latency"
|
|
2765
2695
|
}),
|
|
2766
2696
|
" ",
|
|
2767
2697
|
"hint for the global ",
|
|
2768
|
-
/* @__PURE__ */
|
|
2698
|
+
/* @__PURE__ */ jsx42("code", {
|
|
2769
2699
|
children: "AudioContext"
|
|
2770
2700
|
}),
|
|
2771
2701
|
" context that Remotion uses to play audio.",
|
|
2772
|
-
/* @__PURE__ */
|
|
2702
|
+
/* @__PURE__ */ jsx42("br", {}),
|
|
2773
2703
|
"Possible values: ",
|
|
2774
|
-
/* @__PURE__ */
|
|
2704
|
+
/* @__PURE__ */ jsx42("code", {
|
|
2775
2705
|
children: "interactive"
|
|
2776
2706
|
}),
|
|
2777
2707
|
", ",
|
|
2778
|
-
/* @__PURE__ */
|
|
2708
|
+
/* @__PURE__ */ jsx42("code", {
|
|
2779
2709
|
children: "balanced"
|
|
2780
2710
|
}),
|
|
2781
2711
|
",",
|
|
2782
2712
|
" ",
|
|
2783
|
-
/* @__PURE__ */
|
|
2713
|
+
/* @__PURE__ */ jsx42("code", {
|
|
2784
2714
|
children: "playback"
|
|
2785
2715
|
})
|
|
2786
2716
|
]
|
|
@@ -2789,7 +2719,7 @@ var audioLatencyHintOption = {
|
|
|
2789
2719
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
2790
2720
|
type: "playback",
|
|
2791
2721
|
getValue: ({ commandLine }) => {
|
|
2792
|
-
const val = commandLine[
|
|
2722
|
+
const val = commandLine[cliFlag46];
|
|
2793
2723
|
if (typeof val !== "undefined") {
|
|
2794
2724
|
return { value: val, source: "cli" };
|
|
2795
2725
|
}
|
|
@@ -2801,21 +2731,21 @@ var audioLatencyHintOption = {
|
|
|
2801
2731
|
setConfig: (profile) => {
|
|
2802
2732
|
value = profile;
|
|
2803
2733
|
},
|
|
2804
|
-
id:
|
|
2734
|
+
id: cliFlag46
|
|
2805
2735
|
};
|
|
2806
2736
|
|
|
2807
2737
|
// src/options/license-key.tsx
|
|
2808
|
-
import { jsx as
|
|
2738
|
+
import { jsx as jsx43, jsxs as jsxs29, Fragment as Fragment43 } from "react/jsx-runtime";
|
|
2809
2739
|
var currentLicenseKey = null;
|
|
2810
|
-
var
|
|
2740
|
+
var cliFlag47 = "license-key";
|
|
2811
2741
|
var licenseKeyOption = {
|
|
2812
2742
|
name: "License key",
|
|
2813
|
-
cliFlag:
|
|
2814
|
-
description: () => /* @__PURE__ */
|
|
2743
|
+
cliFlag: cliFlag47,
|
|
2744
|
+
description: () => /* @__PURE__ */ jsxs29(Fragment43, {
|
|
2815
2745
|
children: [
|
|
2816
2746
|
"License key for sending a usage event using",
|
|
2817
2747
|
" ",
|
|
2818
|
-
/* @__PURE__ */
|
|
2748
|
+
/* @__PURE__ */ jsx43("code", {
|
|
2819
2749
|
children: "@remotion/licensing"
|
|
2820
2750
|
}),
|
|
2821
2751
|
"."
|
|
@@ -2825,10 +2755,10 @@ var licenseKeyOption = {
|
|
|
2825
2755
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
2826
2756
|
type: null,
|
|
2827
2757
|
getValue: ({ commandLine }) => {
|
|
2828
|
-
if (commandLine[
|
|
2758
|
+
if (commandLine[cliFlag47] !== undefined) {
|
|
2829
2759
|
return {
|
|
2830
2760
|
source: "cli",
|
|
2831
|
-
value: commandLine[
|
|
2761
|
+
value: commandLine[cliFlag47]
|
|
2832
2762
|
};
|
|
2833
2763
|
}
|
|
2834
2764
|
return {
|
|
@@ -2839,47 +2769,47 @@ var licenseKeyOption = {
|
|
|
2839
2769
|
setConfig: (value2) => {
|
|
2840
2770
|
currentLicenseKey = value2;
|
|
2841
2771
|
},
|
|
2842
|
-
id:
|
|
2772
|
+
id: cliFlag47
|
|
2843
2773
|
};
|
|
2844
2774
|
|
|
2845
2775
|
// src/options/log-level.tsx
|
|
2846
|
-
import { jsx as
|
|
2776
|
+
import { jsx as jsx44, jsxs as jsxs30, Fragment as Fragment44 } from "react/jsx-runtime";
|
|
2847
2777
|
var logLevel = "info";
|
|
2848
|
-
var
|
|
2778
|
+
var cliFlag48 = "log";
|
|
2849
2779
|
var logLevelOption = {
|
|
2850
|
-
cliFlag:
|
|
2780
|
+
cliFlag: cliFlag48,
|
|
2851
2781
|
name: "Log Level",
|
|
2852
2782
|
ssrName: "logLevel",
|
|
2853
|
-
description: () => /* @__PURE__ */
|
|
2783
|
+
description: () => /* @__PURE__ */ jsxs30(Fragment44, {
|
|
2854
2784
|
children: [
|
|
2855
2785
|
"One of ",
|
|
2856
|
-
/* @__PURE__ */
|
|
2786
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2857
2787
|
children: "trace"
|
|
2858
2788
|
}),
|
|
2859
2789
|
", ",
|
|
2860
|
-
/* @__PURE__ */
|
|
2790
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2861
2791
|
children: "verbose"
|
|
2862
2792
|
}),
|
|
2863
2793
|
", ",
|
|
2864
|
-
/* @__PURE__ */
|
|
2794
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2865
2795
|
children: "info"
|
|
2866
2796
|
}),
|
|
2867
2797
|
",",
|
|
2868
2798
|
" ",
|
|
2869
|
-
/* @__PURE__ */
|
|
2799
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2870
2800
|
children: "warn"
|
|
2871
2801
|
}),
|
|
2872
2802
|
", ",
|
|
2873
|
-
/* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2874
2804
|
children: "error"
|
|
2875
2805
|
}),
|
|
2876
2806
|
".",
|
|
2877
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ jsx44("br", {}),
|
|
2878
2808
|
" Determines how much info is being logged to the console.",
|
|
2879
|
-
/* @__PURE__ */
|
|
2880
|
-
/* @__PURE__ */
|
|
2809
|
+
/* @__PURE__ */ jsx44("br", {}),
|
|
2810
|
+
/* @__PURE__ */ jsx44("br", {}),
|
|
2881
2811
|
" Default ",
|
|
2882
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ jsx44("code", {
|
|
2883
2813
|
children: "info"
|
|
2884
2814
|
}),
|
|
2885
2815
|
"."
|
|
@@ -2887,11 +2817,11 @@ var logLevelOption = {
|
|
|
2887
2817
|
}),
|
|
2888
2818
|
docLink: "https://www.remotion.dev/docs/troubleshooting/debug-failed-render",
|
|
2889
2819
|
getValue: ({ commandLine }) => {
|
|
2890
|
-
if (commandLine[
|
|
2891
|
-
if (!isValidLogLevel(commandLine[
|
|
2820
|
+
if (commandLine[cliFlag48]) {
|
|
2821
|
+
if (!isValidLogLevel(commandLine[cliFlag48])) {
|
|
2892
2822
|
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${logLevels.map((l) => `'${l}'`).join(", ")}.`);
|
|
2893
2823
|
}
|
|
2894
|
-
return { value: commandLine[
|
|
2824
|
+
return { value: commandLine[cliFlag48], source: "cli" };
|
|
2895
2825
|
}
|
|
2896
2826
|
if (logLevel !== "info") {
|
|
2897
2827
|
return { value: logLevel, source: "config" };
|
|
@@ -2902,23 +2832,23 @@ var logLevelOption = {
|
|
|
2902
2832
|
logLevel = newLogLevel;
|
|
2903
2833
|
},
|
|
2904
2834
|
type: "error",
|
|
2905
|
-
id:
|
|
2835
|
+
id: cliFlag48
|
|
2906
2836
|
};
|
|
2907
2837
|
|
|
2908
2838
|
// src/options/metadata.tsx
|
|
2909
|
-
import { jsx as
|
|
2839
|
+
import { jsx as jsx45, jsxs as jsxs31, Fragment as Fragment45 } from "react/jsx-runtime";
|
|
2910
2840
|
var metadata = {};
|
|
2911
|
-
var
|
|
2841
|
+
var cliFlag49 = "metadata";
|
|
2912
2842
|
var metadataOption = {
|
|
2913
2843
|
name: "Metadata",
|
|
2914
|
-
cliFlag:
|
|
2844
|
+
cliFlag: cliFlag49,
|
|
2915
2845
|
description: (mode) => {
|
|
2916
2846
|
if (mode === "ssr") {
|
|
2917
|
-
return /* @__PURE__ */
|
|
2847
|
+
return /* @__PURE__ */ jsxs31(Fragment45, {
|
|
2918
2848
|
children: [
|
|
2919
2849
|
"An object containing metadata to be embedded in the video. See",
|
|
2920
2850
|
" ",
|
|
2921
|
-
/* @__PURE__ */
|
|
2851
|
+
/* @__PURE__ */ jsx45("a", {
|
|
2922
2852
|
href: "/docs/metadata",
|
|
2923
2853
|
children: "here"
|
|
2924
2854
|
}),
|
|
@@ -2926,18 +2856,18 @@ var metadataOption = {
|
|
|
2926
2856
|
]
|
|
2927
2857
|
});
|
|
2928
2858
|
}
|
|
2929
|
-
return /* @__PURE__ */
|
|
2859
|
+
return /* @__PURE__ */ jsxs31(Fragment45, {
|
|
2930
2860
|
children: [
|
|
2931
2861
|
"Metadata to be embedded in the video. See",
|
|
2932
2862
|
" ",
|
|
2933
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ jsx45("a", {
|
|
2934
2864
|
href: "/docs/metadata",
|
|
2935
2865
|
children: "here"
|
|
2936
2866
|
}),
|
|
2937
2867
|
" for which metadata is accepted.",
|
|
2938
|
-
/* @__PURE__ */
|
|
2868
|
+
/* @__PURE__ */ jsx45("br", {}),
|
|
2939
2869
|
"The parameter must be in the format of ",
|
|
2940
|
-
/* @__PURE__ */
|
|
2870
|
+
/* @__PURE__ */ jsx45("code", {
|
|
2941
2871
|
children: "--metadata key=value"
|
|
2942
2872
|
}),
|
|
2943
2873
|
" ",
|
|
@@ -2948,8 +2878,8 @@ var metadataOption = {
|
|
|
2948
2878
|
docLink: "https://www.remotion.dev/docs/metadata",
|
|
2949
2879
|
type: {},
|
|
2950
2880
|
getValue: ({ commandLine }) => {
|
|
2951
|
-
if (commandLine[
|
|
2952
|
-
const val = commandLine[
|
|
2881
|
+
if (commandLine[cliFlag49] !== undefined) {
|
|
2882
|
+
const val = commandLine[cliFlag49];
|
|
2953
2883
|
const array = typeof val === "string" ? [val] : val;
|
|
2954
2884
|
const keyValues = array.map((a) => {
|
|
2955
2885
|
if (!a.includes("=")) {
|
|
@@ -2976,28 +2906,28 @@ var metadataOption = {
|
|
|
2976
2906
|
metadata = newMetadata;
|
|
2977
2907
|
},
|
|
2978
2908
|
ssrName: "metadata",
|
|
2979
|
-
id:
|
|
2909
|
+
id: cliFlag49
|
|
2980
2910
|
};
|
|
2981
2911
|
|
|
2982
2912
|
// src/options/mute.tsx
|
|
2983
|
-
import { jsx as
|
|
2913
|
+
import { jsx as jsx46, Fragment as Fragment46 } from "react/jsx-runtime";
|
|
2984
2914
|
var DEFAULT_MUTED_STATE = false;
|
|
2985
2915
|
var mutedState = DEFAULT_MUTED_STATE;
|
|
2986
|
-
var
|
|
2916
|
+
var cliFlag50 = "muted";
|
|
2987
2917
|
var mutedOption = {
|
|
2988
2918
|
name: "Muted",
|
|
2989
|
-
cliFlag:
|
|
2990
|
-
description: () => /* @__PURE__ */
|
|
2919
|
+
cliFlag: cliFlag50,
|
|
2920
|
+
description: () => /* @__PURE__ */ jsx46(Fragment46, {
|
|
2991
2921
|
children: "The Audio of the video will be omitted."
|
|
2992
2922
|
}),
|
|
2993
2923
|
ssrName: "muted",
|
|
2994
2924
|
docLink: "https://www.remotion.dev/docs/audio/muting",
|
|
2995
2925
|
type: false,
|
|
2996
2926
|
getValue: ({ commandLine }) => {
|
|
2997
|
-
if (commandLine[
|
|
2927
|
+
if (commandLine[cliFlag50] !== null) {
|
|
2998
2928
|
return {
|
|
2999
2929
|
source: "cli",
|
|
3000
|
-
value: commandLine[
|
|
2930
|
+
value: commandLine[cliFlag50]
|
|
3001
2931
|
};
|
|
3002
2932
|
}
|
|
3003
2933
|
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
@@ -3014,17 +2944,17 @@ var mutedOption = {
|
|
|
3014
2944
|
setConfig: () => {
|
|
3015
2945
|
mutedState = true;
|
|
3016
2946
|
},
|
|
3017
|
-
id:
|
|
2947
|
+
id: cliFlag50
|
|
3018
2948
|
};
|
|
3019
2949
|
|
|
3020
2950
|
// src/options/no-open.tsx
|
|
3021
|
-
import { jsx as
|
|
2951
|
+
import { jsx as jsx47, Fragment as Fragment47 } from "react/jsx-runtime";
|
|
3022
2952
|
var shouldOpenBrowser = true;
|
|
3023
|
-
var
|
|
2953
|
+
var cliFlag51 = "no-open";
|
|
3024
2954
|
var noOpenOption = {
|
|
3025
2955
|
name: "Disable browser auto-open",
|
|
3026
|
-
cliFlag:
|
|
3027
|
-
description: () => /* @__PURE__ */
|
|
2956
|
+
cliFlag: cliFlag51,
|
|
2957
|
+
description: () => /* @__PURE__ */ jsx47(Fragment47, {
|
|
3028
2958
|
children: "If specified, Remotion will not open a browser window when starting the Studio."
|
|
3029
2959
|
}),
|
|
3030
2960
|
ssrName: null,
|
|
@@ -3043,54 +2973,54 @@ var noOpenOption = {
|
|
|
3043
2973
|
setConfig: (shouldOpen) => {
|
|
3044
2974
|
shouldOpenBrowser = shouldOpen;
|
|
3045
2975
|
},
|
|
3046
|
-
id:
|
|
2976
|
+
id: cliFlag51
|
|
3047
2977
|
};
|
|
3048
2978
|
|
|
3049
2979
|
// src/options/number-of-gif-loops.tsx
|
|
3050
|
-
import { jsx as
|
|
2980
|
+
import { jsx as jsx48, jsxs as jsxs32, Fragment as Fragment48 } from "react/jsx-runtime";
|
|
3051
2981
|
var currentLoop = null;
|
|
3052
2982
|
var validate = (newLoop) => {
|
|
3053
2983
|
if (newLoop !== null && typeof newLoop !== "number") {
|
|
3054
2984
|
throw new Error("--number-of-gif-loops flag must be a number.");
|
|
3055
2985
|
}
|
|
3056
2986
|
};
|
|
3057
|
-
var
|
|
2987
|
+
var cliFlag52 = "number-of-gif-loops";
|
|
3058
2988
|
var numberOfGifLoopsOption = {
|
|
3059
2989
|
name: "Number of GIF loops",
|
|
3060
|
-
cliFlag:
|
|
2990
|
+
cliFlag: cliFlag52,
|
|
3061
2991
|
description: () => {
|
|
3062
|
-
return /* @__PURE__ */
|
|
2992
|
+
return /* @__PURE__ */ jsxs32(Fragment48, {
|
|
3063
2993
|
children: [
|
|
3064
2994
|
"Allows you to set the number of loops as follows:",
|
|
3065
|
-
/* @__PURE__ */
|
|
2995
|
+
/* @__PURE__ */ jsxs32("ul", {
|
|
3066
2996
|
children: [
|
|
3067
|
-
/* @__PURE__ */
|
|
2997
|
+
/* @__PURE__ */ jsxs32("li", {
|
|
3068
2998
|
children: [
|
|
3069
|
-
/* @__PURE__ */
|
|
2999
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3070
3000
|
children: "null"
|
|
3071
3001
|
}),
|
|
3072
3002
|
" (or omitting in the CLI) plays the GIF indefinitely."
|
|
3073
3003
|
]
|
|
3074
3004
|
}),
|
|
3075
|
-
/* @__PURE__ */
|
|
3005
|
+
/* @__PURE__ */ jsxs32("li", {
|
|
3076
3006
|
children: [
|
|
3077
|
-
/* @__PURE__ */
|
|
3007
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3078
3008
|
children: "0"
|
|
3079
3009
|
}),
|
|
3080
3010
|
" disables looping"
|
|
3081
3011
|
]
|
|
3082
3012
|
}),
|
|
3083
|
-
/* @__PURE__ */
|
|
3013
|
+
/* @__PURE__ */ jsxs32("li", {
|
|
3084
3014
|
children: [
|
|
3085
|
-
/* @__PURE__ */
|
|
3015
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3086
3016
|
children: "1"
|
|
3087
3017
|
}),
|
|
3088
3018
|
" loops the GIF once (plays twice in total)"
|
|
3089
3019
|
]
|
|
3090
3020
|
}),
|
|
3091
|
-
/* @__PURE__ */
|
|
3021
|
+
/* @__PURE__ */ jsxs32("li", {
|
|
3092
3022
|
children: [
|
|
3093
|
-
/* @__PURE__ */
|
|
3023
|
+
/* @__PURE__ */ jsx48("code", {
|
|
3094
3024
|
children: "2"
|
|
3095
3025
|
}),
|
|
3096
3026
|
" loops the GIF twice (plays three times in total) and so on."
|
|
@@ -3105,10 +3035,10 @@ var numberOfGifLoopsOption = {
|
|
|
3105
3035
|
docLink: "https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops",
|
|
3106
3036
|
type: 0,
|
|
3107
3037
|
getValue: ({ commandLine }) => {
|
|
3108
|
-
if (commandLine[
|
|
3109
|
-
validate(commandLine[
|
|
3038
|
+
if (commandLine[cliFlag52] !== undefined) {
|
|
3039
|
+
validate(commandLine[cliFlag52]);
|
|
3110
3040
|
return {
|
|
3111
|
-
value: commandLine[
|
|
3041
|
+
value: commandLine[cliFlag52],
|
|
3112
3042
|
source: "cli"
|
|
3113
3043
|
};
|
|
3114
3044
|
}
|
|
@@ -3127,21 +3057,21 @@ var numberOfGifLoopsOption = {
|
|
|
3127
3057
|
validate(newLoop);
|
|
3128
3058
|
currentLoop = newLoop;
|
|
3129
3059
|
},
|
|
3130
|
-
id:
|
|
3060
|
+
id: cliFlag52
|
|
3131
3061
|
};
|
|
3132
3062
|
|
|
3133
3063
|
// src/options/number-of-shared-audio-tags.tsx
|
|
3134
|
-
import { jsx as
|
|
3064
|
+
import { jsx as jsx49, jsxs as jsxs33, Fragment as Fragment49 } from "react/jsx-runtime";
|
|
3135
3065
|
var numberOfSharedAudioTags = 0;
|
|
3136
|
-
var
|
|
3066
|
+
var cliFlag53 = "number-of-shared-audio-tags";
|
|
3137
3067
|
var numberOfSharedAudioTagsOption = {
|
|
3138
3068
|
name: "Number of shared audio tags",
|
|
3139
|
-
cliFlag:
|
|
3140
|
-
description: () => /* @__PURE__ */
|
|
3069
|
+
cliFlag: cliFlag53,
|
|
3070
|
+
description: () => /* @__PURE__ */ jsxs33(Fragment49, {
|
|
3141
3071
|
children: [
|
|
3142
3072
|
"Set number of shared audio tags. See",
|
|
3143
3073
|
" ",
|
|
3144
|
-
/* @__PURE__ */
|
|
3074
|
+
/* @__PURE__ */ jsx49("a", {
|
|
3145
3075
|
href: "https://www.remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop",
|
|
3146
3076
|
children: "Using the numberOfSharedAudioTags prop"
|
|
3147
3077
|
}),
|
|
@@ -3153,9 +3083,9 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3153
3083
|
docLink: "https://www.remotion.dev/docs/config#setnumberofsharedaudiotags",
|
|
3154
3084
|
type: 0,
|
|
3155
3085
|
getValue: ({ commandLine }) => {
|
|
3156
|
-
if (commandLine[
|
|
3086
|
+
if (commandLine[cliFlag53] !== undefined) {
|
|
3157
3087
|
return {
|
|
3158
|
-
value: commandLine[
|
|
3088
|
+
value: commandLine[cliFlag53],
|
|
3159
3089
|
source: "cli"
|
|
3160
3090
|
};
|
|
3161
3091
|
}
|
|
@@ -3167,39 +3097,39 @@ var numberOfSharedAudioTagsOption = {
|
|
|
3167
3097
|
setConfig(value2) {
|
|
3168
3098
|
numberOfSharedAudioTags = value2;
|
|
3169
3099
|
},
|
|
3170
|
-
id:
|
|
3100
|
+
id: cliFlag53
|
|
3171
3101
|
};
|
|
3172
3102
|
|
|
3173
3103
|
// src/options/offthreadvideo-cache-size.tsx
|
|
3174
|
-
import { jsx as
|
|
3104
|
+
import { jsx as jsx50, jsxs as jsxs34, Fragment as Fragment50 } from "react/jsx-runtime";
|
|
3175
3105
|
var offthreadVideoCacheSizeInBytes = null;
|
|
3176
|
-
var
|
|
3106
|
+
var cliFlag54 = "offthreadvideo-cache-size-in-bytes";
|
|
3177
3107
|
var offthreadVideoCacheSizeInBytesOption = {
|
|
3178
3108
|
name: "OffthreadVideo cache size",
|
|
3179
|
-
cliFlag:
|
|
3180
|
-
description: () => /* @__PURE__ */
|
|
3109
|
+
cliFlag: cliFlag54,
|
|
3110
|
+
description: () => /* @__PURE__ */ jsxs34(Fragment50, {
|
|
3181
3111
|
children: [
|
|
3182
3112
|
"From v4.0, Remotion has a cache for",
|
|
3183
3113
|
" ",
|
|
3184
|
-
/* @__PURE__ */
|
|
3114
|
+
/* @__PURE__ */ jsx50("a", {
|
|
3185
3115
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3186
|
-
children: /* @__PURE__ */
|
|
3116
|
+
children: /* @__PURE__ */ jsx50("code", {
|
|
3187
3117
|
children: "<OffthreadVideo>"
|
|
3188
3118
|
})
|
|
3189
3119
|
}),
|
|
3190
3120
|
" ",
|
|
3191
3121
|
"frames. The default is ",
|
|
3192
|
-
/* @__PURE__ */
|
|
3122
|
+
/* @__PURE__ */ jsx50("code", {
|
|
3193
3123
|
children: "null"
|
|
3194
3124
|
}),
|
|
3195
3125
|
", corresponding to half of the system memory available when the render starts.",
|
|
3196
|
-
/* @__PURE__ */
|
|
3126
|
+
/* @__PURE__ */ jsx50("br", {}),
|
|
3197
3127
|
" 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.",
|
|
3198
|
-
/* @__PURE__ */
|
|
3128
|
+
/* @__PURE__ */ jsx50("br", {}),
|
|
3199
3129
|
"The used value will be printed when running in verbose mode.",
|
|
3200
|
-
/* @__PURE__ */
|
|
3130
|
+
/* @__PURE__ */ jsx50("br", {}),
|
|
3201
3131
|
"Default: ",
|
|
3202
|
-
/* @__PURE__ */
|
|
3132
|
+
/* @__PURE__ */ jsx50("code", {
|
|
3203
3133
|
children: "null"
|
|
3204
3134
|
})
|
|
3205
3135
|
]
|
|
@@ -3208,10 +3138,10 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3208
3138
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3209
3139
|
type: 0,
|
|
3210
3140
|
getValue: ({ commandLine }) => {
|
|
3211
|
-
if (commandLine[
|
|
3141
|
+
if (commandLine[cliFlag54] !== undefined) {
|
|
3212
3142
|
return {
|
|
3213
3143
|
source: "cli",
|
|
3214
|
-
value: commandLine[
|
|
3144
|
+
value: commandLine[cliFlag54]
|
|
3215
3145
|
};
|
|
3216
3146
|
}
|
|
3217
3147
|
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
@@ -3228,22 +3158,22 @@ var offthreadVideoCacheSizeInBytesOption = {
|
|
|
3228
3158
|
setConfig: (size) => {
|
|
3229
3159
|
offthreadVideoCacheSizeInBytes = size ?? null;
|
|
3230
3160
|
},
|
|
3231
|
-
id:
|
|
3161
|
+
id: cliFlag54
|
|
3232
3162
|
};
|
|
3233
3163
|
|
|
3234
3164
|
// src/options/offthreadvideo-threads.tsx
|
|
3235
|
-
import { jsx as
|
|
3165
|
+
import { jsx as jsx51, jsxs as jsxs35, Fragment as Fragment51 } from "react/jsx-runtime";
|
|
3236
3166
|
var value2 = null;
|
|
3237
|
-
var
|
|
3167
|
+
var cliFlag55 = "offthreadvideo-video-threads";
|
|
3238
3168
|
var offthreadVideoThreadsOption = {
|
|
3239
3169
|
name: "OffthreadVideo threads",
|
|
3240
|
-
cliFlag:
|
|
3241
|
-
description: () => /* @__PURE__ */
|
|
3170
|
+
cliFlag: cliFlag55,
|
|
3171
|
+
description: () => /* @__PURE__ */ jsxs35(Fragment51, {
|
|
3242
3172
|
children: [
|
|
3243
3173
|
"The number of threads that",
|
|
3244
|
-
/* @__PURE__ */
|
|
3174
|
+
/* @__PURE__ */ jsx51("a", {
|
|
3245
3175
|
href: "https://remotion.dev/docs/offthreadvideo",
|
|
3246
|
-
children: /* @__PURE__ */
|
|
3176
|
+
children: /* @__PURE__ */ jsx51("code", {
|
|
3247
3177
|
children: "<OffthreadVideo>"
|
|
3248
3178
|
})
|
|
3249
3179
|
}),
|
|
@@ -3258,10 +3188,10 @@ var offthreadVideoThreadsOption = {
|
|
|
3258
3188
|
docLink: "https://www.remotion.dev/docs/offthreadvideo",
|
|
3259
3189
|
type: 0,
|
|
3260
3190
|
getValue: ({ commandLine }) => {
|
|
3261
|
-
if (commandLine[
|
|
3191
|
+
if (commandLine[cliFlag55] !== undefined) {
|
|
3262
3192
|
return {
|
|
3263
3193
|
source: "cli",
|
|
3264
|
-
value: commandLine[
|
|
3194
|
+
value: commandLine[cliFlag55]
|
|
3265
3195
|
};
|
|
3266
3196
|
}
|
|
3267
3197
|
if (value2 !== null) {
|
|
@@ -3278,21 +3208,21 @@ var offthreadVideoThreadsOption = {
|
|
|
3278
3208
|
setConfig: (size) => {
|
|
3279
3209
|
value2 = size ?? null;
|
|
3280
3210
|
},
|
|
3281
|
-
id:
|
|
3211
|
+
id: cliFlag55
|
|
3282
3212
|
};
|
|
3283
3213
|
var DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
3284
3214
|
|
|
3285
3215
|
// src/options/on-browser-download.tsx
|
|
3286
|
-
import { jsx as
|
|
3287
|
-
var
|
|
3216
|
+
import { jsx as jsx52, jsxs as jsxs36, Fragment as Fragment52 } from "react/jsx-runtime";
|
|
3217
|
+
var cliFlag56 = "on-browser-download";
|
|
3288
3218
|
var onBrowserDownloadOption = {
|
|
3289
3219
|
name: "Browser download callback function",
|
|
3290
|
-
cliFlag:
|
|
3291
|
-
description: () => /* @__PURE__ */
|
|
3220
|
+
cliFlag: cliFlag56,
|
|
3221
|
+
description: () => /* @__PURE__ */ jsxs36(Fragment52, {
|
|
3292
3222
|
children: [
|
|
3293
3223
|
"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.",
|
|
3294
3224
|
" ",
|
|
3295
|
-
/* @__PURE__ */
|
|
3225
|
+
/* @__PURE__ */ jsx52("a", {
|
|
3296
3226
|
href: "/docs/renderer/ensure-browser#onbrowserdownload",
|
|
3297
3227
|
children: "See here for how to use this option."
|
|
3298
3228
|
})
|
|
@@ -3307,26 +3237,26 @@ var onBrowserDownloadOption = {
|
|
|
3307
3237
|
setConfig: () => {
|
|
3308
3238
|
throw new Error("does not support config file");
|
|
3309
3239
|
},
|
|
3310
|
-
id:
|
|
3240
|
+
id: cliFlag56
|
|
3311
3241
|
};
|
|
3312
3242
|
|
|
3313
3243
|
// src/options/out-dir.tsx
|
|
3314
|
-
import { jsx as
|
|
3315
|
-
var
|
|
3244
|
+
import { jsx as jsx53, jsxs as jsxs37, Fragment as Fragment53 } from "react/jsx-runtime";
|
|
3245
|
+
var cliFlag57 = "out-dir";
|
|
3316
3246
|
var currentOutDir = null;
|
|
3317
3247
|
var outDirOption = {
|
|
3318
3248
|
name: "Output Directory",
|
|
3319
|
-
cliFlag:
|
|
3249
|
+
cliFlag: cliFlag57,
|
|
3320
3250
|
description: () => {
|
|
3321
|
-
return /* @__PURE__ */
|
|
3251
|
+
return /* @__PURE__ */ jsxs37(Fragment53, {
|
|
3322
3252
|
children: [
|
|
3323
3253
|
"Define the location of the resulting bundle. By default it is a folder called ",
|
|
3324
|
-
/* @__PURE__ */
|
|
3254
|
+
/* @__PURE__ */ jsx53("code", {
|
|
3325
3255
|
children: "build"
|
|
3326
3256
|
}),
|
|
3327
3257
|
", adjacent to the",
|
|
3328
3258
|
" ",
|
|
3329
|
-
/* @__PURE__ */
|
|
3259
|
+
/* @__PURE__ */ jsx53("a", {
|
|
3330
3260
|
href: "/docs/terminology/remotion-root",
|
|
3331
3261
|
children: "Remotion Root"
|
|
3332
3262
|
}),
|
|
@@ -3337,10 +3267,10 @@ var outDirOption = {
|
|
|
3337
3267
|
ssrName: "outDir",
|
|
3338
3268
|
docLink: "https://www.remotion.dev/docs/cli/bundle#--out-dir",
|
|
3339
3269
|
getValue: ({ commandLine }) => {
|
|
3340
|
-
if (commandLine[
|
|
3270
|
+
if (commandLine[cliFlag57] !== undefined) {
|
|
3341
3271
|
return {
|
|
3342
3272
|
source: "cli",
|
|
3343
|
-
value: commandLine[
|
|
3273
|
+
value: commandLine[cliFlag57]
|
|
3344
3274
|
};
|
|
3345
3275
|
}
|
|
3346
3276
|
if (currentOutDir !== null) {
|
|
@@ -3358,7 +3288,7 @@ var outDirOption = {
|
|
|
3358
3288
|
currentOutDir = value3;
|
|
3359
3289
|
},
|
|
3360
3290
|
type: "",
|
|
3361
|
-
id:
|
|
3291
|
+
id: cliFlag57
|
|
3362
3292
|
};
|
|
3363
3293
|
|
|
3364
3294
|
// src/validate.ts
|
|
@@ -3368,21 +3298,21 @@ var validateDimension = NoReactInternals2.validateDimension;
|
|
|
3368
3298
|
var validateDurationInFrames = NoReactInternals2.validateDurationInFrames;
|
|
3369
3299
|
|
|
3370
3300
|
// src/options/override-duration.tsx
|
|
3371
|
-
import { jsx as
|
|
3301
|
+
import { jsx as jsx54, Fragment as Fragment54 } from "react/jsx-runtime";
|
|
3372
3302
|
var currentDuration = null;
|
|
3373
|
-
var
|
|
3303
|
+
var cliFlag58 = "duration";
|
|
3374
3304
|
var overrideDurationOption = {
|
|
3375
3305
|
name: "Override Duration",
|
|
3376
|
-
cliFlag:
|
|
3377
|
-
description: () => /* @__PURE__ */
|
|
3306
|
+
cliFlag: cliFlag58,
|
|
3307
|
+
description: () => /* @__PURE__ */ jsx54(Fragment54, {
|
|
3378
3308
|
children: "Overrides the duration in frames of the composition."
|
|
3379
3309
|
}),
|
|
3380
3310
|
ssrName: null,
|
|
3381
3311
|
docLink: "https://www.remotion.dev/docs/config#overrideduration",
|
|
3382
3312
|
type: null,
|
|
3383
3313
|
getValue: ({ commandLine }) => {
|
|
3384
|
-
if (commandLine[
|
|
3385
|
-
const value3 = commandLine[
|
|
3314
|
+
if (commandLine[cliFlag58] !== undefined) {
|
|
3315
|
+
const value3 = commandLine[cliFlag58];
|
|
3386
3316
|
validateDurationInFrames(value3, {
|
|
3387
3317
|
component: "in --duration flag",
|
|
3388
3318
|
allowFloats: false
|
|
@@ -3410,25 +3340,25 @@ var overrideDurationOption = {
|
|
|
3410
3340
|
});
|
|
3411
3341
|
currentDuration = duration;
|
|
3412
3342
|
},
|
|
3413
|
-
id:
|
|
3343
|
+
id: cliFlag58
|
|
3414
3344
|
};
|
|
3415
3345
|
|
|
3416
3346
|
// src/options/override-fps.tsx
|
|
3417
|
-
import { jsx as
|
|
3347
|
+
import { jsx as jsx55, Fragment as Fragment55 } from "react/jsx-runtime";
|
|
3418
3348
|
var currentFps = null;
|
|
3419
|
-
var
|
|
3349
|
+
var cliFlag59 = "fps";
|
|
3420
3350
|
var overrideFpsOption = {
|
|
3421
3351
|
name: "Override FPS",
|
|
3422
|
-
cliFlag:
|
|
3423
|
-
description: () => /* @__PURE__ */
|
|
3352
|
+
cliFlag: cliFlag59,
|
|
3353
|
+
description: () => /* @__PURE__ */ jsx55(Fragment55, {
|
|
3424
3354
|
children: "Overrides the frames per second of the composition."
|
|
3425
3355
|
}),
|
|
3426
3356
|
ssrName: null,
|
|
3427
3357
|
docLink: "https://www.remotion.dev/docs/config#overridefps",
|
|
3428
3358
|
type: null,
|
|
3429
3359
|
getValue: ({ commandLine }) => {
|
|
3430
|
-
if (commandLine[
|
|
3431
|
-
const value3 = commandLine[
|
|
3360
|
+
if (commandLine[cliFlag59] !== undefined) {
|
|
3361
|
+
const value3 = commandLine[cliFlag59];
|
|
3432
3362
|
validateFps(value3, "in --fps flag", false);
|
|
3433
3363
|
return {
|
|
3434
3364
|
source: "cli",
|
|
@@ -3450,25 +3380,25 @@ var overrideFpsOption = {
|
|
|
3450
3380
|
validateFps(fps, "in Config.overrideFps()", false);
|
|
3451
3381
|
currentFps = fps;
|
|
3452
3382
|
},
|
|
3453
|
-
id:
|
|
3383
|
+
id: cliFlag59
|
|
3454
3384
|
};
|
|
3455
3385
|
|
|
3456
3386
|
// src/options/override-height.tsx
|
|
3457
|
-
import { jsx as
|
|
3387
|
+
import { jsx as jsx56, Fragment as Fragment56 } from "react/jsx-runtime";
|
|
3458
3388
|
var currentHeight = null;
|
|
3459
|
-
var
|
|
3389
|
+
var cliFlag60 = "height";
|
|
3460
3390
|
var overrideHeightOption = {
|
|
3461
3391
|
name: "Override Height",
|
|
3462
|
-
cliFlag:
|
|
3463
|
-
description: () => /* @__PURE__ */
|
|
3392
|
+
cliFlag: cliFlag60,
|
|
3393
|
+
description: () => /* @__PURE__ */ jsx56(Fragment56, {
|
|
3464
3394
|
children: "Overrides the height of the composition."
|
|
3465
3395
|
}),
|
|
3466
3396
|
ssrName: null,
|
|
3467
3397
|
docLink: "https://www.remotion.dev/docs/config#overrideheight",
|
|
3468
3398
|
type: null,
|
|
3469
3399
|
getValue: ({ commandLine }) => {
|
|
3470
|
-
if (commandLine[
|
|
3471
|
-
const value3 = commandLine[
|
|
3400
|
+
if (commandLine[cliFlag60] !== undefined) {
|
|
3401
|
+
const value3 = commandLine[cliFlag60];
|
|
3472
3402
|
validateDimension(value3, "height", "in --height flag");
|
|
3473
3403
|
return {
|
|
3474
3404
|
source: "cli",
|
|
@@ -3490,25 +3420,25 @@ var overrideHeightOption = {
|
|
|
3490
3420
|
validateDimension(height, "height", "in Config.overrideHeight()");
|
|
3491
3421
|
currentHeight = height;
|
|
3492
3422
|
},
|
|
3493
|
-
id:
|
|
3423
|
+
id: cliFlag60
|
|
3494
3424
|
};
|
|
3495
3425
|
|
|
3496
3426
|
// src/options/override-width.tsx
|
|
3497
|
-
import { jsx as
|
|
3427
|
+
import { jsx as jsx57, Fragment as Fragment57 } from "react/jsx-runtime";
|
|
3498
3428
|
var currentWidth = null;
|
|
3499
|
-
var
|
|
3429
|
+
var cliFlag61 = "width";
|
|
3500
3430
|
var overrideWidthOption = {
|
|
3501
3431
|
name: "Override Width",
|
|
3502
|
-
cliFlag:
|
|
3503
|
-
description: () => /* @__PURE__ */
|
|
3432
|
+
cliFlag: cliFlag61,
|
|
3433
|
+
description: () => /* @__PURE__ */ jsx57(Fragment57, {
|
|
3504
3434
|
children: "Overrides the width of the composition."
|
|
3505
3435
|
}),
|
|
3506
3436
|
ssrName: null,
|
|
3507
3437
|
docLink: "https://www.remotion.dev/docs/config#overridewidth",
|
|
3508
3438
|
type: null,
|
|
3509
3439
|
getValue: ({ commandLine }) => {
|
|
3510
|
-
if (commandLine[
|
|
3511
|
-
const value3 = commandLine[
|
|
3440
|
+
if (commandLine[cliFlag61] !== undefined) {
|
|
3441
|
+
const value3 = commandLine[cliFlag61];
|
|
3512
3442
|
validateDimension(value3, "width", "in --width flag");
|
|
3513
3443
|
return {
|
|
3514
3444
|
source: "cli",
|
|
@@ -3530,13 +3460,13 @@ var overrideWidthOption = {
|
|
|
3530
3460
|
validateDimension(width, "width", "in Config.overrideWidth()");
|
|
3531
3461
|
currentWidth = width;
|
|
3532
3462
|
},
|
|
3533
|
-
id:
|
|
3463
|
+
id: cliFlag61
|
|
3534
3464
|
};
|
|
3535
3465
|
|
|
3536
3466
|
// src/options/overwrite.tsx
|
|
3537
|
-
import { jsx as
|
|
3467
|
+
import { jsx as jsx58, jsxs as jsxs38, Fragment as Fragment58 } from "react/jsx-runtime";
|
|
3538
3468
|
var shouldOverwrite = null;
|
|
3539
|
-
var
|
|
3469
|
+
var cliFlag62 = "overwrite";
|
|
3540
3470
|
var validate2 = (value3) => {
|
|
3541
3471
|
if (typeof value3 !== "boolean") {
|
|
3542
3472
|
throw new Error(`overwriteExisting must be a boolean but got ${typeof value3} (${value3})`);
|
|
@@ -3544,15 +3474,15 @@ var validate2 = (value3) => {
|
|
|
3544
3474
|
};
|
|
3545
3475
|
var overwriteOption = {
|
|
3546
3476
|
name: "Overwrite output",
|
|
3547
|
-
cliFlag:
|
|
3548
|
-
description: () => /* @__PURE__ */
|
|
3477
|
+
cliFlag: cliFlag62,
|
|
3478
|
+
description: () => /* @__PURE__ */ jsxs38(Fragment58, {
|
|
3549
3479
|
children: [
|
|
3550
3480
|
"If set to ",
|
|
3551
|
-
/* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ jsx58("code", {
|
|
3552
3482
|
children: "false"
|
|
3553
3483
|
}),
|
|
3554
3484
|
", will prevent rendering to a path that already exists. Default is ",
|
|
3555
|
-
/* @__PURE__ */
|
|
3485
|
+
/* @__PURE__ */ jsx58("code", {
|
|
3556
3486
|
children: "true"
|
|
3557
3487
|
}),
|
|
3558
3488
|
"."
|
|
@@ -3562,11 +3492,11 @@ var overwriteOption = {
|
|
|
3562
3492
|
docLink: "https://www.remotion.dev/docs/config#setoverwriteoutput",
|
|
3563
3493
|
type: false,
|
|
3564
3494
|
getValue: ({ commandLine }, defaultValue2) => {
|
|
3565
|
-
if (commandLine[
|
|
3566
|
-
validate2(commandLine[
|
|
3495
|
+
if (commandLine[cliFlag62] !== undefined && commandLine[cliFlag62] !== null) {
|
|
3496
|
+
validate2(commandLine[cliFlag62]);
|
|
3567
3497
|
return {
|
|
3568
3498
|
source: "cli",
|
|
3569
|
-
value: commandLine[
|
|
3499
|
+
value: commandLine[cliFlag62]
|
|
3570
3500
|
};
|
|
3571
3501
|
}
|
|
3572
3502
|
if (shouldOverwrite !== null) {
|
|
@@ -3584,36 +3514,36 @@ var overwriteOption = {
|
|
|
3584
3514
|
validate2(value3);
|
|
3585
3515
|
shouldOverwrite = value3;
|
|
3586
3516
|
},
|
|
3587
|
-
id:
|
|
3517
|
+
id: cliFlag62
|
|
3588
3518
|
};
|
|
3589
3519
|
|
|
3590
3520
|
// src/options/package-manager.tsx
|
|
3591
|
-
import { jsx as
|
|
3592
|
-
var
|
|
3521
|
+
import { jsx as jsx59, jsxs as jsxs39, Fragment as Fragment59 } from "react/jsx-runtime";
|
|
3522
|
+
var cliFlag63 = "package-manager";
|
|
3593
3523
|
var currentPackageManager = null;
|
|
3594
3524
|
var packageManagerOption = {
|
|
3595
3525
|
name: "Package Manager",
|
|
3596
|
-
cliFlag:
|
|
3526
|
+
cliFlag: cliFlag63,
|
|
3597
3527
|
description: () => {
|
|
3598
|
-
return /* @__PURE__ */
|
|
3528
|
+
return /* @__PURE__ */ jsxs39(Fragment59, {
|
|
3599
3529
|
children: [
|
|
3600
3530
|
"Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.",
|
|
3601
|
-
/* @__PURE__ */
|
|
3531
|
+
/* @__PURE__ */ jsx59("br", {}),
|
|
3602
3532
|
"Acceptable values are ",
|
|
3603
|
-
/* @__PURE__ */
|
|
3533
|
+
/* @__PURE__ */ jsx59("code", {
|
|
3604
3534
|
children: "npm"
|
|
3605
3535
|
}),
|
|
3606
3536
|
", ",
|
|
3607
|
-
/* @__PURE__ */
|
|
3537
|
+
/* @__PURE__ */ jsx59("code", {
|
|
3608
3538
|
children: "yarn"
|
|
3609
3539
|
}),
|
|
3610
3540
|
",",
|
|
3611
3541
|
" ",
|
|
3612
|
-
/* @__PURE__ */
|
|
3542
|
+
/* @__PURE__ */ jsx59("code", {
|
|
3613
3543
|
children: "pnpm"
|
|
3614
3544
|
}),
|
|
3615
3545
|
" and ",
|
|
3616
|
-
/* @__PURE__ */
|
|
3546
|
+
/* @__PURE__ */ jsx59("code", {
|
|
3617
3547
|
children: "bun"
|
|
3618
3548
|
}),
|
|
3619
3549
|
"."
|
|
@@ -3623,10 +3553,10 @@ var packageManagerOption = {
|
|
|
3623
3553
|
ssrName: "packageManager",
|
|
3624
3554
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--package-manager",
|
|
3625
3555
|
getValue: ({ commandLine }) => {
|
|
3626
|
-
if (commandLine[
|
|
3556
|
+
if (commandLine[cliFlag63] !== undefined) {
|
|
3627
3557
|
return {
|
|
3628
3558
|
source: "cli",
|
|
3629
|
-
value: commandLine[
|
|
3559
|
+
value: commandLine[cliFlag63]
|
|
3630
3560
|
};
|
|
3631
3561
|
}
|
|
3632
3562
|
if (currentPackageManager !== null) {
|
|
@@ -3644,7 +3574,7 @@ var packageManagerOption = {
|
|
|
3644
3574
|
currentPackageManager = value3;
|
|
3645
3575
|
},
|
|
3646
3576
|
type: "",
|
|
3647
|
-
id:
|
|
3577
|
+
id: cliFlag63
|
|
3648
3578
|
};
|
|
3649
3579
|
|
|
3650
3580
|
// src/pixel-format.ts
|
|
@@ -3667,17 +3597,17 @@ var validPixelFormatsForCodec = (codec) => {
|
|
|
3667
3597
|
};
|
|
3668
3598
|
|
|
3669
3599
|
// src/options/pixel-format.tsx
|
|
3670
|
-
import { jsx as
|
|
3600
|
+
import { jsx as jsx60, jsxs as jsxs40, Fragment as Fragment60 } from "react/jsx-runtime";
|
|
3671
3601
|
var currentPixelFormat = DEFAULT_PIXEL_FORMAT;
|
|
3672
|
-
var
|
|
3602
|
+
var cliFlag64 = "pixel-format";
|
|
3673
3603
|
var pixelFormatOption = {
|
|
3674
3604
|
name: "Pixel format",
|
|
3675
|
-
cliFlag:
|
|
3676
|
-
description: () => /* @__PURE__ */
|
|
3605
|
+
cliFlag: cliFlag64,
|
|
3606
|
+
description: () => /* @__PURE__ */ jsxs40(Fragment60, {
|
|
3677
3607
|
children: [
|
|
3678
3608
|
"Sets the pixel format in FFmpeg. See",
|
|
3679
3609
|
" ",
|
|
3680
|
-
/* @__PURE__ */
|
|
3610
|
+
/* @__PURE__ */ jsx60("a", {
|
|
3681
3611
|
href: "https://trac.ffmpeg.org/wiki/Chroma%20Subsampling",
|
|
3682
3612
|
children: "the FFmpeg docs for an explanation"
|
|
3683
3613
|
}),
|
|
@@ -3696,10 +3626,10 @@ var pixelFormatOption = {
|
|
|
3696
3626
|
value: options.uiPixelFormat
|
|
3697
3627
|
};
|
|
3698
3628
|
}
|
|
3699
|
-
if (commandLine[
|
|
3629
|
+
if (commandLine[cliFlag64] !== undefined) {
|
|
3700
3630
|
return {
|
|
3701
3631
|
source: "from --pixel-format flag",
|
|
3702
|
-
value: commandLine[
|
|
3632
|
+
value: commandLine[cliFlag64]
|
|
3703
3633
|
};
|
|
3704
3634
|
}
|
|
3705
3635
|
if (options && options.compositionDefaultPixelFormat !== null) {
|
|
@@ -3725,26 +3655,26 @@ var pixelFormatOption = {
|
|
|
3725
3655
|
}
|
|
3726
3656
|
currentPixelFormat = value3;
|
|
3727
3657
|
},
|
|
3728
|
-
id:
|
|
3658
|
+
id: cliFlag64
|
|
3729
3659
|
};
|
|
3730
3660
|
|
|
3731
3661
|
// src/options/port.tsx
|
|
3732
|
-
import { jsx as
|
|
3733
|
-
var
|
|
3662
|
+
import { jsx as jsx61, Fragment as Fragment61 } from "react/jsx-runtime";
|
|
3663
|
+
var cliFlag65 = "port";
|
|
3734
3664
|
var currentPort = null;
|
|
3735
3665
|
var portOption = {
|
|
3736
3666
|
name: "Port",
|
|
3737
|
-
cliFlag:
|
|
3738
|
-
description: () => /* @__PURE__ */
|
|
3667
|
+
cliFlag: cliFlag65,
|
|
3668
|
+
description: () => /* @__PURE__ */ jsx61(Fragment61, {
|
|
3739
3669
|
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."
|
|
3740
3670
|
}),
|
|
3741
3671
|
ssrName: null,
|
|
3742
3672
|
docLink: "https://www.remotion.dev/docs/config#setstudioport",
|
|
3743
3673
|
getValue: ({ commandLine }) => {
|
|
3744
|
-
if (commandLine[
|
|
3674
|
+
if (commandLine[cliFlag65] !== undefined) {
|
|
3745
3675
|
return {
|
|
3746
3676
|
source: "cli",
|
|
3747
|
-
value: commandLine[
|
|
3677
|
+
value: commandLine[cliFlag65]
|
|
3748
3678
|
};
|
|
3749
3679
|
}
|
|
3750
3680
|
if (currentPort !== null) {
|
|
@@ -3762,25 +3692,25 @@ var portOption = {
|
|
|
3762
3692
|
currentPort = value3;
|
|
3763
3693
|
},
|
|
3764
3694
|
type: 0,
|
|
3765
|
-
id:
|
|
3695
|
+
id: cliFlag65
|
|
3766
3696
|
};
|
|
3767
3697
|
|
|
3768
3698
|
// src/options/prefer-lossless.tsx
|
|
3769
|
-
import { jsx as
|
|
3770
|
-
var
|
|
3699
|
+
import { jsx as jsx62, jsxs as jsxs41, Fragment as Fragment62 } from "react/jsx-runtime";
|
|
3700
|
+
var cliFlag66 = "prefer-lossless";
|
|
3771
3701
|
var input = false;
|
|
3772
3702
|
var preferLosslessAudioOption = {
|
|
3773
3703
|
name: "Prefer lossless",
|
|
3774
|
-
cliFlag:
|
|
3775
|
-
description: () => /* @__PURE__ */
|
|
3704
|
+
cliFlag: cliFlag66,
|
|
3705
|
+
description: () => /* @__PURE__ */ jsxs41(Fragment62, {
|
|
3776
3706
|
children: [
|
|
3777
3707
|
"Uses a lossless audio codec, if one is available for the codec. If you set",
|
|
3778
|
-
/* @__PURE__ */
|
|
3708
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3779
3709
|
children: "audioCodec"
|
|
3780
3710
|
}),
|
|
3781
3711
|
", it takes priority over",
|
|
3782
3712
|
" ",
|
|
3783
|
-
/* @__PURE__ */
|
|
3713
|
+
/* @__PURE__ */ jsx62("code", {
|
|
3784
3714
|
children: "preferLossless"
|
|
3785
3715
|
}),
|
|
3786
3716
|
"."
|
|
@@ -3790,7 +3720,7 @@ var preferLosslessAudioOption = {
|
|
|
3790
3720
|
type: false,
|
|
3791
3721
|
ssrName: "preferLossless",
|
|
3792
3722
|
getValue: ({ commandLine }) => {
|
|
3793
|
-
if (commandLine[
|
|
3723
|
+
if (commandLine[cliFlag66]) {
|
|
3794
3724
|
return { value: true, source: "cli" };
|
|
3795
3725
|
}
|
|
3796
3726
|
if (input === true) {
|
|
@@ -3801,20 +3731,20 @@ var preferLosslessAudioOption = {
|
|
|
3801
3731
|
setConfig: (val) => {
|
|
3802
3732
|
input = val;
|
|
3803
3733
|
},
|
|
3804
|
-
id:
|
|
3734
|
+
id: cliFlag66
|
|
3805
3735
|
};
|
|
3806
3736
|
|
|
3807
3737
|
// src/options/preview-sample-rate.tsx
|
|
3808
|
-
import { jsx as
|
|
3809
|
-
var
|
|
3738
|
+
import { jsx as jsx63, jsxs as jsxs42, Fragment as Fragment63 } from "react/jsx-runtime";
|
|
3739
|
+
var cliFlag67 = "preview-sample-rate";
|
|
3810
3740
|
var currentPreviewSampleRate = null;
|
|
3811
3741
|
var previewSampleRateOption = {
|
|
3812
3742
|
name: "Preview Sample Rate",
|
|
3813
|
-
cliFlag:
|
|
3814
|
-
description: () => /* @__PURE__ */
|
|
3743
|
+
cliFlag: cliFlag67,
|
|
3744
|
+
description: () => /* @__PURE__ */ jsxs42(Fragment63, {
|
|
3815
3745
|
children: [
|
|
3816
3746
|
"Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
|
|
3817
|
-
/* @__PURE__ */
|
|
3747
|
+
/* @__PURE__ */ jsx63("code", {
|
|
3818
3748
|
children: "48000"
|
|
3819
3749
|
}),
|
|
3820
3750
|
" Hz."
|
|
@@ -3824,8 +3754,8 @@ var previewSampleRateOption = {
|
|
|
3824
3754
|
docLink: "https://www.remotion.dev/docs/config#setpreviewsamplerate",
|
|
3825
3755
|
type: null,
|
|
3826
3756
|
getValue: ({ commandLine }) => {
|
|
3827
|
-
if (commandLine[
|
|
3828
|
-
return { value: commandLine[
|
|
3757
|
+
if (commandLine[cliFlag67] !== undefined) {
|
|
3758
|
+
return { value: commandLine[cliFlag67], source: "cli" };
|
|
3829
3759
|
}
|
|
3830
3760
|
if (currentPreviewSampleRate !== null) {
|
|
3831
3761
|
return { value: currentPreviewSampleRate, source: "config file" };
|
|
@@ -3835,19 +3765,19 @@ var previewSampleRateOption = {
|
|
|
3835
3765
|
setConfig: (value3) => {
|
|
3836
3766
|
currentPreviewSampleRate = value3;
|
|
3837
3767
|
},
|
|
3838
|
-
id:
|
|
3768
|
+
id: cliFlag67
|
|
3839
3769
|
};
|
|
3840
3770
|
|
|
3841
3771
|
// src/options/props.tsx
|
|
3842
|
-
import { jsx as
|
|
3843
|
-
var
|
|
3772
|
+
import { jsx as jsx64, jsxs as jsxs43, Fragment as Fragment64 } from "react/jsx-runtime";
|
|
3773
|
+
var cliFlag68 = "props";
|
|
3844
3774
|
var propsOption = {
|
|
3845
3775
|
name: "Input Props",
|
|
3846
|
-
cliFlag:
|
|
3847
|
-
description: () => /* @__PURE__ */
|
|
3776
|
+
cliFlag: cliFlag68,
|
|
3777
|
+
description: () => /* @__PURE__ */ jsxs43(Fragment64, {
|
|
3848
3778
|
children: [
|
|
3849
3779
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
3850
|
-
/* @__PURE__ */
|
|
3780
|
+
/* @__PURE__ */ jsxs43("code", {
|
|
3851
3781
|
children: [
|
|
3852
3782
|
"--props='",
|
|
3853
3783
|
"{",
|
|
@@ -3857,7 +3787,7 @@ var propsOption = {
|
|
|
3857
3787
|
]
|
|
3858
3788
|
}),
|
|
3859
3789
|
") or a path to a JSON file (",
|
|
3860
|
-
/* @__PURE__ */
|
|
3790
|
+
/* @__PURE__ */ jsx64("code", {
|
|
3861
3791
|
children: "./path/to/props.json"
|
|
3862
3792
|
}),
|
|
3863
3793
|
")."
|
|
@@ -3866,10 +3796,10 @@ var propsOption = {
|
|
|
3866
3796
|
ssrName: null,
|
|
3867
3797
|
docLink: "https://www.remotion.dev/docs/passing-props#passing-input-props-in-the-cli",
|
|
3868
3798
|
getValue: ({ commandLine }) => {
|
|
3869
|
-
if (commandLine[
|
|
3799
|
+
if (commandLine[cliFlag68] !== undefined) {
|
|
3870
3800
|
return {
|
|
3871
3801
|
source: "cli",
|
|
3872
|
-
value: commandLine[
|
|
3802
|
+
value: commandLine[cliFlag68]
|
|
3873
3803
|
};
|
|
3874
3804
|
}
|
|
3875
3805
|
return {
|
|
@@ -3881,11 +3811,11 @@ var propsOption = {
|
|
|
3881
3811
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
3882
3812
|
},
|
|
3883
3813
|
type: "",
|
|
3884
|
-
id:
|
|
3814
|
+
id: cliFlag68
|
|
3885
3815
|
};
|
|
3886
3816
|
|
|
3887
3817
|
// src/options/prores-profile.tsx
|
|
3888
|
-
import { jsx as
|
|
3818
|
+
import { jsx as jsx65, jsxs as jsxs44, Fragment as Fragment65 } from "react/jsx-runtime";
|
|
3889
3819
|
var validProResProfiles = [
|
|
3890
3820
|
"4444-xq",
|
|
3891
3821
|
"4444",
|
|
@@ -3895,14 +3825,14 @@ var validProResProfiles = [
|
|
|
3895
3825
|
"proxy"
|
|
3896
3826
|
];
|
|
3897
3827
|
var proResProfile;
|
|
3898
|
-
var
|
|
3828
|
+
var cliFlag69 = "prores-profile";
|
|
3899
3829
|
var proResProfileOption = {
|
|
3900
3830
|
name: "ProRes profile",
|
|
3901
|
-
cliFlag:
|
|
3902
|
-
description: () => /* @__PURE__ */
|
|
3831
|
+
cliFlag: cliFlag69,
|
|
3832
|
+
description: () => /* @__PURE__ */ jsxs44(Fragment65, {
|
|
3903
3833
|
children: [
|
|
3904
3834
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
3905
|
-
/* @__PURE__ */
|
|
3835
|
+
/* @__PURE__ */ jsx65("code", {
|
|
3906
3836
|
children: "prores"
|
|
3907
3837
|
}),
|
|
3908
3838
|
". Possible values:",
|
|
@@ -3910,12 +3840,12 @@ var proResProfileOption = {
|
|
|
3910
3840
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
3911
3841
|
". Default:",
|
|
3912
3842
|
" ",
|
|
3913
|
-
/* @__PURE__ */
|
|
3843
|
+
/* @__PURE__ */ jsx65("code", {
|
|
3914
3844
|
children: '"hq"'
|
|
3915
3845
|
}),
|
|
3916
3846
|
". See",
|
|
3917
3847
|
" ",
|
|
3918
|
-
/* @__PURE__ */
|
|
3848
|
+
/* @__PURE__ */ jsx65("a", {
|
|
3919
3849
|
href: "https://video.stackexchange.com/a/14715",
|
|
3920
3850
|
children: "here"
|
|
3921
3851
|
}),
|
|
@@ -3932,10 +3862,10 @@ var proResProfileOption = {
|
|
|
3932
3862
|
value: options.uiProResProfile
|
|
3933
3863
|
};
|
|
3934
3864
|
}
|
|
3935
|
-
if (commandLine[
|
|
3865
|
+
if (commandLine[cliFlag69] !== undefined) {
|
|
3936
3866
|
return {
|
|
3937
3867
|
source: "from --prores-profile flag",
|
|
3938
|
-
value: String(commandLine[
|
|
3868
|
+
value: String(commandLine[cliFlag69])
|
|
3939
3869
|
};
|
|
3940
3870
|
}
|
|
3941
3871
|
if (options && options.compositionDefaultProResProfile !== null) {
|
|
@@ -3958,24 +3888,24 @@ var proResProfileOption = {
|
|
|
3958
3888
|
setConfig: (value3) => {
|
|
3959
3889
|
proResProfile = value3;
|
|
3960
3890
|
},
|
|
3961
|
-
id:
|
|
3891
|
+
id: cliFlag69
|
|
3962
3892
|
};
|
|
3963
3893
|
|
|
3964
3894
|
// src/options/public-dir.tsx
|
|
3965
|
-
import { jsx as
|
|
3966
|
-
var
|
|
3895
|
+
import { jsx as jsx66, jsxs as jsxs45, Fragment as Fragment66 } from "react/jsx-runtime";
|
|
3896
|
+
var cliFlag70 = "public-dir";
|
|
3967
3897
|
var currentPublicDir = null;
|
|
3968
3898
|
var publicDirOption = {
|
|
3969
3899
|
name: "Public Directory",
|
|
3970
|
-
cliFlag:
|
|
3900
|
+
cliFlag: cliFlag70,
|
|
3971
3901
|
description: () => {
|
|
3972
|
-
return /* @__PURE__ */
|
|
3902
|
+
return /* @__PURE__ */ jsxs45(Fragment66, {
|
|
3973
3903
|
children: [
|
|
3974
3904
|
"Define the location of the",
|
|
3975
3905
|
" ",
|
|
3976
|
-
/* @__PURE__ */
|
|
3906
|
+
/* @__PURE__ */ jsx66("a", {
|
|
3977
3907
|
href: "/docs/terminology/public-dir",
|
|
3978
|
-
children: /* @__PURE__ */
|
|
3908
|
+
children: /* @__PURE__ */ jsx66("code", {
|
|
3979
3909
|
children: "public/ directory"
|
|
3980
3910
|
})
|
|
3981
3911
|
}),
|
|
@@ -3986,10 +3916,10 @@ var publicDirOption = {
|
|
|
3986
3916
|
ssrName: "publicDir",
|
|
3987
3917
|
docLink: "https://www.remotion.dev/docs/terminology/public-dir",
|
|
3988
3918
|
getValue: ({ commandLine }) => {
|
|
3989
|
-
if (commandLine[
|
|
3919
|
+
if (commandLine[cliFlag70] !== undefined) {
|
|
3990
3920
|
return {
|
|
3991
3921
|
source: "cli",
|
|
3992
|
-
value: commandLine[
|
|
3922
|
+
value: commandLine[cliFlag70]
|
|
3993
3923
|
};
|
|
3994
3924
|
}
|
|
3995
3925
|
if (currentPublicDir !== null) {
|
|
@@ -4007,20 +3937,20 @@ var publicDirOption = {
|
|
|
4007
3937
|
currentPublicDir = value3;
|
|
4008
3938
|
},
|
|
4009
3939
|
type: "",
|
|
4010
|
-
id:
|
|
3940
|
+
id: cliFlag70
|
|
4011
3941
|
};
|
|
4012
3942
|
|
|
4013
3943
|
// src/options/public-license-key.tsx
|
|
4014
|
-
import { jsx as
|
|
4015
|
-
var
|
|
3944
|
+
import { jsx as jsx67, jsxs as jsxs46, Fragment as Fragment67 } from "react/jsx-runtime";
|
|
3945
|
+
var cliFlag71 = "public-license-key";
|
|
4016
3946
|
var currentPublicLicenseKey = null;
|
|
4017
3947
|
var publicLicenseKeyOption = {
|
|
4018
3948
|
name: "Public License Key",
|
|
4019
|
-
cliFlag:
|
|
4020
|
-
description: () => /* @__PURE__ */
|
|
3949
|
+
cliFlag: cliFlag71,
|
|
3950
|
+
description: () => /* @__PURE__ */ jsxs46(Fragment67, {
|
|
4021
3951
|
children: [
|
|
4022
3952
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
4023
|
-
/* @__PURE__ */
|
|
3953
|
+
/* @__PURE__ */ jsx67("a", {
|
|
4024
3954
|
href: "https://remotion.pro/dashboard",
|
|
4025
3955
|
children: "remotion.pro"
|
|
4026
3956
|
}),
|
|
@@ -4030,10 +3960,10 @@ var publicLicenseKeyOption = {
|
|
|
4030
3960
|
ssrName: "publicLicenseKey",
|
|
4031
3961
|
docLink: "https://www.remotion.dev/docs/licensing",
|
|
4032
3962
|
getValue: ({ commandLine }) => {
|
|
4033
|
-
if (commandLine[
|
|
3963
|
+
if (commandLine[cliFlag71] !== undefined) {
|
|
4034
3964
|
return {
|
|
4035
3965
|
source: "cli",
|
|
4036
|
-
value: commandLine[
|
|
3966
|
+
value: commandLine[cliFlag71]
|
|
4037
3967
|
};
|
|
4038
3968
|
}
|
|
4039
3969
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -4054,29 +3984,29 @@ var publicLicenseKeyOption = {
|
|
|
4054
3984
|
currentPublicLicenseKey = value3;
|
|
4055
3985
|
},
|
|
4056
3986
|
type: null,
|
|
4057
|
-
id:
|
|
3987
|
+
id: cliFlag71
|
|
4058
3988
|
};
|
|
4059
3989
|
|
|
4060
3990
|
// src/options/public-path.tsx
|
|
4061
|
-
import { jsx as
|
|
4062
|
-
var
|
|
3991
|
+
import { jsx as jsx68, jsxs as jsxs47, Fragment as Fragment68 } from "react/jsx-runtime";
|
|
3992
|
+
var cliFlag72 = "public-path";
|
|
4063
3993
|
var currentPublicPath = null;
|
|
4064
3994
|
var publicPathOption = {
|
|
4065
3995
|
name: "Public Path",
|
|
4066
|
-
cliFlag:
|
|
3996
|
+
cliFlag: cliFlag72,
|
|
4067
3997
|
description: () => {
|
|
4068
|
-
return /* @__PURE__ */
|
|
3998
|
+
return /* @__PURE__ */ jsxs47(Fragment68, {
|
|
4069
3999
|
children: [
|
|
4070
4000
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
4071
|
-
/* @__PURE__ */
|
|
4001
|
+
/* @__PURE__ */ jsx68("code", {
|
|
4072
4002
|
children: "/"
|
|
4073
4003
|
}),
|
|
4074
4004
|
", meaning that the bundle is going to be hosted at the root of the domain (e.g. ",
|
|
4075
|
-
/* @__PURE__ */
|
|
4005
|
+
/* @__PURE__ */ jsx68("code", {
|
|
4076
4006
|
children: "https://localhost:3000/"
|
|
4077
4007
|
}),
|
|
4078
4008
|
"). If you are deploying to a subdirectory (e.g. ",
|
|
4079
|
-
/* @__PURE__ */
|
|
4009
|
+
/* @__PURE__ */ jsx68("code", {
|
|
4080
4010
|
children: "/sites/my-site/"
|
|
4081
4011
|
}),
|
|
4082
4012
|
"), you should set this to the subdirectory."
|
|
@@ -4086,10 +4016,10 @@ var publicPathOption = {
|
|
|
4086
4016
|
ssrName: "publicPath",
|
|
4087
4017
|
docLink: "https://www.remotion.dev/docs/renderer",
|
|
4088
4018
|
getValue: ({ commandLine }) => {
|
|
4089
|
-
if (commandLine[
|
|
4019
|
+
if (commandLine[cliFlag72] !== undefined) {
|
|
4090
4020
|
return {
|
|
4091
4021
|
source: "cli",
|
|
4092
|
-
value: commandLine[
|
|
4022
|
+
value: commandLine[cliFlag72]
|
|
4093
4023
|
};
|
|
4094
4024
|
}
|
|
4095
4025
|
if (currentPublicPath !== null) {
|
|
@@ -4107,29 +4037,29 @@ var publicPathOption = {
|
|
|
4107
4037
|
currentPublicPath = value3;
|
|
4108
4038
|
},
|
|
4109
4039
|
type: "",
|
|
4110
|
-
id:
|
|
4040
|
+
id: cliFlag72
|
|
4111
4041
|
};
|
|
4112
4042
|
|
|
4113
4043
|
// src/options/repro.tsx
|
|
4114
|
-
import { jsx as
|
|
4044
|
+
import { jsx as jsx69, Fragment as Fragment69 } from "react/jsx-runtime";
|
|
4115
4045
|
var enableRepro = false;
|
|
4116
4046
|
var setRepro = (should) => {
|
|
4117
4047
|
enableRepro = should;
|
|
4118
4048
|
};
|
|
4119
|
-
var
|
|
4049
|
+
var cliFlag73 = "repro";
|
|
4120
4050
|
var reproOption = {
|
|
4121
4051
|
name: "Create reproduction",
|
|
4122
|
-
cliFlag:
|
|
4123
|
-
description: () => /* @__PURE__ */
|
|
4052
|
+
cliFlag: cliFlag73,
|
|
4053
|
+
description: () => /* @__PURE__ */ jsx69(Fragment69, {
|
|
4124
4054
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
4125
4055
|
}),
|
|
4126
4056
|
ssrName: "repro",
|
|
4127
4057
|
docLink: "https://www.remotion.dev/docs/render-media#repro",
|
|
4128
4058
|
type: false,
|
|
4129
4059
|
getValue: ({ commandLine }) => {
|
|
4130
|
-
if (commandLine[
|
|
4060
|
+
if (commandLine[cliFlag73] !== undefined && commandLine[cliFlag73] !== null) {
|
|
4131
4061
|
return {
|
|
4132
|
-
value: commandLine[
|
|
4062
|
+
value: commandLine[cliFlag73],
|
|
4133
4063
|
source: "cli"
|
|
4134
4064
|
};
|
|
4135
4065
|
}
|
|
@@ -4145,27 +4075,27 @@ var reproOption = {
|
|
|
4145
4075
|
};
|
|
4146
4076
|
},
|
|
4147
4077
|
setConfig: setRepro,
|
|
4148
|
-
id:
|
|
4078
|
+
id: cliFlag73
|
|
4149
4079
|
};
|
|
4150
4080
|
|
|
4151
4081
|
// src/options/rspack.tsx
|
|
4152
|
-
import { jsx as
|
|
4082
|
+
import { jsx as jsx70, Fragment as Fragment70 } from "react/jsx-runtime";
|
|
4153
4083
|
var rspackEnabled = false;
|
|
4154
|
-
var
|
|
4084
|
+
var cliFlag74 = "experimental-rspack";
|
|
4155
4085
|
var rspackOption = {
|
|
4156
4086
|
name: "Experimental Rspack",
|
|
4157
|
-
cliFlag:
|
|
4158
|
-
description: () => /* @__PURE__ */
|
|
4087
|
+
cliFlag: cliFlag74,
|
|
4088
|
+
description: () => /* @__PURE__ */ jsx70(Fragment70, {
|
|
4159
4089
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4160
4090
|
}),
|
|
4161
4091
|
ssrName: null,
|
|
4162
4092
|
docLink: null,
|
|
4163
4093
|
type: false,
|
|
4164
4094
|
getValue: ({ commandLine }) => {
|
|
4165
|
-
if (commandLine[
|
|
4095
|
+
if (commandLine[cliFlag74] !== undefined) {
|
|
4166
4096
|
rspackEnabled = true;
|
|
4167
4097
|
return {
|
|
4168
|
-
value: commandLine[
|
|
4098
|
+
value: commandLine[cliFlag74],
|
|
4169
4099
|
source: "cli"
|
|
4170
4100
|
};
|
|
4171
4101
|
}
|
|
@@ -4177,21 +4107,21 @@ var rspackOption = {
|
|
|
4177
4107
|
setConfig(value3) {
|
|
4178
4108
|
rspackEnabled = value3;
|
|
4179
4109
|
},
|
|
4180
|
-
id:
|
|
4110
|
+
id: cliFlag74
|
|
4181
4111
|
};
|
|
4182
4112
|
|
|
4183
4113
|
// src/options/runs.tsx
|
|
4184
|
-
import { jsx as
|
|
4114
|
+
import { jsx as jsx71, jsxs as jsxs48, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4185
4115
|
var DEFAULT_RUNS = 3;
|
|
4186
4116
|
var currentRuns = DEFAULT_RUNS;
|
|
4187
|
-
var
|
|
4117
|
+
var cliFlag75 = "runs";
|
|
4188
4118
|
var runsOption = {
|
|
4189
4119
|
name: "Benchmark runs",
|
|
4190
|
-
cliFlag:
|
|
4191
|
-
description: () => /* @__PURE__ */
|
|
4120
|
+
cliFlag: cliFlag75,
|
|
4121
|
+
description: () => /* @__PURE__ */ jsxs48(Fragment71, {
|
|
4192
4122
|
children: [
|
|
4193
4123
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
4194
|
-
/* @__PURE__ */
|
|
4124
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4195
4125
|
children: DEFAULT_RUNS
|
|
4196
4126
|
}),
|
|
4197
4127
|
"."
|
|
@@ -4201,10 +4131,10 @@ var runsOption = {
|
|
|
4201
4131
|
docLink: "https://www.remotion.dev/docs/cli/benchmark#--runs",
|
|
4202
4132
|
type: DEFAULT_RUNS,
|
|
4203
4133
|
getValue: ({ commandLine }) => {
|
|
4204
|
-
if (commandLine[
|
|
4205
|
-
const value3 = Number(commandLine[
|
|
4134
|
+
if (commandLine[cliFlag75] !== undefined) {
|
|
4135
|
+
const value3 = Number(commandLine[cliFlag75]);
|
|
4206
4136
|
if (isNaN(value3) || value3 < 1) {
|
|
4207
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
4137
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag75]}`);
|
|
4208
4138
|
}
|
|
4209
4139
|
return { value: value3, source: "cli" };
|
|
4210
4140
|
}
|
|
@@ -4219,21 +4149,21 @@ var runsOption = {
|
|
|
4219
4149
|
}
|
|
4220
4150
|
currentRuns = value3;
|
|
4221
4151
|
},
|
|
4222
|
-
id:
|
|
4152
|
+
id: cliFlag75
|
|
4223
4153
|
};
|
|
4224
4154
|
|
|
4225
4155
|
// src/options/sample-rate.tsx
|
|
4226
|
-
import { jsx as
|
|
4227
|
-
var
|
|
4156
|
+
import { jsx as jsx72, jsxs as jsxs49, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4157
|
+
var cliFlag76 = "sample-rate";
|
|
4228
4158
|
var currentSampleRate = 48000;
|
|
4229
4159
|
var sampleRateOption = {
|
|
4230
4160
|
name: "Sample Rate",
|
|
4231
|
-
cliFlag:
|
|
4232
|
-
description: () => /* @__PURE__ */
|
|
4161
|
+
cliFlag: cliFlag76,
|
|
4162
|
+
description: () => /* @__PURE__ */ jsxs49(Fragment72, {
|
|
4233
4163
|
children: [
|
|
4234
4164
|
"Controls the sample rate of the output audio. The default is",
|
|
4235
4165
|
" ",
|
|
4236
|
-
/* @__PURE__ */
|
|
4166
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4237
4167
|
children: "48000"
|
|
4238
4168
|
}),
|
|
4239
4169
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -4243,8 +4173,8 @@ var sampleRateOption = {
|
|
|
4243
4173
|
docLink: "https://www.remotion.dev/docs/sample-rate",
|
|
4244
4174
|
type: 48000,
|
|
4245
4175
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
4246
|
-
if (commandLine[
|
|
4247
|
-
return { value: commandLine[
|
|
4176
|
+
if (commandLine[cliFlag76] !== undefined) {
|
|
4177
|
+
return { value: commandLine[cliFlag76], source: "cli" };
|
|
4248
4178
|
}
|
|
4249
4179
|
if (currentSampleRate !== 48000) {
|
|
4250
4180
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -4260,13 +4190,13 @@ var sampleRateOption = {
|
|
|
4260
4190
|
setConfig: (value3) => {
|
|
4261
4191
|
currentSampleRate = value3;
|
|
4262
4192
|
},
|
|
4263
|
-
id:
|
|
4193
|
+
id: cliFlag76
|
|
4264
4194
|
};
|
|
4265
4195
|
|
|
4266
4196
|
// src/options/scale.tsx
|
|
4267
|
-
import { jsx as
|
|
4197
|
+
import { jsx as jsx73, jsxs as jsxs50, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4268
4198
|
var currentScale = 1;
|
|
4269
|
-
var
|
|
4199
|
+
var cliFlag77 = "scale";
|
|
4270
4200
|
var validateScale = (value3) => {
|
|
4271
4201
|
if (typeof value3 !== "number") {
|
|
4272
4202
|
throw new Error("scale must be a number.");
|
|
@@ -4274,15 +4204,15 @@ var validateScale = (value3) => {
|
|
|
4274
4204
|
};
|
|
4275
4205
|
var scaleOption = {
|
|
4276
4206
|
name: "Scale",
|
|
4277
|
-
cliFlag:
|
|
4278
|
-
description: () => /* @__PURE__ */
|
|
4207
|
+
cliFlag: cliFlag77,
|
|
4208
|
+
description: () => /* @__PURE__ */ jsxs50(Fragment73, {
|
|
4279
4209
|
children: [
|
|
4280
4210
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
4281
|
-
/* @__PURE__ */
|
|
4211
|
+
/* @__PURE__ */ jsx73("code", {
|
|
4282
4212
|
children: "1.5"
|
|
4283
4213
|
}),
|
|
4284
4214
|
". See ",
|
|
4285
|
-
/* @__PURE__ */
|
|
4215
|
+
/* @__PURE__ */ jsx73("a", {
|
|
4286
4216
|
href: "https://www.remotion.dev/docs/scaling",
|
|
4287
4217
|
children: "Scaling"
|
|
4288
4218
|
}),
|
|
@@ -4293,11 +4223,11 @@ var scaleOption = {
|
|
|
4293
4223
|
docLink: "https://www.remotion.dev/docs/scaling",
|
|
4294
4224
|
type: 0,
|
|
4295
4225
|
getValue: ({ commandLine }) => {
|
|
4296
|
-
if (commandLine[
|
|
4297
|
-
validateScale(commandLine[
|
|
4226
|
+
if (commandLine[cliFlag77] !== undefined) {
|
|
4227
|
+
validateScale(commandLine[cliFlag77]);
|
|
4298
4228
|
return {
|
|
4299
4229
|
source: "cli",
|
|
4300
|
-
value: commandLine[
|
|
4230
|
+
value: commandLine[cliFlag77]
|
|
4301
4231
|
};
|
|
4302
4232
|
}
|
|
4303
4233
|
if (currentScale !== null) {
|
|
@@ -4314,13 +4244,13 @@ var scaleOption = {
|
|
|
4314
4244
|
setConfig: (scale) => {
|
|
4315
4245
|
currentScale = scale;
|
|
4316
4246
|
},
|
|
4317
|
-
id:
|
|
4247
|
+
id: cliFlag77
|
|
4318
4248
|
};
|
|
4319
4249
|
|
|
4320
4250
|
// src/options/still-frame.tsx
|
|
4321
4251
|
import { NoReactInternals as NoReactInternals3 } from "remotion/no-react";
|
|
4322
|
-
import { jsx as
|
|
4323
|
-
var
|
|
4252
|
+
import { jsx as jsx74, jsxs as jsxs51, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4253
|
+
var cliFlag78 = "frame";
|
|
4324
4254
|
var currentFrame = null;
|
|
4325
4255
|
var validate3 = (frame) => {
|
|
4326
4256
|
NoReactInternals3.validateFrame({
|
|
@@ -4331,17 +4261,17 @@ var validate3 = (frame) => {
|
|
|
4331
4261
|
};
|
|
4332
4262
|
var stillFrameOption = {
|
|
4333
4263
|
name: "Frame",
|
|
4334
|
-
cliFlag:
|
|
4335
|
-
description: () => /* @__PURE__ */
|
|
4264
|
+
cliFlag: cliFlag78,
|
|
4265
|
+
description: () => /* @__PURE__ */ jsxs51(Fragment74, {
|
|
4336
4266
|
children: [
|
|
4337
4267
|
"Which frame should be rendered when rendering a still. Default",
|
|
4338
4268
|
" ",
|
|
4339
|
-
/* @__PURE__ */
|
|
4269
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4340
4270
|
children: "0"
|
|
4341
4271
|
}),
|
|
4342
4272
|
". From v3.2.27, negative values are allowed, with",
|
|
4343
4273
|
" ",
|
|
4344
|
-
/* @__PURE__ */
|
|
4274
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4345
4275
|
children: "-1"
|
|
4346
4276
|
}),
|
|
4347
4277
|
" being the last frame."
|
|
@@ -4350,8 +4280,8 @@ var stillFrameOption = {
|
|
|
4350
4280
|
ssrName: "frame",
|
|
4351
4281
|
docLink: "https://www.remotion.dev/docs/cli/still#--frame",
|
|
4352
4282
|
getValue: ({ commandLine }) => {
|
|
4353
|
-
if (commandLine[
|
|
4354
|
-
const frame = Number(commandLine[
|
|
4283
|
+
if (commandLine[cliFlag78] !== undefined) {
|
|
4284
|
+
const frame = Number(commandLine[cliFlag78]);
|
|
4355
4285
|
validate3(frame);
|
|
4356
4286
|
return {
|
|
4357
4287
|
source: "cli",
|
|
@@ -4376,24 +4306,24 @@ var stillFrameOption = {
|
|
|
4376
4306
|
currentFrame = value3;
|
|
4377
4307
|
},
|
|
4378
4308
|
type: 0,
|
|
4379
|
-
id:
|
|
4309
|
+
id: cliFlag78
|
|
4380
4310
|
};
|
|
4381
4311
|
|
|
4382
4312
|
// src/options/still-image-format.tsx
|
|
4383
|
-
import { jsx as
|
|
4313
|
+
import { jsx as jsx75, jsxs as jsxs52, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4384
4314
|
var currentStillImageFormat = null;
|
|
4385
|
-
var
|
|
4315
|
+
var cliFlag79 = "image-format";
|
|
4386
4316
|
var stillImageFormatOption = {
|
|
4387
4317
|
name: "Still Image Format",
|
|
4388
|
-
cliFlag:
|
|
4389
|
-
description: () => /* @__PURE__ */
|
|
4318
|
+
cliFlag: cliFlag79,
|
|
4319
|
+
description: () => /* @__PURE__ */ jsxs52(Fragment75, {
|
|
4390
4320
|
children: [
|
|
4391
4321
|
"The image format to use when rendering a still. Must be one of",
|
|
4392
4322
|
" ",
|
|
4393
4323
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
4394
4324
|
". Default:",
|
|
4395
4325
|
" ",
|
|
4396
|
-
/* @__PURE__ */
|
|
4326
|
+
/* @__PURE__ */ jsx75("code", {
|
|
4397
4327
|
children: '"png"'
|
|
4398
4328
|
}),
|
|
4399
4329
|
"."
|
|
@@ -4403,8 +4333,8 @@ var stillImageFormatOption = {
|
|
|
4403
4333
|
docLink: "https://www.remotion.dev/docs/renderer/render-still#imageformat",
|
|
4404
4334
|
type: null,
|
|
4405
4335
|
getValue: ({ commandLine }) => {
|
|
4406
|
-
if (commandLine[
|
|
4407
|
-
const value3 = commandLine[
|
|
4336
|
+
if (commandLine[cliFlag79] !== undefined) {
|
|
4337
|
+
const value3 = commandLine[cliFlag79];
|
|
4408
4338
|
if (!validStillImageFormats.includes(value3)) {
|
|
4409
4339
|
throw new Error(`Invalid still image format: ${value3}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
4410
4340
|
}
|
|
@@ -4442,16 +4372,16 @@ var stillImageFormatOption = {
|
|
|
4442
4372
|
|
|
4443
4373
|
// src/options/throw-if-site-exists.tsx
|
|
4444
4374
|
var DEFAULT5 = false;
|
|
4445
|
-
var
|
|
4375
|
+
var cliFlag80 = "throw-if-site-exists";
|
|
4446
4376
|
var throwIfSiteExistsOption = {
|
|
4447
|
-
cliFlag:
|
|
4377
|
+
cliFlag: cliFlag80,
|
|
4448
4378
|
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.`,
|
|
4449
4379
|
docLink: "https://remotion.dev/docs/lambda/deploy-site",
|
|
4450
4380
|
getValue: ({ commandLine }) => {
|
|
4451
|
-
if (commandLine[
|
|
4381
|
+
if (commandLine[cliFlag80]) {
|
|
4452
4382
|
return {
|
|
4453
4383
|
source: "cli",
|
|
4454
|
-
value: commandLine[
|
|
4384
|
+
value: commandLine[cliFlag80]
|
|
4455
4385
|
};
|
|
4456
4386
|
}
|
|
4457
4387
|
return {
|
|
@@ -4465,41 +4395,41 @@ var throwIfSiteExistsOption = {
|
|
|
4465
4395
|
},
|
|
4466
4396
|
ssrName: "throwIfSiteExists",
|
|
4467
4397
|
type: false,
|
|
4468
|
-
id:
|
|
4398
|
+
id: cliFlag80
|
|
4469
4399
|
};
|
|
4470
4400
|
|
|
4471
4401
|
// src/options/timeout.tsx
|
|
4472
|
-
import { jsx as
|
|
4402
|
+
import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4473
4403
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
4474
4404
|
var validate4 = (value3) => {
|
|
4475
4405
|
if (typeof value3 !== "number") {
|
|
4476
4406
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value3));
|
|
4477
4407
|
}
|
|
4478
4408
|
};
|
|
4479
|
-
var
|
|
4409
|
+
var cliFlag81 = "timeout";
|
|
4480
4410
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
4481
4411
|
name: "delayRender() timeout",
|
|
4482
|
-
cliFlag:
|
|
4483
|
-
description: () => /* @__PURE__ */
|
|
4412
|
+
cliFlag: cliFlag81,
|
|
4413
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment76, {
|
|
4484
4414
|
children: [
|
|
4485
4415
|
"A number describing how long the render may take to resolve all",
|
|
4486
4416
|
" ",
|
|
4487
|
-
/* @__PURE__ */
|
|
4417
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4488
4418
|
href: "https://remotion.dev/docs/delay-render",
|
|
4489
|
-
children: /* @__PURE__ */
|
|
4419
|
+
children: /* @__PURE__ */ jsx76("code", {
|
|
4490
4420
|
children: "delayRender()"
|
|
4491
4421
|
})
|
|
4492
4422
|
}),
|
|
4493
4423
|
" ",
|
|
4494
4424
|
"calls",
|
|
4495
4425
|
" ",
|
|
4496
|
-
/* @__PURE__ */
|
|
4426
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4497
4427
|
style: { fontSize: "inherit" },
|
|
4498
4428
|
href: "https://remotion.dev/docs/timeout",
|
|
4499
4429
|
children: "before it times out"
|
|
4500
4430
|
}),
|
|
4501
4431
|
". Default: ",
|
|
4502
|
-
/* @__PURE__ */
|
|
4432
|
+
/* @__PURE__ */ jsx76("code", {
|
|
4503
4433
|
children: "30000"
|
|
4504
4434
|
})
|
|
4505
4435
|
]
|
|
@@ -4508,10 +4438,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4508
4438
|
docLink: "https://www.remotion.dev/docs/timeout",
|
|
4509
4439
|
type: 0,
|
|
4510
4440
|
getValue: ({ commandLine }) => {
|
|
4511
|
-
if (commandLine[
|
|
4441
|
+
if (commandLine[cliFlag81] !== undefined) {
|
|
4512
4442
|
return {
|
|
4513
4443
|
source: "cli",
|
|
4514
|
-
value: commandLine[
|
|
4444
|
+
value: commandLine[cliFlag81]
|
|
4515
4445
|
};
|
|
4516
4446
|
}
|
|
4517
4447
|
if (currentTimeout !== null) {
|
|
@@ -4530,27 +4460,27 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
4530
4460
|
validate4(value3);
|
|
4531
4461
|
currentTimeout = value3;
|
|
4532
4462
|
},
|
|
4533
|
-
id:
|
|
4463
|
+
id: cliFlag81
|
|
4534
4464
|
};
|
|
4535
4465
|
|
|
4536
4466
|
// src/options/user-agent.tsx
|
|
4537
|
-
import { jsx as
|
|
4467
|
+
import { jsx as jsx77, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4538
4468
|
var userAgent = null;
|
|
4539
|
-
var
|
|
4469
|
+
var cliFlag82 = "user-agent";
|
|
4540
4470
|
var userAgentOption = {
|
|
4541
4471
|
name: "User agent",
|
|
4542
|
-
cliFlag:
|
|
4543
|
-
description: () => /* @__PURE__ */
|
|
4472
|
+
cliFlag: cliFlag82,
|
|
4473
|
+
description: () => /* @__PURE__ */ jsx77(Fragment77, {
|
|
4544
4474
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
4545
4475
|
}),
|
|
4546
4476
|
ssrName: "userAgent",
|
|
4547
4477
|
docLink: "https://www.remotion.dev/docs/chromium-flags#--user-agent",
|
|
4548
4478
|
type: null,
|
|
4549
4479
|
getValue: ({ commandLine }) => {
|
|
4550
|
-
if (commandLine[
|
|
4480
|
+
if (commandLine[cliFlag82] !== undefined) {
|
|
4551
4481
|
return {
|
|
4552
4482
|
source: "cli",
|
|
4553
|
-
value: commandLine[
|
|
4483
|
+
value: commandLine[cliFlag82]
|
|
4554
4484
|
};
|
|
4555
4485
|
}
|
|
4556
4486
|
if (userAgent !== null) {
|
|
@@ -4567,25 +4497,25 @@ var userAgentOption = {
|
|
|
4567
4497
|
setConfig: (value3) => {
|
|
4568
4498
|
userAgent = value3;
|
|
4569
4499
|
},
|
|
4570
|
-
id:
|
|
4500
|
+
id: cliFlag82
|
|
4571
4501
|
};
|
|
4572
4502
|
|
|
4573
4503
|
// src/options/version-flag.tsx
|
|
4574
|
-
import { jsx as
|
|
4575
|
-
var
|
|
4504
|
+
import { jsx as jsx78, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4505
|
+
var cliFlag83 = "version";
|
|
4576
4506
|
var versionFlagOption = {
|
|
4577
4507
|
name: "Version",
|
|
4578
|
-
cliFlag:
|
|
4579
|
-
description: () => /* @__PURE__ */
|
|
4508
|
+
cliFlag: cliFlag83,
|
|
4509
|
+
description: () => /* @__PURE__ */ jsx78(Fragment78, {
|
|
4580
4510
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
4581
4511
|
}),
|
|
4582
4512
|
ssrName: null,
|
|
4583
4513
|
docLink: "https://www.remotion.dev/docs/cli/upgrade#--version",
|
|
4584
4514
|
getValue: ({ commandLine }) => {
|
|
4585
|
-
if (commandLine[
|
|
4515
|
+
if (commandLine[cliFlag83] !== undefined) {
|
|
4586
4516
|
return {
|
|
4587
4517
|
source: "cli",
|
|
4588
|
-
value: String(commandLine[
|
|
4518
|
+
value: String(commandLine[cliFlag83])
|
|
4589
4519
|
};
|
|
4590
4520
|
}
|
|
4591
4521
|
return {
|
|
@@ -4597,30 +4527,30 @@ var versionFlagOption = {
|
|
|
4597
4527
|
throw new Error("Cannot set version via config file");
|
|
4598
4528
|
},
|
|
4599
4529
|
type: "",
|
|
4600
|
-
id:
|
|
4530
|
+
id: cliFlag83
|
|
4601
4531
|
};
|
|
4602
4532
|
|
|
4603
4533
|
// src/options/video-bitrate.tsx
|
|
4604
|
-
import { jsx as
|
|
4534
|
+
import { jsx as jsx79, jsxs as jsxs54, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4605
4535
|
var videoBitrate = null;
|
|
4606
|
-
var
|
|
4536
|
+
var cliFlag84 = "video-bitrate";
|
|
4607
4537
|
var videoBitrateOption = {
|
|
4608
4538
|
name: "Video Bitrate",
|
|
4609
|
-
cliFlag:
|
|
4610
|
-
description: () => /* @__PURE__ */
|
|
4539
|
+
cliFlag: cliFlag84,
|
|
4540
|
+
description: () => /* @__PURE__ */ jsxs54(Fragment79, {
|
|
4611
4541
|
children: [
|
|
4612
4542
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
4613
4543
|
"'",
|
|
4614
4544
|
"s",
|
|
4615
|
-
/* @__PURE__ */
|
|
4545
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4616
4546
|
children: "-b:v"
|
|
4617
4547
|
}),
|
|
4618
4548
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
4619
|
-
/* @__PURE__ */
|
|
4549
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4620
4550
|
children: "512K"
|
|
4621
4551
|
}),
|
|
4622
4552
|
" for 512 kbps, ",
|
|
4623
|
-
/* @__PURE__ */
|
|
4553
|
+
/* @__PURE__ */ jsx79("code", {
|
|
4624
4554
|
children: "1M"
|
|
4625
4555
|
}),
|
|
4626
4556
|
" for 1 Mbps."
|
|
@@ -4630,10 +4560,10 @@ var videoBitrateOption = {
|
|
|
4630
4560
|
docLink: "https://www.remotion.dev/docs/renderer/render-media#videobitrate",
|
|
4631
4561
|
type: "",
|
|
4632
4562
|
getValue: ({ commandLine }) => {
|
|
4633
|
-
if (commandLine[
|
|
4563
|
+
if (commandLine[cliFlag84] !== undefined) {
|
|
4634
4564
|
return {
|
|
4635
4565
|
source: "cli",
|
|
4636
|
-
value: commandLine[
|
|
4566
|
+
value: commandLine[cliFlag84]
|
|
4637
4567
|
};
|
|
4638
4568
|
}
|
|
4639
4569
|
if (videoBitrate !== null) {
|
|
@@ -4650,33 +4580,33 @@ var videoBitrateOption = {
|
|
|
4650
4580
|
setConfig: (bitrate) => {
|
|
4651
4581
|
videoBitrate = bitrate;
|
|
4652
4582
|
},
|
|
4653
|
-
id:
|
|
4583
|
+
id: cliFlag84
|
|
4654
4584
|
};
|
|
4655
4585
|
|
|
4656
4586
|
// src/options/video-cache-size.tsx
|
|
4657
|
-
import { jsx as
|
|
4587
|
+
import { jsx as jsx80, jsxs as jsxs55, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4658
4588
|
var mediaCacheSizeInBytes = null;
|
|
4659
|
-
var
|
|
4589
|
+
var cliFlag85 = "media-cache-size-in-bytes";
|
|
4660
4590
|
var mediaCacheSizeInBytesOption = {
|
|
4661
4591
|
name: "@remotion/media cache size",
|
|
4662
|
-
cliFlag:
|
|
4663
|
-
description: () => /* @__PURE__ */
|
|
4592
|
+
cliFlag: cliFlag85,
|
|
4593
|
+
description: () => /* @__PURE__ */ jsxs55(Fragment80, {
|
|
4664
4594
|
children: [
|
|
4665
4595
|
"Specify the maximum size of the cache that ",
|
|
4666
|
-
/* @__PURE__ */
|
|
4596
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4667
4597
|
children: "<Video>"
|
|
4668
4598
|
}),
|
|
4669
4599
|
" and",
|
|
4670
4600
|
" ",
|
|
4671
|
-
/* @__PURE__ */
|
|
4601
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4672
4602
|
children: "<Audio>"
|
|
4673
4603
|
}),
|
|
4674
4604
|
" from ",
|
|
4675
|
-
/* @__PURE__ */
|
|
4605
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4676
4606
|
children: "@remotion/media"
|
|
4677
4607
|
}),
|
|
4678
4608
|
" may use combined, in bytes. ",
|
|
4679
|
-
/* @__PURE__ */
|
|
4609
|
+
/* @__PURE__ */ jsx80("br", {}),
|
|
4680
4610
|
"The default is half of the available system memory when the render starts."
|
|
4681
4611
|
]
|
|
4682
4612
|
}),
|
|
@@ -4684,10 +4614,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4684
4614
|
docLink: "https://www.remotion.dev/docs/media/video#setting-the-cache-size",
|
|
4685
4615
|
type: 0,
|
|
4686
4616
|
getValue: ({ commandLine }) => {
|
|
4687
|
-
if (commandLine[
|
|
4617
|
+
if (commandLine[cliFlag85] !== undefined) {
|
|
4688
4618
|
return {
|
|
4689
4619
|
source: "cli",
|
|
4690
|
-
value: commandLine[
|
|
4620
|
+
value: commandLine[cliFlag85]
|
|
4691
4621
|
};
|
|
4692
4622
|
}
|
|
4693
4623
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -4704,7 +4634,7 @@ var mediaCacheSizeInBytesOption = {
|
|
|
4704
4634
|
setConfig: (size) => {
|
|
4705
4635
|
mediaCacheSizeInBytes = size ?? null;
|
|
4706
4636
|
},
|
|
4707
|
-
id:
|
|
4637
|
+
id: cliFlag85
|
|
4708
4638
|
};
|
|
4709
4639
|
|
|
4710
4640
|
// src/path-normalize.ts
|
|
@@ -4823,7 +4753,7 @@ var getExtensionOfFilename = (filename) => {
|
|
|
4823
4753
|
};
|
|
4824
4754
|
|
|
4825
4755
|
// src/options/video-codec.tsx
|
|
4826
|
-
import { jsx as
|
|
4756
|
+
import { jsx as jsx81, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
4827
4757
|
var codec;
|
|
4828
4758
|
var setCodec = (newCodec) => {
|
|
4829
4759
|
if (newCodec === undefined) {
|
|
@@ -4847,11 +4777,11 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
4847
4777
|
possible: makeFileExtensionMap()[extension] ?? []
|
|
4848
4778
|
};
|
|
4849
4779
|
};
|
|
4850
|
-
var
|
|
4780
|
+
var cliFlag86 = "codec";
|
|
4851
4781
|
var videoCodecOption = {
|
|
4852
4782
|
name: "Codec",
|
|
4853
|
-
cliFlag:
|
|
4854
|
-
description: () => /* @__PURE__ */
|
|
4783
|
+
cliFlag: cliFlag86,
|
|
4784
|
+
description: () => /* @__PURE__ */ jsx81(Fragment81, {
|
|
4855
4785
|
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."
|
|
4856
4786
|
}),
|
|
4857
4787
|
ssrName: "codec",
|
|
@@ -4874,7 +4804,7 @@ var videoCodecOption = {
|
|
|
4874
4804
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
4875
4805
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
4876
4806
|
}
|
|
4877
|
-
const cliArgument = commandLine[
|
|
4807
|
+
const cliArgument = commandLine[cliFlag86];
|
|
4878
4808
|
if (cliArgument) {
|
|
4879
4809
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
4880
4810
|
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.`);
|
|
@@ -4920,24 +4850,24 @@ var videoCodecOption = {
|
|
|
4920
4850
|
return { value: DEFAULT_CODEC, source: "default" };
|
|
4921
4851
|
},
|
|
4922
4852
|
setConfig: setCodec,
|
|
4923
|
-
id:
|
|
4853
|
+
id: cliFlag86
|
|
4924
4854
|
};
|
|
4925
4855
|
|
|
4926
4856
|
// src/options/video-image-format.tsx
|
|
4927
|
-
import { jsx as
|
|
4857
|
+
import { jsx as jsx82, jsxs as jsxs56, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
4928
4858
|
var currentVideoImageFormat = null;
|
|
4929
|
-
var
|
|
4859
|
+
var cliFlag87 = "image-format";
|
|
4930
4860
|
var videoImageFormatOption = {
|
|
4931
4861
|
name: "Video Image Format",
|
|
4932
|
-
cliFlag:
|
|
4933
|
-
description: () => /* @__PURE__ */
|
|
4862
|
+
cliFlag: cliFlag87,
|
|
4863
|
+
description: () => /* @__PURE__ */ jsxs56(Fragment82, {
|
|
4934
4864
|
children: [
|
|
4935
4865
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
4936
4866
|
" ",
|
|
4937
4867
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
4938
4868
|
". Default:",
|
|
4939
4869
|
" ",
|
|
4940
|
-
/* @__PURE__ */
|
|
4870
|
+
/* @__PURE__ */ jsx82("code", {
|
|
4941
4871
|
children: '"jpeg"'
|
|
4942
4872
|
}),
|
|
4943
4873
|
". JPEG is faster, but does not support transparency."
|
|
@@ -4953,8 +4883,8 @@ var videoImageFormatOption = {
|
|
|
4953
4883
|
value: options.uiVideoImageFormat
|
|
4954
4884
|
};
|
|
4955
4885
|
}
|
|
4956
|
-
if (commandLine[
|
|
4957
|
-
const value3 = commandLine[
|
|
4886
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
4887
|
+
const value3 = commandLine[cliFlag87];
|
|
4958
4888
|
if (!validVideoImageFormats.includes(value3)) {
|
|
4959
4889
|
throw new Error(`Invalid video image format: ${value3}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
4960
4890
|
}
|
|
@@ -5018,12 +4948,12 @@ var videoImageFormatOption = {
|
|
|
5018
4948
|
};
|
|
5019
4949
|
|
|
5020
4950
|
// src/options/webhook-custom-data.tsx
|
|
5021
|
-
import { jsxs as
|
|
5022
|
-
var
|
|
4951
|
+
import { jsxs as jsxs57, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
4952
|
+
var cliFlag88 = "webhook-custom-data";
|
|
5023
4953
|
var webhookCustomDataOption = {
|
|
5024
4954
|
name: "Webhook custom data",
|
|
5025
|
-
cliFlag:
|
|
5026
|
-
description: (type) => /* @__PURE__ */
|
|
4955
|
+
cliFlag: cliFlag88,
|
|
4956
|
+
description: (type) => /* @__PURE__ */ jsxs57(Fragment83, {
|
|
5027
4957
|
children: [
|
|
5028
4958
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
5029
4959
|
" ",
|
|
@@ -5039,24 +4969,24 @@ var webhookCustomDataOption = {
|
|
|
5039
4969
|
setConfig: () => {
|
|
5040
4970
|
throw new Error("Not implemented");
|
|
5041
4971
|
},
|
|
5042
|
-
id:
|
|
4972
|
+
id: cliFlag88
|
|
5043
4973
|
};
|
|
5044
4974
|
|
|
5045
4975
|
// src/options/webpack-poll.tsx
|
|
5046
|
-
import { jsx as
|
|
5047
|
-
var
|
|
4976
|
+
import { jsx as jsx83, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
4977
|
+
var cliFlag89 = "webpack-poll";
|
|
5048
4978
|
var webpackPolling = null;
|
|
5049
4979
|
var webpackPollOption = {
|
|
5050
4980
|
name: "Webpack Polling",
|
|
5051
|
-
cliFlag:
|
|
5052
|
-
description: () => /* @__PURE__ */
|
|
4981
|
+
cliFlag: cliFlag89,
|
|
4982
|
+
description: () => /* @__PURE__ */ jsx83(Fragment84, {
|
|
5053
4983
|
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."
|
|
5054
4984
|
}),
|
|
5055
4985
|
ssrName: null,
|
|
5056
4986
|
docLink: "https://www.remotion.dev/docs/config#setwebpackpollinginmilliseconds",
|
|
5057
4987
|
getValue: ({ commandLine }) => {
|
|
5058
|
-
if (commandLine[
|
|
5059
|
-
const val = commandLine[
|
|
4988
|
+
if (commandLine[cliFlag89] !== undefined) {
|
|
4989
|
+
const val = commandLine[cliFlag89];
|
|
5060
4990
|
if (typeof val !== "number") {
|
|
5061
4991
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
5062
4992
|
}
|
|
@@ -5083,11 +5013,11 @@ var webpackPollOption = {
|
|
|
5083
5013
|
webpackPolling = value3;
|
|
5084
5014
|
},
|
|
5085
5015
|
type: 0,
|
|
5086
|
-
id:
|
|
5016
|
+
id: cliFlag89
|
|
5087
5017
|
};
|
|
5088
5018
|
|
|
5089
5019
|
// src/options/x264-preset.tsx
|
|
5090
|
-
import { jsx as
|
|
5020
|
+
import { jsx as jsx84, jsxs as jsxs58, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
5091
5021
|
var x264PresetOptions = [
|
|
5092
5022
|
"ultrafast",
|
|
5093
5023
|
"superfast",
|
|
@@ -5101,63 +5031,63 @@ var x264PresetOptions = [
|
|
|
5101
5031
|
"placebo"
|
|
5102
5032
|
];
|
|
5103
5033
|
var preset = null;
|
|
5104
|
-
var
|
|
5034
|
+
var cliFlag90 = "x264-preset";
|
|
5105
5035
|
var DEFAULT_PRESET = "medium";
|
|
5106
5036
|
var x264Option = {
|
|
5107
5037
|
name: "x264 Preset",
|
|
5108
|
-
cliFlag:
|
|
5109
|
-
description: () => /* @__PURE__ */
|
|
5038
|
+
cliFlag: cliFlag90,
|
|
5039
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment85, {
|
|
5110
5040
|
children: [
|
|
5111
5041
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
5112
5042
|
" ",
|
|
5113
|
-
/* @__PURE__ */
|
|
5043
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5114
5044
|
children: "h264"
|
|
5115
5045
|
}),
|
|
5116
5046
|
" codec.",
|
|
5117
|
-
/* @__PURE__ */
|
|
5047
|
+
/* @__PURE__ */ jsx84("br", {}),
|
|
5118
5048
|
"Possible values: ",
|
|
5119
|
-
/* @__PURE__ */
|
|
5049
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5120
5050
|
children: "superfast"
|
|
5121
5051
|
}),
|
|
5122
5052
|
", ",
|
|
5123
|
-
/* @__PURE__ */
|
|
5053
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5124
5054
|
children: "veryfast"
|
|
5125
5055
|
}),
|
|
5126
5056
|
",",
|
|
5127
5057
|
" ",
|
|
5128
|
-
/* @__PURE__ */
|
|
5058
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5129
5059
|
children: "faster"
|
|
5130
5060
|
}),
|
|
5131
5061
|
", ",
|
|
5132
|
-
/* @__PURE__ */
|
|
5062
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5133
5063
|
children: "fast"
|
|
5134
5064
|
}),
|
|
5135
5065
|
", ",
|
|
5136
|
-
/* @__PURE__ */
|
|
5066
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5137
5067
|
children: "medium"
|
|
5138
5068
|
}),
|
|
5139
5069
|
",",
|
|
5140
5070
|
" ",
|
|
5141
|
-
/* @__PURE__ */
|
|
5071
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5142
5072
|
children: "slow"
|
|
5143
5073
|
}),
|
|
5144
5074
|
", ",
|
|
5145
|
-
/* @__PURE__ */
|
|
5075
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5146
5076
|
children: "slower"
|
|
5147
5077
|
}),
|
|
5148
5078
|
", ",
|
|
5149
|
-
/* @__PURE__ */
|
|
5079
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5150
5080
|
children: "veryslow"
|
|
5151
5081
|
}),
|
|
5152
5082
|
",",
|
|
5153
5083
|
" ",
|
|
5154
|
-
/* @__PURE__ */
|
|
5084
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5155
5085
|
children: "placebo"
|
|
5156
5086
|
}),
|
|
5157
5087
|
".",
|
|
5158
|
-
/* @__PURE__ */
|
|
5088
|
+
/* @__PURE__ */ jsx84("br", {}),
|
|
5159
5089
|
"Default: ",
|
|
5160
|
-
/* @__PURE__ */
|
|
5090
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5161
5091
|
children: DEFAULT_PRESET
|
|
5162
5092
|
})
|
|
5163
5093
|
]
|
|
@@ -5166,7 +5096,7 @@ var x264Option = {
|
|
|
5166
5096
|
docLink: "https://www.remotion.dev/docs/renderer/render-media",
|
|
5167
5097
|
type: "fast",
|
|
5168
5098
|
getValue: ({ commandLine }) => {
|
|
5169
|
-
const value3 = commandLine[
|
|
5099
|
+
const value3 = commandLine[cliFlag90];
|
|
5170
5100
|
if (typeof value3 !== "undefined") {
|
|
5171
5101
|
return { value: value3, source: "cli" };
|
|
5172
5102
|
}
|
|
@@ -5178,12 +5108,11 @@ var x264Option = {
|
|
|
5178
5108
|
setConfig: (profile) => {
|
|
5179
5109
|
preset = profile;
|
|
5180
5110
|
},
|
|
5181
|
-
id:
|
|
5111
|
+
id: cliFlag90
|
|
5182
5112
|
};
|
|
5183
5113
|
|
|
5184
5114
|
// src/options/index.tsx
|
|
5185
5115
|
var allOptions = {
|
|
5186
|
-
allowHtmlInCanvasOption,
|
|
5187
5116
|
audioCodecOption,
|
|
5188
5117
|
benchmarkConcurrenciesOption,
|
|
5189
5118
|
browserExecutableOption,
|
|
@@ -5248,7 +5177,6 @@ var allOptions = {
|
|
|
5248
5177
|
isProductionOption,
|
|
5249
5178
|
askAIOption,
|
|
5250
5179
|
interactivityOption,
|
|
5251
|
-
experimentalClientSideRenderingOption,
|
|
5252
5180
|
keyboardShortcutsOption,
|
|
5253
5181
|
framesOption,
|
|
5254
5182
|
forceNewStudioOption,
|