@remotion/cli 4.0.141 → 4.0.143
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 +32 -32
- package/dist/browser/ensure.js +2 -2
- package/dist/bundle.js +6 -6
- package/dist/compositions.js +11 -11
- package/dist/config/preview-server.js +2 -2
- package/dist/ffmpeg.js +3 -3
- package/dist/get-config-file-name.js +5 -5
- package/dist/get-env.js +3 -3
- package/dist/get-input-props.js +6 -6
- package/dist/get-render-defaults.js +22 -22
- package/dist/gpu.js +6 -6
- package/dist/image-formats.js +5 -5
- package/dist/index.d.ts +5 -71
- package/dist/index.js +7 -7
- package/dist/initialize-cli.js +2 -1
- package/dist/log.d.ts +4 -4
- package/dist/parse-command-line.d.ts +1 -6
- package/dist/parse-command-line.js +36 -74
- package/dist/parsed-cli.d.ts +6 -0
- package/dist/parsed-cli.js +43 -0
- package/dist/print-compositions.js +3 -3
- package/dist/render-flows/render.js +4 -4
- package/dist/render-flows/still.js +5 -5
- package/dist/render-queue/process-still.js +2 -2
- package/dist/render-queue/process-video.js +2 -2
- package/dist/render.js +28 -28
- package/dist/still.js +13 -13
- package/dist/studio.js +10 -10
- package/dist/user-passed-output-location.js +3 -3
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -61,12 +61,12 @@ export declare const CliInternals: {
|
|
|
61
61
|
Log: {
|
|
62
62
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
63
63
|
tag?: string | undefined;
|
|
64
|
-
},
|
|
65
|
-
info: (options: import("@remotion/renderer").LogOptions,
|
|
66
|
-
warn: (options: import("@remotion/renderer").LogOptions,
|
|
64
|
+
}, ...args: any[]) => void;
|
|
65
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
|
|
66
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
|
|
67
67
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
68
68
|
tag?: string | undefined;
|
|
69
|
-
},
|
|
69
|
+
}, ...args: any[]) => void;
|
|
70
70
|
};
|
|
71
71
|
getCliOptions: (options: {
|
|
72
72
|
isStill: boolean;
|
|
@@ -100,73 +100,7 @@ export declare const CliInternals: {
|
|
|
100
100
|
initializeCli: (remotionRoot: string) => Promise<"verbose" | "info" | "warn" | "error">;
|
|
101
101
|
BooleanFlags: string[];
|
|
102
102
|
quietFlagProvided: () => boolean;
|
|
103
|
-
parsedCli: {
|
|
104
|
-
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
105
|
-
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
106
|
-
"image-format": "png" | "jpeg" | "pdf" | "webp" | "none";
|
|
107
|
-
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
108
|
-
"bundle-cache": string;
|
|
109
|
-
"env-file": string;
|
|
110
|
-
"ignore-certificate-errors": string;
|
|
111
|
-
"disable-web-security": string;
|
|
112
|
-
"every-nth-frame": number;
|
|
113
|
-
"number-of-shared-audio-tags": number;
|
|
114
|
-
version: string;
|
|
115
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
116
|
-
concurrency: number;
|
|
117
|
-
timeout: number;
|
|
118
|
-
config: string;
|
|
119
|
-
"public-dir": string;
|
|
120
|
-
crf: number;
|
|
121
|
-
force: boolean;
|
|
122
|
-
output: string;
|
|
123
|
-
overwrite: boolean;
|
|
124
|
-
png: boolean;
|
|
125
|
-
props: string;
|
|
126
|
-
quality: number;
|
|
127
|
-
frames: string | number;
|
|
128
|
-
scale: number;
|
|
129
|
-
sequence: boolean;
|
|
130
|
-
quiet: boolean;
|
|
131
|
-
q: boolean;
|
|
132
|
-
log: string;
|
|
133
|
-
help: boolean;
|
|
134
|
-
port: number;
|
|
135
|
-
frame: string | number;
|
|
136
|
-
"disable-headless": boolean;
|
|
137
|
-
"disable-keyboard-shortcuts": boolean;
|
|
138
|
-
muted: boolean;
|
|
139
|
-
height: number;
|
|
140
|
-
width: number;
|
|
141
|
-
runs: number;
|
|
142
|
-
concurrencies: string;
|
|
143
|
-
gl: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
144
|
-
"package-manager": string;
|
|
145
|
-
"webpack-poll": number;
|
|
146
|
-
"no-open": boolean;
|
|
147
|
-
browser: string;
|
|
148
|
-
"browser-args": string;
|
|
149
|
-
"user-agent": string;
|
|
150
|
-
"out-dir": string;
|
|
151
|
-
ipv4: boolean;
|
|
152
|
-
repro: boolean;
|
|
153
|
-
"x264-preset": "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
154
|
-
"number-of-gif-loops": number | null;
|
|
155
|
-
"offthreadvideo-cache-size-in-bytes": number | null;
|
|
156
|
-
"color-space": "default" | "bt709" | "bt2020-ncl";
|
|
157
|
-
"beep-on-finish": boolean;
|
|
158
|
-
"audio-bitrate": string | null;
|
|
159
|
-
"video-bitrate": string | null;
|
|
160
|
-
"buffer-size": string | null;
|
|
161
|
-
"max-rate": string | null;
|
|
162
|
-
"audio-codec": "mp3" | "aac" | "pcm-16" | "opus";
|
|
163
|
-
"public-path": string;
|
|
164
|
-
"jpeg-quality": number;
|
|
165
|
-
"enforce-audio-track": boolean;
|
|
166
|
-
"delete-after": import("@remotion/renderer").DeleteAfter | null;
|
|
167
|
-
"enable-folder-expiry": boolean | null;
|
|
168
|
-
"enable-multiprocess-on-linux": boolean;
|
|
169
|
-
} & {
|
|
103
|
+
parsedCli: import("./parse-command-line").CommandLineOptions & {
|
|
170
104
|
_: string[];
|
|
171
105
|
};
|
|
172
106
|
printError: (err: Error, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ const lambda_command_1 = require("./lambda-command");
|
|
|
29
29
|
const list_of_remotion_packages_1 = require("./list-of-remotion-packages");
|
|
30
30
|
const log_1 = require("./log");
|
|
31
31
|
const make_progress_bar_1 = require("./make-progress-bar");
|
|
32
|
-
const
|
|
32
|
+
const parsed_cli_1 = require("./parsed-cli");
|
|
33
33
|
const print_compositions_1 = require("./print-compositions");
|
|
34
34
|
const print_error_1 = require("./print-error");
|
|
35
35
|
const print_help_1 = require("./print-help");
|
|
@@ -41,8 +41,8 @@ const studio_1 = require("./studio");
|
|
|
41
41
|
const upgrade_1 = require("./upgrade");
|
|
42
42
|
const versions_1 = require("./versions");
|
|
43
43
|
const cli = async () => {
|
|
44
|
-
const [command, ...args] =
|
|
45
|
-
if (
|
|
44
|
+
const [command, ...args] = parsed_cli_1.parsedCli._;
|
|
45
|
+
if (parsed_cli_1.parsedCli.help) {
|
|
46
46
|
(0, print_help_1.printHelp)('info');
|
|
47
47
|
process.exit(0);
|
|
48
48
|
}
|
|
@@ -101,7 +101,7 @@ const cli = async () => {
|
|
|
101
101
|
(0, ffmpeg_1.ffprobeCommand)(remotionRoot, process.argv.slice(3), logLevel);
|
|
102
102
|
}
|
|
103
103
|
else if (command === 'upgrade') {
|
|
104
|
-
await (0, upgrade_1.upgrade)(remotionRoot,
|
|
104
|
+
await (0, upgrade_1.upgrade)(remotionRoot, parsed_cli_1.parsedCli['package-manager'], parsed_cli_1.parsedCli.version, logLevel);
|
|
105
105
|
}
|
|
106
106
|
else if (command === versions_1.VERSIONS_COMMAND) {
|
|
107
107
|
await (0, versions_1.versionsCommand)(remotionRoot, logLevel);
|
|
@@ -145,9 +145,9 @@ exports.CliInternals = {
|
|
|
145
145
|
loadConfig: get_config_file_name_1.loadConfig,
|
|
146
146
|
formatBytes: studio_server_1.StudioServerInternals.formatBytes,
|
|
147
147
|
initializeCli: initialize_cli_1.initializeCli,
|
|
148
|
-
BooleanFlags:
|
|
149
|
-
quietFlagProvided:
|
|
150
|
-
parsedCli:
|
|
148
|
+
BooleanFlags: parsed_cli_1.BooleanFlags,
|
|
149
|
+
quietFlagProvided: parsed_cli_1.quietFlagProvided,
|
|
150
|
+
parsedCli: parsed_cli_1.parsedCli,
|
|
151
151
|
printError: print_error_1.printError,
|
|
152
152
|
getFileSizeDownloadBar: download_progress_1.getFileSizeDownloadBar,
|
|
153
153
|
determineFinalStillImageFormat: determine_image_format_1.determineFinalStillImageFormat,
|
package/dist/initialize-cli.js
CHANGED
|
@@ -5,11 +5,12 @@ const client_1 = require("@remotion/renderer/client");
|
|
|
5
5
|
const get_config_file_name_1 = require("./get-config-file-name");
|
|
6
6
|
const log_1 = require("./log");
|
|
7
7
|
const parse_command_line_1 = require("./parse-command-line");
|
|
8
|
+
const parsed_cli_1 = require("./parsed-cli");
|
|
8
9
|
const initializeCli = async (remotionRoot) => {
|
|
9
10
|
const appliedName = await (0, get_config_file_name_1.loadConfig)(remotionRoot);
|
|
10
11
|
(0, parse_command_line_1.parseCommandLine)();
|
|
11
12
|
const logLevel = client_1.BrowserSafeApis.options.logLevelOption.getValue({
|
|
12
|
-
commandLine:
|
|
13
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
13
14
|
}).value;
|
|
14
15
|
// Only now Log.verbose is available
|
|
15
16
|
log_1.Log.verbose({ indent: false, logLevel }, 'Remotion root directory:', remotionRoot);
|
package/dist/log.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
2
|
verbose: (options: import("@remotion/renderer").LogOptions & {
|
|
3
3
|
tag?: string | undefined;
|
|
4
|
-
},
|
|
5
|
-
info: (options: import("@remotion/renderer").LogOptions,
|
|
6
|
-
warn: (options: import("@remotion/renderer").LogOptions,
|
|
4
|
+
}, ...args: any[]) => void;
|
|
5
|
+
info: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
|
|
6
|
+
warn: (options: import("@remotion/renderer").LogOptions, ...args: any[]) => void;
|
|
7
7
|
error: (options: import("@remotion/renderer").LogOptions & {
|
|
8
8
|
tag?: string | undefined;
|
|
9
|
-
},
|
|
9
|
+
}, ...args: any[]) => void;
|
|
10
10
|
};
|
|
@@ -255,7 +255,7 @@ declare const beepOnFinishOption: {
|
|
|
255
255
|
setConfig: (value: string | null) => void;
|
|
256
256
|
type: string | null;
|
|
257
257
|
};
|
|
258
|
-
type CommandLineOptions = {
|
|
258
|
+
export type CommandLineOptions = {
|
|
259
259
|
['browser-executable']: BrowserExecutable;
|
|
260
260
|
['pixel-format']: PixelFormat;
|
|
261
261
|
['image-format']: VideoImageFormat | StillImageFormat;
|
|
@@ -322,10 +322,5 @@ type CommandLineOptions = {
|
|
|
322
322
|
[enableMultiprocessOnLinuxOption.cliFlag]: TypeOfOption<typeof enableMultiprocessOnLinuxOption>;
|
|
323
323
|
repro: boolean;
|
|
324
324
|
};
|
|
325
|
-
export declare const BooleanFlags: string[];
|
|
326
|
-
export declare const parsedCli: CommandLineOptions & {
|
|
327
|
-
_: string[];
|
|
328
|
-
};
|
|
329
325
|
export declare const parseCommandLine: () => void;
|
|
330
|
-
export declare const quietFlagProvided: () => boolean;
|
|
331
326
|
export {};
|
|
@@ -1,107 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
3
|
+
exports.parseCommandLine = void 0;
|
|
7
4
|
const client_1 = require("@remotion/renderer/client");
|
|
8
|
-
const minimist_1 = __importDefault(require("minimist"));
|
|
9
5
|
const config_1 = require("./config");
|
|
10
6
|
const log_1 = require("./log");
|
|
7
|
+
const parsed_cli_1 = require("./parsed-cli");
|
|
11
8
|
const { beepOnFinishOption, colorSpaceOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, } = client_1.BrowserSafeApis.options;
|
|
12
|
-
exports.BooleanFlags = [
|
|
13
|
-
'overwrite',
|
|
14
|
-
'force',
|
|
15
|
-
'sequence',
|
|
16
|
-
'help',
|
|
17
|
-
'quiet',
|
|
18
|
-
'q',
|
|
19
|
-
'muted',
|
|
20
|
-
enforceAudioOption.cliFlag,
|
|
21
|
-
// Lambda flags
|
|
22
|
-
'force',
|
|
23
|
-
'disable-chunk-optimization',
|
|
24
|
-
'save-browser-logs',
|
|
25
|
-
'disable-cloudwatch',
|
|
26
|
-
'enable-lambda-insights',
|
|
27
|
-
'yes',
|
|
28
|
-
'y',
|
|
29
|
-
'disable-web-security',
|
|
30
|
-
'ignore-certificate-errors',
|
|
31
|
-
'disable-headless',
|
|
32
|
-
'disable-keyboard-shortcuts',
|
|
33
|
-
'default-only',
|
|
34
|
-
'no-open',
|
|
35
|
-
'ipv4',
|
|
36
|
-
beepOnFinishOption.cliFlag,
|
|
37
|
-
'repro',
|
|
38
|
-
];
|
|
39
|
-
exports.parsedCli = (0, minimist_1.default)(process.argv.slice(2), {
|
|
40
|
-
boolean: exports.BooleanFlags,
|
|
41
|
-
default: {
|
|
42
|
-
overwrite: true,
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
9
|
const parseCommandLine = () => {
|
|
46
|
-
if (
|
|
47
|
-
config_1.Config.setPixelFormat(
|
|
10
|
+
if (parsed_cli_1.parsedCli['pixel-format']) {
|
|
11
|
+
config_1.Config.setPixelFormat(parsed_cli_1.parsedCli['pixel-format']);
|
|
48
12
|
}
|
|
49
|
-
if (
|
|
50
|
-
config_1.Config.setBrowserExecutable(
|
|
13
|
+
if (parsed_cli_1.parsedCli['browser-executable']) {
|
|
14
|
+
config_1.Config.setBrowserExecutable(parsed_cli_1.parsedCli['browser-executable']);
|
|
51
15
|
}
|
|
52
|
-
if (typeof
|
|
53
|
-
config_1.Config.setCachingEnabled(
|
|
16
|
+
if (typeof parsed_cli_1.parsedCli['bundle-cache'] !== 'undefined') {
|
|
17
|
+
config_1.Config.setCachingEnabled(parsed_cli_1.parsedCli['bundle-cache'] !== 'false');
|
|
54
18
|
}
|
|
55
|
-
if (
|
|
19
|
+
if (parsed_cli_1.parsedCli['disable-web-security']) {
|
|
56
20
|
config_1.Config.setChromiumDisableWebSecurity(true);
|
|
57
21
|
}
|
|
58
|
-
if (
|
|
22
|
+
if (parsed_cli_1.parsedCli['ignore-certificate-errors']) {
|
|
59
23
|
config_1.Config.setChromiumIgnoreCertificateErrors(true);
|
|
60
24
|
}
|
|
61
|
-
if (
|
|
62
|
-
config_1.Config.setChromiumUserAgent(
|
|
25
|
+
if (parsed_cli_1.parsedCli['user-agent']) {
|
|
26
|
+
config_1.Config.setChromiumUserAgent(parsed_cli_1.parsedCli['user-agent']);
|
|
63
27
|
}
|
|
64
|
-
if (
|
|
65
|
-
config_1.Config.setConcurrency(
|
|
28
|
+
if (parsed_cli_1.parsedCli.concurrency) {
|
|
29
|
+
config_1.Config.setConcurrency(parsed_cli_1.parsedCli.concurrency);
|
|
66
30
|
}
|
|
67
|
-
if (
|
|
68
|
-
config_1.Config.overrideHeight(
|
|
31
|
+
if (parsed_cli_1.parsedCli.height) {
|
|
32
|
+
config_1.Config.overrideHeight(parsed_cli_1.parsedCli.height);
|
|
69
33
|
}
|
|
70
|
-
if (
|
|
71
|
-
config_1.Config.overrideWidth(
|
|
34
|
+
if (parsed_cli_1.parsedCli.width) {
|
|
35
|
+
config_1.Config.overrideWidth(parsed_cli_1.parsedCli.width);
|
|
72
36
|
}
|
|
73
|
-
if (
|
|
74
|
-
config_1.ConfigInternals.setFrameRangeFromCli(
|
|
37
|
+
if (parsed_cli_1.parsedCli.frames) {
|
|
38
|
+
config_1.ConfigInternals.setFrameRangeFromCli(parsed_cli_1.parsedCli.frames);
|
|
75
39
|
}
|
|
76
|
-
if (
|
|
77
|
-
config_1.ConfigInternals.setStillFrame(Number(
|
|
40
|
+
if (parsed_cli_1.parsedCli.frame) {
|
|
41
|
+
config_1.ConfigInternals.setStillFrame(Number(parsed_cli_1.parsedCli.frame));
|
|
78
42
|
}
|
|
79
|
-
if (
|
|
43
|
+
if (parsed_cli_1.parsedCli.png) {
|
|
80
44
|
throw new Error('The --png flag has been removed. Use --sequence --image-format=png from now on.');
|
|
81
45
|
}
|
|
82
|
-
if (
|
|
46
|
+
if (parsed_cli_1.parsedCli.sequence) {
|
|
83
47
|
config_1.Config.setImageSequence(true);
|
|
84
48
|
}
|
|
85
|
-
if (
|
|
86
|
-
config_1.Config.setEveryNthFrame(
|
|
49
|
+
if (parsed_cli_1.parsedCli['every-nth-frame']) {
|
|
50
|
+
config_1.Config.setEveryNthFrame(parsed_cli_1.parsedCli['every-nth-frame']);
|
|
87
51
|
}
|
|
88
|
-
if (
|
|
89
|
-
config_1.Config.setProResProfile(String(
|
|
52
|
+
if (parsed_cli_1.parsedCli['prores-profile']) {
|
|
53
|
+
config_1.Config.setProResProfile(String(parsed_cli_1.parsedCli['prores-profile']));
|
|
90
54
|
}
|
|
91
|
-
if (typeof
|
|
55
|
+
if (typeof parsed_cli_1.parsedCli.quality !== 'undefined') {
|
|
92
56
|
log_1.Log.warn({ indent: false, logLevel: 'info' }, 'The --quality flag has been renamed to --jpeg-quality instead.');
|
|
93
|
-
config_1.Config.setJpegQuality(
|
|
57
|
+
config_1.Config.setJpegQuality(parsed_cli_1.parsedCli.quality);
|
|
94
58
|
}
|
|
95
|
-
if (typeof
|
|
96
|
-
config_1.Config.setScale(
|
|
59
|
+
if (typeof parsed_cli_1.parsedCli.scale !== 'undefined') {
|
|
60
|
+
config_1.Config.setScale(parsed_cli_1.parsedCli.scale);
|
|
97
61
|
}
|
|
98
|
-
if (typeof
|
|
99
|
-
config_1.Config.setKeyboardShortcutsEnabled(!
|
|
62
|
+
if (typeof parsed_cli_1.parsedCli['disable-keyboard-shortcuts'] !== 'undefined') {
|
|
63
|
+
config_1.Config.setKeyboardShortcutsEnabled(!parsed_cli_1.parsedCli['disable-keyboard-shortcuts']);
|
|
100
64
|
}
|
|
101
|
-
if (typeof
|
|
102
|
-
config_1.Config.setWebpackPollingInMilliseconds(
|
|
65
|
+
if (typeof parsed_cli_1.parsedCli['webpack-poll'] !== 'undefined') {
|
|
66
|
+
config_1.Config.setWebpackPollingInMilliseconds(parsed_cli_1.parsedCli['webpack-poll']);
|
|
103
67
|
}
|
|
104
68
|
};
|
|
105
69
|
exports.parseCommandLine = parseCommandLine;
|
|
106
|
-
const quietFlagProvided = () => exports.parsedCli.quiet || exports.parsedCli.q;
|
|
107
|
-
exports.quietFlagProvided = quietFlagProvided;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.quietFlagProvided = exports.parsedCli = exports.BooleanFlags = void 0;
|
|
7
|
+
const client_1 = require("@remotion/renderer/client");
|
|
8
|
+
const minimist_1 = __importDefault(require("minimist"));
|
|
9
|
+
exports.BooleanFlags = [
|
|
10
|
+
'overwrite',
|
|
11
|
+
'force',
|
|
12
|
+
'sequence',
|
|
13
|
+
'help',
|
|
14
|
+
'quiet',
|
|
15
|
+
'q',
|
|
16
|
+
'muted',
|
|
17
|
+
client_1.BrowserSafeApis.options.enforceAudioOption.cliFlag,
|
|
18
|
+
// Lambda flags
|
|
19
|
+
'force',
|
|
20
|
+
'disable-chunk-optimization',
|
|
21
|
+
'save-browser-logs',
|
|
22
|
+
'disable-cloudwatch',
|
|
23
|
+
'enable-lambda-insights',
|
|
24
|
+
'yes',
|
|
25
|
+
'y',
|
|
26
|
+
'disable-web-security',
|
|
27
|
+
'ignore-certificate-errors',
|
|
28
|
+
'disable-headless',
|
|
29
|
+
'disable-keyboard-shortcuts',
|
|
30
|
+
'default-only',
|
|
31
|
+
'no-open',
|
|
32
|
+
'ipv4',
|
|
33
|
+
client_1.BrowserSafeApis.options.beepOnFinishOption.cliFlag,
|
|
34
|
+
'repro',
|
|
35
|
+
];
|
|
36
|
+
exports.parsedCli = (0, minimist_1.default)(process.argv.slice(2), {
|
|
37
|
+
boolean: exports.BooleanFlags,
|
|
38
|
+
default: {
|
|
39
|
+
overwrite: true,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
const quietFlagProvided = () => exports.parsedCli.quiet || exports.parsedCli.q;
|
|
43
|
+
exports.quietFlagProvided = quietFlagProvided;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printCompositions = void 0;
|
|
4
4
|
const log_1 = require("./log");
|
|
5
|
-
const
|
|
5
|
+
const parsed_cli_1 = require("./parsed-cli");
|
|
6
6
|
const max = (arr) => {
|
|
7
7
|
if (arr.length === 0) {
|
|
8
8
|
throw new Error('Array of 0 length');
|
|
@@ -17,12 +17,12 @@ const max = (arr) => {
|
|
|
17
17
|
return biggest;
|
|
18
18
|
};
|
|
19
19
|
const printCompositions = (compositions, logLevel) => {
|
|
20
|
-
if (!(0,
|
|
20
|
+
if (!(0, parsed_cli_1.quietFlagProvided)()) {
|
|
21
21
|
log_1.Log.info({ indent: false, logLevel });
|
|
22
22
|
log_1.Log.info({ indent: false, logLevel }, 'The following compositions are available:');
|
|
23
23
|
log_1.Log.info({ indent: false, logLevel });
|
|
24
24
|
}
|
|
25
|
-
if ((0,
|
|
25
|
+
if ((0, parsed_cli_1.quietFlagProvided)()) {
|
|
26
26
|
log_1.Log.info({ indent: false, logLevel }, compositions.map((c) => c.id).join(' '));
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
@@ -42,7 +42,7 @@ const get_filename_1 = require("../get-filename");
|
|
|
42
42
|
const image_formats_1 = require("../image-formats");
|
|
43
43
|
const log_1 = require("../log");
|
|
44
44
|
const make_on_download_1 = require("../make-on-download");
|
|
45
|
-
const
|
|
45
|
+
const parsed_cli_1 = require("../parsed-cli");
|
|
46
46
|
const progress_bar_1 = require("../progress-bar");
|
|
47
47
|
const setup_cache_1 = require("../setup-cache");
|
|
48
48
|
const should_use_non_overlaying_logger_1 = require("../should-use-non-overlaying-logger");
|
|
@@ -54,7 +54,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
54
54
|
const onBrowserDownload = (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
|
|
55
55
|
indent,
|
|
56
56
|
logLevel,
|
|
57
|
-
quiet: (0,
|
|
57
|
+
quiet: (0, parsed_cli_1.quietFlagProvided)(),
|
|
58
58
|
});
|
|
59
59
|
await renderer_1.RenderInternals.internalEnsureBrowser({
|
|
60
60
|
browserExecutable,
|
|
@@ -131,7 +131,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
131
131
|
addCleanupCallback(() => renderer_1.RenderInternals.deleteDirectory(dir));
|
|
132
132
|
},
|
|
133
133
|
quietProgress: updatesDontOverwrite,
|
|
134
|
-
quietFlag: (0,
|
|
134
|
+
quietFlag: (0, parsed_cli_1.quietFlagProvided)(),
|
|
135
135
|
outDir: null,
|
|
136
136
|
// Not needed for render
|
|
137
137
|
gitSource: null,
|
|
@@ -184,7 +184,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
184
184
|
onBrowserDownload,
|
|
185
185
|
});
|
|
186
186
|
const { value: codec, source: codecReason } = client_1.BrowserSafeApis.options.videoCodecOption.getValue({
|
|
187
|
-
commandLine:
|
|
187
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
188
188
|
}, {
|
|
189
189
|
configFile: (_a = config_1.ConfigInternals.getOutputCodecOrUndefined()) !== null && _a !== void 0 ? _a : null,
|
|
190
190
|
downloadName: null,
|
|
@@ -18,7 +18,7 @@ const get_cli_options_1 = require("../get-cli-options");
|
|
|
18
18
|
const get_composition_with_dimension_override_1 = require("../get-composition-with-dimension-override");
|
|
19
19
|
const log_1 = require("../log");
|
|
20
20
|
const make_on_download_1 = require("../make-on-download");
|
|
21
|
-
const
|
|
21
|
+
const parsed_cli_1 = require("../parsed-cli");
|
|
22
22
|
const progress_bar_1 = require("../progress-bar");
|
|
23
23
|
const progress_types_1 = require("../progress-types");
|
|
24
24
|
const setup_cache_1 = require("../setup-cache");
|
|
@@ -30,7 +30,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
30
30
|
const aggregate = (0, progress_types_1.initialAggregateRenderProgress)();
|
|
31
31
|
const updatesDontOverwrite = (0, should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger)({ logLevel });
|
|
32
32
|
const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)({
|
|
33
|
-
quiet: (0,
|
|
33
|
+
quiet: (0, parsed_cli_1.quietFlagProvided)(),
|
|
34
34
|
cancelSignal,
|
|
35
35
|
updatesDontOverwrite: (0, should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger)({ logLevel }),
|
|
36
36
|
indent,
|
|
@@ -52,7 +52,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
52
52
|
onProgress({ message, value: progress, ...aggregate });
|
|
53
53
|
};
|
|
54
54
|
const onBrowserDownload = (0, browser_download_bar_1.defaultBrowserDownloadProgress)({
|
|
55
|
-
quiet: (0,
|
|
55
|
+
quiet: (0, parsed_cli_1.quietFlagProvided)(),
|
|
56
56
|
indent,
|
|
57
57
|
logLevel,
|
|
58
58
|
});
|
|
@@ -95,7 +95,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
95
95
|
});
|
|
96
96
|
},
|
|
97
97
|
quietProgress: updatesDontOverwrite,
|
|
98
|
-
quietFlag: (0,
|
|
98
|
+
quietFlag: (0, parsed_cli_1.quietFlagProvided)(),
|
|
99
99
|
outDir: null,
|
|
100
100
|
// Not needed for still
|
|
101
101
|
gitSource: null,
|
|
@@ -139,7 +139,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
139
139
|
onBrowserDownload,
|
|
140
140
|
});
|
|
141
141
|
const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalStillImageFormat)({
|
|
142
|
-
cliFlag: (_a =
|
|
142
|
+
cliFlag: (_a = parsed_cli_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
|
|
143
143
|
configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredStillImageFormat()) !== null && _b !== void 0 ? _b : null,
|
|
144
144
|
downloadName: null,
|
|
145
145
|
outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(argsAfterComposition, outputLocationFromUi),
|
|
@@ -5,7 +5,7 @@ const client_1 = require("@remotion/renderer/client");
|
|
|
5
5
|
const preview_server_1 = require("../config/preview-server");
|
|
6
6
|
const convert_entry_point_to_serve_url_1 = require("../convert-entry-point-to-serve-url");
|
|
7
7
|
const get_cli_options_1 = require("../get-cli-options");
|
|
8
|
-
const
|
|
8
|
+
const parsed_cli_1 = require("../parsed-cli");
|
|
9
9
|
const still_1 = require("../render-flows/still");
|
|
10
10
|
const { publicDirOption } = client_1.BrowserSafeApis.options;
|
|
11
11
|
const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, }) => {
|
|
@@ -17,7 +17,7 @@ const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addClea
|
|
|
17
17
|
logLevel: job.logLevel,
|
|
18
18
|
});
|
|
19
19
|
const publicDir = publicDirOption.getValue({
|
|
20
|
-
commandLine:
|
|
20
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
21
21
|
}).value;
|
|
22
22
|
const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(entryPoint);
|
|
23
23
|
await (0, still_1.renderStillFlow)({
|
|
@@ -5,7 +5,7 @@ const client_1 = require("@remotion/renderer/client");
|
|
|
5
5
|
const preview_server_1 = require("../config/preview-server");
|
|
6
6
|
const convert_entry_point_to_serve_url_1 = require("../convert-entry-point-to-serve-url");
|
|
7
7
|
const get_cli_options_1 = require("../get-cli-options");
|
|
8
|
-
const
|
|
8
|
+
const parsed_cli_1 = require("../parsed-cli");
|
|
9
9
|
const render_1 = require("../render-flows/render");
|
|
10
10
|
const { publicDirOption } = client_1.BrowserSafeApis.options;
|
|
11
11
|
const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, logLevel, }) => {
|
|
@@ -14,7 +14,7 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
|
|
|
14
14
|
throw new Error('Expected video job');
|
|
15
15
|
}
|
|
16
16
|
const publicDir = publicDirOption.getValue({
|
|
17
|
-
commandLine:
|
|
17
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
18
18
|
}).value;
|
|
19
19
|
const { browserExecutable, ffmpegOverride } = (0, get_cli_options_1.getCliOptions)({
|
|
20
20
|
isStill: true,
|