@remotion/renderer 4.0.424 → 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.
- package/dist/client.d.ts +211 -0
- package/dist/esm/client.mjs +1057 -510
- package/dist/index.d.ts +1 -0
- package/dist/options/browser-executable.d.ts +17 -0
- package/dist/options/browser-executable.js +36 -0
- package/dist/options/concurrency.d.ts +17 -0
- package/dist/options/concurrency.js +40 -0
- package/dist/options/disable-web-security.d.ts +16 -0
- package/dist/options/disable-web-security.js +36 -0
- package/dist/options/every-nth-frame.d.ts +16 -0
- package/dist/options/every-nth-frame.js +42 -0
- package/dist/options/ignore-certificate-errors.d.ts +16 -0
- package/dist/options/ignore-certificate-errors.js +36 -0
- package/dist/options/image-format-option.d.ts +18 -0
- package/dist/options/image-format-option.js +33 -0
- package/dist/options/index.d.ts +210 -0
- package/dist/options/index.js +24 -0
- package/dist/options/override-duration.d.ts +19 -0
- package/dist/options/override-duration.js +46 -0
- package/dist/options/override-fps.d.ts +19 -0
- package/dist/options/override-fps.js +40 -0
- package/dist/options/override-height.d.ts +19 -0
- package/dist/options/override-height.js +40 -0
- package/dist/options/override-width.d.ts +19 -0
- package/dist/options/override-width.js +40 -0
- package/dist/options/pixel-format.d.ts +16 -0
- package/dist/options/pixel-format.js +41 -0
- package/dist/options/private-license-key.d.ts +15 -0
- package/dist/options/private-license-key.js +35 -0
- package/dist/options/prores-profile.d.ts +20 -0
- package/dist/options/prores-profile.js +48 -0
- package/dist/options/user-agent.d.ts +19 -0
- package/dist/options/user-agent.js +36 -0
- package/package.json +14 -14
package/dist/options/index.js
CHANGED
|
@@ -7,19 +7,23 @@ 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_executable_1 = require("./browser-executable");
|
|
10
11
|
const chrome_mode_1 = require("./chrome-mode");
|
|
11
12
|
const color_space_1 = require("./color-space");
|
|
13
|
+
const concurrency_1 = require("./concurrency");
|
|
12
14
|
const crf_1 = require("./crf");
|
|
13
15
|
const cross_site_isolation_1 = require("./cross-site-isolation");
|
|
14
16
|
const dark_mode_1 = require("./dark-mode");
|
|
15
17
|
const delete_after_1 = require("./delete-after");
|
|
16
18
|
const disable_git_source_1 = require("./disable-git-source");
|
|
19
|
+
const disable_web_security_1 = require("./disable-web-security");
|
|
17
20
|
const disallow_parallel_encoding_1 = require("./disallow-parallel-encoding");
|
|
18
21
|
const enable_lambda_insights_1 = require("./enable-lambda-insights");
|
|
19
22
|
const enable_multiprocess_on_linux_1 = require("./enable-multiprocess-on-linux");
|
|
20
23
|
const encoding_buffer_size_1 = require("./encoding-buffer-size");
|
|
21
24
|
const encoding_max_rate_1 = require("./encoding-max-rate");
|
|
22
25
|
const enforce_audio_1 = require("./enforce-audio");
|
|
26
|
+
const every_nth_frame_1 = require("./every-nth-frame");
|
|
23
27
|
const experimental_client_side_rendering_1 = require("./experimental-client-side-rendering");
|
|
24
28
|
const folder_expiry_1 = require("./folder-expiry");
|
|
25
29
|
const for_seamless_aac_concatenation_1 = require("./for-seamless-aac-concatenation");
|
|
@@ -27,6 +31,7 @@ const force_new_studio_1 = require("./force-new-studio");
|
|
|
27
31
|
const gl_1 = require("./gl");
|
|
28
32
|
const hardware_acceleration_1 = require("./hardware-acceleration");
|
|
29
33
|
const headless_1 = require("./headless");
|
|
34
|
+
const ignore_certificate_errors_1 = require("./ignore-certificate-errors");
|
|
30
35
|
const image_sequence_pattern_1 = require("./image-sequence-pattern");
|
|
31
36
|
const ipv4_1 = require("./ipv4");
|
|
32
37
|
const is_production_1 = require("./is-production");
|
|
@@ -42,8 +47,14 @@ const number_of_shared_audio_tags_1 = require("./number-of-shared-audio-tags");
|
|
|
42
47
|
const offthreadvideo_cache_size_1 = require("./offthreadvideo-cache-size");
|
|
43
48
|
const offthreadvideo_threads_1 = require("./offthreadvideo-threads");
|
|
44
49
|
const on_browser_download_1 = require("./on-browser-download");
|
|
50
|
+
const override_duration_1 = require("./override-duration");
|
|
51
|
+
const override_fps_1 = require("./override-fps");
|
|
52
|
+
const override_height_1 = require("./override-height");
|
|
53
|
+
const override_width_1 = require("./override-width");
|
|
45
54
|
const overwrite_1 = require("./overwrite");
|
|
55
|
+
const pixel_format_1 = require("./pixel-format");
|
|
46
56
|
const prefer_lossless_1 = require("./prefer-lossless");
|
|
57
|
+
const prores_profile_1 = require("./prores-profile");
|
|
47
58
|
const public_dir_1 = require("./public-dir");
|
|
48
59
|
const public_license_key_1 = require("./public-license-key");
|
|
49
60
|
const public_path_1 = require("./public-path");
|
|
@@ -53,6 +64,7 @@ const separate_audio_1 = require("./separate-audio");
|
|
|
53
64
|
const still_image_format_1 = require("./still-image-format");
|
|
54
65
|
const throw_if_site_exists_1 = require("./throw-if-site-exists");
|
|
55
66
|
const timeout_1 = require("./timeout");
|
|
67
|
+
const user_agent_1 = require("./user-agent");
|
|
56
68
|
const video_bitrate_1 = require("./video-bitrate");
|
|
57
69
|
const video_cache_size_1 = require("./video-cache-size");
|
|
58
70
|
const video_codec_1 = require("./video-codec");
|
|
@@ -61,12 +73,15 @@ const webhook_custom_data_1 = require("./webhook-custom-data");
|
|
|
61
73
|
const x264_preset_1 = require("./x264-preset");
|
|
62
74
|
exports.allOptions = {
|
|
63
75
|
audioCodecOption: audio_codec_1.audioCodecOption,
|
|
76
|
+
browserExecutableOption: browser_executable_1.browserExecutableOption,
|
|
77
|
+
concurrencyOption: concurrency_1.concurrencyOption,
|
|
64
78
|
scaleOption: scale_1.scaleOption,
|
|
65
79
|
crfOption: crf_1.crfOption,
|
|
66
80
|
jpegQualityOption: jpeg_quality_1.jpegQualityOption,
|
|
67
81
|
videoBitrateOption: video_bitrate_1.videoBitrateOption,
|
|
68
82
|
audioBitrateOption: audio_bitrate_1.audioBitrateOption,
|
|
69
83
|
enforceAudioOption: enforce_audio_1.enforceAudioOption,
|
|
84
|
+
everyNthFrameOption: every_nth_frame_1.everyNthFrameOption,
|
|
70
85
|
mutedOption: mute_1.mutedOption,
|
|
71
86
|
videoCodecOption: video_codec_1.videoCodecOption,
|
|
72
87
|
offthreadVideoCacheSizeInBytesOption: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
@@ -74,6 +89,7 @@ exports.allOptions = {
|
|
|
74
89
|
webhookCustomDataOption: webhook_custom_data_1.webhookCustomDataOption,
|
|
75
90
|
colorSpaceOption: color_space_1.colorSpaceOption,
|
|
76
91
|
deleteAfterOption: delete_after_1.deleteAfterOption,
|
|
92
|
+
disableWebSecurityOption: disable_web_security_1.disableWebSecurityOption,
|
|
77
93
|
disallowParallelEncodingOption: disallow_parallel_encoding_1.disallowParallelEncodingOption,
|
|
78
94
|
folderExpiryOption: folder_expiry_1.folderExpiryOption,
|
|
79
95
|
enableMultiprocessOnLinuxOption: enable_multiprocess_on_linux_1.enableMultiprocessOnLinuxOption,
|
|
@@ -84,7 +100,9 @@ exports.allOptions = {
|
|
|
84
100
|
beepOnFinishOption: beep_on_finish_1.beepOnFinishOption,
|
|
85
101
|
numberOfGifLoopsOption: number_of_gif_loops_1.numberOfGifLoopsOption,
|
|
86
102
|
reproOption: repro_1.reproOption,
|
|
103
|
+
pixelFormatOption: pixel_format_1.pixelFormatOption,
|
|
87
104
|
preferLosslessOption: prefer_lossless_1.preferLosslessAudioOption,
|
|
105
|
+
proResProfileOption: prores_profile_1.proResProfileOption,
|
|
88
106
|
x264Option: x264_preset_1.x264Option,
|
|
89
107
|
logLevelOption: log_level_1.logLevelOption,
|
|
90
108
|
delayRenderTimeoutInMillisecondsOption: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
@@ -105,6 +123,7 @@ exports.allOptions = {
|
|
|
105
123
|
licenseKeyOption: license_key_1.licenseKeyOption,
|
|
106
124
|
audioLatencyHintOption: latency_hint_1.audioLatencyHintOption,
|
|
107
125
|
enableCrossSiteIsolationOption: cross_site_isolation_1.enableCrossSiteIsolationOption,
|
|
126
|
+
ignoreCertificateErrorsOption: ignore_certificate_errors_1.ignoreCertificateErrorsOption,
|
|
108
127
|
imageSequencePatternOption: image_sequence_pattern_1.imageSequencePatternOption,
|
|
109
128
|
mediaCacheSizeInBytesOption: video_cache_size_1.mediaCacheSizeInBytesOption,
|
|
110
129
|
darkModeOption: dark_mode_1.darkModeOption,
|
|
@@ -117,5 +136,10 @@ exports.allOptions = {
|
|
|
117
136
|
numberOfSharedAudioTagsOption: number_of_shared_audio_tags_1.numberOfSharedAudioTagsOption,
|
|
118
137
|
ipv4Option: ipv4_1.ipv4Option,
|
|
119
138
|
stillImageFormatOption: still_image_format_1.stillImageFormatOption,
|
|
139
|
+
userAgentOption: user_agent_1.userAgentOption,
|
|
120
140
|
videoImageFormatOption: video_image_format_1.videoImageFormatOption,
|
|
141
|
+
overrideHeightOption: override_height_1.overrideHeightOption,
|
|
142
|
+
overrideWidthOption: override_width_1.overrideWidthOption,
|
|
143
|
+
overrideFpsOption: override_fps_1.overrideFpsOption,
|
|
144
|
+
overrideDurationOption: override_duration_1.overrideDurationOption,
|
|
121
145
|
};
|
|
@@ -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,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,15 @@
|
|
|
1
|
+
export declare const privateLicenseKeyOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "private-license-key";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "privateLicenseKey";
|
|
6
|
+
docLink: string;
|
|
7
|
+
getValue: ({ commandLine }: {
|
|
8
|
+
commandLine: Record<string, unknown>;
|
|
9
|
+
}) => {
|
|
10
|
+
source: string;
|
|
11
|
+
value: string | null;
|
|
12
|
+
};
|
|
13
|
+
setConfig: (value: string | null) => void;
|
|
14
|
+
type: string | null;
|
|
15
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.privateLicenseKeyOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'private-license-key';
|
|
6
|
+
let currentPrivateLicenseKey = null;
|
|
7
|
+
exports.privateLicenseKeyOption = {
|
|
8
|
+
name: 'Private License Key',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The private license key for your company license, obtained from the \"Usage\" tab on ", (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.pro/dashboard", children: "remotion.pro" }), ". If you are eligible for the free license, pass \"free-license\"."] })),
|
|
11
|
+
ssrName: 'privateLicenseKey',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/licensing',
|
|
13
|
+
getValue: ({ commandLine }) => {
|
|
14
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
+
return {
|
|
16
|
+
source: 'cli',
|
|
17
|
+
value: commandLine[cliFlag],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
if (currentPrivateLicenseKey !== null) {
|
|
21
|
+
return {
|
|
22
|
+
source: 'config',
|
|
23
|
+
value: currentPrivateLicenseKey,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
source: 'default',
|
|
28
|
+
value: null,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
setConfig: (value) => {
|
|
32
|
+
currentPrivateLicenseKey = value;
|
|
33
|
+
},
|
|
34
|
+
type: null,
|
|
35
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -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
|
+
};
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.425",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"scripts": {
|
|
12
|
-
"formatting": "prettier
|
|
12
|
+
"formatting": "prettier src --check",
|
|
13
13
|
"lint": "eslint src",
|
|
14
14
|
"test": "bun test src",
|
|
15
15
|
"watch": "tsgo -w",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"execa": "5.1.1",
|
|
25
25
|
"extract-zip": "2.0.1",
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/streaming": "4.0.
|
|
26
|
+
"remotion": "4.0.425",
|
|
27
|
+
"@remotion/streaming": "4.0.425",
|
|
28
28
|
"source-map": "^0.8.0-beta.0",
|
|
29
29
|
"ws": "8.17.1",
|
|
30
|
-
"@remotion/licensing": "4.0.
|
|
30
|
+
"@remotion/licensing": "4.0.425"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=16.8.0",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"react-dom": "19.2.3",
|
|
42
42
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
43
43
|
"@types/ws": "8.5.10",
|
|
44
|
-
"@remotion/example-videos": "4.0.
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
44
|
+
"@remotion/example-videos": "4.0.425",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.425",
|
|
46
46
|
"eslint": "9.19.0",
|
|
47
47
|
"@types/node": "20.12.14"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
51
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
52
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
53
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
54
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
55
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
56
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
50
|
+
"@remotion/compositor-darwin-arm64": "4.0.425",
|
|
51
|
+
"@remotion/compositor-darwin-x64": "4.0.425",
|
|
52
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.425",
|
|
53
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.425",
|
|
54
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.425",
|
|
55
|
+
"@remotion/compositor-linux-x64-musl": "4.0.425",
|
|
56
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.425"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"remotion",
|