@remotion/cli 4.0.176 → 4.0.178
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/README.md +18 -0
- package/dist/render-flows/render.js +6 -2
- package/package.json +19 -29
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @remotion/cli
|
|
2
|
+
|
|
3
|
+
Control Remotion features using the `npx remotion` command
|
|
4
|
+
|
|
5
|
+
[](https://npmcharts.com/compare/@remotion/cli?minimal=true)
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @remotion/cli --save-exact
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
|
|
14
|
+
Remove the `^` character from the version number to use the exact version.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
See the [documentation](https://www.remotion.dev/docs/cli) for more information.
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.renderVideoFlow = void 0;
|
|
30
30
|
const renderer_1 = require("@remotion/renderer");
|
|
31
31
|
const client_1 = require("@remotion/renderer/client");
|
|
32
|
+
const studio_shared_1 = require("@remotion/studio-shared");
|
|
32
33
|
const node_fs_1 = __importStar(require("node:fs"));
|
|
33
34
|
const node_os_1 = __importDefault(require("node:os"));
|
|
34
35
|
const node_path_1 = __importDefault(require("node:path"));
|
|
@@ -417,10 +418,13 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
417
418
|
if (!updatesDontOverwrite) {
|
|
418
419
|
updateRenderProgress({ newline: true, printToConsole: true });
|
|
419
420
|
}
|
|
420
|
-
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(`${(exists ? '○' : '+').padEnd(progress_bar_1.LABEL_WIDTH)} ${(0, make_link_1.makeHyperlink)({ url: `file://${absoluteOutputFile}`, text: relativeOutputLocation, fallback: relativeOutputLocation })}`));
|
|
421
421
|
if (absoluteSeparateAudioTo) {
|
|
422
|
-
|
|
422
|
+
const relativeAudio = node_path_1.default.relative(process.cwd(), absoluteSeparateAudioTo);
|
|
423
|
+
const audioSize = node_fs_1.default.statSync(absoluteSeparateAudioTo).size;
|
|
424
|
+
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(`${(audioExists ? '○' : '+').padEnd(progress_bar_1.LABEL_WIDTH, ' ')} ${(0, make_link_1.makeHyperlink)({ url: `file://${absoluteSeparateAudioTo}`, text: relativeAudio, fallback: absoluteSeparateAudioTo })}`), chalk_1.chalk.gray(`${(0, studio_shared_1.formatBytes)(audioSize)}`));
|
|
423
425
|
}
|
|
426
|
+
const { size } = node_fs_1.default.statSync(absoluteOutputFile);
|
|
427
|
+
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(`${(exists ? '○' : '+').padEnd(progress_bar_1.LABEL_WIDTH)} ${(0, make_link_1.makeHyperlink)({ url: `file://${absoluteOutputFile}`, text: relativeOutputLocation, fallback: relativeOutputLocation })}`), chalk_1.chalk.gray(`${(0, studio_shared_1.formatBytes)(size)}`));
|
|
424
428
|
log_1.Log.verbose({ indent, logLevel }, `Slowest frames:`);
|
|
425
429
|
slowestFrames.forEach(({ frame, time }) => {
|
|
426
430
|
log_1.Log.verbose({ indent, logLevel }, ` Frame ${frame} (${time.toFixed(3)}ms)`);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"repository": {
|
|
3
|
+
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
|
|
4
|
+
},
|
|
2
5
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "
|
|
6
|
+
"version": "4.0.178",
|
|
7
|
+
"description": "Control Remotion features using the `npx remotion` command",
|
|
5
8
|
"main": "dist/index.js",
|
|
6
9
|
"sideEffects": false,
|
|
7
10
|
"bin": {
|
|
8
11
|
"remotion": "remotion-cli.js",
|
|
9
12
|
"remotionb": "remotionb-cli.js"
|
|
10
13
|
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"url": "https://github.com/remotion-dev/remotion"
|
|
13
|
-
},
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
16
16
|
},
|
|
@@ -32,41 +32,30 @@
|
|
|
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/studio-
|
|
39
|
-
"@remotion/studio
|
|
40
|
-
"@remotion/
|
|
41
|
-
"
|
|
42
|
-
"remotion": "4.0.
|
|
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"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|
|
46
46
|
"react-dom": ">=16.8.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@jonny/eslint-config": "3.0.281",
|
|
50
49
|
"@types/minimist": "^1.2.2",
|
|
51
|
-
"@types/node": "18.14.6",
|
|
52
50
|
"@types/prompts": "^2.4.1",
|
|
53
|
-
"@types/react": "18.3.1",
|
|
54
51
|
"@types/prettier": "^2.7.2",
|
|
55
|
-
"@types/react-dom": "18.3.0",
|
|
56
|
-
"eslint": "8.56.0",
|
|
57
|
-
"eslint-plugin-10x": "1.5.2",
|
|
58
|
-
"eslint-plugin-react": "7.32.2",
|
|
59
|
-
"eslint-plugin-react-hooks": "4.4.0",
|
|
60
|
-
"prettier": "3.2.5",
|
|
61
|
-
"prettier-plugin-organize-imports": "3.2.4",
|
|
62
52
|
"react": "18.3.1",
|
|
63
53
|
"react-dom": "18.3.1",
|
|
64
|
-
"vitest": "0.31.1",
|
|
65
54
|
"zod": "3.22.3",
|
|
66
|
-
"@remotion/zod-types": "4.0.
|
|
67
|
-
"@remotion/tailwind": "4.0.
|
|
68
|
-
"@remotion/
|
|
69
|
-
"@remotion/
|
|
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"
|
|
70
59
|
},
|
|
71
60
|
"keywords": [
|
|
72
61
|
"remotion",
|
|
@@ -78,9 +67,10 @@
|
|
|
78
67
|
"publishConfig": {
|
|
79
68
|
"access": "public"
|
|
80
69
|
},
|
|
70
|
+
"homepage": "https://www.remotion.dev/docs/cli",
|
|
81
71
|
"scripts": {
|
|
82
72
|
"formatting": "prettier src --check",
|
|
83
73
|
"lint": "eslint src --ext ts,tsx",
|
|
84
|
-
"test": "
|
|
74
|
+
"test": "bun test src"
|
|
85
75
|
}
|
|
86
76
|
}
|