@remotion/cli 4.0.179 → 4.0.181
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/benchmark.js
CHANGED
|
@@ -26,7 +26,7 @@ const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, sc
|
|
|
26
26
|
const getValidConcurrency = (cliConcurrency) => {
|
|
27
27
|
const { concurrencies } = parsed_cli_1.parsedCli;
|
|
28
28
|
if (!concurrencies) {
|
|
29
|
-
return [renderer_1.RenderInternals.
|
|
29
|
+
return [renderer_1.RenderInternals.resolveConcurrency(cliConcurrency)];
|
|
30
30
|
}
|
|
31
31
|
return concurrencies
|
|
32
32
|
.split(',')
|
|
@@ -8,7 +8,35 @@ const getWebpackOverrideFn = () => {
|
|
|
8
8
|
return overrideFn;
|
|
9
9
|
};
|
|
10
10
|
exports.getWebpackOverrideFn = getWebpackOverrideFn;
|
|
11
|
+
// to warn the user if overrideWebpackConfig is invoked more than once
|
|
12
|
+
let invocations = 0;
|
|
11
13
|
const overrideWebpackConfig = (fn) => {
|
|
14
|
+
if (invocations > 0) {
|
|
15
|
+
const err = [
|
|
16
|
+
'You specified the Config.overrideWebpackConfig() multiple times, which is not supported.',
|
|
17
|
+
'Combine all Webpack overrides into a single one.',
|
|
18
|
+
'You can curry multiple overrides:',
|
|
19
|
+
'',
|
|
20
|
+
'Instead of:',
|
|
21
|
+
'',
|
|
22
|
+
' Config.overrideWebpackConfig((currentConfiguration) => {',
|
|
23
|
+
' return enableScss(currentConfiguration);',
|
|
24
|
+
' });',
|
|
25
|
+
' Config.overrideWebpackConfig((currentConfiguration) => {',
|
|
26
|
+
' return enableTailwind(currentConfiguration);',
|
|
27
|
+
' });',
|
|
28
|
+
'',
|
|
29
|
+
'Do this:',
|
|
30
|
+
'',
|
|
31
|
+
' Config.overrideWebpackConfig((currentConfiguration) => {',
|
|
32
|
+
' return enableScss(enableTailwind(currentConfiguration));',
|
|
33
|
+
' });',
|
|
34
|
+
'',
|
|
35
|
+
'Read more: https://www.remotion.dev/docs/config#overridewebpackconfig',
|
|
36
|
+
];
|
|
37
|
+
throw new Error(err.join('\n'));
|
|
38
|
+
}
|
|
39
|
+
invocations++;
|
|
12
40
|
overrideFn = fn;
|
|
13
41
|
};
|
|
14
42
|
exports.overrideWebpackConfig = overrideWebpackConfig;
|
|
@@ -13,7 +13,7 @@ const getRenderDefaults = () => {
|
|
|
13
13
|
}).value;
|
|
14
14
|
const logLevel = logLevelOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
|
|
15
15
|
const defaultCodec = config_1.ConfigInternals.getOutputCodecOrUndefined();
|
|
16
|
-
const concurrency = renderer_1.RenderInternals.
|
|
16
|
+
const concurrency = renderer_1.RenderInternals.resolveConcurrency(config_1.ConfigInternals.getConcurrency());
|
|
17
17
|
const pixelFormat = config_1.ConfigInternals.getPixelFormat();
|
|
18
18
|
const proResProfile = (_a = config_1.ConfigInternals.getProResProfile()) !== null && _a !== void 0 ? _a : 'hq';
|
|
19
19
|
const x264Preset = x264Option.getValue({
|
|
@@ -156,9 +156,9 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
156
156
|
});
|
|
157
157
|
const puppeteerInstance = await browserInstance;
|
|
158
158
|
addCleanupCallback(() => puppeteerInstance.close(false, logLevel, indent));
|
|
159
|
-
const
|
|
159
|
+
const resolvedConcurrency = renderer_1.RenderInternals.resolveConcurrency(concurrency);
|
|
160
160
|
const server = await renderer_1.RenderInternals.prepareServer({
|
|
161
|
-
concurrency:
|
|
161
|
+
concurrency: resolvedConcurrency,
|
|
162
162
|
indent,
|
|
163
163
|
port,
|
|
164
164
|
remotionRoot,
|
|
@@ -254,7 +254,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
254
254
|
logLevel,
|
|
255
255
|
left: 'Concurrency',
|
|
256
256
|
link: 'https://www.remotion.dev/docs/terminology/concurrency',
|
|
257
|
-
right: `${
|
|
257
|
+
right: `${resolvedConcurrency}x`,
|
|
258
258
|
color: 'gray',
|
|
259
259
|
});
|
|
260
260
|
const absoluteOutputFile = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite, logLevel);
|
|
@@ -303,7 +303,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
303
303
|
everyNthFrame,
|
|
304
304
|
envVariables,
|
|
305
305
|
frameRange,
|
|
306
|
-
concurrency:
|
|
306
|
+
concurrency: resolvedConcurrency,
|
|
307
307
|
puppeteerInstance,
|
|
308
308
|
jpegQuality: jpegQuality !== null && jpegQuality !== void 0 ? jpegQuality : renderer_1.RenderInternals.DEFAULT_JPEG_QUALITY,
|
|
309
309
|
timeoutInMilliseconds: puppeteerTimeout,
|
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.181",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dotenv": "9.0.2",
|
|
33
33
|
"minimist": "1.2.6",
|
|
34
34
|
"prompts": "2.4.2",
|
|
35
|
-
"@remotion/bundler": "4.0.
|
|
36
|
-
"@remotion/
|
|
37
|
-
"@remotion/
|
|
38
|
-
"@remotion/
|
|
39
|
-
"@remotion/studio
|
|
40
|
-
"@remotion/
|
|
41
|
-
"
|
|
42
|
-
"remotion": "4.0.
|
|
35
|
+
"@remotion/bundler": "4.0.181",
|
|
36
|
+
"@remotion/player": "4.0.181",
|
|
37
|
+
"@remotion/media-utils": "4.0.181",
|
|
38
|
+
"@remotion/studio-shared": "4.0.181",
|
|
39
|
+
"@remotion/studio": "4.0.181",
|
|
40
|
+
"@remotion/renderer": "4.0.181",
|
|
41
|
+
"remotion": "4.0.181",
|
|
42
|
+
"@remotion/studio-server": "4.0.181"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"react": "18.3.1",
|
|
53
53
|
"react-dom": "18.3.1",
|
|
54
54
|
"zod": "3.22.3",
|
|
55
|
-
"@remotion/zod-types": "4.0.
|
|
56
|
-
"@remotion/
|
|
57
|
-
"@remotion/
|
|
58
|
-
"@remotion/
|
|
55
|
+
"@remotion/zod-types": "4.0.181",
|
|
56
|
+
"@remotion/enable-scss": "4.0.181",
|
|
57
|
+
"@remotion/skia": "4.0.181",
|
|
58
|
+
"@remotion/tailwind": "4.0.181"
|
|
59
59
|
},
|
|
60
60
|
"keywords": [
|
|
61
61
|
"remotion",
|