@remotion/cli 4.0.513 → 4.0.514
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/config/index.d.ts +3 -2
- package/dist/config/index.js +2 -6
- package/dist/extra-packages.js +8 -6
- package/dist/get-render-defaults.js +16 -2
- package/dist/list-of-remotion-packages.js +1 -0
- package/dist/parsed-cli.d.ts +31 -1
- package/dist/parsed-cli.js +3 -1
- package/dist/studio.js +13 -1
- package/dist/upgrade.js +7 -3
- package/package.json +14 -14
package/dist/config/index.d.ts
CHANGED
|
@@ -62,7 +62,8 @@ declare global {
|
|
|
62
62
|
*/
|
|
63
63
|
readonly setInteractivityEnabled: (enabled: boolean) => void;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Allow the experimental HTML-in-canvas capture path in Studio client-side renders.
|
|
66
|
+
* @default false
|
|
66
67
|
*/
|
|
67
68
|
readonly setAllowHtmlInCanvasEnabled: (enabled: boolean) => void;
|
|
68
69
|
/**
|
|
@@ -495,7 +496,7 @@ export declare const ConfigInternals: {
|
|
|
495
496
|
getWebpackCaching: () => boolean;
|
|
496
497
|
getOutputLocation: () => string | null;
|
|
497
498
|
setStillFrame: (frame: number) => void;
|
|
498
|
-
getMaxTimelineTracks: () => number;
|
|
499
|
+
getMaxTimelineTracks: () => number | null;
|
|
499
500
|
defaultOverrideFunction: WebpackOverrideFn;
|
|
500
501
|
defaultBundlerOverrideFunction: BundlerOverrideFn;
|
|
501
502
|
defaultRspackOverrideFunction: RspackOverrideFn;
|
package/dist/config/index.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConfigInternals = exports.Config = void 0;
|
|
4
4
|
const client_1 = require("@remotion/renderer/client");
|
|
5
5
|
const studio_server_1 = require("@remotion/studio-server");
|
|
6
|
-
const log_1 = require("../log");
|
|
7
6
|
const browser_1 = require("./browser");
|
|
8
7
|
const buffer_state_delay_in_milliseconds_1 = require("./buffer-state-delay-in-milliseconds");
|
|
9
8
|
const concurrency_1 = require("./concurrency");
|
|
@@ -18,10 +17,7 @@ const preview_server_1 = require("./preview-server");
|
|
|
18
17
|
const still_frame_1 = require("./still-frame");
|
|
19
18
|
const webpack_caching_1 = require("./webpack-caching");
|
|
20
19
|
const webpack_poll_1 = require("./webpack-poll");
|
|
21
|
-
const { benchmarkConcurrenciesOption, concurrencyOption, offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, gopSizeOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, framesOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, darkModeOption, defaultCodingAgentOption, defaultEditorOption, askAIOption, publicLicenseKeyOption, interactivityOption, keyboardShortcutsOption, forceNewStudioOption, experimentalKeepAudioContextAliveOption, numberOfSharedAudioTagsOption, ipv4Option, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, stillImageFormatOption, videoImageFormatOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, rspackOption, outDirOption, webpackPollOption, imageSequenceOption, bundleCacheOption, envFileOption, runsOption, noOpenOption, sampleRateOption, previewSampleRateOption, } = client_1.BrowserSafeApis.options;
|
|
22
|
-
const setAllowHtmlInCanvasEnabled = (_enabled) => {
|
|
23
|
-
log_1.Log.warn({ indent: false, logLevel: 'info' }, 'Config.setAllowHtmlInCanvasEnabled() is now a no-op because HTML-in-canvas is enabled by default when supported. You can remove this option from your config file.');
|
|
24
|
-
};
|
|
20
|
+
const { allowHtmlInCanvasOption, benchmarkConcurrenciesOption, concurrencyOption, offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, gopSizeOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, framesOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, darkModeOption, defaultCodingAgentOption, defaultEditorOption, askAIOption, publicLicenseKeyOption, interactivityOption, keyboardShortcutsOption, forceNewStudioOption, experimentalKeepAudioContextAliveOption, numberOfSharedAudioTagsOption, ipv4Option, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, stillImageFormatOption, videoImageFormatOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, rspackOption, outDirOption, webpackPollOption, imageSequenceOption, bundleCacheOption, envFileOption, runsOption, noOpenOption, sampleRateOption, previewSampleRateOption, } = client_1.BrowserSafeApis.options;
|
|
25
21
|
exports.Config = {
|
|
26
22
|
get Bundling() {
|
|
27
23
|
throw new Error('The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.');
|
|
@@ -44,7 +40,7 @@ exports.Config = {
|
|
|
44
40
|
setMaxTimelineTracks: studio_server_1.StudioServerInternals.setMaxTimelineTracks,
|
|
45
41
|
setKeyboardShortcutsEnabled: keyboardShortcutsOption.setConfig,
|
|
46
42
|
setInteractivityEnabled: interactivityOption.setConfig,
|
|
47
|
-
setAllowHtmlInCanvasEnabled,
|
|
43
|
+
setAllowHtmlInCanvasEnabled: allowHtmlInCanvasOption.setConfig,
|
|
48
44
|
setRspack: rspackOption.setConfig,
|
|
49
45
|
setExperimentalRspackEnabled: rspackOption.setConfig,
|
|
50
46
|
setNumberOfSharedAudioTags: numberOfSharedAudioTagsOption.setConfig,
|
package/dist/extra-packages.js
CHANGED
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EXTRA_PACKAGES_DOCS = exports.EXTRA_PACKAGES = void 0;
|
|
4
4
|
exports.EXTRA_PACKAGES = {
|
|
5
|
-
mediabunny: '1.
|
|
6
|
-
'@mediabunny/ac3': '1.
|
|
7
|
-
'@mediabunny/
|
|
8
|
-
'@mediabunny/
|
|
9
|
-
'@mediabunny/
|
|
10
|
-
'@mediabunny/
|
|
5
|
+
mediabunny: '1.55.1',
|
|
6
|
+
'@mediabunny/ac3': '1.55.1',
|
|
7
|
+
'@mediabunny/dts': '1.55.1',
|
|
8
|
+
'@mediabunny/mp3-encoder': '1.55.1',
|
|
9
|
+
'@mediabunny/aac-encoder': '1.55.1',
|
|
10
|
+
'@mediabunny/flac-encoder': '1.55.1',
|
|
11
|
+
'@mediabunny/prores': '1.55.1',
|
|
11
12
|
zod: '4.4.3',
|
|
12
13
|
};
|
|
13
14
|
exports.EXTRA_PACKAGES_DOCS = {
|
|
14
15
|
mediabunny: 'https://www.remotion.dev/docs/mediabunny/version',
|
|
15
16
|
'@mediabunny/ac3': 'https://www.remotion.dev/docs/mediabunny/formats#ac-3-and-e-ac-3',
|
|
17
|
+
'@mediabunny/dts': 'https://mediabunny.dev/guide/extensions/dts',
|
|
16
18
|
'@mediabunny/mp3-encoder': 'https://www.remotion.dev/docs/mediabunny/version',
|
|
17
19
|
'@mediabunny/aac-encoder': 'https://www.remotion.dev/docs/mediabunny/version',
|
|
18
20
|
'@mediabunny/flac-encoder': 'https://www.remotion.dev/docs/mediabunny/version',
|
|
@@ -5,9 +5,9 @@ const renderer_1 = require("@remotion/renderer");
|
|
|
5
5
|
const client_1 = require("@remotion/renderer/client");
|
|
6
6
|
const config_1 = require("./config");
|
|
7
7
|
const parsed_cli_1 = require("./parsed-cli");
|
|
8
|
-
const { x264Option, gopSizeOption, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, concurrencyOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, publicLicenseKeyOption, stillImageFormatOption, videoImageFormatOption, sampleRateOption, } = client_1.BrowserSafeApis.options;
|
|
8
|
+
const { allowHtmlInCanvasOption, x264Option, gopSizeOption, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, concurrencyOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, crfOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, publicLicenseKeyOption, stillImageFormatOption, videoImageFormatOption, sampleRateOption, } = client_1.BrowserSafeApis.options;
|
|
9
9
|
const getRenderDefaults = (logLevel) => {
|
|
10
|
-
var _a;
|
|
10
|
+
var _a, _b, _c, _d, _e, _f;
|
|
11
11
|
const defaultJpegQuality = jpegQualityOption.getValue({
|
|
12
12
|
commandLine: parsed_cli_1.parsedCli,
|
|
13
13
|
}).value;
|
|
@@ -38,6 +38,7 @@ const getRenderDefaults = (logLevel) => {
|
|
|
38
38
|
const videoBitrate = videoBitrateOption.getValue({
|
|
39
39
|
commandLine: parsed_cli_1.parsedCli,
|
|
40
40
|
}).value;
|
|
41
|
+
const crf = (_b = crfOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value) !== null && _b !== void 0 ? _b : null;
|
|
41
42
|
const enforceAudioTrack = enforceAudioOption.getValue({
|
|
42
43
|
commandLine: parsed_cli_1.parsedCli,
|
|
43
44
|
}).value;
|
|
@@ -113,14 +114,25 @@ const getRenderDefaults = (logLevel) => {
|
|
|
113
114
|
const userAgent = userAgentOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
114
115
|
const metadata = config_1.ConfigInternals.getMetadata();
|
|
115
116
|
const outputLocation = config_1.ConfigInternals.getOutputLocation();
|
|
117
|
+
const allowHtmlInCanvas = allowHtmlInCanvasOption.getValue({
|
|
118
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
119
|
+
}).value;
|
|
116
120
|
const maxConcurrency = renderer_1.RenderInternals.getMaxConcurrency();
|
|
117
121
|
const minConcurrency = renderer_1.RenderInternals.getMinConcurrency();
|
|
122
|
+
const configFileRenderDefaults = {
|
|
123
|
+
codec: defaultCodec !== null && defaultCodec !== void 0 ? defaultCodec : null,
|
|
124
|
+
proResProfile: (_c = proResProfileOption.getValue({ commandLine: {} }).value) !== null && _c !== void 0 ? _c : null,
|
|
125
|
+
stillImageFormat: (_d = stillImageFormatOption.getValue({ commandLine: {} }).value) !== null && _d !== void 0 ? _d : null,
|
|
126
|
+
videoImageFormat: (_e = videoImageFormatOption.getValue({ commandLine: {} }).value) !== null && _e !== void 0 ? _e : null,
|
|
127
|
+
x264Preset: (_f = x264Option.getValue({ commandLine: {} }).value) !== null && _f !== void 0 ? _f : null,
|
|
128
|
+
};
|
|
118
129
|
return {
|
|
119
130
|
darkMode,
|
|
120
131
|
jpegQuality: defaultJpegQuality !== null && defaultJpegQuality !== void 0 ? defaultJpegQuality : renderer_1.RenderInternals.DEFAULT_JPEG_QUALITY,
|
|
121
132
|
scale: defaultScale !== null && defaultScale !== void 0 ? defaultScale : 1,
|
|
122
133
|
logLevel,
|
|
123
134
|
codec: defaultCodec !== null && defaultCodec !== void 0 ? defaultCodec : 'h264',
|
|
135
|
+
crf,
|
|
124
136
|
concurrency,
|
|
125
137
|
maxConcurrency,
|
|
126
138
|
minConcurrency,
|
|
@@ -158,7 +170,9 @@ const getRenderDefaults = (logLevel) => {
|
|
|
158
170
|
mediaCacheSizeInBytes,
|
|
159
171
|
publicLicenseKey,
|
|
160
172
|
outputLocation,
|
|
173
|
+
allowHtmlInCanvas,
|
|
161
174
|
sampleRate: sampleRateOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value,
|
|
175
|
+
configFileRenderDefaults,
|
|
162
176
|
};
|
|
163
177
|
};
|
|
164
178
|
exports.getRenderDefaults = getRenderDefaults;
|
package/dist/parsed-cli.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import type { AudioCodec, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
2
|
import type { TypeOfOption } from '@remotion/renderer/client';
|
|
3
|
-
declare const
|
|
3
|
+
declare const allowHtmlInCanvasOption: {
|
|
4
|
+
name: string;
|
|
5
|
+
cliFlag: "allow-html-in-canvas";
|
|
6
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
ssrName: null;
|
|
8
|
+
docLink: string;
|
|
9
|
+
type: boolean;
|
|
10
|
+
getValue: ({ commandLine }: {
|
|
11
|
+
commandLine: Record<string, unknown>;
|
|
12
|
+
}) => {
|
|
13
|
+
value: boolean;
|
|
14
|
+
source: string;
|
|
15
|
+
};
|
|
16
|
+
setConfig(value: boolean): void;
|
|
17
|
+
id: "allow-html-in-canvas";
|
|
18
|
+
}, benchmarkConcurrenciesOption: {
|
|
4
19
|
name: string;
|
|
5
20
|
cliFlag: "concurrencies";
|
|
6
21
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,6 +47,8 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
32
47
|
source: string;
|
|
33
48
|
};
|
|
34
49
|
setConfig(value: boolean): void;
|
|
50
|
+
getConfigValue: () => boolean | null;
|
|
51
|
+
reset: () => void;
|
|
35
52
|
id: "beep-on-finish";
|
|
36
53
|
}, colorSpaceOption: {
|
|
37
54
|
name: string;
|
|
@@ -335,6 +352,8 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
335
352
|
source: string;
|
|
336
353
|
};
|
|
337
354
|
setConfig: (profile: AudioContextLatencyCategory | null) => void;
|
|
355
|
+
getConfigValue: () => AudioContextLatencyCategory | null;
|
|
356
|
+
reset: () => void;
|
|
338
357
|
id: "audio-latency-hint";
|
|
339
358
|
}, darkModeOption: {
|
|
340
359
|
name: string;
|
|
@@ -440,6 +459,8 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
440
459
|
source: string;
|
|
441
460
|
};
|
|
442
461
|
setConfig(value: number): void;
|
|
462
|
+
getConfigValue: () => number | null;
|
|
463
|
+
reset: () => void;
|
|
443
464
|
id: "number-of-shared-audio-tags";
|
|
444
465
|
}, ipv4Option: {
|
|
445
466
|
name: string;
|
|
@@ -717,6 +738,8 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
717
738
|
source: string;
|
|
718
739
|
};
|
|
719
740
|
setConfig(value: boolean): void;
|
|
741
|
+
getConfigValue: () => boolean | null;
|
|
742
|
+
reset: () => void;
|
|
720
743
|
id: "disable-keyboard-shortcuts";
|
|
721
744
|
}, interactivityOption: {
|
|
722
745
|
name: string;
|
|
@@ -732,6 +755,8 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
732
755
|
source: string;
|
|
733
756
|
};
|
|
734
757
|
setConfig(value: boolean): void;
|
|
758
|
+
getConfigValue: () => boolean | null;
|
|
759
|
+
reset: () => void;
|
|
735
760
|
id: "disable-interactivity";
|
|
736
761
|
}, imageSequencePatternOption: {
|
|
737
762
|
name: string;
|
|
@@ -808,6 +833,8 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
808
833
|
source: string;
|
|
809
834
|
};
|
|
810
835
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
836
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
837
|
+
reset: () => void;
|
|
811
838
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
812
839
|
id: "log";
|
|
813
840
|
}, videoCodecOption: {
|
|
@@ -1190,6 +1217,8 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
1190
1217
|
source: string;
|
|
1191
1218
|
};
|
|
1192
1219
|
setConfig(value: boolean): void;
|
|
1220
|
+
getConfigValue: () => boolean | null;
|
|
1221
|
+
reset: () => void;
|
|
1193
1222
|
id: "rspack";
|
|
1194
1223
|
}, skipSkillsOption: {
|
|
1195
1224
|
name: string;
|
|
@@ -1211,6 +1240,7 @@ declare const benchmarkConcurrenciesOption: {
|
|
|
1211
1240
|
id: "skip-skills";
|
|
1212
1241
|
};
|
|
1213
1242
|
export type CommandLineOptions = {
|
|
1243
|
+
[allowHtmlInCanvasOption.cliFlag]: TypeOfOption<typeof allowHtmlInCanvasOption> | null;
|
|
1214
1244
|
[browserExecutableOption.cliFlag]: TypeOfOption<typeof browserExecutableOption>;
|
|
1215
1245
|
[pixelFormatOption.cliFlag]: TypeOfOption<typeof pixelFormatOption>;
|
|
1216
1246
|
['image-format']: VideoImageFormat | StillImageFormat;
|
package/dist/parsed-cli.js
CHANGED
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.quietFlagProvided = exports.parsedCli = exports.BooleanFlags = void 0;
|
|
7
7
|
const client_1 = require("@remotion/renderer/client");
|
|
8
8
|
const minimist_1 = __importDefault(require("minimist"));
|
|
9
|
-
const { benchmarkConcurrenciesOption, beepOnFinishOption, colorSpaceOption, concurrencyOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, darkModeOption, defaultCodingAgentOption, defaultEditorOption, publicLicenseKeyOption, forceNewStudioOption, experimentalKeepAudioContextAliveOption, numberOfSharedAudioTagsOption, ipv4Option, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, outDirOption, packageManagerOption, webpackPollOption, keyboardShortcutsOption, interactivityOption, imageSequencePatternOption, scaleOption, overwriteOption, crfOption, logLevelOption, videoCodecOption, stillFrameOption, imageSequenceOption, versionFlagOption, bundleCacheOption, envFileOption, glOption, gopSizeOption, runsOption, reproOption, mutedOption, headlessOption, disableGitSourceOption, delayRenderTimeoutInMillisecondsOption, framesOption, forSeamlessAacConcatenationOption, isProductionOption, noOpenOption, portOption, propsOption, configOption, browserOption, sampleRateOption, previewSampleRateOption, rspackOption, skipSkillsOption, } = client_1.BrowserSafeApis.options;
|
|
9
|
+
const { allowHtmlInCanvasOption, benchmarkConcurrenciesOption, beepOnFinishOption, colorSpaceOption, concurrencyOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, darkModeOption, defaultCodingAgentOption, defaultEditorOption, publicLicenseKeyOption, forceNewStudioOption, experimentalKeepAudioContextAliveOption, numberOfSharedAudioTagsOption, ipv4Option, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, outDirOption, packageManagerOption, webpackPollOption, keyboardShortcutsOption, interactivityOption, imageSequencePatternOption, scaleOption, overwriteOption, crfOption, logLevelOption, videoCodecOption, stillFrameOption, imageSequenceOption, versionFlagOption, bundleCacheOption, envFileOption, glOption, gopSizeOption, runsOption, reproOption, mutedOption, headlessOption, disableGitSourceOption, delayRenderTimeoutInMillisecondsOption, framesOption, forSeamlessAacConcatenationOption, isProductionOption, noOpenOption, portOption, propsOption, configOption, browserOption, sampleRateOption, previewSampleRateOption, rspackOption, skipSkillsOption, } = client_1.BrowserSafeApis.options;
|
|
10
10
|
exports.BooleanFlags = [
|
|
11
|
+
allowHtmlInCanvasOption.cliFlag,
|
|
11
12
|
overwriteOption.cliFlag,
|
|
12
13
|
imageSequenceOption.cliFlag,
|
|
13
14
|
'help',
|
|
@@ -37,6 +38,7 @@ exports.BooleanFlags = [
|
|
|
37
38
|
exports.parsedCli = (0, minimist_1.default)(process.argv.slice(2), {
|
|
38
39
|
boolean: exports.BooleanFlags,
|
|
39
40
|
default: {
|
|
41
|
+
[allowHtmlInCanvasOption.cliFlag]: null,
|
|
40
42
|
[overwriteOption.cliFlag]: null,
|
|
41
43
|
[bundleCacheOption.cliFlag]: null,
|
|
42
44
|
[darkModeOption.cliFlag]: null,
|
package/dist/studio.js
CHANGED
|
@@ -17,7 +17,7 @@ const get_render_defaults_1 = require("./get-render-defaults");
|
|
|
17
17
|
const log_1 = require("./log");
|
|
18
18
|
const parsed_cli_1 = require("./parsed-cli");
|
|
19
19
|
const queue_1 = require("./render-queue/queue");
|
|
20
|
-
const { binariesDirectoryOption, publicDirOption, disableGitSourceOption, enableCrossSiteIsolationOption, askAIOption, interactivityOption, keyboardShortcutsOption, forceNewStudioOption, experimentalKeepAudioContextAliveOption, numberOfSharedAudioTagsOption, audioLatencyHintOption, ipv4Option, rspackOption, webpackPollOption, noOpenOption, portOption, browserOption, previewSampleRateOption, defaultCodingAgentOption, defaultEditorOption, publicLicenseKeyOption, } = client_1.BrowserSafeApis.options;
|
|
20
|
+
const { binariesDirectoryOption, publicDirOption, disableGitSourceOption, enableCrossSiteIsolationOption, askAIOption, interactivityOption, keyboardShortcutsOption, forceNewStudioOption, experimentalKeepAudioContextAliveOption, numberOfSharedAudioTagsOption, audioLatencyHintOption, ipv4Option, rspackOption, webpackPollOption, noOpenOption, portOption, browserOption, previewSampleRateOption, defaultCodingAgentOption, defaultEditorOption, publicLicenseKeyOption, beepOnFinishOption, logLevelOption, } = client_1.BrowserSafeApis.options;
|
|
21
21
|
const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
22
22
|
var _a, _b, _c;
|
|
23
23
|
const { file, reason } = (0, entry_point_1.findEntryPoint)({
|
|
@@ -97,6 +97,18 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
97
97
|
publicLicenseKey: publicLicenseKeyOption.getValue({
|
|
98
98
|
commandLine: parsed_cli_1.parsedCli,
|
|
99
99
|
}).value,
|
|
100
|
+
configFileStudioSettings: {
|
|
101
|
+
askAIEnabled: askAIOption.getConfigValue(),
|
|
102
|
+
audioLatencyHint: audioLatencyHintOption.getConfigValue(),
|
|
103
|
+
beepOnFinish: beepOnFinishOption.getConfigValue(),
|
|
104
|
+
enableCrossSiteIsolation: enableCrossSiteIsolationOption.getConfigValue(),
|
|
105
|
+
interactivityEnabled: interactivityOption.getConfigValue(),
|
|
106
|
+
keyboardShortcutsEnabled: keyboardShortcutsOption.getConfigValue(),
|
|
107
|
+
logLevel: logLevelOption.getConfigValue(),
|
|
108
|
+
maxTimelineTracks: studio_server_1.StudioServerInternals.getConfiguredMaxTimelineTracks(),
|
|
109
|
+
numberOfSharedAudioTags: numberOfSharedAudioTagsOption.getConfigValue(),
|
|
110
|
+
rspack: rspackOption.getConfigValue(),
|
|
111
|
+
},
|
|
100
112
|
};
|
|
101
113
|
};
|
|
102
114
|
const getNumberOfAudioTags = () => numberOfSharedAudioTagsOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
package/dist/upgrade.js
CHANGED
|
@@ -176,17 +176,21 @@ const runPackageManagerCommand = async ({ manager, command, logLevel, }) => {
|
|
|
176
176
|
stdio: renderer_1.RenderInternals.isEqualOrBelowLogLevel(logLevel, 'info')
|
|
177
177
|
? 'inherit'
|
|
178
178
|
: 'ignore',
|
|
179
|
+
...studio_server_1.StudioServerInternals.getPackageManagerSpawnOptions(),
|
|
179
180
|
});
|
|
180
|
-
await new Promise((resolve) => {
|
|
181
|
+
await new Promise((resolve, reject) => {
|
|
182
|
+
task.on('error', (err) => {
|
|
183
|
+
reject(err);
|
|
184
|
+
});
|
|
181
185
|
task.on('close', (code) => {
|
|
182
186
|
if (code === 0) {
|
|
183
187
|
resolve();
|
|
184
188
|
}
|
|
185
189
|
else if (renderer_1.RenderInternals.isEqualOrBelowLogLevel(logLevel, 'info')) {
|
|
186
|
-
|
|
190
|
+
reject(new Error('Failed to upgrade Remotion, see logs above'));
|
|
187
191
|
}
|
|
188
192
|
else {
|
|
189
|
-
|
|
193
|
+
reject(new Error('Failed to upgrade Remotion, run with --log=info info to see logs'));
|
|
190
194
|
}
|
|
191
195
|
});
|
|
192
196
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cli",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.514",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"bin": {
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@babel/parser": "7.24.1",
|
|
40
|
-
"@remotion/bundler": "4.0.
|
|
41
|
-
"@remotion/media-utils": "4.0.
|
|
42
|
-
"@remotion/player": "4.0.
|
|
43
|
-
"@remotion/renderer": "4.0.
|
|
44
|
-
"@remotion/studio-shared": "4.0.
|
|
45
|
-
"@remotion/studio-server": "4.0.
|
|
46
|
-
"@remotion/studio": "4.0.
|
|
40
|
+
"@remotion/bundler": "4.0.514",
|
|
41
|
+
"@remotion/media-utils": "4.0.514",
|
|
42
|
+
"@remotion/player": "4.0.514",
|
|
43
|
+
"@remotion/renderer": "4.0.514",
|
|
44
|
+
"@remotion/studio-shared": "4.0.514",
|
|
45
|
+
"@remotion/studio-server": "4.0.514",
|
|
46
|
+
"@remotion/studio": "4.0.514",
|
|
47
47
|
"dotenv": "17.3.1",
|
|
48
48
|
"minimist": "1.2.6",
|
|
49
49
|
"prompts": "2.4.2",
|
|
50
50
|
"semver": "7.5.3",
|
|
51
|
-
"remotion": "4.0.
|
|
51
|
+
"remotion": "4.0.514"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">=16.8.0",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"@types/prettier": "2.7.2",
|
|
61
61
|
"@types/semver": "7.5.3",
|
|
62
62
|
"@types/node": "20.12.14",
|
|
63
|
-
"@remotion/zod-types": "4.0.
|
|
64
|
-
"@remotion/tailwind-v4": "4.0.
|
|
65
|
-
"@remotion/enable-scss": "4.0.
|
|
66
|
-
"@remotion/skia": "4.0.
|
|
63
|
+
"@remotion/zod-types": "4.0.514",
|
|
64
|
+
"@remotion/tailwind-v4": "4.0.514",
|
|
65
|
+
"@remotion/enable-scss": "4.0.514",
|
|
66
|
+
"@remotion/skia": "4.0.514",
|
|
67
67
|
"react": "19.2.3",
|
|
68
68
|
"react-dom": "19.2.3",
|
|
69
69
|
"zod": "4.4.3",
|
|
70
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
70
|
+
"@remotion/eslint-config-internal": "4.0.514",
|
|
71
71
|
"eslint": "9.19.0",
|
|
72
72
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
73
73
|
},
|