@remotion/cli 4.0.423 → 4.0.425
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/add.d.ts +1 -2
- package/dist/benchmark.d.ts +1 -2
- package/dist/benchmark.js +23 -2
- package/dist/browser/ensure.d.ts +1 -2
- package/dist/browser/ensure.js +5 -6
- package/dist/browser/index.d.ts +1 -2
- package/dist/browser-download-bar.d.ts +2 -2
- package/dist/bundle.d.ts +1 -2
- package/dist/chalk/index.js +1 -1
- package/dist/check-for-npm-run-flag-pass.d.ts +1 -2
- package/dist/cleanup-before-quit.d.ts +2 -3
- package/dist/cloudrun-command.d.ts +1 -2
- package/dist/code-frame.d.ts +2 -2
- package/dist/compositions.d.ts +1 -2
- package/dist/compositions.js +12 -2
- package/dist/config/image-format.d.ts +4 -5
- package/dist/config/index.d.ts +9 -12
- package/dist/config/index.js +15 -38
- package/dist/config/pixel-format.d.ts +2 -3
- package/dist/config/prores-profile.d.ts +2 -3
- package/dist/determine-image-format.d.ts +4 -6
- package/dist/determine-image-format.js +10 -17
- package/dist/entry-point.d.ts +1 -2
- package/dist/extra-packages.js +1 -1
- package/dist/ffmpeg.d.ts +6 -7
- package/dist/get-cli-options.d.ts +5 -12
- package/dist/get-cli-options.js +19 -22
- package/dist/get-composition-id.d.ts +3 -3
- package/dist/get-composition-with-dimension-override.d.ts +7 -5
- package/dist/get-composition-with-dimension-override.js +3 -1
- package/dist/get-env.d.ts +1 -2
- package/dist/get-filename.d.ts +1 -2
- package/dist/get-github-repository.d.ts +2 -3
- package/dist/get-input-props.d.ts +1 -2
- package/dist/get-render-defaults.js +22 -10
- package/dist/gpu.d.ts +1 -2
- package/dist/gpu.js +11 -7
- package/dist/image-formats.d.ts +3 -5
- package/dist/image-formats.js +6 -11
- package/dist/index.d.ts +32 -37
- package/dist/initialize-cli.d.ts +1 -2
- package/dist/lambda-command.d.ts +1 -2
- package/dist/log.js +1 -1
- package/dist/make-on-download.d.ts +2 -2
- package/dist/parse-command-line.d.ts +237 -15
- package/dist/parse-command-line.js +1 -49
- package/dist/parsed-cli.js +2 -2
- package/dist/print-compositions.d.ts +1 -2
- package/dist/print-error.d.ts +1 -2
- package/dist/print-help.d.ts +1 -2
- package/dist/progress-bar.d.ts +4 -4
- package/dist/render-flows/add-log-to-aggregate-progress.d.ts +3 -5
- package/dist/render-flows/render.d.ts +16 -16
- package/dist/render-flows/render.js +5 -1
- package/dist/render-flows/still.d.ts +8 -6
- package/dist/render-flows/still.js +7 -5
- package/dist/render-queue/process-still.js +7 -8
- package/dist/render-queue/process-video.d.ts +1 -2
- package/dist/render-queue/process-video.js +8 -3
- package/dist/render-queue/queue.d.ts +1 -2
- package/dist/render.d.ts +1 -2
- package/dist/render.js +23 -2
- package/dist/setup-cache.d.ts +2 -3
- package/dist/should-use-non-overlaying-logger.d.ts +1 -2
- package/dist/show-compositions-picker.d.ts +2 -5
- package/dist/skills.d.ts +2 -3
- package/dist/still.d.ts +1 -2
- package/dist/still.js +15 -3
- package/dist/studio.d.ts +1 -2
- package/dist/upgrade.d.ts +1 -2
- package/dist/versions.d.ts +2 -3
- package/package.json +19 -18
- package/remotion-cli.js +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { AudioCodec,
|
|
1
|
+
import type { AudioCodec, Codec, OpenGlRenderer, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
2
|
import type { TypeOfOption } from '@remotion/renderer/client';
|
|
3
|
-
import type { _InternalTypes } from 'remotion';
|
|
4
3
|
declare const beepOnFinishOption: {
|
|
5
4
|
name: string;
|
|
6
5
|
cliFlag: "beep-on-finish";
|
|
@@ -15,20 +14,37 @@ declare const beepOnFinishOption: {
|
|
|
15
14
|
source: string;
|
|
16
15
|
};
|
|
17
16
|
setConfig(value: boolean): void;
|
|
17
|
+
id: "beep-on-finish";
|
|
18
18
|
}, colorSpaceOption: {
|
|
19
19
|
name: string;
|
|
20
20
|
cliFlag: "color-space";
|
|
21
21
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
docLink: string;
|
|
23
23
|
ssrName: string;
|
|
24
|
-
type: "bt2020-ncl" | "bt709" | "default" | null;
|
|
24
|
+
type: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
25
25
|
getValue: ({ commandLine }: {
|
|
26
26
|
commandLine: Record<string, unknown>;
|
|
27
27
|
}) => {
|
|
28
28
|
source: string;
|
|
29
|
-
value: "bt2020-ncl" | "bt709" | "default";
|
|
29
|
+
value: "bt2020-ncl" | "bt601" | "bt709" | "default";
|
|
30
30
|
};
|
|
31
|
-
setConfig: (value: "bt2020-ncl" | "bt709" | "default" | null) => void;
|
|
31
|
+
setConfig: (value: "bt2020-ncl" | "bt601" | "bt709" | "default" | null) => void;
|
|
32
|
+
id: "color-space";
|
|
33
|
+
}, concurrencyOption: {
|
|
34
|
+
name: string;
|
|
35
|
+
cliFlag: "concurrency";
|
|
36
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
ssrName: "concurrency";
|
|
38
|
+
docLink: string;
|
|
39
|
+
type: import("@remotion/renderer").Concurrency;
|
|
40
|
+
getValue: ({ commandLine }: {
|
|
41
|
+
commandLine: Record<string, unknown>;
|
|
42
|
+
}) => {
|
|
43
|
+
source: string;
|
|
44
|
+
value: import("@remotion/renderer").Concurrency;
|
|
45
|
+
};
|
|
46
|
+
setConfig: (value: import("@remotion/renderer").Concurrency) => void;
|
|
47
|
+
id: "concurrency";
|
|
32
48
|
}, disallowParallelEncodingOption: {
|
|
33
49
|
name: string;
|
|
34
50
|
cliFlag: "disallow-parallel-encoding";
|
|
@@ -43,6 +59,7 @@ declare const beepOnFinishOption: {
|
|
|
43
59
|
source: string;
|
|
44
60
|
};
|
|
45
61
|
setConfig(value: boolean): void;
|
|
62
|
+
id: "disallow-parallel-encoding";
|
|
46
63
|
}, offthreadVideoCacheSizeInBytesOption: {
|
|
47
64
|
name: string;
|
|
48
65
|
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
@@ -60,6 +77,7 @@ declare const beepOnFinishOption: {
|
|
|
60
77
|
value: null;
|
|
61
78
|
};
|
|
62
79
|
setConfig: (size: number | null) => void;
|
|
80
|
+
id: "offthreadvideo-cache-size-in-bytes";
|
|
63
81
|
}, encodingBufferSizeOption: {
|
|
64
82
|
name: string;
|
|
65
83
|
cliFlag: "buffer-size";
|
|
@@ -77,6 +95,7 @@ declare const beepOnFinishOption: {
|
|
|
77
95
|
source: string;
|
|
78
96
|
};
|
|
79
97
|
setConfig: (bitrate: string | null) => void;
|
|
98
|
+
id: "buffer-size";
|
|
80
99
|
}, encodingMaxRateOption: {
|
|
81
100
|
name: string;
|
|
82
101
|
cliFlag: "max-rate";
|
|
@@ -94,6 +113,7 @@ declare const beepOnFinishOption: {
|
|
|
94
113
|
source: string;
|
|
95
114
|
};
|
|
96
115
|
setConfig: (newMaxRate: string | null) => void;
|
|
116
|
+
id: "max-rate";
|
|
97
117
|
}, deleteAfterOption: {
|
|
98
118
|
name: string;
|
|
99
119
|
cliFlag: "delete-after";
|
|
@@ -111,6 +131,7 @@ declare const beepOnFinishOption: {
|
|
|
111
131
|
value: null;
|
|
112
132
|
};
|
|
113
133
|
setConfig: (value: import("@remotion/renderer").DeleteAfter | null) => void;
|
|
134
|
+
id: "delete-after";
|
|
114
135
|
}, folderExpiryOption: {
|
|
115
136
|
name: string;
|
|
116
137
|
cliFlag: "enable-folder-expiry";
|
|
@@ -125,6 +146,7 @@ declare const beepOnFinishOption: {
|
|
|
125
146
|
value: boolean | null;
|
|
126
147
|
};
|
|
127
148
|
setConfig: (value: boolean | null) => void;
|
|
149
|
+
id: "enable-folder-expiry";
|
|
128
150
|
}, enableMultiprocessOnLinuxOption: {
|
|
129
151
|
name: string;
|
|
130
152
|
cliFlag: "enable-multiprocess-on-linux";
|
|
@@ -139,6 +161,7 @@ declare const beepOnFinishOption: {
|
|
|
139
161
|
value: boolean;
|
|
140
162
|
};
|
|
141
163
|
setConfig: (value: boolean) => void;
|
|
164
|
+
id: "enable-multiprocess-on-linux";
|
|
142
165
|
}, numberOfGifLoopsOption: {
|
|
143
166
|
name: string;
|
|
144
167
|
cliFlag: "number-of-gif-loops";
|
|
@@ -156,6 +179,7 @@ declare const beepOnFinishOption: {
|
|
|
156
179
|
source: string;
|
|
157
180
|
};
|
|
158
181
|
setConfig: (newLoop: import("@remotion/renderer").NumberOfGifLoops) => void;
|
|
182
|
+
id: "number-of-gif-loops";
|
|
159
183
|
}, x264Option: {
|
|
160
184
|
name: string;
|
|
161
185
|
cliFlag: "x264-preset";
|
|
@@ -173,6 +197,7 @@ declare const beepOnFinishOption: {
|
|
|
173
197
|
source: string;
|
|
174
198
|
};
|
|
175
199
|
setConfig: (profile: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null) => void;
|
|
200
|
+
id: "x264-preset";
|
|
176
201
|
}, enforceAudioOption: {
|
|
177
202
|
name: string;
|
|
178
203
|
cliFlag: "enforce-audio-track";
|
|
@@ -190,6 +215,7 @@ declare const beepOnFinishOption: {
|
|
|
190
215
|
value: false;
|
|
191
216
|
};
|
|
192
217
|
setConfig: (value: boolean) => void;
|
|
218
|
+
id: "enforce-audio-track";
|
|
193
219
|
}, jpegQualityOption: {
|
|
194
220
|
name: string;
|
|
195
221
|
cliFlag: "jpeg-quality";
|
|
@@ -204,6 +230,7 @@ declare const beepOnFinishOption: {
|
|
|
204
230
|
source: string;
|
|
205
231
|
value: number;
|
|
206
232
|
};
|
|
233
|
+
id: "jpeg-quality";
|
|
207
234
|
}, audioBitrateOption: {
|
|
208
235
|
name: string;
|
|
209
236
|
cliFlag: "audio-bitrate";
|
|
@@ -221,6 +248,7 @@ declare const beepOnFinishOption: {
|
|
|
221
248
|
source: string;
|
|
222
249
|
};
|
|
223
250
|
setConfig: (value: string | null) => void;
|
|
251
|
+
id: "audio-bitrate";
|
|
224
252
|
}, videoBitrateOption: {
|
|
225
253
|
name: string;
|
|
226
254
|
cliFlag: "video-bitrate";
|
|
@@ -235,6 +263,7 @@ declare const beepOnFinishOption: {
|
|
|
235
263
|
value: string | null;
|
|
236
264
|
};
|
|
237
265
|
setConfig: (bitrate: string | null) => void;
|
|
266
|
+
id: "video-bitrate";
|
|
238
267
|
}, audioCodecOption: {
|
|
239
268
|
cliFlag: "audio-codec";
|
|
240
269
|
setConfig: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => void;
|
|
@@ -252,6 +281,7 @@ declare const beepOnFinishOption: {
|
|
|
252
281
|
name: string;
|
|
253
282
|
ssrName: "audioCodec";
|
|
254
283
|
type: "aac" | "mp3" | "opus" | "pcm-16";
|
|
284
|
+
id: "audio-codec";
|
|
255
285
|
}, publicPathOption: {
|
|
256
286
|
name: string;
|
|
257
287
|
cliFlag: "public-path";
|
|
@@ -269,6 +299,7 @@ declare const beepOnFinishOption: {
|
|
|
269
299
|
};
|
|
270
300
|
setConfig: (value: string | null) => void;
|
|
271
301
|
type: string | null;
|
|
302
|
+
id: "public-path";
|
|
272
303
|
}, audioLatencyHintOption: {
|
|
273
304
|
name: string;
|
|
274
305
|
cliFlag: "audio-latency-hint";
|
|
@@ -286,6 +317,7 @@ declare const beepOnFinishOption: {
|
|
|
286
317
|
source: string;
|
|
287
318
|
};
|
|
288
319
|
setConfig: (profile: AudioContextLatencyCategory | null) => void;
|
|
320
|
+
id: "audio-latency-hint";
|
|
289
321
|
}, darkModeOption: {
|
|
290
322
|
name: string;
|
|
291
323
|
cliFlag: "dark-mode";
|
|
@@ -300,6 +332,7 @@ declare const beepOnFinishOption: {
|
|
|
300
332
|
value: boolean;
|
|
301
333
|
};
|
|
302
334
|
setConfig: (value: boolean) => void;
|
|
335
|
+
id: "dark-mode";
|
|
303
336
|
}, publicLicenseKeyOption: {
|
|
304
337
|
name: string;
|
|
305
338
|
cliFlag: "public-license-key";
|
|
@@ -314,6 +347,7 @@ declare const beepOnFinishOption: {
|
|
|
314
347
|
};
|
|
315
348
|
setConfig: (value: string | null) => void;
|
|
316
349
|
type: string | null;
|
|
350
|
+
id: "public-license-key";
|
|
317
351
|
}, forceNewStudioOption: {
|
|
318
352
|
name: string;
|
|
319
353
|
cliFlag: "force-new";
|
|
@@ -328,6 +362,7 @@ declare const beepOnFinishOption: {
|
|
|
328
362
|
source: string;
|
|
329
363
|
};
|
|
330
364
|
setConfig(value: boolean): void;
|
|
365
|
+
id: "force-new";
|
|
331
366
|
}, numberOfSharedAudioTagsOption: {
|
|
332
367
|
name: string;
|
|
333
368
|
cliFlag: "number-of-shared-audio-tags";
|
|
@@ -342,6 +377,7 @@ declare const beepOnFinishOption: {
|
|
|
342
377
|
source: string;
|
|
343
378
|
};
|
|
344
379
|
setConfig(value: number): void;
|
|
380
|
+
id: "number-of-shared-audio-tags";
|
|
345
381
|
}, ipv4Option: {
|
|
346
382
|
name: string;
|
|
347
383
|
cliFlag: "ipv4";
|
|
@@ -356,19 +392,203 @@ declare const beepOnFinishOption: {
|
|
|
356
392
|
source: string;
|
|
357
393
|
};
|
|
358
394
|
setConfig(value: boolean): void;
|
|
395
|
+
id: "ipv4";
|
|
396
|
+
}, pixelFormatOption: {
|
|
397
|
+
name: string;
|
|
398
|
+
cliFlag: "pixel-format";
|
|
399
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
400
|
+
ssrName: "pixelFormat";
|
|
401
|
+
docLink: string;
|
|
402
|
+
type: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
|
|
403
|
+
getValue: ({ commandLine }: {
|
|
404
|
+
commandLine: Record<string, unknown>;
|
|
405
|
+
}) => {
|
|
406
|
+
source: string;
|
|
407
|
+
value: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
|
|
408
|
+
};
|
|
409
|
+
setConfig: (value: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le") => void;
|
|
410
|
+
id: "pixel-format";
|
|
411
|
+
}, browserExecutableOption: {
|
|
412
|
+
name: string;
|
|
413
|
+
cliFlag: "browser-executable";
|
|
414
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
415
|
+
ssrName: "browserExecutable";
|
|
416
|
+
docLink: string;
|
|
417
|
+
type: import("@remotion/renderer").BrowserExecutable;
|
|
418
|
+
getValue: ({ commandLine }: {
|
|
419
|
+
commandLine: Record<string, unknown>;
|
|
420
|
+
}) => {
|
|
421
|
+
source: string;
|
|
422
|
+
value: import("@remotion/renderer").BrowserExecutable;
|
|
423
|
+
};
|
|
424
|
+
setConfig: (value: import("@remotion/renderer").BrowserExecutable) => void;
|
|
425
|
+
id: "browser-executable";
|
|
426
|
+
}, everyNthFrameOption: {
|
|
427
|
+
name: string;
|
|
428
|
+
cliFlag: "every-nth-frame";
|
|
429
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
430
|
+
ssrName: "everyNthFrame";
|
|
431
|
+
docLink: string;
|
|
432
|
+
type: number;
|
|
433
|
+
getValue: ({ commandLine }: {
|
|
434
|
+
commandLine: Record<string, unknown>;
|
|
435
|
+
}) => {
|
|
436
|
+
source: string;
|
|
437
|
+
value: number;
|
|
438
|
+
};
|
|
439
|
+
setConfig: (value: number) => void;
|
|
440
|
+
id: "every-nth-frame";
|
|
441
|
+
}, proResProfileOption: {
|
|
442
|
+
name: string;
|
|
443
|
+
cliFlag: "prores-profile";
|
|
444
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
445
|
+
ssrName: "proResProfile";
|
|
446
|
+
docLink: string;
|
|
447
|
+
type: import("@remotion/renderer/client").ProResProfile | undefined;
|
|
448
|
+
getValue: ({ commandLine }: {
|
|
449
|
+
commandLine: Record<string, unknown>;
|
|
450
|
+
}) => {
|
|
451
|
+
source: string;
|
|
452
|
+
value: import("@remotion/renderer/client").ProResProfile;
|
|
453
|
+
} | {
|
|
454
|
+
source: string;
|
|
455
|
+
value: undefined;
|
|
456
|
+
};
|
|
457
|
+
setConfig: (value: import("@remotion/renderer/client").ProResProfile | undefined) => void;
|
|
458
|
+
id: "prores-profile";
|
|
459
|
+
}, userAgentOption: {
|
|
460
|
+
name: string;
|
|
461
|
+
cliFlag: "user-agent";
|
|
462
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
463
|
+
ssrName: "userAgent";
|
|
464
|
+
docLink: string;
|
|
465
|
+
type: string | null;
|
|
466
|
+
getValue: ({ commandLine }: {
|
|
467
|
+
commandLine: Record<string, unknown>;
|
|
468
|
+
}) => {
|
|
469
|
+
source: string;
|
|
470
|
+
value: string;
|
|
471
|
+
} | {
|
|
472
|
+
source: string;
|
|
473
|
+
value: null;
|
|
474
|
+
};
|
|
475
|
+
setConfig: (value: string | null) => void;
|
|
476
|
+
id: "user-agent";
|
|
477
|
+
}, disableWebSecurityOption: {
|
|
478
|
+
name: string;
|
|
479
|
+
cliFlag: "disable-web-security";
|
|
480
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
481
|
+
ssrName: "disableWebSecurity";
|
|
482
|
+
docLink: string;
|
|
483
|
+
type: boolean;
|
|
484
|
+
getValue: ({ commandLine }: {
|
|
485
|
+
commandLine: Record<string, unknown>;
|
|
486
|
+
}) => {
|
|
487
|
+
source: string;
|
|
488
|
+
value: boolean;
|
|
489
|
+
};
|
|
490
|
+
setConfig: (value: boolean) => void;
|
|
491
|
+
id: "disable-web-security";
|
|
492
|
+
}, ignoreCertificateErrorsOption: {
|
|
493
|
+
name: string;
|
|
494
|
+
cliFlag: "ignore-certificate-errors";
|
|
495
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
496
|
+
ssrName: "ignoreCertificateErrors";
|
|
497
|
+
docLink: string;
|
|
498
|
+
type: boolean;
|
|
499
|
+
getValue: ({ commandLine }: {
|
|
500
|
+
commandLine: Record<string, unknown>;
|
|
501
|
+
}) => {
|
|
502
|
+
source: string;
|
|
503
|
+
value: boolean;
|
|
504
|
+
};
|
|
505
|
+
setConfig: (value: boolean) => void;
|
|
506
|
+
id: "ignore-certificate-errors";
|
|
507
|
+
}, overrideHeightOption: {
|
|
508
|
+
name: string;
|
|
509
|
+
cliFlag: "height";
|
|
510
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
511
|
+
ssrName: null;
|
|
512
|
+
docLink: string;
|
|
513
|
+
type: number | null;
|
|
514
|
+
getValue: ({ commandLine }: {
|
|
515
|
+
commandLine: Record<string, unknown>;
|
|
516
|
+
}) => {
|
|
517
|
+
source: string;
|
|
518
|
+
value: number;
|
|
519
|
+
} | {
|
|
520
|
+
source: string;
|
|
521
|
+
value: null;
|
|
522
|
+
};
|
|
523
|
+
setConfig: (height: number | null) => void;
|
|
524
|
+
id: "height";
|
|
525
|
+
}, overrideWidthOption: {
|
|
526
|
+
name: string;
|
|
527
|
+
cliFlag: "width";
|
|
528
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
529
|
+
ssrName: null;
|
|
530
|
+
docLink: string;
|
|
531
|
+
type: number | null;
|
|
532
|
+
getValue: ({ commandLine }: {
|
|
533
|
+
commandLine: Record<string, unknown>;
|
|
534
|
+
}) => {
|
|
535
|
+
source: string;
|
|
536
|
+
value: number;
|
|
537
|
+
} | {
|
|
538
|
+
source: string;
|
|
539
|
+
value: null;
|
|
540
|
+
};
|
|
541
|
+
setConfig: (width: number | null) => void;
|
|
542
|
+
id: "width";
|
|
543
|
+
}, overrideFpsOption: {
|
|
544
|
+
name: string;
|
|
545
|
+
cliFlag: "fps";
|
|
546
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
547
|
+
ssrName: null;
|
|
548
|
+
docLink: string;
|
|
549
|
+
type: number | null;
|
|
550
|
+
getValue: ({ commandLine }: {
|
|
551
|
+
commandLine: Record<string, unknown>;
|
|
552
|
+
}) => {
|
|
553
|
+
source: string;
|
|
554
|
+
value: number;
|
|
555
|
+
} | {
|
|
556
|
+
source: string;
|
|
557
|
+
value: null;
|
|
558
|
+
};
|
|
559
|
+
setConfig: (fps: number | null) => void;
|
|
560
|
+
id: "fps";
|
|
561
|
+
}, overrideDurationOption: {
|
|
562
|
+
name: string;
|
|
563
|
+
cliFlag: "duration";
|
|
564
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
565
|
+
ssrName: null;
|
|
566
|
+
docLink: string;
|
|
567
|
+
type: number | null;
|
|
568
|
+
getValue: ({ commandLine }: {
|
|
569
|
+
commandLine: Record<string, unknown>;
|
|
570
|
+
}) => {
|
|
571
|
+
source: string;
|
|
572
|
+
value: number;
|
|
573
|
+
} | {
|
|
574
|
+
source: string;
|
|
575
|
+
value: null;
|
|
576
|
+
};
|
|
577
|
+
setConfig: (duration: number | null) => void;
|
|
578
|
+
id: "duration";
|
|
359
579
|
};
|
|
360
580
|
export type CommandLineOptions = {
|
|
361
|
-
[
|
|
362
|
-
[
|
|
581
|
+
[browserExecutableOption.cliFlag]: TypeOfOption<typeof browserExecutableOption>;
|
|
582
|
+
[pixelFormatOption.cliFlag]: TypeOfOption<typeof pixelFormatOption>;
|
|
363
583
|
['image-format']: VideoImageFormat | StillImageFormat;
|
|
364
|
-
[
|
|
584
|
+
[proResProfileOption.cliFlag]: TypeOfOption<typeof proResProfileOption>;
|
|
365
585
|
[x264Option.cliFlag]: TypeOfOption<typeof x264Option>;
|
|
366
586
|
['bundle-cache']: string;
|
|
367
587
|
['env-file']: string;
|
|
368
|
-
[
|
|
588
|
+
[ignoreCertificateErrorsOption.cliFlag]: TypeOfOption<typeof ignoreCertificateErrorsOption>;
|
|
369
589
|
[darkModeOption.cliFlag]: TypeOfOption<typeof darkModeOption>;
|
|
370
|
-
[
|
|
371
|
-
[
|
|
590
|
+
[disableWebSecurityOption.cliFlag]: TypeOfOption<typeof disableWebSecurityOption>;
|
|
591
|
+
[everyNthFrameOption.cliFlag]: TypeOfOption<typeof everyNthFrameOption>;
|
|
372
592
|
[numberOfGifLoopsOption.cliFlag]: TypeOfOption<typeof numberOfGifLoopsOption>;
|
|
373
593
|
[numberOfSharedAudioTagsOption.cliFlag]: TypeOfOption<typeof numberOfSharedAudioTagsOption>;
|
|
374
594
|
[offthreadVideoCacheSizeInBytesOption.cliFlag]: TypeOfOption<typeof offthreadVideoCacheSizeInBytesOption>;
|
|
@@ -377,7 +597,7 @@ export type CommandLineOptions = {
|
|
|
377
597
|
[beepOnFinishOption.cliFlag]: TypeOfOption<typeof beepOnFinishOption>;
|
|
378
598
|
version: string;
|
|
379
599
|
codec: Codec;
|
|
380
|
-
|
|
600
|
+
[concurrencyOption.cliFlag]: TypeOfOption<typeof concurrencyOption>;
|
|
381
601
|
timeout: number;
|
|
382
602
|
config: string;
|
|
383
603
|
['public-dir']: string;
|
|
@@ -408,8 +628,10 @@ export type CommandLineOptions = {
|
|
|
408
628
|
['disable-keyboard-shortcuts']: boolean;
|
|
409
629
|
['enable-experimental-client-side-rendering']: boolean;
|
|
410
630
|
muted: boolean;
|
|
411
|
-
|
|
412
|
-
|
|
631
|
+
[overrideHeightOption.cliFlag]: TypeOfOption<typeof overrideHeightOption>;
|
|
632
|
+
[overrideWidthOption.cliFlag]: TypeOfOption<typeof overrideWidthOption>;
|
|
633
|
+
[overrideFpsOption.cliFlag]: TypeOfOption<typeof overrideFpsOption>;
|
|
634
|
+
[overrideDurationOption.cliFlag]: TypeOfOption<typeof overrideDurationOption>;
|
|
413
635
|
runs: number;
|
|
414
636
|
concurrencies: string;
|
|
415
637
|
[enforceAudioOption.cliFlag]: TypeOfOption<typeof enforceAudioOption>;
|
|
@@ -419,7 +641,7 @@ export type CommandLineOptions = {
|
|
|
419
641
|
['no-open']: boolean;
|
|
420
642
|
['browser']: string;
|
|
421
643
|
['browser-args']: string;
|
|
422
|
-
[
|
|
644
|
+
[userAgentOption.cliFlag]: TypeOfOption<typeof userAgentOption>;
|
|
423
645
|
['out-dir']: string;
|
|
424
646
|
[audioLatencyHintOption.cliFlag]: AudioContextLatencyCategory;
|
|
425
647
|
[ipv4Option.cliFlag]: TypeOfOption<typeof ipv4Option>;
|
|
@@ -3,40 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.parseCommandLine = void 0;
|
|
4
4
|
const client_1 = require("@remotion/renderer/client");
|
|
5
5
|
const config_1 = require("./config");
|
|
6
|
-
const log_1 = require("./log");
|
|
7
6
|
const parsed_cli_1 = require("./parsed-cli");
|
|
8
|
-
const { beepOnFinishOption, colorSpaceOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, darkModeOption, publicLicenseKeyOption, forceNewStudioOption, numberOfSharedAudioTagsOption, ipv4Option, } = client_1.BrowserSafeApis.options;
|
|
7
|
+
const { beepOnFinishOption, colorSpaceOption, concurrencyOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, darkModeOption, publicLicenseKeyOption, forceNewStudioOption, numberOfSharedAudioTagsOption, ipv4Option, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = client_1.BrowserSafeApis.options;
|
|
9
8
|
const parseCommandLine = () => {
|
|
10
|
-
if (parsed_cli_1.parsedCli['pixel-format']) {
|
|
11
|
-
config_1.Config.setPixelFormat(parsed_cli_1.parsedCli['pixel-format']);
|
|
12
|
-
}
|
|
13
|
-
if (parsed_cli_1.parsedCli['browser-executable']) {
|
|
14
|
-
config_1.Config.setBrowserExecutable(parsed_cli_1.parsedCli['browser-executable']);
|
|
15
|
-
}
|
|
16
9
|
if (typeof parsed_cli_1.parsedCli['bundle-cache'] !== 'undefined') {
|
|
17
10
|
config_1.Config.setCachingEnabled(parsed_cli_1.parsedCli['bundle-cache'] !== 'false');
|
|
18
11
|
}
|
|
19
|
-
if (parsed_cli_1.parsedCli['disable-web-security']) {
|
|
20
|
-
config_1.Config.setChromiumDisableWebSecurity(true);
|
|
21
|
-
}
|
|
22
|
-
if (parsed_cli_1.parsedCli['ignore-certificate-errors']) {
|
|
23
|
-
config_1.Config.setChromiumIgnoreCertificateErrors(true);
|
|
24
|
-
}
|
|
25
|
-
if (parsed_cli_1.parsedCli[darkModeOption.cliFlag]) {
|
|
26
|
-
config_1.Config.setChromiumDarkMode(parsed_cli_1.parsedCli[darkModeOption.cliFlag]);
|
|
27
|
-
}
|
|
28
|
-
if (parsed_cli_1.parsedCli['user-agent']) {
|
|
29
|
-
config_1.Config.setChromiumUserAgent(parsed_cli_1.parsedCli['user-agent']);
|
|
30
|
-
}
|
|
31
|
-
if (parsed_cli_1.parsedCli.concurrency) {
|
|
32
|
-
config_1.Config.setConcurrency(parsed_cli_1.parsedCli.concurrency);
|
|
33
|
-
}
|
|
34
|
-
if (parsed_cli_1.parsedCli.height) {
|
|
35
|
-
config_1.Config.overrideHeight(parsed_cli_1.parsedCli.height);
|
|
36
|
-
}
|
|
37
|
-
if (parsed_cli_1.parsedCli.width) {
|
|
38
|
-
config_1.Config.overrideWidth(parsed_cli_1.parsedCli.width);
|
|
39
|
-
}
|
|
40
12
|
if (parsed_cli_1.parsedCli.frames) {
|
|
41
13
|
config_1.ConfigInternals.setFrameRangeFromCli(parsed_cli_1.parsedCli.frames);
|
|
42
14
|
}
|
|
@@ -49,30 +21,10 @@ const parseCommandLine = () => {
|
|
|
49
21
|
if (parsed_cli_1.parsedCli.sequence) {
|
|
50
22
|
config_1.Config.setImageSequence(true);
|
|
51
23
|
}
|
|
52
|
-
if (parsed_cli_1.parsedCli['every-nth-frame']) {
|
|
53
|
-
config_1.Config.setEveryNthFrame(parsed_cli_1.parsedCli['every-nth-frame']);
|
|
54
|
-
}
|
|
55
|
-
if (parsed_cli_1.parsedCli['prores-profile']) {
|
|
56
|
-
config_1.Config.setProResProfile(String(parsed_cli_1.parsedCli['prores-profile']));
|
|
57
|
-
}
|
|
58
24
|
if (parsed_cli_1.parsedCli['license-key'] &&
|
|
59
25
|
parsed_cli_1.parsedCli['license-key'].startsWith('rm_pub_')) {
|
|
60
26
|
config_1.Config.setPublicLicenseKey(parsed_cli_1.parsedCli['license-key']);
|
|
61
27
|
}
|
|
62
|
-
if (parsed_cli_1.parsedCli['public-license-key']) {
|
|
63
|
-
config_1.Config.setPublicLicenseKey(parsed_cli_1.parsedCli['public-license-key']);
|
|
64
|
-
}
|
|
65
|
-
if (typeof parsed_cli_1.parsedCli.quality !== 'undefined') {
|
|
66
|
-
log_1.Log.warn({ indent: false, logLevel: 'info' }, 'The --quality flag has been renamed to --jpeg-quality instead.');
|
|
67
|
-
config_1.Config.setJpegQuality(parsed_cli_1.parsedCli.quality);
|
|
68
|
-
}
|
|
69
|
-
if (typeof parsed_cli_1.parsedCli.scale !== 'undefined') {
|
|
70
|
-
config_1.Config.setScale(parsed_cli_1.parsedCli.scale);
|
|
71
|
-
}
|
|
72
|
-
if (typeof parsed_cli_1.parsedCli['enable-experimental-client-side-rendering'] !==
|
|
73
|
-
'undefined') {
|
|
74
|
-
config_1.Config.setExperimentalClientSideRenderingEnabled(parsed_cli_1.parsedCli['enable-experimental-client-side-rendering']);
|
|
75
|
-
}
|
|
76
28
|
if (typeof parsed_cli_1.parsedCli['webpack-poll'] !== 'undefined') {
|
|
77
29
|
config_1.Config.setWebpackPollingInMilliseconds(parsed_cli_1.parsedCli['webpack-poll']);
|
|
78
30
|
}
|
package/dist/parsed-cli.js
CHANGED
|
@@ -23,9 +23,9 @@ exports.BooleanFlags = [
|
|
|
23
23
|
'enable-lambda-insights',
|
|
24
24
|
'yes',
|
|
25
25
|
'y',
|
|
26
|
-
|
|
26
|
+
client_1.BrowserSafeApis.options.disableWebSecurityOption.cliFlag,
|
|
27
27
|
client_1.BrowserSafeApis.options.darkModeOption.cliFlag,
|
|
28
|
-
|
|
28
|
+
client_1.BrowserSafeApis.options.ignoreCertificateErrorsOption.cliFlag,
|
|
29
29
|
'disable-headless',
|
|
30
30
|
'disable-keyboard-shortcuts',
|
|
31
31
|
'default-only',
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { LogLevel } from '@remotion/renderer';
|
|
2
1
|
import type { VideoConfig } from 'remotion';
|
|
3
|
-
export declare const printCompositions: (compositions: VideoConfig[], logLevel:
|
|
2
|
+
export declare const printCompositions: (compositions: VideoConfig[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
package/dist/print-error.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const printError: (err: Error, logLevel: LogLevel) => Promise<void>;
|
|
1
|
+
export declare const printError: (err: Error, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
package/dist/print-help.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const printHelp: (logLevel: LogLevel) => void;
|
|
1
|
+
export declare const printHelp: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CancelSignal
|
|
1
|
+
import type { CancelSignal } from '@remotion/renderer';
|
|
2
2
|
import type { AggregateRenderProgress, BundlingState, CopyingState } from '@remotion/studio-server';
|
|
3
3
|
export type OverwriteableCliOutput = {
|
|
4
4
|
update: (up: string, newline: boolean) => boolean;
|
|
@@ -27,11 +27,11 @@ export declare const makeRenderingAndStitchingProgress: ({ prog, isUsingParallel
|
|
|
27
27
|
progress: number;
|
|
28
28
|
message: string;
|
|
29
29
|
};
|
|
30
|
-
export declare const printFact: (printLevel:
|
|
30
|
+
export declare const printFact: (printLevel: "error" | "info" | "trace" | "verbose" | "warn") => ({ indent, logLevel, left, right, color, link, }: {
|
|
31
31
|
indent: boolean;
|
|
32
|
-
logLevel:
|
|
32
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
33
33
|
left: string;
|
|
34
34
|
right: string;
|
|
35
|
-
link?: string;
|
|
35
|
+
link?: string | undefined;
|
|
36
36
|
color: "blue" | "blueBright" | "gray" | undefined;
|
|
37
37
|
}) => void;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { AggregateRenderProgress } from '@remotion/studio-shared';
|
|
2
|
-
import type { LogLevel } from 'remotion';
|
|
3
1
|
export declare const addLogToAggregateProgress: ({ logs, logLogLevel, logLevel, previewString, tag, }: {
|
|
4
|
-
logs:
|
|
5
|
-
logLogLevel:
|
|
6
|
-
logLevel:
|
|
2
|
+
logs: import("@remotion/studio-shared").BrowserProgressLog[];
|
|
3
|
+
logLogLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
4
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
7
5
|
previewString: string;
|
|
8
6
|
tag: string | null;
|
|
9
7
|
}) => void;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { HardwareAccelerationOption } from '@remotion/renderer/client';
|
|
1
|
+
import type { BrowserExecutable, CancelSignal, ChromiumOptions, Crf, FfmpegOverrideFn, FrameRange, NumberOfGifLoops } from '@remotion/renderer';
|
|
3
2
|
import type { JobProgressCallback } from '@remotion/studio-server';
|
|
4
|
-
|
|
5
|
-
export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, publicPath, metadata, hardwareAcceleration, chromeMode, audioLatencyHint, imageSequencePattern, mediaCacheSizeInBytes, askAIEnabled, experimentalClientSideRenderingEnabled, keyboardShortcutsEnabled, }: {
|
|
3
|
+
export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, fps, durationInFrames, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, publicPath, metadata, hardwareAcceleration, chromeMode, audioLatencyHint, imageSequencePattern, mediaCacheSizeInBytes, askAIEnabled, experimentalClientSideRenderingEnabled, keyboardShortcutsEnabled, }: {
|
|
6
4
|
remotionRoot: string;
|
|
7
5
|
fullEntryPoint: string;
|
|
8
6
|
entryPointReason: string;
|
|
9
7
|
browserExecutable: BrowserExecutable;
|
|
10
8
|
chromiumOptions: ChromiumOptions;
|
|
11
|
-
logLevel:
|
|
12
|
-
browser:
|
|
9
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
10
|
+
browser: "chrome";
|
|
13
11
|
scale: number;
|
|
14
12
|
indent: boolean;
|
|
15
13
|
shouldOutputImageSequence: boolean;
|
|
@@ -20,12 +18,14 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
|
|
|
20
18
|
port: number | null;
|
|
21
19
|
height: number | null;
|
|
22
20
|
width: number | null;
|
|
21
|
+
fps: number | null;
|
|
22
|
+
durationInFrames: number | null;
|
|
23
23
|
remainingArgs: (string | number)[];
|
|
24
24
|
compositionIdFromUi: string | null;
|
|
25
25
|
outputLocationFromUI: string | null;
|
|
26
26
|
overwrite: boolean;
|
|
27
27
|
quiet: boolean;
|
|
28
|
-
concurrency:
|
|
28
|
+
concurrency: string | number | null;
|
|
29
29
|
frameRange: FrameRange | null;
|
|
30
30
|
everyNthFrame: number;
|
|
31
31
|
jpegQuality: number | undefined;
|
|
@@ -33,8 +33,8 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
|
|
|
33
33
|
addCleanupCallback: (label: string, cb: () => void) => void;
|
|
34
34
|
crf: Crf | null;
|
|
35
35
|
cancelSignal: CancelSignal | null;
|
|
36
|
-
uiCodec:
|
|
37
|
-
uiImageFormat:
|
|
36
|
+
uiCodec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null;
|
|
37
|
+
uiImageFormat: "jpeg" | "none" | "png" | null;
|
|
38
38
|
ffmpegOverride: FfmpegOverrideFn;
|
|
39
39
|
audioBitrate: string | null;
|
|
40
40
|
videoBitrate: string | null;
|
|
@@ -42,23 +42,23 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
|
|
|
42
42
|
encodingBufferSize: string | null;
|
|
43
43
|
muted: boolean;
|
|
44
44
|
enforceAudioTrack: boolean;
|
|
45
|
-
proResProfile:
|
|
46
|
-
x264Preset:
|
|
47
|
-
pixelFormat:
|
|
45
|
+
proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | undefined;
|
|
46
|
+
x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
|
|
47
|
+
pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
|
|
48
48
|
numberOfGifLoops: NumberOfGifLoops;
|
|
49
|
-
audioCodec:
|
|
49
|
+
audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
50
50
|
disallowParallelEncoding: boolean;
|
|
51
51
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
52
52
|
offthreadVideoThreads: number | null;
|
|
53
|
-
colorSpace:
|
|
53
|
+
colorSpace: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
54
54
|
repro: boolean;
|
|
55
55
|
binariesDirectory: string | null;
|
|
56
56
|
forSeamlessAacConcatenation: boolean;
|
|
57
57
|
separateAudioTo: string | null;
|
|
58
58
|
publicPath: string | null;
|
|
59
59
|
metadata: Record<string, string> | null;
|
|
60
|
-
hardwareAcceleration:
|
|
61
|
-
chromeMode:
|
|
60
|
+
hardwareAcceleration: "disable" | "if-possible" | "required";
|
|
61
|
+
chromeMode: "chrome-for-testing" | "headless-shell";
|
|
62
62
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
63
63
|
imageSequencePattern: string | null;
|
|
64
64
|
mediaCacheSizeInBytes: number | null;
|