@remotion/cli 3.0.15 → 3.0.18
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/compositions.js +2 -1
- package/dist/editor/components/Preview.js +9 -6
- package/dist/get-cli-options.d.ts +1 -0
- package/dist/get-cli-options.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/parse-command-line.d.ts +1 -0
- package/dist/parse-command-line.js +3 -0
- package/dist/render.js +6 -1
- package/dist/still.js +2 -1
- package/package.json +8 -9
package/dist/compositions.js
CHANGED
|
@@ -34,11 +34,12 @@ const listCompositionsCommand = async () => {
|
|
|
34
34
|
}
|
|
35
35
|
const fullPath = path_1.default.join(process.cwd(), file);
|
|
36
36
|
await (0, get_config_file_name_1.loadConfig)();
|
|
37
|
-
const { browserExecutable, ffmpegExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'get-compositions' });
|
|
37
|
+
const { browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'get-compositions' });
|
|
38
38
|
const bundled = await (0, setup_cache_1.bundleOnCli)(fullPath, ['bundling']);
|
|
39
39
|
const compositions = await (0, renderer_1.getCompositions)(bundled, {
|
|
40
40
|
browserExecutable,
|
|
41
41
|
ffmpegExecutable,
|
|
42
|
+
ffprobeExecutable,
|
|
42
43
|
chromiumOptions,
|
|
43
44
|
envVariables,
|
|
44
45
|
inputProps,
|
|
@@ -8,7 +8,6 @@ const remotion_1 = require("remotion");
|
|
|
8
8
|
const checkerboard_background_1 = require("../helpers/checkerboard-background");
|
|
9
9
|
const checkerboard_1 = require("../state/checkerboard");
|
|
10
10
|
const preview_size_1 = require("../state/preview-size");
|
|
11
|
-
const LoadingIndicator_1 = require("./LoadingIndicator");
|
|
12
11
|
const checkerboardSize = 49;
|
|
13
12
|
const containerStyle = (options) => {
|
|
14
13
|
return {
|
|
@@ -26,9 +25,8 @@ const containerStyle = (options) => {
|
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
27
|
const Inner = ({ canvasSize }) => {
|
|
29
|
-
var _a;
|
|
30
28
|
const { size: previewSize } = (0, react_1.useContext)(preview_size_1.PreviewSizeContext);
|
|
31
|
-
const
|
|
29
|
+
const portalContainer = (0, react_1.useRef)(null);
|
|
32
30
|
const config = (0, remotion_1.useVideoConfig)();
|
|
33
31
|
const { checkerboard } = (0, react_1.useContext)(checkerboard_1.CheckerboardContext);
|
|
34
32
|
const { centerX, centerY, yCorrection, xCorrection, scale } = player_1.PlayerInternals.calculateScale({
|
|
@@ -66,9 +64,14 @@ const Inner = ({ canvasSize }) => {
|
|
|
66
64
|
xCorrection,
|
|
67
65
|
yCorrection,
|
|
68
66
|
]);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
(0, react_1.useEffect)(() => {
|
|
68
|
+
const { current } = portalContainer;
|
|
69
|
+
current === null || current === void 0 ? void 0 : current.appendChild(remotion_1.Internals.portalNode());
|
|
70
|
+
return () => {
|
|
71
|
+
current === null || current === void 0 ? void 0 : current.removeChild(remotion_1.Internals.portalNode());
|
|
72
|
+
};
|
|
73
|
+
}, []);
|
|
74
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: outer, children: (0, jsx_runtime_1.jsx)("div", { ref: portalContainer, style: style }) }));
|
|
72
75
|
};
|
|
73
76
|
const VideoPreview = ({ canvasSize }) => {
|
|
74
77
|
const config = remotion_1.Internals.useUnsafeVideoConfig();
|
|
@@ -22,6 +22,7 @@ export declare const getCliOptions: (options: {
|
|
|
22
22
|
stillFrame: number;
|
|
23
23
|
browserExecutable: BrowserExecutable;
|
|
24
24
|
ffmpegExecutable: import("remotion").FfmpegExecutable;
|
|
25
|
+
ffprobeExecutable: import("remotion").FfmpegExecutable;
|
|
25
26
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
26
27
|
scale: number;
|
|
27
28
|
chromiumOptions: ChromiumOptions;
|
package/dist/get-cli-options.js
CHANGED
|
@@ -144,6 +144,7 @@ const getCliOptions = async (options) => {
|
|
|
144
144
|
const proResProfile = getAndValidateProResProfile(codec);
|
|
145
145
|
const browserExecutable = remotion_1.Internals.getBrowserExecutable();
|
|
146
146
|
const ffmpegExecutable = remotion_1.Internals.getCustomFfmpegExecutable();
|
|
147
|
+
const ffprobeExecutable = remotion_1.Internals.getCustomFfprobeExecutable();
|
|
147
148
|
const scale = remotion_1.Internals.getScale();
|
|
148
149
|
const port = remotion_1.Internals.getServerPort();
|
|
149
150
|
const chromiumOptions = {
|
|
@@ -173,6 +174,7 @@ const getCliOptions = async (options) => {
|
|
|
173
174
|
stillFrame: remotion_1.Internals.getStillFrame(),
|
|
174
175
|
browserExecutable,
|
|
175
176
|
ffmpegExecutable,
|
|
177
|
+
ffprobeExecutable,
|
|
176
178
|
logLevel: remotion_1.Internals.Logging.getLogLevel(),
|
|
177
179
|
scale,
|
|
178
180
|
chromiumOptions,
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare const CliInternals: {
|
|
|
47
47
|
stillFrame: number;
|
|
48
48
|
browserExecutable: import("remotion").BrowserExecutable;
|
|
49
49
|
ffmpegExecutable: import("remotion").FfmpegExecutable;
|
|
50
|
+
ffprobeExecutable: import("remotion").FfmpegExecutable;
|
|
50
51
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
51
52
|
scale: number;
|
|
52
53
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
@@ -3,6 +3,7 @@ import { BrowserExecutable, Codec, FfmpegExecutable, ImageFormat, OpenGlRenderer
|
|
|
3
3
|
export declare type CommandLineOptions = {
|
|
4
4
|
['browser-executable']: BrowserExecutable;
|
|
5
5
|
['ffmpeg-executable']: FfmpegExecutable;
|
|
6
|
+
['ffprobe-executable']: FfmpegExecutable;
|
|
6
7
|
['pixel-format']: PixelFormat;
|
|
7
8
|
['image-format']: ImageFormat;
|
|
8
9
|
['prores-profile']: ProResProfile;
|
|
@@ -42,6 +42,9 @@ const parseCommandLine = (type) => {
|
|
|
42
42
|
if (exports.parsedCli['ffmpeg-executable']) {
|
|
43
43
|
remotion_1.Config.Rendering.setFfmpegExecutable((0, path_1.resolve)(exports.parsedCli['ffmpeg-executable']));
|
|
44
44
|
}
|
|
45
|
+
if (exports.parsedCli['ffprobe-executable']) {
|
|
46
|
+
remotion_1.Config.Rendering.setFfprobeExecutable((0, path_1.resolve)(exports.parsedCli['ffprobe-executable']));
|
|
47
|
+
}
|
|
45
48
|
if (typeof exports.parsedCli['bundle-cache'] !== 'undefined') {
|
|
46
49
|
remotion_1.Config.Bundling.setCachingEnabled(exports.parsedCli['bundle-cache'] !== 'false');
|
|
47
50
|
}
|
package/dist/render.js
CHANGED
|
@@ -31,7 +31,7 @@ const render = async () => {
|
|
|
31
31
|
? file
|
|
32
32
|
: path_1.default.join(process.cwd(), file);
|
|
33
33
|
await (0, initialize_render_cli_1.initializeRenderCli)('sequence');
|
|
34
|
-
const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, scale, chromiumOptions, port, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
|
|
34
|
+
const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
|
|
35
35
|
if (!absoluteOutputFile) {
|
|
36
36
|
throw new Error('assertion error - expected absoluteOutputFile to not be null');
|
|
37
37
|
}
|
|
@@ -164,6 +164,7 @@ const render = async () => {
|
|
|
164
164
|
chromiumOptions,
|
|
165
165
|
scale,
|
|
166
166
|
ffmpegExecutable,
|
|
167
|
+
ffprobeExecutable,
|
|
167
168
|
browserExecutable,
|
|
168
169
|
port,
|
|
169
170
|
});
|
|
@@ -181,6 +182,7 @@ const render = async () => {
|
|
|
181
182
|
crf,
|
|
182
183
|
envVariables,
|
|
183
184
|
ffmpegExecutable,
|
|
185
|
+
ffprobeExecutable,
|
|
184
186
|
frameRange,
|
|
185
187
|
imageFormat,
|
|
186
188
|
inputProps,
|
|
@@ -229,5 +231,8 @@ const render = async () => {
|
|
|
229
231
|
log_1.Log.warn('Do you have minimum required Node.js version?');
|
|
230
232
|
}
|
|
231
233
|
log_1.Log.info(chalk_1.default.green('\nYour video is ready!'));
|
|
234
|
+
if (remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose')) {
|
|
235
|
+
remotion_1.Internals.perf.logPerf();
|
|
236
|
+
}
|
|
232
237
|
};
|
|
233
238
|
exports.render = render;
|
package/dist/still.js
CHANGED
|
@@ -33,7 +33,7 @@ const still = async () => {
|
|
|
33
33
|
log_1.Log.verbose('Output file has a PNG extension, therefore setting the image format to PNG.');
|
|
34
34
|
remotion_1.Config.Rendering.setImageFormat('png');
|
|
35
35
|
}
|
|
36
|
-
const { inputProps, envVariables, quality, browser, imageFormat, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, overwrite, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'still' });
|
|
36
|
+
const { inputProps, envVariables, quality, browser, imageFormat, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, ffprobeExecutable, overwrite, puppeteerTimeout, port, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'still' });
|
|
37
37
|
log_1.Log.verbose('Browser executable: ', browserExecutable);
|
|
38
38
|
if (imageFormat === 'none') {
|
|
39
39
|
log_1.Log.error('No image format was selected - this is probably an error in Remotion - please post your command on Github Issues for help.');
|
|
@@ -73,6 +73,7 @@ const still = async () => {
|
|
|
73
73
|
port,
|
|
74
74
|
browserExecutable,
|
|
75
75
|
ffmpegExecutable,
|
|
76
|
+
ffprobeExecutable,
|
|
76
77
|
});
|
|
77
78
|
const compositionId = (0, get_composition_id_1.getCompositionId)(comps);
|
|
78
79
|
const composition = comps.find((c) => c.id === compositionId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,18 +23,17 @@
|
|
|
23
23
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/bundler": "3.0.
|
|
27
|
-
"@remotion/media-utils": "3.0.
|
|
28
|
-
"@remotion/player": "3.0.
|
|
29
|
-
"@remotion/renderer": "3.0.
|
|
26
|
+
"@remotion/bundler": "3.0.18",
|
|
27
|
+
"@remotion/media-utils": "3.0.18",
|
|
28
|
+
"@remotion/player": "3.0.18",
|
|
29
|
+
"@remotion/renderer": "3.0.18",
|
|
30
30
|
"better-opn": "2.1.1",
|
|
31
31
|
"chalk": "4.1.2",
|
|
32
32
|
"dotenv": "9.0.2",
|
|
33
33
|
"execa": "5.1.1",
|
|
34
34
|
"minimist": "1.2.6",
|
|
35
|
-
"remotion": "3.0.
|
|
36
|
-
"semver": "7.3.5"
|
|
37
|
-
"webpack": "5.72.0"
|
|
35
|
+
"remotion": "3.0.18",
|
|
36
|
+
"semver": "7.3.5"
|
|
38
37
|
},
|
|
39
38
|
"peerDependencies": {
|
|
40
39
|
"react": ">=16.8.0",
|
|
@@ -72,5 +71,5 @@
|
|
|
72
71
|
"publishConfig": {
|
|
73
72
|
"access": "public"
|
|
74
73
|
},
|
|
75
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "64eadd48b303d0f627ed5883f9200345af002ee2"
|
|
76
75
|
}
|