@remotion/cli 3.2.44 → 3.3.0
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 +2 -0
- package/dist/compositions.js +2 -1
- package/dist/deps.d.ts +2 -0
- package/dist/deps.js +36 -0
- package/dist/entry-point.js +3 -3
- package/dist/get-cli-options.d.ts +2 -1
- package/dist/get-cli-options.js +9 -5
- package/dist/get-env.js +2 -2
- package/dist/get-render-media-options.d.ts +2 -1
- package/dist/get-render-media-options.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/install.d.ts +2 -0
- package/dist/install.js +36 -0
- package/dist/preview-server/project-info.js +9 -1
- package/dist/preview.js +1 -1
- package/dist/print-help.js +4 -0
- package/dist/render.js +4 -1
- package/dist/still.js +2 -1
- package/package.json +7 -7
package/dist/benchmark.js
CHANGED
|
@@ -101,6 +101,7 @@ const benchmarkCommand = async (remotionRoot, args) => {
|
|
|
101
101
|
const { inputProps, envVariables, browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, port, puppeteerTimeout, browser, scale, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
|
|
102
102
|
isLambda: false,
|
|
103
103
|
type: 'series',
|
|
104
|
+
remotionRoot,
|
|
104
105
|
});
|
|
105
106
|
log_1.Log.verbose('Entry point:', file, 'reason:', reason);
|
|
106
107
|
const browserInstance = (0, renderer_1.openBrowser)(browser, {
|
|
@@ -154,6 +155,7 @@ const benchmarkCommand = async (remotionRoot, args) => {
|
|
|
154
155
|
outputLocation: undefined,
|
|
155
156
|
serveUrl: bundleLocation,
|
|
156
157
|
codec,
|
|
158
|
+
remotionRoot,
|
|
157
159
|
});
|
|
158
160
|
const concurrency = getValidConcurrency(renderMediaOptions);
|
|
159
161
|
benchmark[composition.id] = {};
|
package/dist/compositions.js
CHANGED
|
@@ -29,7 +29,7 @@ const listCompositionsCommand = async (remotionRoot, args) => {
|
|
|
29
29
|
const { file, reason } = (0, entry_point_1.findEntryPoint)(args, remotionRoot);
|
|
30
30
|
if (!file) {
|
|
31
31
|
log_1.Log.error('The `compositions` command requires you to specify a entry point. For example');
|
|
32
|
-
log_1.Log.error(' npx remotion compositions src/index.
|
|
32
|
+
log_1.Log.error(' npx remotion compositions src/index.ts');
|
|
33
33
|
log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
|
|
34
34
|
process.exit(1);
|
|
35
35
|
}
|
|
@@ -40,6 +40,7 @@ const listCompositionsCommand = async (remotionRoot, args) => {
|
|
|
40
40
|
const { browserExecutable, ffmpegExecutable, ffprobeExecutable, chromiumOptions, envVariables, inputProps, puppeteerTimeout, port, publicDir, } = await (0, get_cli_options_1.getCliOptions)({
|
|
41
41
|
isLambda: false,
|
|
42
42
|
type: 'get-compositions',
|
|
43
|
+
remotionRoot,
|
|
43
44
|
});
|
|
44
45
|
const { urlOrBundle: bundled, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
|
|
45
46
|
remotionRoot,
|
package/dist/deps.d.ts
ADDED
package/dist/deps.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installCommand = exports.INSTALL_COMMAND = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
exports.INSTALL_COMMAND = 'install';
|
|
7
|
+
const installCommand = async (remotionRoot, args) => {
|
|
8
|
+
const firstArg = args[0];
|
|
9
|
+
if (firstArg === 'ffmpeg') {
|
|
10
|
+
const { wasAlreadyInstalled } = await (0, renderer_1.ensureFfmpeg)({ remotionRoot });
|
|
11
|
+
if (wasAlreadyInstalled) {
|
|
12
|
+
log_1.Log.info('FFmpeg is already installed');
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
log_1.Log.info('Successfully installed FFmpeg');
|
|
16
|
+
}
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (firstArg === 'ffprobe') {
|
|
20
|
+
const { wasAlreadyInstalled } = await (0, renderer_1.ensureFfprobe)({ remotionRoot });
|
|
21
|
+
if (wasAlreadyInstalled) {
|
|
22
|
+
log_1.Log.info('FFmpeg is already installed');
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
log_1.Log.info('Successfully installed FFmpeg');
|
|
26
|
+
}
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
log_1.Log.error('Please specify either "ffmpeg" or "ffprobe" as the first argument to the install command');
|
|
30
|
+
log_1.Log.error();
|
|
31
|
+
log_1.Log.info('Example Usage: ');
|
|
32
|
+
log_1.Log.info(' remotion install ffmpeg');
|
|
33
|
+
log_1.Log.info(' remotion install ffprobe');
|
|
34
|
+
process.exit(1);
|
|
35
|
+
};
|
|
36
|
+
exports.installCommand = installCommand;
|
package/dist/entry-point.js
CHANGED
|
@@ -9,12 +9,12 @@ const path_1 = __importDefault(require("path"));
|
|
|
9
9
|
const config_1 = require("./config");
|
|
10
10
|
const log_1 = require("./log");
|
|
11
11
|
const candidates = [
|
|
12
|
+
path_1.default.join('src', 'index.ts'),
|
|
13
|
+
path_1.default.join('src', 'index.tsx'),
|
|
14
|
+
path_1.default.join('src', 'index.js'),
|
|
12
15
|
path_1.default.join('remotion', 'index.tsx'),
|
|
13
16
|
path_1.default.join('remotion', 'index.ts'),
|
|
14
17
|
path_1.default.join('remotion', 'index.js'),
|
|
15
|
-
path_1.default.join('src', 'index.tsx'),
|
|
16
|
-
path_1.default.join('src', 'index.ts'),
|
|
17
|
-
path_1.default.join('src', 'index.js'),
|
|
18
18
|
];
|
|
19
19
|
const findCommonPath = (remotionRoot) => {
|
|
20
20
|
return candidates.find((candidate) => (0, fs_1.existsSync)(path_1.default.resolve(remotionRoot, candidate)));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BrowserExecutable, ChromiumOptions, Codec, FrameRange } from '@remotion/renderer';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const validateFfmepgCanUseCodec: (codec: Codec, remotionRoot: string) => Promise<void>;
|
|
3
3
|
export declare const getFinalCodec: (options: {
|
|
4
4
|
downloadName: string | null;
|
|
5
5
|
outName: string | null;
|
|
@@ -11,6 +11,7 @@ export declare const getAndValidateAbsoluteOutputFile: (relativeOutputLocation:
|
|
|
11
11
|
export declare const getCliOptions: (options: {
|
|
12
12
|
isLambda: boolean;
|
|
13
13
|
type: 'still' | 'series' | 'get-compositions';
|
|
14
|
+
remotionRoot: string;
|
|
14
15
|
}) => Promise<{
|
|
15
16
|
puppeteerTimeout: number;
|
|
16
17
|
concurrency: number | null;
|
package/dist/get-cli-options.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getCliOptions = exports.getAndValidateAbsoluteOutputFile = exports.getFinalCodec = exports.
|
|
6
|
+
exports.getCliOptions = exports.getAndValidateAbsoluteOutputFile = exports.getFinalCodec = exports.validateFfmepgCanUseCodec = void 0;
|
|
7
7
|
const renderer_1 = require("@remotion/renderer");
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -22,12 +22,13 @@ const getAndValidateFrameRange = () => {
|
|
|
22
22
|
}
|
|
23
23
|
return frameRange;
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const validateFfmepgCanUseCodec = async (codec, remotionRoot) => {
|
|
26
26
|
const ffmpegExecutable = config_1.ConfigInternals.getCustomFfmpegExecutable();
|
|
27
27
|
if (codec === 'vp8' &&
|
|
28
28
|
!(await renderer_1.RenderInternals.ffmpegHasFeature({
|
|
29
29
|
feature: 'enable-libvpx',
|
|
30
30
|
ffmpegExecutable,
|
|
31
|
+
remotionRoot,
|
|
31
32
|
}))) {
|
|
32
33
|
log_1.Log.error("The Vp8 codec has been selected, but your FFMPEG binary wasn't compiled with the --enable-lipvpx flag.");
|
|
33
34
|
log_1.Log.error('This does not work, please switch out your FFMPEG binary or choose a different codec.');
|
|
@@ -36,6 +37,7 @@ const validateFfmpegCanUseCodec = async (codec) => {
|
|
|
36
37
|
!(await renderer_1.RenderInternals.ffmpegHasFeature({
|
|
37
38
|
feature: 'enable-gpl',
|
|
38
39
|
ffmpegExecutable,
|
|
40
|
+
remotionRoot,
|
|
39
41
|
}))) {
|
|
40
42
|
log_1.Log.error("The H265 codec has been selected, but your FFMPEG binary wasn't compiled with the --enable-gpl flag.");
|
|
41
43
|
log_1.Log.error('This does not work, please recompile your FFMPEG binary with --enable-gpl --enable-libx265 or choose a different codec.');
|
|
@@ -44,12 +46,13 @@ const validateFfmpegCanUseCodec = async (codec) => {
|
|
|
44
46
|
!(await renderer_1.RenderInternals.ffmpegHasFeature({
|
|
45
47
|
feature: 'enable-libx265',
|
|
46
48
|
ffmpegExecutable,
|
|
49
|
+
remotionRoot,
|
|
47
50
|
}))) {
|
|
48
51
|
log_1.Log.error("The H265 codec has been selected, but your FFMPEG binary wasn't compiled with the --enable-libx265 flag.");
|
|
49
52
|
log_1.Log.error('This does not work, please recompile your FFMPEG binary with --enable-gpl --enable-libx265 or choose a different codec.');
|
|
50
53
|
}
|
|
51
54
|
};
|
|
52
|
-
exports.
|
|
55
|
+
exports.validateFfmepgCanUseCodec = validateFfmepgCanUseCodec;
|
|
53
56
|
const getFinalCodec = (options) => {
|
|
54
57
|
var _a;
|
|
55
58
|
const { codec, reason } = (0, get_final_output_codec_1.getFinalOutputCodec)({
|
|
@@ -71,11 +74,11 @@ const getAndValidateAbsoluteOutputFile = (relativeOutputLocation, overwrite) =>
|
|
|
71
74
|
return absoluteOutputFile;
|
|
72
75
|
};
|
|
73
76
|
exports.getAndValidateAbsoluteOutputFile = getAndValidateAbsoluteOutputFile;
|
|
74
|
-
const getAndValidateShouldOutputImageSequence = async ({ frameRange, isLambda, }) => {
|
|
77
|
+
const getAndValidateShouldOutputImageSequence = async ({ frameRange, isLambda, remotionRoot, }) => {
|
|
75
78
|
const shouldOutputImageSequence = config_1.ConfigInternals.getShouldOutputImageSequence(frameRange);
|
|
76
79
|
// When parsing options locally, we don't need FFMPEG because the render will happen on Lambda
|
|
77
80
|
if (!shouldOutputImageSequence && !isLambda) {
|
|
78
|
-
await renderer_1.RenderInternals.validateFfmpeg(config_1.ConfigInternals.getCustomFfmpegExecutable());
|
|
81
|
+
await renderer_1.RenderInternals.validateFfmpeg(config_1.ConfigInternals.getCustomFfmpegExecutable(), remotionRoot, 'ffmpeg');
|
|
79
82
|
}
|
|
80
83
|
return shouldOutputImageSequence;
|
|
81
84
|
};
|
|
@@ -109,6 +112,7 @@ const getCliOptions = async (options) => {
|
|
|
109
112
|
: await getAndValidateShouldOutputImageSequence({
|
|
110
113
|
frameRange,
|
|
111
114
|
isLambda: options.isLambda,
|
|
115
|
+
remotionRoot: options.remotionRoot,
|
|
112
116
|
});
|
|
113
117
|
const overwrite = config_1.ConfigInternals.getShouldOverwrite({
|
|
114
118
|
defaultValue: !options.isLambda,
|
package/dist/get-env.js
CHANGED
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getEnvironmentVariables = void 0;
|
|
7
|
+
const renderer_1 = require("@remotion/renderer");
|
|
7
8
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
8
9
|
const fs_1 = __importDefault(require("fs"));
|
|
9
10
|
const path_1 = __importDefault(require("path"));
|
|
10
11
|
const chalk_1 = require("./chalk");
|
|
11
12
|
const config_1 = require("./config");
|
|
12
|
-
const find_closest_package_json_1 = require("./find-closest-package-json");
|
|
13
13
|
const log_1 = require("./log");
|
|
14
14
|
const parse_command_line_1 = require("./parse-command-line");
|
|
15
15
|
function getProcessEnv() {
|
|
@@ -91,7 +91,7 @@ const getEnvironmentVariables = (onUpdate) => {
|
|
|
91
91
|
}
|
|
92
92
|
return getEnvForEnvFile(processEnv, envFile, onUpdate);
|
|
93
93
|
}
|
|
94
|
-
const remotionRoot =
|
|
94
|
+
const remotionRoot = renderer_1.RenderInternals.findRemotionRoot();
|
|
95
95
|
const configFileSetting = config_1.ConfigInternals.getDotEnvLocation();
|
|
96
96
|
if (configFileSetting) {
|
|
97
97
|
const envFile = path_1.default.resolve(remotionRoot, configFileSetting);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Codec, RenderMediaOptions } from '@remotion/renderer';
|
|
2
|
-
export declare const getRenderMediaOptions: ({ outputLocation, config, serveUrl, codec, }: {
|
|
2
|
+
export declare const getRenderMediaOptions: ({ outputLocation, config, serveUrl, codec, remotionRoot, }: {
|
|
3
3
|
outputLocation: RenderMediaOptions['outputLocation'];
|
|
4
4
|
config: RenderMediaOptions['composition'];
|
|
5
5
|
serveUrl: string;
|
|
6
6
|
codec: Codec;
|
|
7
|
+
remotionRoot: string;
|
|
7
8
|
}) => Promise<RenderMediaOptions>;
|
|
@@ -5,10 +5,11 @@ const renderer_1 = require("@remotion/renderer");
|
|
|
5
5
|
const config_1 = require("./config");
|
|
6
6
|
const get_cli_options_1 = require("./get-cli-options");
|
|
7
7
|
const image_formats_1 = require("./image-formats");
|
|
8
|
-
const getRenderMediaOptions = async ({ outputLocation, config, serveUrl, codec, }) => {
|
|
8
|
+
const getRenderMediaOptions = async ({ outputLocation, config, serveUrl, codec, remotionRoot, }) => {
|
|
9
9
|
const { proResProfile, concurrency, frameRange, overwrite, inputProps, envVariables, quality, crf, pixelFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, height, width, } = await (0, get_cli_options_1.getCliOptions)({
|
|
10
10
|
isLambda: false,
|
|
11
11
|
type: 'series',
|
|
12
|
+
remotionRoot,
|
|
12
13
|
});
|
|
13
14
|
const imageFormat = (0, image_formats_1.getImageFormat)(codec);
|
|
14
15
|
return {
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export declare const CliInternals: {
|
|
|
69
69
|
getCliOptions: (options: {
|
|
70
70
|
isLambda: boolean;
|
|
71
71
|
type: "still" | "series" | "get-compositions";
|
|
72
|
+
remotionRoot: string;
|
|
72
73
|
}) => Promise<{
|
|
73
74
|
puppeteerTimeout: number;
|
|
74
75
|
concurrency: number | null;
|
|
@@ -114,7 +115,6 @@ export declare const CliInternals: {
|
|
|
114
115
|
signed: boolean;
|
|
115
116
|
}) => string;
|
|
116
117
|
getFileSizeDownloadBar: (downloaded: number) => string;
|
|
117
|
-
findRemotionRoot: () => string;
|
|
118
118
|
getFinalCodec: (options: {
|
|
119
119
|
downloadName: string | null;
|
|
120
120
|
outName: string | null;
|
package/dist/index.js
CHANGED
|
@@ -27,13 +27,13 @@ const index_1 = require("./config/index");
|
|
|
27
27
|
const determine_image_format_1 = require("./determine-image-format");
|
|
28
28
|
const download_progress_1 = require("./download-progress");
|
|
29
29
|
const entry_point_1 = require("./entry-point");
|
|
30
|
-
const find_closest_package_json_1 = require("./find-closest-package-json");
|
|
31
30
|
const format_bytes_1 = require("./format-bytes");
|
|
32
31
|
const get_cli_options_1 = require("./get-cli-options");
|
|
33
32
|
const get_config_file_name_1 = require("./get-config-file-name");
|
|
34
33
|
const handle_common_errors_1 = require("./handle-common-errors");
|
|
35
34
|
const image_formats_1 = require("./image-formats");
|
|
36
35
|
const initialize_cli_1 = require("./initialize-cli");
|
|
36
|
+
const install_1 = require("./install");
|
|
37
37
|
const lambda_command_1 = require("./lambda-command");
|
|
38
38
|
const log_1 = require("./log");
|
|
39
39
|
const make_progress_bar_1 = require("./make-progress-bar");
|
|
@@ -53,7 +53,7 @@ const cli = async () => {
|
|
|
53
53
|
(0, print_help_1.printHelp)();
|
|
54
54
|
process.exit(0);
|
|
55
55
|
}
|
|
56
|
-
const remotionRoot =
|
|
56
|
+
const remotionRoot = renderer_1.RenderInternals.findRemotionRoot();
|
|
57
57
|
if (command !== versions_1.VERSIONS_COMMAND) {
|
|
58
58
|
await (0, versions_1.validateVersionsBeforeCommand)(remotionRoot);
|
|
59
59
|
}
|
|
@@ -81,6 +81,9 @@ const cli = async () => {
|
|
|
81
81
|
else if (command === versions_1.VERSIONS_COMMAND) {
|
|
82
82
|
await (0, versions_1.versionsCommand)(remotionRoot);
|
|
83
83
|
}
|
|
84
|
+
else if (command === install_1.INSTALL_COMMAND) {
|
|
85
|
+
await (0, install_1.installCommand)(remotionRoot, args);
|
|
86
|
+
}
|
|
84
87
|
else if (command === 'benchmark') {
|
|
85
88
|
await (0, benchmark_1.benchmarkCommand)(remotionRoot, args);
|
|
86
89
|
}
|
|
@@ -124,7 +127,6 @@ exports.CliInternals = {
|
|
|
124
127
|
handleCommonError: handle_common_errors_1.handleCommonError,
|
|
125
128
|
formatBytes: format_bytes_1.formatBytes,
|
|
126
129
|
getFileSizeDownloadBar: download_progress_1.getFileSizeDownloadBar,
|
|
127
|
-
findRemotionRoot: find_closest_package_json_1.findRemotionRoot,
|
|
128
130
|
getFinalCodec: get_cli_options_1.getFinalCodec,
|
|
129
131
|
determineFinalImageFormat: determine_image_format_1.determineFinalImageFormat,
|
|
130
132
|
minimist: minimist_1.default,
|
package/dist/install.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installCommand = exports.INSTALL_COMMAND = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
exports.INSTALL_COMMAND = 'install';
|
|
7
|
+
const installCommand = async (remotionRoot, args) => {
|
|
8
|
+
const firstArg = args[0];
|
|
9
|
+
if (firstArg === 'ffmpeg') {
|
|
10
|
+
const { wasAlreadyInstalled } = await (0, renderer_1.ensureFfmpeg)({ remotionRoot });
|
|
11
|
+
if (wasAlreadyInstalled) {
|
|
12
|
+
log_1.Log.info('FFmpeg is already installed');
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
log_1.Log.info('Successfully installed FFmpeg');
|
|
16
|
+
}
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (firstArg === 'ffprobe') {
|
|
20
|
+
const { wasAlreadyInstalled } = await (0, renderer_1.ensureFfprobe)({ remotionRoot });
|
|
21
|
+
if (wasAlreadyInstalled) {
|
|
22
|
+
log_1.Log.info('FFmpeg is already installed');
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
log_1.Log.info('Successfully installed FFmpeg');
|
|
26
|
+
}
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
log_1.Log.error('Please specify either "ffmpeg" or "ffprobe" as the first argument to the install command');
|
|
30
|
+
log_1.Log.error();
|
|
31
|
+
log_1.Log.info('Example Usage: ');
|
|
32
|
+
log_1.Log.info(' remotion install ffmpeg');
|
|
33
|
+
log_1.Log.info(' remotion install ffprobe');
|
|
34
|
+
process.exit(1);
|
|
35
|
+
};
|
|
36
|
+
exports.installCommand = installCommand;
|
|
@@ -8,7 +8,15 @@ const fs_1 = require("fs");
|
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const getProjectInfo = (remotionRoot) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const pathsToLookFor = [
|
|
11
|
+
const pathsToLookFor = [
|
|
12
|
+
'src/Root.tsx',
|
|
13
|
+
'src/Root.jsx',
|
|
14
|
+
'remotion/Root.tsx',
|
|
15
|
+
'remotion/Root.jsx',
|
|
16
|
+
'app/remotion/Root.tsx',
|
|
17
|
+
'src/Video.tsx',
|
|
18
|
+
'src/Video.jsx',
|
|
19
|
+
].map((p) => {
|
|
12
20
|
return path_1.default.join(remotionRoot, p);
|
|
13
21
|
});
|
|
14
22
|
const videoFile = (_a = pathsToLookFor.find((p) => (0, fs_1.existsSync)(p))) !== null && _a !== void 0 ? _a : null;
|
package/dist/preview.js
CHANGED
|
@@ -37,7 +37,7 @@ const previewCommand = async (remotionRoot, args) => {
|
|
|
37
37
|
log_1.Log.verbose('Entry point:', file, 'reason:', reason);
|
|
38
38
|
if (!file) {
|
|
39
39
|
log_1.Log.error('The preview command requires you to specify a root file. For example');
|
|
40
|
-
log_1.Log.error(' npx remotion preview src/index.
|
|
40
|
+
log_1.Log.error(' npx remotion preview src/index.ts');
|
|
41
41
|
log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
|
|
42
42
|
process.exit(1);
|
|
43
43
|
}
|
package/dist/print-help.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printHelp = void 0;
|
|
4
4
|
const chalk_1 = require("./chalk");
|
|
5
|
+
const install_1 = require("./install");
|
|
5
6
|
const log_1 = require("./log");
|
|
6
7
|
const versions_1 = require("./versions");
|
|
7
8
|
const packagejson = require('../package.json');
|
|
@@ -67,6 +68,9 @@ const printHelp = () => {
|
|
|
67
68
|
log_1.Log.info('remotion ' + versions_1.VERSIONS_COMMAND);
|
|
68
69
|
log_1.Log.info(chalk_1.chalk.gray('Prints and validates versions of all Remotion packages.'));
|
|
69
70
|
log_1.Log.info();
|
|
71
|
+
log_1.Log.info(`remotion ${install_1.INSTALL_COMMAND} <ffmpeg|ffprobe>`);
|
|
72
|
+
log_1.Log.info(chalk_1.chalk.gray('Installs dependencies of Remotion'));
|
|
73
|
+
log_1.Log.info();
|
|
70
74
|
log_1.Log.info('remotion upgrade');
|
|
71
75
|
log_1.Log.info(chalk_1.chalk.gray('Ensure Remotion is on the newest version.'));
|
|
72
76
|
printFlags([
|
package/dist/render.js
CHANGED
|
@@ -44,9 +44,11 @@ const render = async (remotionRoot, args) => {
|
|
|
44
44
|
const { concurrency, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, quality, browser, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, everyNthFrame, puppeteerTimeout, publicDir, height, width, } = await (0, get_cli_options_1.getCliOptions)({
|
|
45
45
|
isLambda: false,
|
|
46
46
|
type: 'series',
|
|
47
|
+
remotionRoot,
|
|
47
48
|
});
|
|
48
49
|
const ffmpegVersion = await renderer_1.RenderInternals.getFfmpegVersion({
|
|
49
50
|
ffmpegExecutable,
|
|
51
|
+
remotionRoot,
|
|
50
52
|
});
|
|
51
53
|
log_1.Log.verbose('FFMPEG Version:', ffmpegVersion ? ffmpegVersion.join('.') : 'Built from source');
|
|
52
54
|
log_1.Log.verbose('Browser executable: ', browserExecutable);
|
|
@@ -106,7 +108,7 @@ const render = async (remotionRoot, args) => {
|
|
|
106
108
|
downloadName: null,
|
|
107
109
|
outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(argsAfterComposition),
|
|
108
110
|
});
|
|
109
|
-
(0, get_cli_options_1.
|
|
111
|
+
(0, get_cli_options_1.validateFfmepgCanUseCodec)(codec, remotionRoot);
|
|
110
112
|
renderer_1.RenderInternals.validateEvenDimensionsWithCodec({
|
|
111
113
|
width: config.width,
|
|
112
114
|
height: config.height,
|
|
@@ -218,6 +220,7 @@ const render = async (remotionRoot, args) => {
|
|
|
218
220
|
outputLocation: absoluteOutputFile,
|
|
219
221
|
serveUrl: urlOrBundle,
|
|
220
222
|
codec,
|
|
223
|
+
remotionRoot,
|
|
221
224
|
});
|
|
222
225
|
await (0, renderer_1.renderMedia)({
|
|
223
226
|
...options,
|
package/dist/still.js
CHANGED
|
@@ -39,6 +39,7 @@ const still = async (remotionRoot, args) => {
|
|
|
39
39
|
const { inputProps, envVariables, quality, browser, stillFrame, browserExecutable, chromiumOptions, scale, ffmpegExecutable, ffprobeExecutable, overwrite, puppeteerTimeout, port, publicDir, height, width, } = await (0, get_cli_options_1.getCliOptions)({
|
|
40
40
|
isLambda: false,
|
|
41
41
|
type: 'still',
|
|
42
|
+
remotionRoot,
|
|
42
43
|
});
|
|
43
44
|
log_1.Log.verbose('Browser executable: ', browserExecutable);
|
|
44
45
|
const browserInstance = (0, renderer_1.openBrowser)(browser, {
|
|
@@ -147,7 +148,7 @@ const still = async (remotionRoot, args) => {
|
|
|
147
148
|
frames = 1;
|
|
148
149
|
updateProgress();
|
|
149
150
|
log_1.Log.info();
|
|
150
|
-
const closeBrowserPromise = puppeteerInstance.close();
|
|
151
|
+
const closeBrowserPromise = puppeteerInstance.close(false);
|
|
151
152
|
log_1.Log.info(chalk_1.chalk.green('\nYour still frame is ready!'));
|
|
152
153
|
const seconds = Math.round((Date.now() - startTime) / 1000);
|
|
153
154
|
log_1.Log.info([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@remotion/bundler": "3.
|
|
26
|
-
"@remotion/media-utils": "3.
|
|
27
|
-
"@remotion/player": "3.
|
|
28
|
-
"@remotion/renderer": "3.
|
|
25
|
+
"@remotion/bundler": "3.3.0",
|
|
26
|
+
"@remotion/media-utils": "3.3.0",
|
|
27
|
+
"@remotion/player": "3.3.0",
|
|
28
|
+
"@remotion/renderer": "3.3.0",
|
|
29
29
|
"better-opn": "2.1.1",
|
|
30
30
|
"dotenv": "9.0.2",
|
|
31
31
|
"memfs": "3.4.3",
|
|
32
32
|
"minimist": "1.2.6",
|
|
33
33
|
"prompts": "2.4.1",
|
|
34
|
-
"remotion": "3.
|
|
34
|
+
"remotion": "3.3.0",
|
|
35
35
|
"semver": "7.3.5",
|
|
36
36
|
"source-map": "0.6.1"
|
|
37
37
|
},
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "29322c95729df0229eecc5f674d019145a783b46"
|
|
76
76
|
}
|