@remotion/cli 4.0.178 → 4.0.180

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.getActualConcurrency(cliConcurrency)];
29
+ return [renderer_1.RenderInternals.resolveConcurrency(cliConcurrency)];
30
30
  }
31
31
  return concurrencies
32
32
  .split(',')
@@ -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.getActualConcurrency(config_1.ConfigInternals.getConcurrency());
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 actualConcurrency = renderer_1.RenderInternals.getActualConcurrency(concurrency);
159
+ const resolvedConcurrency = renderer_1.RenderInternals.resolveConcurrency(concurrency);
160
160
  const server = await renderer_1.RenderInternals.prepareServer({
161
- concurrency: actualConcurrency,
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: `${actualConcurrency}x`,
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: actualConcurrency,
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.178",
6
+ "version": "4.0.180",
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.178",
36
- "@remotion/player": "4.0.178",
37
- "@remotion/media-utils": "4.0.178",
38
- "@remotion/studio-shared": "4.0.178",
39
- "@remotion/studio": "4.0.178",
40
- "@remotion/studio-server": "4.0.178",
41
- "remotion": "4.0.178",
42
- "@remotion/renderer": "4.0.178"
35
+ "@remotion/bundler": "4.0.180",
36
+ "@remotion/renderer": "4.0.180",
37
+ "@remotion/player": "4.0.180",
38
+ "@remotion/media-utils": "4.0.180",
39
+ "@remotion/studio-shared": "4.0.180",
40
+ "@remotion/studio": "4.0.180",
41
+ "remotion": "4.0.180",
42
+ "@remotion/studio-server": "4.0.180"
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.178",
56
- "@remotion/tailwind": "4.0.178",
57
- "@remotion/enable-scss": "4.0.178",
58
- "@remotion/skia": "4.0.178"
55
+ "@remotion/zod-types": "4.0.180",
56
+ "@remotion/tailwind": "4.0.180",
57
+ "@remotion/enable-scss": "4.0.180",
58
+ "@remotion/skia": "4.0.180"
59
59
  },
60
60
  "keywords": [
61
61
  "remotion",
File without changes
package/dist/artifact.js DELETED
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,2 +0,0 @@
1
- /// <reference types="node" />
2
- export declare function supportsHyperlink(stream: NodeJS.WriteStream): boolean;
@@ -1,79 +0,0 @@
1
- "use strict";
2
- // From https://github.com/jamestalmage/supports-hyperlinks/blob/master/index.js
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.supportsHyperlink = void 0;
5
- // MIT License
6
- // Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage)
7
- // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
- // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
- const renderer_1 = require("@remotion/renderer");
11
- function parseVersion(versionString) {
12
- if (/^\d{3,4}$/.test(versionString)) {
13
- // Env var doesn't always use dots. example: 4601 => 46.1.0
14
- const m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
15
- return {
16
- major: 0,
17
- minor: parseInt(m[1], 10),
18
- patch: parseInt(m[2], 10),
19
- };
20
- }
21
- const versions = (versionString || '').split('.').map((n) => parseInt(n, 10));
22
- return {
23
- major: versions[0],
24
- minor: versions[1],
25
- patch: versions[2],
26
- };
27
- }
28
- function supportsHyperlink(stream) {
29
- const { CI, FORCE_HYPERLINK, NETLIFY, TEAMCITY_VERSION, TERM_PROGRAM, TERM_PROGRAM_VERSION, VTE_VERSION, } = process.env;
30
- if (FORCE_HYPERLINK) {
31
- return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
32
- }
33
- // Netlify does not run a TTY, it does not need `supportsColor` check
34
- if (NETLIFY) {
35
- return true;
36
- }
37
- // If they specify no colors, they probably don't want hyperlinks.
38
- if (!renderer_1.RenderInternals.isColorSupported()) {
39
- return false;
40
- }
41
- if (stream && !stream.isTTY) {
42
- return false;
43
- }
44
- if (process.platform === 'win32') {
45
- return false;
46
- }
47
- if (CI) {
48
- return false;
49
- }
50
- if (TEAMCITY_VERSION) {
51
- return false;
52
- }
53
- if (TERM_PROGRAM) {
54
- const version = parseVersion(TERM_PROGRAM_VERSION || '');
55
- switch (TERM_PROGRAM) {
56
- case 'iTerm.app':
57
- if (version.major === 3) {
58
- return version.minor >= 1;
59
- }
60
- return version.major > 3;
61
- case 'WezTerm':
62
- return version.major >= 20200620;
63
- case 'vscode':
64
- // eslint-disable-next-line no-mixed-operators
65
- return (version.major > 1 || (version.major === 1 && version.minor >= 72));
66
- // No default
67
- }
68
- }
69
- if (VTE_VERSION) {
70
- // 0.50.0 was supposed to support hyperlinks, but throws a segfault
71
- if (VTE_VERSION === '0.50.0') {
72
- return false;
73
- }
74
- const version = parseVersion(VTE_VERSION);
75
- return version.major > 0 || version.minor >= 50;
76
- }
77
- return false;
78
- }
79
- exports.supportsHyperlink = supportsHyperlink;
@@ -1,2 +0,0 @@
1
- /// <reference types="node" />
2
- export declare function supportsHyperlink(stream: NodeJS.WriteStream): boolean;
@@ -1,79 +0,0 @@
1
- "use strict";
2
- // From https://github.com/jamestalmage/supports-hyperlinks/blob/master/index.js
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.supportsHyperlink = void 0;
5
- // MIT License
6
- // Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage)
7
- // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
- // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
- const renderer_1 = require("@remotion/renderer");
11
- function parseVersion(versionString) {
12
- if (/^\d{3,4}$/.test(versionString)) {
13
- // Env var doesn't always use dots. example: 4601 => 46.1.0
14
- const m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
15
- return {
16
- major: 0,
17
- minor: parseInt(m[1], 10),
18
- patch: parseInt(m[2], 10),
19
- };
20
- }
21
- const versions = (versionString || '').split('.').map((n) => parseInt(n, 10));
22
- return {
23
- major: versions[0],
24
- minor: versions[1],
25
- patch: versions[2],
26
- };
27
- }
28
- function supportsHyperlink(stream) {
29
- const { CI, FORCE_HYPERLINK, NETLIFY, TEAMCITY_VERSION, TERM_PROGRAM, TERM_PROGRAM_VERSION, VTE_VERSION, } = process.env;
30
- if (FORCE_HYPERLINK) {
31
- return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
32
- }
33
- // Netlify does not run a TTY, it does not need `supportsColor` check
34
- if (NETLIFY) {
35
- return true;
36
- }
37
- // If they specify no colors, they probably don't want hyperlinks.
38
- if (!renderer_1.RenderInternals.isColorSupported()) {
39
- return false;
40
- }
41
- if (stream && !stream.isTTY) {
42
- return false;
43
- }
44
- if (process.platform === 'win32') {
45
- return false;
46
- }
47
- if (CI) {
48
- return false;
49
- }
50
- if (TEAMCITY_VERSION) {
51
- return false;
52
- }
53
- if (TERM_PROGRAM) {
54
- const version = parseVersion(TERM_PROGRAM_VERSION || '');
55
- switch (TERM_PROGRAM) {
56
- case 'iTerm.app':
57
- if (version.major === 3) {
58
- return version.minor >= 1;
59
- }
60
- return version.major > 3;
61
- case 'WezTerm':
62
- return version.major >= 20200620;
63
- case 'vscode':
64
- // eslint-disable-next-line no-mixed-operators
65
- return (version.major > 1 || (version.major === 1 && version.minor >= 72));
66
- // No default
67
- }
68
- }
69
- if (VTE_VERSION) {
70
- // 0.50.0 was supposed to support hyperlinks, but throws a segfault
71
- if (VTE_VERSION === '0.50.0') {
72
- return false;
73
- }
74
- const version = parseVersion(VTE_VERSION);
75
- return version.major > 0 || version.minor >= 50;
76
- }
77
- return false;
78
- }
79
- exports.supportsHyperlink = supportsHyperlink;