@remotion/renderer 4.0.423 → 4.0.425

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 (159) hide show
  1. package/dist/client.d.ts +448 -13
  2. package/dist/combine-chunks.js +3 -0
  3. package/dist/ensure-browser.d.ts +3 -0
  4. package/dist/esm/client.mjs +1262 -516
  5. package/dist/esm/index.mjs +14 -7
  6. package/dist/esm/pure.mjs +4 -2
  7. package/dist/ffmpeg-args.d.ts +1 -1
  8. package/dist/ffmpeg-args.js +1 -1
  9. package/dist/index.d.ts +45 -0
  10. package/dist/mux-video-and-audio.d.ts +2 -1
  11. package/dist/mux-video-and-audio.js +6 -1
  12. package/dist/options/api-key.d.ts +1 -0
  13. package/dist/options/api-key.js +1 -0
  14. package/dist/options/ask-ai.d.ts +1 -0
  15. package/dist/options/ask-ai.js +1 -0
  16. package/dist/options/audio-bitrate.d.ts +1 -0
  17. package/dist/options/audio-bitrate.js +1 -0
  18. package/dist/options/audio-codec.d.ts +1 -0
  19. package/dist/options/audio-codec.js +1 -0
  20. package/dist/options/beep-on-finish.d.ts +1 -0
  21. package/dist/options/beep-on-finish.js +1 -0
  22. package/dist/options/binaries-directory.d.ts +1 -0
  23. package/dist/options/binaries-directory.js +1 -0
  24. package/dist/options/browser-executable.d.ts +17 -0
  25. package/dist/options/browser-executable.js +36 -0
  26. package/dist/options/chrome-mode.d.ts +1 -0
  27. package/dist/options/chrome-mode.js +1 -0
  28. package/dist/options/color-space.d.ts +5 -4
  29. package/dist/options/color-space.js +4 -2
  30. package/dist/options/concurrency.d.ts +17 -0
  31. package/dist/options/concurrency.js +40 -0
  32. package/dist/options/crf.d.ts +1 -0
  33. package/dist/options/crf.js +1 -0
  34. package/dist/options/cross-site-isolation.d.ts +1 -0
  35. package/dist/options/cross-site-isolation.js +1 -0
  36. package/dist/options/dark-mode.d.ts +1 -0
  37. package/dist/options/dark-mode.js +1 -0
  38. package/dist/options/delete-after.d.ts +1 -0
  39. package/dist/options/delete-after.js +1 -0
  40. package/dist/options/disable-git-source.d.ts +1 -0
  41. package/dist/options/disable-git-source.js +1 -0
  42. package/dist/options/disable-web-security.d.ts +16 -0
  43. package/dist/options/disable-web-security.js +36 -0
  44. package/dist/options/disallow-parallel-encoding.d.ts +1 -0
  45. package/dist/options/disallow-parallel-encoding.js +1 -0
  46. package/dist/options/enable-lambda-insights.d.ts +1 -0
  47. package/dist/options/enable-lambda-insights.js +1 -0
  48. package/dist/options/enable-multiprocess-on-linux.d.ts +1 -0
  49. package/dist/options/enable-multiprocess-on-linux.js +1 -0
  50. package/dist/options/encoding-buffer-size.d.ts +1 -0
  51. package/dist/options/encoding-buffer-size.js +1 -0
  52. package/dist/options/encoding-max-rate.d.ts +1 -0
  53. package/dist/options/encoding-max-rate.js +1 -0
  54. package/dist/options/enforce-audio.d.ts +1 -0
  55. package/dist/options/enforce-audio.js +1 -0
  56. package/dist/options/every-nth-frame.d.ts +16 -0
  57. package/dist/options/every-nth-frame.js +42 -0
  58. package/dist/options/experimental-client-side-rendering.d.ts +1 -0
  59. package/dist/options/experimental-client-side-rendering.js +1 -0
  60. package/dist/options/folder-expiry.d.ts +1 -0
  61. package/dist/options/folder-expiry.js +1 -0
  62. package/dist/options/for-seamless-aac-concatenation.d.ts +1 -0
  63. package/dist/options/for-seamless-aac-concatenation.js +1 -0
  64. package/dist/options/force-new-studio.d.ts +1 -0
  65. package/dist/options/force-new-studio.js +1 -0
  66. package/dist/options/gl.d.ts +1 -0
  67. package/dist/options/gl.js +1 -0
  68. package/dist/options/hardware-acceleration.d.ts +1 -0
  69. package/dist/options/hardware-acceleration.js +1 -0
  70. package/dist/options/headless.d.ts +1 -0
  71. package/dist/options/headless.js +1 -0
  72. package/dist/options/ignore-certificate-errors.d.ts +16 -0
  73. package/dist/options/ignore-certificate-errors.js +36 -0
  74. package/dist/options/image-format-option.d.ts +18 -0
  75. package/dist/options/image-format-option.js +33 -0
  76. package/dist/options/image-sequence-pattern.d.ts +1 -0
  77. package/dist/options/image-sequence-pattern.js +1 -0
  78. package/dist/options/index.d.ts +307 -3
  79. package/dist/options/index.js +28 -0
  80. package/dist/options/ipv4.d.ts +1 -0
  81. package/dist/options/ipv4.js +1 -0
  82. package/dist/options/is-production.d.ts +1 -0
  83. package/dist/options/is-production.js +1 -0
  84. package/dist/options/jpeg-quality.d.ts +1 -0
  85. package/dist/options/jpeg-quality.js +1 -0
  86. package/dist/options/keyboard-shortcuts.d.ts +1 -0
  87. package/dist/options/keyboard-shortcuts.js +1 -0
  88. package/dist/options/latency-hint.d.ts +1 -0
  89. package/dist/options/latency-hint.js +1 -0
  90. package/dist/options/license-key.d.ts +1 -0
  91. package/dist/options/license-key.js +1 -0
  92. package/dist/options/log-level.d.ts +1 -0
  93. package/dist/options/log-level.js +1 -0
  94. package/dist/options/metadata.d.ts +1 -0
  95. package/dist/options/metadata.js +1 -0
  96. package/dist/options/mute.d.ts +1 -0
  97. package/dist/options/mute.js +1 -0
  98. package/dist/options/number-of-gif-loops.d.ts +1 -0
  99. package/dist/options/number-of-gif-loops.js +1 -0
  100. package/dist/options/number-of-shared-audio-tags.d.ts +1 -0
  101. package/dist/options/number-of-shared-audio-tags.js +1 -0
  102. package/dist/options/offthreadvideo-cache-size.d.ts +1 -0
  103. package/dist/options/offthreadvideo-cache-size.js +1 -0
  104. package/dist/options/offthreadvideo-threads.d.ts +1 -0
  105. package/dist/options/offthreadvideo-threads.js +1 -0
  106. package/dist/options/on-browser-download.d.ts +1 -0
  107. package/dist/options/on-browser-download.js +1 -0
  108. package/dist/options/option.d.ts +1 -0
  109. package/dist/options/options-map.d.ts +139 -9
  110. package/dist/options/override-duration.d.ts +19 -0
  111. package/dist/options/override-duration.js +46 -0
  112. package/dist/options/override-fps.d.ts +19 -0
  113. package/dist/options/override-fps.js +40 -0
  114. package/dist/options/override-height.d.ts +19 -0
  115. package/dist/options/override-height.js +40 -0
  116. package/dist/options/override-width.d.ts +19 -0
  117. package/dist/options/override-width.js +40 -0
  118. package/dist/options/overwrite.d.ts +1 -0
  119. package/dist/options/overwrite.js +1 -0
  120. package/dist/options/pixel-format.d.ts +16 -0
  121. package/dist/options/pixel-format.js +41 -0
  122. package/dist/options/prefer-lossless.d.ts +1 -0
  123. package/dist/options/prefer-lossless.js +1 -0
  124. package/dist/options/prores-profile.d.ts +20 -0
  125. package/dist/options/prores-profile.js +48 -0
  126. package/dist/options/public-dir.d.ts +1 -0
  127. package/dist/options/public-dir.js +1 -0
  128. package/dist/options/public-license-key.d.ts +1 -0
  129. package/dist/options/public-license-key.js +1 -0
  130. package/dist/options/public-path.d.ts +1 -0
  131. package/dist/options/public-path.js +1 -0
  132. package/dist/options/repro.d.ts +1 -0
  133. package/dist/options/repro.js +1 -0
  134. package/dist/options/scale.d.ts +1 -0
  135. package/dist/options/scale.js +1 -0
  136. package/dist/options/separate-audio.d.ts +1 -0
  137. package/dist/options/separate-audio.js +1 -0
  138. package/dist/options/still-image-format.d.ts +19 -0
  139. package/dist/options/still-image-format.js +55 -0
  140. package/dist/options/throw-if-site-exists.d.ts +1 -0
  141. package/dist/options/throw-if-site-exists.js +1 -0
  142. package/dist/options/timeout.d.ts +1 -0
  143. package/dist/options/timeout.js +1 -0
  144. package/dist/options/user-agent.d.ts +19 -0
  145. package/dist/options/user-agent.js +36 -0
  146. package/dist/options/video-bitrate.d.ts +1 -0
  147. package/dist/options/video-bitrate.js +1 -0
  148. package/dist/options/video-cache-size.d.ts +1 -0
  149. package/dist/options/video-cache-size.js +1 -0
  150. package/dist/options/video-codec.d.ts +1 -0
  151. package/dist/options/video-codec.js +1 -0
  152. package/dist/options/video-image-format.d.ts +19 -0
  153. package/dist/options/video-image-format.js +55 -0
  154. package/dist/options/webhook-custom-data.d.ts +1 -0
  155. package/dist/options/webhook-custom-data.js +1 -0
  156. package/dist/options/x264-preset.d.ts +1 -0
  157. package/dist/options/x264-preset.js +1 -0
  158. package/dist/validate-number-of-gif-loops.js +1 -1
  159. package/package.json +15 -15
@@ -0,0 +1,19 @@
1
+ export declare const overrideDurationOption: {
2
+ name: string;
3
+ cliFlag: "duration";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: number | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: number;
13
+ } | {
14
+ source: string;
15
+ value: null;
16
+ };
17
+ setConfig: (duration: number | null) => void;
18
+ id: "duration";
19
+ };
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.overrideDurationOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const validate_1 = require("../validate");
6
+ let currentDuration = null;
7
+ const cliFlag = 'duration';
8
+ exports.overrideDurationOption = {
9
+ name: 'Override Duration',
10
+ cliFlag,
11
+ description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the duration in frames of the composition." }),
12
+ ssrName: null,
13
+ docLink: 'https://www.remotion.dev/docs/config#overrideduration',
14
+ type: null,
15
+ getValue: ({ commandLine }) => {
16
+ if (commandLine[cliFlag] !== undefined) {
17
+ const value = commandLine[cliFlag];
18
+ (0, validate_1.validateDurationInFrames)(value, {
19
+ component: 'in --duration flag',
20
+ allowFloats: false,
21
+ });
22
+ return {
23
+ source: 'cli',
24
+ value,
25
+ };
26
+ }
27
+ if (currentDuration !== null) {
28
+ return {
29
+ source: 'config',
30
+ value: currentDuration,
31
+ };
32
+ }
33
+ return {
34
+ source: 'default',
35
+ value: null,
36
+ };
37
+ },
38
+ setConfig: (duration) => {
39
+ (0, validate_1.validateDurationInFrames)(duration, {
40
+ component: 'in Config.overrideDuration()',
41
+ allowFloats: false,
42
+ });
43
+ currentDuration = duration;
44
+ },
45
+ id: cliFlag,
46
+ };
@@ -0,0 +1,19 @@
1
+ export declare const overrideFpsOption: {
2
+ name: string;
3
+ cliFlag: "fps";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: number | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: number;
13
+ } | {
14
+ source: string;
15
+ value: null;
16
+ };
17
+ setConfig: (fps: number | null) => void;
18
+ id: "fps";
19
+ };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.overrideFpsOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const validate_1 = require("../validate");
6
+ let currentFps = null;
7
+ const cliFlag = 'fps';
8
+ exports.overrideFpsOption = {
9
+ name: 'Override FPS',
10
+ cliFlag,
11
+ description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the frames per second of the composition." }),
12
+ ssrName: null,
13
+ docLink: 'https://www.remotion.dev/docs/config#overridefps',
14
+ type: null,
15
+ getValue: ({ commandLine }) => {
16
+ if (commandLine[cliFlag] !== undefined) {
17
+ const value = commandLine[cliFlag];
18
+ (0, validate_1.validateFps)(value, 'in --fps flag', false);
19
+ return {
20
+ source: 'cli',
21
+ value,
22
+ };
23
+ }
24
+ if (currentFps !== null) {
25
+ return {
26
+ source: 'config',
27
+ value: currentFps,
28
+ };
29
+ }
30
+ return {
31
+ source: 'default',
32
+ value: null,
33
+ };
34
+ },
35
+ setConfig: (fps) => {
36
+ (0, validate_1.validateFps)(fps, 'in Config.overrideFps()', false);
37
+ currentFps = fps;
38
+ },
39
+ id: cliFlag,
40
+ };
@@ -0,0 +1,19 @@
1
+ export declare const overrideHeightOption: {
2
+ name: string;
3
+ cliFlag: "height";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: number | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: number;
13
+ } | {
14
+ source: string;
15
+ value: null;
16
+ };
17
+ setConfig: (height: number | null) => void;
18
+ id: "height";
19
+ };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.overrideHeightOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const validate_1 = require("../validate");
6
+ let currentHeight = null;
7
+ const cliFlag = 'height';
8
+ exports.overrideHeightOption = {
9
+ name: 'Override Height',
10
+ cliFlag,
11
+ description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the height of the composition." }),
12
+ ssrName: null,
13
+ docLink: 'https://www.remotion.dev/docs/config#overrideheight',
14
+ type: null,
15
+ getValue: ({ commandLine }) => {
16
+ if (commandLine[cliFlag] !== undefined) {
17
+ const value = commandLine[cliFlag];
18
+ (0, validate_1.validateDimension)(value, 'height', 'in --height flag');
19
+ return {
20
+ source: 'cli',
21
+ value,
22
+ };
23
+ }
24
+ if (currentHeight !== null) {
25
+ return {
26
+ source: 'config',
27
+ value: currentHeight,
28
+ };
29
+ }
30
+ return {
31
+ source: 'default',
32
+ value: null,
33
+ };
34
+ },
35
+ setConfig: (height) => {
36
+ (0, validate_1.validateDimension)(height, 'height', 'in Config.overrideHeight()');
37
+ currentHeight = height;
38
+ },
39
+ id: cliFlag,
40
+ };
@@ -0,0 +1,19 @@
1
+ export declare const overrideWidthOption: {
2
+ name: string;
3
+ cliFlag: "width";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: number | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: number;
13
+ } | {
14
+ source: string;
15
+ value: null;
16
+ };
17
+ setConfig: (width: number | null) => void;
18
+ id: "width";
19
+ };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.overrideWidthOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const validate_1 = require("../validate");
6
+ let currentWidth = null;
7
+ const cliFlag = 'width';
8
+ exports.overrideWidthOption = {
9
+ name: 'Override Width',
10
+ cliFlag,
11
+ description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Overrides the width of the composition." }),
12
+ ssrName: null,
13
+ docLink: 'https://www.remotion.dev/docs/config#overridewidth',
14
+ type: null,
15
+ getValue: ({ commandLine }) => {
16
+ if (commandLine[cliFlag] !== undefined) {
17
+ const value = commandLine[cliFlag];
18
+ (0, validate_1.validateDimension)(value, 'width', 'in --width flag');
19
+ return {
20
+ source: 'cli',
21
+ value,
22
+ };
23
+ }
24
+ if (currentWidth !== null) {
25
+ return {
26
+ source: 'config',
27
+ value: currentWidth,
28
+ };
29
+ }
30
+ return {
31
+ source: 'default',
32
+ value: null,
33
+ };
34
+ },
35
+ setConfig: (width) => {
36
+ (0, validate_1.validateDimension)(width, 'width', 'in Config.overrideWidth()');
37
+ currentWidth = width;
38
+ },
39
+ id: cliFlag,
40
+ };
@@ -12,4 +12,5 @@ export declare const overwriteOption: {
12
12
  value: boolean;
13
13
  };
14
14
  setConfig: (value: boolean) => void;
15
+ id: "overwrite";
15
16
  };
@@ -43,4 +43,5 @@ exports.overwriteOption = {
43
43
  validate(value);
44
44
  shouldOverwrite = value;
45
45
  },
46
+ id: cliFlag,
46
47
  };
@@ -0,0 +1,16 @@
1
+ export declare const pixelFormatOption: {
2
+ name: string;
3
+ cliFlag: "pixel-format";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "pixelFormat";
6
+ docLink: string;
7
+ type: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
13
+ };
14
+ setConfig: (value: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le") => void;
15
+ id: "pixel-format";
16
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pixelFormatOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const pixel_format_1 = require("../pixel-format");
6
+ let currentPixelFormat = pixel_format_1.DEFAULT_PIXEL_FORMAT;
7
+ const cliFlag = 'pixel-format';
8
+ exports.pixelFormatOption = {
9
+ name: 'Pixel format',
10
+ cliFlag,
11
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Sets the pixel format in FFmpeg. See", ' ', jsx_runtime_1.jsx("a", { href: "https://trac.ffmpeg.org/wiki/Chroma%20Subsampling", children: "the FFmpeg docs for an explanation" }),
12
+ ". Acceptable values: ", pixel_format_1.validPixelFormats.map((f) => `"${f}"`).join(', '), "."] })),
13
+ ssrName: 'pixelFormat',
14
+ docLink: 'https://www.remotion.dev/docs/config#setpixelformat',
15
+ type: pixel_format_1.DEFAULT_PIXEL_FORMAT,
16
+ getValue: ({ commandLine }) => {
17
+ if (commandLine[cliFlag] !== undefined) {
18
+ return {
19
+ source: 'cli',
20
+ value: commandLine[cliFlag],
21
+ };
22
+ }
23
+ if (currentPixelFormat !== pixel_format_1.DEFAULT_PIXEL_FORMAT) {
24
+ return {
25
+ source: 'config',
26
+ value: currentPixelFormat,
27
+ };
28
+ }
29
+ return {
30
+ source: 'default',
31
+ value: pixel_format_1.DEFAULT_PIXEL_FORMAT,
32
+ };
33
+ },
34
+ setConfig: (value) => {
35
+ if (!pixel_format_1.validPixelFormats.includes(value)) {
36
+ throw new TypeError(`Value ${value} is not valid as a pixel format.`);
37
+ }
38
+ currentPixelFormat = value;
39
+ },
40
+ id: cliFlag,
41
+ };
@@ -15,4 +15,5 @@ export declare const preferLosslessAudioOption: {
15
15
  source: string;
16
16
  };
17
17
  setConfig: (val: boolean) => void;
18
+ id: "prefer-lossless";
18
19
  };
@@ -26,4 +26,5 @@ exports.preferLosslessAudioOption = {
26
26
  setConfig: (val) => {
27
27
  input = val;
28
28
  },
29
+ id: cliFlag,
29
30
  };
@@ -0,0 +1,20 @@
1
+ export type ProResProfile = '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy';
2
+ export declare const proResProfileOption: {
3
+ name: string;
4
+ cliFlag: "prores-profile";
5
+ description: () => import("react/jsx-runtime").JSX.Element;
6
+ ssrName: "proResProfile";
7
+ docLink: string;
8
+ type: ProResProfile | undefined;
9
+ getValue: ({ commandLine }: {
10
+ commandLine: Record<string, unknown>;
11
+ }) => {
12
+ source: string;
13
+ value: ProResProfile;
14
+ } | {
15
+ source: string;
16
+ value: undefined;
17
+ };
18
+ setConfig: (value: ProResProfile | undefined) => void;
19
+ id: "prores-profile";
20
+ };
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.proResProfileOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const validProResProfiles = [
6
+ '4444-xq',
7
+ '4444',
8
+ 'hq',
9
+ 'standard',
10
+ 'light',
11
+ 'proxy',
12
+ ];
13
+ let proResProfile;
14
+ const cliFlag = 'prores-profile';
15
+ exports.proResProfileOption = {
16
+ name: 'ProRes profile',
17
+ cliFlag,
18
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Set the ProRes profile. This option is only valid if the codec has been set to ",
19
+ jsx_runtime_1.jsx("code", { children: "prores" }),
20
+ ". Possible values:", ' ', validProResProfiles.map((p) => `"${p}"`).join(', '), ". Default:", ' ', jsx_runtime_1.jsx("code", { children: "\"hq\"" }),
21
+ ". See", ' ', jsx_runtime_1.jsx("a", { href: "https://video.stackexchange.com/a/14715", children: "here" }),
22
+ " for an explanation of possible values."] })),
23
+ ssrName: 'proResProfile',
24
+ docLink: 'https://www.remotion.dev/docs/config#setproresprofile',
25
+ type: undefined,
26
+ getValue: ({ commandLine }) => {
27
+ if (commandLine[cliFlag] !== undefined) {
28
+ return {
29
+ source: 'cli',
30
+ value: String(commandLine[cliFlag]),
31
+ };
32
+ }
33
+ if (proResProfile !== undefined) {
34
+ return {
35
+ source: 'config',
36
+ value: proResProfile,
37
+ };
38
+ }
39
+ return {
40
+ source: 'default',
41
+ value: undefined,
42
+ };
43
+ },
44
+ setConfig: (value) => {
45
+ proResProfile = value;
46
+ },
47
+ id: cliFlag,
48
+ };
@@ -15,4 +15,5 @@ export declare const publicDirOption: {
15
15
  };
16
16
  setConfig: (value: string | null) => void;
17
17
  type: string | null;
18
+ id: "public-dir";
18
19
  };
@@ -35,4 +35,5 @@ exports.publicDirOption = {
35
35
  currentPublicDir = value;
36
36
  },
37
37
  type: '',
38
+ id: cliFlag,
38
39
  };
@@ -12,4 +12,5 @@ export declare const publicLicenseKeyOption: {
12
12
  };
13
13
  setConfig: (value: string | null) => void;
14
14
  type: string | null;
15
+ id: "public-license-key";
15
16
  };
@@ -37,4 +37,5 @@ exports.publicLicenseKeyOption = {
37
37
  currentPublicLicenseKey = value;
38
38
  },
39
39
  type: null,
40
+ id: cliFlag,
40
41
  };
@@ -15,4 +15,5 @@ export declare const publicPathOption: {
15
15
  };
16
16
  setConfig: (value: string | null) => void;
17
17
  type: string | null;
18
+ id: "public-path";
18
19
  };
@@ -40,4 +40,5 @@ exports.publicPathOption = {
40
40
  currentPublicPath = value;
41
41
  },
42
42
  type: '',
43
+ id: cliFlag,
43
44
  };
@@ -12,4 +12,5 @@ export declare const reproOption: {
12
12
  source: string;
13
13
  };
14
14
  setConfig: (should: boolean) => void;
15
+ id: "repro";
15
16
  };
@@ -33,4 +33,5 @@ exports.reproOption = {
33
33
  };
34
34
  },
35
35
  setConfig: setRepro,
36
+ id: cliFlag,
36
37
  };
@@ -12,4 +12,5 @@ export declare const scaleOption: {
12
12
  value: number;
13
13
  };
14
14
  setConfig: (scale: number) => void;
15
+ id: "scale";
15
16
  };
@@ -42,4 +42,5 @@ exports.scaleOption = {
42
42
  setConfig: (scale) => {
43
43
  currentScale = scale;
44
44
  },
45
+ id: cliFlag,
45
46
  };
@@ -15,4 +15,5 @@ export declare const separateAudioOption: {
15
15
  setConfig: () => never;
16
16
  ssrName: string;
17
17
  type: string | null;
18
+ id: string;
18
19
  };
@@ -25,4 +25,5 @@ exports.separateAudioOption = {
25
25
  },
26
26
  ssrName: 'separateAudioTo',
27
27
  type: 'string',
28
+ id: cliFlag,
28
29
  };
@@ -0,0 +1,19 @@
1
+ export declare const stillImageFormatOption: {
2
+ name: string;
3
+ cliFlag: "image-format";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "imageFormat";
6
+ docLink: string;
7
+ type: "jpeg" | "pdf" | "png" | "webp" | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: "jpeg" | "pdf" | "png" | "webp";
13
+ } | {
14
+ source: string;
15
+ value: null;
16
+ };
17
+ setConfig: (value: "jpeg" | "pdf" | "png" | "webp" | null) => void;
18
+ id: string;
19
+ };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stillImageFormatOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const image_format_1 = require("../image-format");
6
+ let currentStillImageFormat = null;
7
+ const cliFlag = 'image-format';
8
+ exports.stillImageFormatOption = {
9
+ name: 'Still Image Format',
10
+ cliFlag,
11
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The image format to use when rendering a still. Must be one of", ' ', image_format_1.validStillImageFormats.map((f) => `"${f}"`).join(', '), ". Default:", ' ', jsx_runtime_1.jsx("code", { children: "\"png\"" }),
12
+ "."] })),
13
+ ssrName: 'imageFormat',
14
+ docLink: 'https://www.remotion.dev/docs/renderer/render-still#imageformat',
15
+ type: null,
16
+ getValue: ({ commandLine }) => {
17
+ if (commandLine[cliFlag] !== undefined) {
18
+ const value = commandLine[cliFlag];
19
+ if (!image_format_1.validStillImageFormats.includes(value)) {
20
+ throw new Error(`Invalid still image format: ${value}. Must be one of: ${image_format_1.validStillImageFormats.join(', ')}`);
21
+ }
22
+ return {
23
+ source: 'cli',
24
+ value,
25
+ };
26
+ }
27
+ if (currentStillImageFormat !== null) {
28
+ return {
29
+ source: 'config',
30
+ value: currentStillImageFormat,
31
+ };
32
+ }
33
+ return {
34
+ source: 'default',
35
+ value: null,
36
+ };
37
+ },
38
+ setConfig: (value) => {
39
+ if (value === null) {
40
+ currentStillImageFormat = null;
41
+ return;
42
+ }
43
+ if (!image_format_1.validStillImageFormats.includes(value)) {
44
+ throw new TypeError([
45
+ `Value ${value} is not valid as a still image format.`,
46
+ // @ts-expect-error
47
+ value === 'jpg' ? 'Did you mean "jpeg"?' : null,
48
+ ]
49
+ .filter(Boolean)
50
+ .join(' '));
51
+ }
52
+ currentStillImageFormat = value;
53
+ },
54
+ id: 'still-image-format',
55
+ };
@@ -12,4 +12,5 @@ export declare const throwIfSiteExistsOption: {
12
12
  setConfig: () => never;
13
13
  ssrName: string;
14
14
  type: boolean;
15
+ id: string;
15
16
  };
@@ -25,4 +25,5 @@ exports.throwIfSiteExistsOption = {
25
25
  },
26
26
  ssrName: 'throwIfSiteExists',
27
27
  type: false,
28
+ id: cliFlag,
28
29
  };
@@ -12,4 +12,5 @@ export declare const delayRenderTimeoutInMillisecondsOption: {
12
12
  value: number;
13
13
  };
14
14
  setConfig: (value: number) => void;
15
+ id: "timeout";
15
16
  };
@@ -44,4 +44,5 @@ exports.delayRenderTimeoutInMillisecondsOption = {
44
44
  validate(value);
45
45
  currentTimeout = value;
46
46
  },
47
+ id: cliFlag,
47
48
  };
@@ -0,0 +1,19 @@
1
+ export declare const userAgentOption: {
2
+ name: string;
3
+ cliFlag: "user-agent";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "userAgent";
6
+ docLink: string;
7
+ type: string | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: string;
13
+ } | {
14
+ source: string;
15
+ value: null;
16
+ };
17
+ setConfig: (value: string | null) => void;
18
+ id: "user-agent";
19
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userAgentOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let userAgent = null;
6
+ const cliFlag = 'user-agent';
7
+ exports.userAgentOption = {
8
+ name: 'User agent',
9
+ cliFlag,
10
+ description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Lets you set a custom user agent that the headless Chrome browser assumes." })),
11
+ ssrName: 'userAgent',
12
+ docLink: 'https://www.remotion.dev/docs/chromium-flags#--user-agent',
13
+ type: null,
14
+ getValue: ({ commandLine }) => {
15
+ if (commandLine[cliFlag] !== undefined) {
16
+ return {
17
+ source: 'cli',
18
+ value: commandLine[cliFlag],
19
+ };
20
+ }
21
+ if (userAgent !== null) {
22
+ return {
23
+ source: 'config',
24
+ value: userAgent,
25
+ };
26
+ }
27
+ return {
28
+ source: 'default',
29
+ value: null,
30
+ };
31
+ },
32
+ setConfig: (value) => {
33
+ userAgent = value;
34
+ },
35
+ id: cliFlag,
36
+ };
@@ -12,4 +12,5 @@ export declare const videoBitrateOption: {
12
12
  value: string | null;
13
13
  };
14
14
  setConfig: (bitrate: string | null) => void;
15
+ id: "video-bitrate";
15
16
  };