@remotion/renderer 4.0.446 → 4.0.448

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