@remotion/renderer 4.0.424 → 4.0.426

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 (76) hide show
  1. package/dist/client.d.ts +500 -0
  2. package/dist/esm/client.mjs +1888 -534
  3. package/dist/esm/index.mjs +12 -7
  4. package/dist/index.d.ts +4 -1
  5. package/dist/options/browser-executable.d.ts +17 -0
  6. package/dist/options/browser-executable.js +36 -0
  7. package/dist/options/browser.d.ts +19 -0
  8. package/dist/options/browser.js +30 -0
  9. package/dist/options/bundle-cache.d.ts +16 -0
  10. package/dist/options/bundle-cache.js +34 -0
  11. package/dist/options/concurrency.d.ts +17 -0
  12. package/dist/options/concurrency.js +61 -0
  13. package/dist/options/config.d.ts +19 -0
  14. package/dist/options/config.js +29 -0
  15. package/dist/options/disable-web-security.d.ts +16 -0
  16. package/dist/options/disable-web-security.js +36 -0
  17. package/dist/options/env-file.d.ts +19 -0
  18. package/dist/options/env-file.js +38 -0
  19. package/dist/options/every-nth-frame.d.ts +16 -0
  20. package/dist/options/every-nth-frame.js +42 -0
  21. package/dist/options/experimental-client-side-rendering.js +2 -3
  22. package/dist/options/frames.d.ts +17 -0
  23. package/dist/options/frames.js +83 -0
  24. package/dist/options/ignore-certificate-errors.d.ts +16 -0
  25. package/dist/options/ignore-certificate-errors.js +36 -0
  26. package/dist/options/image-format-option.d.ts +18 -0
  27. package/dist/options/image-format-option.js +33 -0
  28. package/dist/options/image-sequence.d.ts +16 -0
  29. package/dist/options/image-sequence.js +30 -0
  30. package/dist/options/index.d.ts +499 -0
  31. package/dist/options/index.js +56 -0
  32. package/dist/options/no-open.d.ts +19 -0
  33. package/dist/options/no-open.js +30 -0
  34. package/dist/options/out-dir.d.ts +19 -0
  35. package/dist/options/out-dir.js +41 -0
  36. package/dist/options/override-duration.d.ts +19 -0
  37. package/dist/options/override-duration.js +46 -0
  38. package/dist/options/override-fps.d.ts +19 -0
  39. package/dist/options/override-fps.js +40 -0
  40. package/dist/options/override-height.d.ts +19 -0
  41. package/dist/options/override-height.js +40 -0
  42. package/dist/options/override-width.d.ts +19 -0
  43. package/dist/options/override-width.js +40 -0
  44. package/dist/options/package-manager.d.ts +19 -0
  45. package/dist/options/package-manager.js +47 -0
  46. package/dist/options/pixel-format.d.ts +16 -0
  47. package/dist/options/pixel-format.js +41 -0
  48. package/dist/options/port.d.ts +19 -0
  49. package/dist/options/port.js +36 -0
  50. package/dist/options/private-license-key.d.ts +15 -0
  51. package/dist/options/private-license-key.js +35 -0
  52. package/dist/options/props.d.ts +19 -0
  53. package/dist/options/props.js +33 -0
  54. package/dist/options/prores-profile.d.ts +20 -0
  55. package/dist/options/prores-profile.js +48 -0
  56. package/dist/options/rspack.d.ts +16 -0
  57. package/dist/options/rspack.js +31 -0
  58. package/dist/options/runs.d.ts +16 -0
  59. package/dist/options/runs.js +37 -0
  60. package/dist/options/still-frame.d.ts +19 -0
  61. package/dist/options/still-frame.js +51 -0
  62. package/dist/options/user-agent.d.ts +19 -0
  63. package/dist/options/user-agent.js +36 -0
  64. package/dist/options/version-flag.d.ts +19 -0
  65. package/dist/options/version-flag.js +29 -0
  66. package/dist/options/webpack-poll.d.ts +19 -0
  67. package/dist/options/webpack-poll.js +43 -0
  68. package/dist/prespawn-ffmpeg.d.ts +1 -0
  69. package/dist/prespawn-ffmpeg.js +4 -3
  70. package/dist/render-frames.d.ts +43 -3
  71. package/dist/render-media.d.ts +4 -2
  72. package/dist/render-media.js +4 -2
  73. package/dist/render-still.d.ts +1 -0
  74. package/dist/render-still.js +5 -1
  75. package/dist/select-composition.d.ts +25 -3
  76. package/package.json +14 -14
@@ -7,26 +7,37 @@ const audio_bitrate_1 = require("./audio-bitrate");
7
7
  const audio_codec_1 = require("./audio-codec");
8
8
  const beep_on_finish_1 = require("./beep-on-finish");
9
9
  const binaries_directory_1 = require("./binaries-directory");
10
+ const browser_1 = require("./browser");
11
+ const browser_executable_1 = require("./browser-executable");
12
+ const bundle_cache_1 = require("./bundle-cache");
10
13
  const chrome_mode_1 = require("./chrome-mode");
11
14
  const color_space_1 = require("./color-space");
15
+ const concurrency_1 = require("./concurrency");
16
+ const config_1 = require("./config");
12
17
  const crf_1 = require("./crf");
13
18
  const cross_site_isolation_1 = require("./cross-site-isolation");
14
19
  const dark_mode_1 = require("./dark-mode");
15
20
  const delete_after_1 = require("./delete-after");
16
21
  const disable_git_source_1 = require("./disable-git-source");
22
+ const disable_web_security_1 = require("./disable-web-security");
17
23
  const disallow_parallel_encoding_1 = require("./disallow-parallel-encoding");
18
24
  const enable_lambda_insights_1 = require("./enable-lambda-insights");
19
25
  const enable_multiprocess_on_linux_1 = require("./enable-multiprocess-on-linux");
20
26
  const encoding_buffer_size_1 = require("./encoding-buffer-size");
21
27
  const encoding_max_rate_1 = require("./encoding-max-rate");
22
28
  const enforce_audio_1 = require("./enforce-audio");
29
+ const env_file_1 = require("./env-file");
30
+ const every_nth_frame_1 = require("./every-nth-frame");
23
31
  const experimental_client_side_rendering_1 = require("./experimental-client-side-rendering");
24
32
  const folder_expiry_1 = require("./folder-expiry");
25
33
  const for_seamless_aac_concatenation_1 = require("./for-seamless-aac-concatenation");
26
34
  const force_new_studio_1 = require("./force-new-studio");
35
+ const frames_1 = require("./frames");
27
36
  const gl_1 = require("./gl");
28
37
  const hardware_acceleration_1 = require("./hardware-acceleration");
29
38
  const headless_1 = require("./headless");
39
+ const ignore_certificate_errors_1 = require("./ignore-certificate-errors");
40
+ const image_sequence_1 = require("./image-sequence");
30
41
  const image_sequence_pattern_1 = require("./image-sequence-pattern");
31
42
  const ipv4_1 = require("./ipv4");
32
43
  const is_production_1 = require("./is-production");
@@ -37,36 +48,56 @@ const license_key_1 = require("./license-key");
37
48
  const log_level_1 = require("./log-level");
38
49
  const metadata_1 = require("./metadata");
39
50
  const mute_1 = require("./mute");
51
+ const no_open_1 = require("./no-open");
40
52
  const number_of_gif_loops_1 = require("./number-of-gif-loops");
41
53
  const number_of_shared_audio_tags_1 = require("./number-of-shared-audio-tags");
42
54
  const offthreadvideo_cache_size_1 = require("./offthreadvideo-cache-size");
43
55
  const offthreadvideo_threads_1 = require("./offthreadvideo-threads");
44
56
  const on_browser_download_1 = require("./on-browser-download");
57
+ const out_dir_1 = require("./out-dir");
58
+ const override_duration_1 = require("./override-duration");
59
+ const override_fps_1 = require("./override-fps");
60
+ const override_height_1 = require("./override-height");
61
+ const override_width_1 = require("./override-width");
45
62
  const overwrite_1 = require("./overwrite");
63
+ const package_manager_1 = require("./package-manager");
64
+ const pixel_format_1 = require("./pixel-format");
65
+ const port_1 = require("./port");
46
66
  const prefer_lossless_1 = require("./prefer-lossless");
67
+ const props_1 = require("./props");
68
+ const prores_profile_1 = require("./prores-profile");
47
69
  const public_dir_1 = require("./public-dir");
48
70
  const public_license_key_1 = require("./public-license-key");
49
71
  const public_path_1 = require("./public-path");
50
72
  const repro_1 = require("./repro");
73
+ const rspack_1 = require("./rspack");
74
+ const runs_1 = require("./runs");
51
75
  const scale_1 = require("./scale");
52
76
  const separate_audio_1 = require("./separate-audio");
77
+ const still_frame_1 = require("./still-frame");
53
78
  const still_image_format_1 = require("./still-image-format");
54
79
  const throw_if_site_exists_1 = require("./throw-if-site-exists");
55
80
  const timeout_1 = require("./timeout");
81
+ const user_agent_1 = require("./user-agent");
82
+ const version_flag_1 = require("./version-flag");
56
83
  const video_bitrate_1 = require("./video-bitrate");
57
84
  const video_cache_size_1 = require("./video-cache-size");
58
85
  const video_codec_1 = require("./video-codec");
59
86
  const video_image_format_1 = require("./video-image-format");
60
87
  const webhook_custom_data_1 = require("./webhook-custom-data");
88
+ const webpack_poll_1 = require("./webpack-poll");
61
89
  const x264_preset_1 = require("./x264-preset");
62
90
  exports.allOptions = {
63
91
  audioCodecOption: audio_codec_1.audioCodecOption,
92
+ browserExecutableOption: browser_executable_1.browserExecutableOption,
93
+ concurrencyOption: concurrency_1.concurrencyOption,
64
94
  scaleOption: scale_1.scaleOption,
65
95
  crfOption: crf_1.crfOption,
66
96
  jpegQualityOption: jpeg_quality_1.jpegQualityOption,
67
97
  videoBitrateOption: video_bitrate_1.videoBitrateOption,
68
98
  audioBitrateOption: audio_bitrate_1.audioBitrateOption,
69
99
  enforceAudioOption: enforce_audio_1.enforceAudioOption,
100
+ everyNthFrameOption: every_nth_frame_1.everyNthFrameOption,
70
101
  mutedOption: mute_1.mutedOption,
71
102
  videoCodecOption: video_codec_1.videoCodecOption,
72
103
  offthreadVideoCacheSizeInBytesOption: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
@@ -74,6 +105,7 @@ exports.allOptions = {
74
105
  webhookCustomDataOption: webhook_custom_data_1.webhookCustomDataOption,
75
106
  colorSpaceOption: color_space_1.colorSpaceOption,
76
107
  deleteAfterOption: delete_after_1.deleteAfterOption,
108
+ disableWebSecurityOption: disable_web_security_1.disableWebSecurityOption,
77
109
  disallowParallelEncodingOption: disallow_parallel_encoding_1.disallowParallelEncodingOption,
78
110
  folderExpiryOption: folder_expiry_1.folderExpiryOption,
79
111
  enableMultiprocessOnLinuxOption: enable_multiprocess_on_linux_1.enableMultiprocessOnLinuxOption,
@@ -84,7 +116,11 @@ exports.allOptions = {
84
116
  beepOnFinishOption: beep_on_finish_1.beepOnFinishOption,
85
117
  numberOfGifLoopsOption: number_of_gif_loops_1.numberOfGifLoopsOption,
86
118
  reproOption: repro_1.reproOption,
119
+ runsOption: runs_1.runsOption,
120
+ noOpenOption: no_open_1.noOpenOption,
121
+ pixelFormatOption: pixel_format_1.pixelFormatOption,
87
122
  preferLosslessOption: prefer_lossless_1.preferLosslessAudioOption,
123
+ proResProfileOption: prores_profile_1.proResProfileOption,
88
124
  x264Option: x264_preset_1.x264Option,
89
125
  logLevelOption: log_level_1.logLevelOption,
90
126
  delayRenderTimeoutInMillisecondsOption: timeout_1.delayRenderTimeoutInMillisecondsOption,
@@ -105,6 +141,7 @@ exports.allOptions = {
105
141
  licenseKeyOption: license_key_1.licenseKeyOption,
106
142
  audioLatencyHintOption: latency_hint_1.audioLatencyHintOption,
107
143
  enableCrossSiteIsolationOption: cross_site_isolation_1.enableCrossSiteIsolationOption,
144
+ ignoreCertificateErrorsOption: ignore_certificate_errors_1.ignoreCertificateErrorsOption,
108
145
  imageSequencePatternOption: image_sequence_pattern_1.imageSequencePatternOption,
109
146
  mediaCacheSizeInBytesOption: video_cache_size_1.mediaCacheSizeInBytesOption,
110
147
  darkModeOption: dark_mode_1.darkModeOption,
@@ -113,9 +150,28 @@ exports.allOptions = {
113
150
  askAIOption: ask_ai_1.askAIOption,
114
151
  experimentalClientSideRenderingOption: experimental_client_side_rendering_1.experimentalClientSideRenderingOption,
115
152
  keyboardShortcutsOption: keyboard_shortcuts_1.keyboardShortcutsOption,
153
+ framesOption: frames_1.framesOption,
116
154
  forceNewStudioOption: force_new_studio_1.forceNewStudioOption,
117
155
  numberOfSharedAudioTagsOption: number_of_shared_audio_tags_1.numberOfSharedAudioTagsOption,
118
156
  ipv4Option: ipv4_1.ipv4Option,
119
157
  stillImageFormatOption: still_image_format_1.stillImageFormatOption,
158
+ userAgentOption: user_agent_1.userAgentOption,
120
159
  videoImageFormatOption: video_image_format_1.videoImageFormatOption,
160
+ overrideHeightOption: override_height_1.overrideHeightOption,
161
+ overrideWidthOption: override_width_1.overrideWidthOption,
162
+ overrideFpsOption: override_fps_1.overrideFpsOption,
163
+ overrideDurationOption: override_duration_1.overrideDurationOption,
164
+ rspackOption: rspack_1.rspackOption,
165
+ outDirOption: out_dir_1.outDirOption,
166
+ packageManagerOption: package_manager_1.packageManagerOption,
167
+ webpackPollOption: webpack_poll_1.webpackPollOption,
168
+ stillFrameOption: still_frame_1.stillFrameOption,
169
+ imageSequenceOption: image_sequence_1.imageSequenceOption,
170
+ versionFlagOption: version_flag_1.versionFlagOption,
171
+ bundleCacheOption: bundle_cache_1.bundleCacheOption,
172
+ envFileOption: env_file_1.envFileOption,
173
+ portOption: port_1.portOption,
174
+ propsOption: props_1.propsOption,
175
+ configOption: config_1.configOption,
176
+ browserOption: browser_1.browserOption,
121
177
  };
@@ -0,0 +1,19 @@
1
+ export declare const noOpenOption: {
2
+ name: string;
3
+ cliFlag: "no-open";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: boolean;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ value: true;
12
+ source: string;
13
+ } | {
14
+ value: false;
15
+ source: string;
16
+ };
17
+ setConfig: (shouldOpen: boolean) => void;
18
+ id: "no-open";
19
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.noOpenOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let shouldOpenBrowser = true;
6
+ const cliFlag = 'no-open';
7
+ exports.noOpenOption = {
8
+ name: 'Disable browser auto-open',
9
+ cliFlag,
10
+ description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "If specified, Remotion will not open a browser window when starting the Studio." })),
11
+ ssrName: null,
12
+ docLink: 'https://www.remotion.dev/docs/cli/studio#--no-open',
13
+ type: false,
14
+ getValue: ({ commandLine }) => {
15
+ // Minimist quirk: `--no-open` sets `open` to `false`.
16
+ // When no flag is passed, `open` is `undefined`.
17
+ const cliValue = commandLine.open;
18
+ if (cliValue === false) {
19
+ return { value: true, source: 'cli' };
20
+ }
21
+ if (!shouldOpenBrowser) {
22
+ return { value: true, source: 'config' };
23
+ }
24
+ return { value: false, source: 'default' };
25
+ },
26
+ setConfig: (shouldOpen) => {
27
+ shouldOpenBrowser = shouldOpen;
28
+ },
29
+ id: cliFlag,
30
+ };
@@ -0,0 +1,19 @@
1
+ export declare const outDirOption: {
2
+ name: string;
3
+ cliFlag: "out-dir";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "outDir";
6
+ docLink: string;
7
+ getValue: ({ commandLine }: {
8
+ commandLine: Record<string, unknown>;
9
+ }) => {
10
+ source: string;
11
+ value: string;
12
+ } | {
13
+ source: string;
14
+ value: null;
15
+ };
16
+ setConfig: (value: string | null) => void;
17
+ type: string | null;
18
+ id: "out-dir";
19
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.outDirOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'out-dir';
6
+ let currentOutDir = null;
7
+ exports.outDirOption = {
8
+ name: 'Output Directory',
9
+ cliFlag,
10
+ description: () => {
11
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Define the location of the resulting bundle. By default it is a folder called ",
12
+ jsx_runtime_1.jsx("code", { children: "build" }),
13
+ ", adjacent to the", ' ', jsx_runtime_1.jsx("a", { href: "/docs/terminology/remotion-root", children: "Remotion Root" }),
14
+ "."] }));
15
+ },
16
+ ssrName: 'outDir',
17
+ docLink: 'https://www.remotion.dev/docs/cli/bundle#--out-dir',
18
+ getValue: ({ commandLine }) => {
19
+ if (commandLine[cliFlag] !== undefined) {
20
+ return {
21
+ source: 'cli',
22
+ value: commandLine[cliFlag],
23
+ };
24
+ }
25
+ if (currentOutDir !== null) {
26
+ return {
27
+ source: 'config',
28
+ value: currentOutDir,
29
+ };
30
+ }
31
+ return {
32
+ source: 'default',
33
+ value: null,
34
+ };
35
+ },
36
+ setConfig: (value) => {
37
+ currentOutDir = value;
38
+ },
39
+ type: '',
40
+ id: cliFlag,
41
+ };
@@ -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
+ };
@@ -0,0 +1,19 @@
1
+ export declare const packageManagerOption: {
2
+ name: string;
3
+ cliFlag: "package-manager";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "packageManager";
6
+ docLink: string;
7
+ getValue: ({ commandLine }: {
8
+ commandLine: Record<string, unknown>;
9
+ }) => {
10
+ source: string;
11
+ value: string;
12
+ } | {
13
+ source: string;
14
+ value: null;
15
+ };
16
+ setConfig: (value: string | null) => void;
17
+ type: string | null;
18
+ id: "package-manager";
19
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packageManagerOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'package-manager';
6
+ let currentPackageManager = null;
7
+ exports.packageManagerOption = {
8
+ name: 'Package Manager',
9
+ cliFlag,
10
+ description: () => {
11
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.",
12
+ jsx_runtime_1.jsx("br", {}),
13
+ "Acceptable values are ",
14
+ jsx_runtime_1.jsx("code", { children: "npm" }),
15
+ ", ",
16
+ jsx_runtime_1.jsx("code", { children: "yarn" }),
17
+ ",", ' ', jsx_runtime_1.jsx("code", { children: "pnpm" }),
18
+ " and ",
19
+ jsx_runtime_1.jsx("code", { children: "bun" }),
20
+ "."] }));
21
+ },
22
+ ssrName: 'packageManager',
23
+ docLink: 'https://www.remotion.dev/docs/cli/upgrade#--package-manager',
24
+ getValue: ({ commandLine }) => {
25
+ if (commandLine[cliFlag] !== undefined) {
26
+ return {
27
+ source: 'cli',
28
+ value: commandLine[cliFlag],
29
+ };
30
+ }
31
+ if (currentPackageManager !== null) {
32
+ return {
33
+ source: 'config',
34
+ value: currentPackageManager,
35
+ };
36
+ }
37
+ return {
38
+ source: 'default',
39
+ value: null,
40
+ };
41
+ },
42
+ setConfig: (value) => {
43
+ currentPackageManager = value;
44
+ },
45
+ type: '',
46
+ id: cliFlag,
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
+ };
@@ -0,0 +1,19 @@
1
+ export declare const portOption: {
2
+ name: string;
3
+ cliFlag: "port";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ getValue: ({ commandLine }: {
8
+ commandLine: Record<string, unknown>;
9
+ }) => {
10
+ source: string;
11
+ value: number;
12
+ } | {
13
+ source: string;
14
+ value: null;
15
+ };
16
+ setConfig: (value: number | null) => void;
17
+ type: number | null;
18
+ id: "port";
19
+ };