@remotion/cli 4.0.424 → 4.0.426
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 +46 -7
- package/dist/browser/ensure.js +5 -6
- package/dist/bundle.js +10 -3
- package/dist/compositions.js +18 -2
- package/dist/config/index.d.ts +24 -12
- package/dist/config/index.js +23 -51
- package/dist/config/number-of-shared-audio-tags.d.ts +2 -0
- package/dist/config/number-of-shared-audio-tags.js +12 -0
- package/dist/config/preview-server.js +3 -1
- package/dist/detect-remotion-server.d.ts +9 -0
- package/dist/detect-remotion-server.js +45 -0
- package/dist/extra-packages.js +2 -2
- package/dist/get-cli-options.d.ts +0 -10
- package/dist/get-cli-options.js +13 -33
- package/dist/get-composition-with-dimension-override.d.ts +3 -1
- package/dist/get-composition-with-dimension-override.js +3 -1
- package/dist/get-config-file-name.js +7 -4
- package/dist/get-env.js +11 -15
- package/dist/get-input-props.js +8 -5
- package/dist/get-render-defaults.js +16 -8
- package/dist/gpu.js +11 -7
- package/dist/index.d.ts +4 -12
- package/dist/index.js +9 -3
- package/dist/is-port-open.d.ts +1 -0
- package/dist/is-port-open.js +24 -0
- package/dist/list-of-remotion-packages.js +2 -0
- package/dist/parse-command-line.d.ts +0 -458
- package/dist/parse-command-line.js +0 -65
- package/dist/parsed-cli.d.ts +1104 -1
- package/dist/parsed-cli.js +24 -33
- package/dist/render-flows/render.d.ts +5 -1
- package/dist/render-flows/render.js +12 -1
- package/dist/render-flows/still.d.ts +5 -1
- package/dist/render-flows/still.js +5 -1
- package/dist/render-queue/process-still.js +13 -8
- package/dist/render-queue/process-video.js +14 -3
- package/dist/render.js +46 -4
- package/dist/setup-cache.d.ts +6 -2
- package/dist/setup-cache.js +5 -3
- package/dist/still.js +31 -3
- package/dist/studio.js +11 -18
- package/package.json +16 -16
|
@@ -1,459 +1 @@
|
|
|
1
|
-
import type { AudioCodec, BrowserExecutable, Codec, OpenGlRenderer, PixelFormat, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
|
-
import type { TypeOfOption } from '@remotion/renderer/client';
|
|
3
|
-
import type { _InternalTypes } from 'remotion';
|
|
4
|
-
declare const beepOnFinishOption: {
|
|
5
|
-
name: string;
|
|
6
|
-
cliFlag: "beep-on-finish";
|
|
7
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
ssrName: null;
|
|
9
|
-
docLink: string;
|
|
10
|
-
type: boolean;
|
|
11
|
-
getValue: ({ commandLine }: {
|
|
12
|
-
commandLine: Record<string, unknown>;
|
|
13
|
-
}) => {
|
|
14
|
-
value: boolean;
|
|
15
|
-
source: string;
|
|
16
|
-
};
|
|
17
|
-
setConfig(value: boolean): void;
|
|
18
|
-
id: "beep-on-finish";
|
|
19
|
-
}, colorSpaceOption: {
|
|
20
|
-
name: string;
|
|
21
|
-
cliFlag: "color-space";
|
|
22
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
docLink: string;
|
|
24
|
-
ssrName: string;
|
|
25
|
-
type: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
26
|
-
getValue: ({ commandLine }: {
|
|
27
|
-
commandLine: Record<string, unknown>;
|
|
28
|
-
}) => {
|
|
29
|
-
source: string;
|
|
30
|
-
value: "bt2020-ncl" | "bt601" | "bt709" | "default";
|
|
31
|
-
};
|
|
32
|
-
setConfig: (value: "bt2020-ncl" | "bt601" | "bt709" | "default" | null) => void;
|
|
33
|
-
id: "color-space";
|
|
34
|
-
}, disallowParallelEncodingOption: {
|
|
35
|
-
name: string;
|
|
36
|
-
cliFlag: "disallow-parallel-encoding";
|
|
37
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
ssrName: string;
|
|
39
|
-
docLink: string;
|
|
40
|
-
type: boolean;
|
|
41
|
-
getValue: ({ commandLine }: {
|
|
42
|
-
commandLine: Record<string, unknown>;
|
|
43
|
-
}) => {
|
|
44
|
-
value: boolean;
|
|
45
|
-
source: string;
|
|
46
|
-
};
|
|
47
|
-
setConfig(value: boolean): void;
|
|
48
|
-
id: "disallow-parallel-encoding";
|
|
49
|
-
}, offthreadVideoCacheSizeInBytesOption: {
|
|
50
|
-
name: string;
|
|
51
|
-
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
52
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
ssrName: "offthreadVideoCacheSizeInBytes";
|
|
54
|
-
docLink: string;
|
|
55
|
-
type: number | null;
|
|
56
|
-
getValue: ({ commandLine }: {
|
|
57
|
-
commandLine: Record<string, unknown>;
|
|
58
|
-
}) => {
|
|
59
|
-
source: string;
|
|
60
|
-
value: number;
|
|
61
|
-
} | {
|
|
62
|
-
source: string;
|
|
63
|
-
value: null;
|
|
64
|
-
};
|
|
65
|
-
setConfig: (size: number | null) => void;
|
|
66
|
-
id: "offthreadvideo-cache-size-in-bytes";
|
|
67
|
-
}, encodingBufferSizeOption: {
|
|
68
|
-
name: string;
|
|
69
|
-
cliFlag: "buffer-size";
|
|
70
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
71
|
-
ssrName: "encodingBufferSize";
|
|
72
|
-
docLink: string;
|
|
73
|
-
type: string | null;
|
|
74
|
-
getValue: ({ commandLine }: {
|
|
75
|
-
commandLine: Record<string, unknown>;
|
|
76
|
-
}) => {
|
|
77
|
-
value: string;
|
|
78
|
-
source: string;
|
|
79
|
-
} | {
|
|
80
|
-
value: null;
|
|
81
|
-
source: string;
|
|
82
|
-
};
|
|
83
|
-
setConfig: (bitrate: string | null) => void;
|
|
84
|
-
id: "buffer-size";
|
|
85
|
-
}, encodingMaxRateOption: {
|
|
86
|
-
name: string;
|
|
87
|
-
cliFlag: "max-rate";
|
|
88
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
89
|
-
ssrName: "encodingMaxRate";
|
|
90
|
-
docLink: string;
|
|
91
|
-
type: string | null;
|
|
92
|
-
getValue: ({ commandLine }: {
|
|
93
|
-
commandLine: Record<string, unknown>;
|
|
94
|
-
}) => {
|
|
95
|
-
value: string;
|
|
96
|
-
source: string;
|
|
97
|
-
} | {
|
|
98
|
-
value: null;
|
|
99
|
-
source: string;
|
|
100
|
-
};
|
|
101
|
-
setConfig: (newMaxRate: string | null) => void;
|
|
102
|
-
id: "max-rate";
|
|
103
|
-
}, deleteAfterOption: {
|
|
104
|
-
name: string;
|
|
105
|
-
cliFlag: "delete-after";
|
|
106
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
107
|
-
ssrName: "deleteAfter";
|
|
108
|
-
docLink: string;
|
|
109
|
-
type: import("@remotion/renderer").DeleteAfter | null;
|
|
110
|
-
getValue: ({ commandLine }: {
|
|
111
|
-
commandLine: Record<string, unknown>;
|
|
112
|
-
}) => {
|
|
113
|
-
source: string;
|
|
114
|
-
value: import("@remotion/renderer").DeleteAfter;
|
|
115
|
-
} | {
|
|
116
|
-
source: string;
|
|
117
|
-
value: null;
|
|
118
|
-
};
|
|
119
|
-
setConfig: (value: import("@remotion/renderer").DeleteAfter | null) => void;
|
|
120
|
-
id: "delete-after";
|
|
121
|
-
}, folderExpiryOption: {
|
|
122
|
-
name: string;
|
|
123
|
-
cliFlag: "enable-folder-expiry";
|
|
124
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
125
|
-
ssrName: "enableFolderExpiry";
|
|
126
|
-
docLink: string;
|
|
127
|
-
type: boolean | null;
|
|
128
|
-
getValue: ({ commandLine }: {
|
|
129
|
-
commandLine: Record<string, unknown>;
|
|
130
|
-
}) => {
|
|
131
|
-
source: string;
|
|
132
|
-
value: boolean | null;
|
|
133
|
-
};
|
|
134
|
-
setConfig: (value: boolean | null) => void;
|
|
135
|
-
id: "enable-folder-expiry";
|
|
136
|
-
}, enableMultiprocessOnLinuxOption: {
|
|
137
|
-
name: string;
|
|
138
|
-
cliFlag: "enable-multiprocess-on-linux";
|
|
139
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
140
|
-
ssrName: string;
|
|
141
|
-
docLink: string;
|
|
142
|
-
type: boolean;
|
|
143
|
-
getValue: ({ commandLine }: {
|
|
144
|
-
commandLine: Record<string, unknown>;
|
|
145
|
-
}) => {
|
|
146
|
-
source: string;
|
|
147
|
-
value: boolean;
|
|
148
|
-
};
|
|
149
|
-
setConfig: (value: boolean) => void;
|
|
150
|
-
id: "enable-multiprocess-on-linux";
|
|
151
|
-
}, numberOfGifLoopsOption: {
|
|
152
|
-
name: string;
|
|
153
|
-
cliFlag: "number-of-gif-loops";
|
|
154
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
155
|
-
ssrName: "numberOfGifLoops";
|
|
156
|
-
docLink: string;
|
|
157
|
-
type: number | null;
|
|
158
|
-
getValue: ({ commandLine }: {
|
|
159
|
-
commandLine: Record<string, unknown>;
|
|
160
|
-
}) => {
|
|
161
|
-
value: number;
|
|
162
|
-
source: string;
|
|
163
|
-
} | {
|
|
164
|
-
value: null;
|
|
165
|
-
source: string;
|
|
166
|
-
};
|
|
167
|
-
setConfig: (newLoop: import("@remotion/renderer").NumberOfGifLoops) => void;
|
|
168
|
-
id: "number-of-gif-loops";
|
|
169
|
-
}, x264Option: {
|
|
170
|
-
name: string;
|
|
171
|
-
cliFlag: "x264-preset";
|
|
172
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
173
|
-
ssrName: "x264Preset";
|
|
174
|
-
docLink: string;
|
|
175
|
-
type: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
|
|
176
|
-
getValue: ({ commandLine }: {
|
|
177
|
-
commandLine: Record<string, unknown>;
|
|
178
|
-
}) => {
|
|
179
|
-
value: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow";
|
|
180
|
-
source: string;
|
|
181
|
-
} | {
|
|
182
|
-
value: null;
|
|
183
|
-
source: string;
|
|
184
|
-
};
|
|
185
|
-
setConfig: (profile: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null) => void;
|
|
186
|
-
id: "x264-preset";
|
|
187
|
-
}, enforceAudioOption: {
|
|
188
|
-
name: string;
|
|
189
|
-
cliFlag: "enforce-audio-track";
|
|
190
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
191
|
-
ssrName: string;
|
|
192
|
-
docLink: string;
|
|
193
|
-
type: boolean;
|
|
194
|
-
getValue: ({ commandLine }: {
|
|
195
|
-
commandLine: Record<string, unknown>;
|
|
196
|
-
}) => {
|
|
197
|
-
source: string;
|
|
198
|
-
value: true;
|
|
199
|
-
} | {
|
|
200
|
-
source: string;
|
|
201
|
-
value: false;
|
|
202
|
-
};
|
|
203
|
-
setConfig: (value: boolean) => void;
|
|
204
|
-
id: "enforce-audio-track";
|
|
205
|
-
}, jpegQualityOption: {
|
|
206
|
-
name: string;
|
|
207
|
-
cliFlag: "jpeg-quality";
|
|
208
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
209
|
-
ssrName: string;
|
|
210
|
-
docLink: string;
|
|
211
|
-
type: number;
|
|
212
|
-
setConfig: (q: number | undefined) => void;
|
|
213
|
-
getValue: ({ commandLine }: {
|
|
214
|
-
commandLine: Record<string, unknown>;
|
|
215
|
-
}) => {
|
|
216
|
-
source: string;
|
|
217
|
-
value: number;
|
|
218
|
-
};
|
|
219
|
-
id: "jpeg-quality";
|
|
220
|
-
}, audioBitrateOption: {
|
|
221
|
-
name: string;
|
|
222
|
-
cliFlag: "audio-bitrate";
|
|
223
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
224
|
-
ssrName: string;
|
|
225
|
-
docLink: string;
|
|
226
|
-
type: string;
|
|
227
|
-
getValue: ({ commandLine }: {
|
|
228
|
-
commandLine: Record<string, unknown>;
|
|
229
|
-
}) => {
|
|
230
|
-
value: string;
|
|
231
|
-
source: string;
|
|
232
|
-
} | {
|
|
233
|
-
value: null;
|
|
234
|
-
source: string;
|
|
235
|
-
};
|
|
236
|
-
setConfig: (value: string | null) => void;
|
|
237
|
-
id: "audio-bitrate";
|
|
238
|
-
}, videoBitrateOption: {
|
|
239
|
-
name: string;
|
|
240
|
-
cliFlag: "video-bitrate";
|
|
241
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
242
|
-
ssrName: string;
|
|
243
|
-
docLink: string;
|
|
244
|
-
type: string | null;
|
|
245
|
-
getValue: ({ commandLine }: {
|
|
246
|
-
commandLine: Record<string, unknown>;
|
|
247
|
-
}) => {
|
|
248
|
-
source: string;
|
|
249
|
-
value: string | null;
|
|
250
|
-
};
|
|
251
|
-
setConfig: (bitrate: string | null) => void;
|
|
252
|
-
id: "video-bitrate";
|
|
253
|
-
}, audioCodecOption: {
|
|
254
|
-
cliFlag: "audio-codec";
|
|
255
|
-
setConfig: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => void;
|
|
256
|
-
getValue: ({ commandLine }: {
|
|
257
|
-
commandLine: Record<string, unknown>;
|
|
258
|
-
}) => {
|
|
259
|
-
source: string;
|
|
260
|
-
value: "aac" | "mp3" | "opus" | "pcm-16";
|
|
261
|
-
} | {
|
|
262
|
-
source: string;
|
|
263
|
-
value: null;
|
|
264
|
-
};
|
|
265
|
-
description: () => string;
|
|
266
|
-
docLink: string;
|
|
267
|
-
name: string;
|
|
268
|
-
ssrName: "audioCodec";
|
|
269
|
-
type: "aac" | "mp3" | "opus" | "pcm-16";
|
|
270
|
-
id: "audio-codec";
|
|
271
|
-
}, publicPathOption: {
|
|
272
|
-
name: string;
|
|
273
|
-
cliFlag: "public-path";
|
|
274
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
275
|
-
ssrName: "publicPath";
|
|
276
|
-
docLink: string;
|
|
277
|
-
getValue: ({ commandLine }: {
|
|
278
|
-
commandLine: Record<string, unknown>;
|
|
279
|
-
}) => {
|
|
280
|
-
source: string;
|
|
281
|
-
value: string;
|
|
282
|
-
} | {
|
|
283
|
-
source: string;
|
|
284
|
-
value: null;
|
|
285
|
-
};
|
|
286
|
-
setConfig: (value: string | null) => void;
|
|
287
|
-
type: string | null;
|
|
288
|
-
id: "public-path";
|
|
289
|
-
}, audioLatencyHintOption: {
|
|
290
|
-
name: string;
|
|
291
|
-
cliFlag: "audio-latency-hint";
|
|
292
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
293
|
-
ssrName: "audioLatencyHint";
|
|
294
|
-
docLink: string;
|
|
295
|
-
type: AudioContextLatencyCategory;
|
|
296
|
-
getValue: ({ commandLine }: {
|
|
297
|
-
commandLine: Record<string, unknown>;
|
|
298
|
-
}) => {
|
|
299
|
-
value: AudioContextLatencyCategory;
|
|
300
|
-
source: string;
|
|
301
|
-
} | {
|
|
302
|
-
value: null;
|
|
303
|
-
source: string;
|
|
304
|
-
};
|
|
305
|
-
setConfig: (profile: AudioContextLatencyCategory | null) => void;
|
|
306
|
-
id: "audio-latency-hint";
|
|
307
|
-
}, darkModeOption: {
|
|
308
|
-
name: string;
|
|
309
|
-
cliFlag: "dark-mode";
|
|
310
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
311
|
-
ssrName: string;
|
|
312
|
-
docLink: string;
|
|
313
|
-
type: boolean;
|
|
314
|
-
getValue: ({ commandLine }: {
|
|
315
|
-
commandLine: Record<string, unknown>;
|
|
316
|
-
}) => {
|
|
317
|
-
source: string;
|
|
318
|
-
value: boolean;
|
|
319
|
-
};
|
|
320
|
-
setConfig: (value: boolean) => void;
|
|
321
|
-
id: "dark-mode";
|
|
322
|
-
}, publicLicenseKeyOption: {
|
|
323
|
-
name: string;
|
|
324
|
-
cliFlag: "public-license-key";
|
|
325
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
326
|
-
ssrName: "publicLicenseKey";
|
|
327
|
-
docLink: string;
|
|
328
|
-
getValue: ({ commandLine }: {
|
|
329
|
-
commandLine: Record<string, unknown>;
|
|
330
|
-
}) => {
|
|
331
|
-
source: string;
|
|
332
|
-
value: string | null;
|
|
333
|
-
};
|
|
334
|
-
setConfig: (value: string | null) => void;
|
|
335
|
-
type: string | null;
|
|
336
|
-
id: "public-license-key";
|
|
337
|
-
}, forceNewStudioOption: {
|
|
338
|
-
name: string;
|
|
339
|
-
cliFlag: "force-new";
|
|
340
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
341
|
-
ssrName: null;
|
|
342
|
-
docLink: string;
|
|
343
|
-
type: boolean;
|
|
344
|
-
getValue: ({ commandLine }: {
|
|
345
|
-
commandLine: Record<string, unknown>;
|
|
346
|
-
}) => {
|
|
347
|
-
value: boolean;
|
|
348
|
-
source: string;
|
|
349
|
-
};
|
|
350
|
-
setConfig(value: boolean): void;
|
|
351
|
-
id: "force-new";
|
|
352
|
-
}, numberOfSharedAudioTagsOption: {
|
|
353
|
-
name: string;
|
|
354
|
-
cliFlag: "number-of-shared-audio-tags";
|
|
355
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
356
|
-
ssrName: null;
|
|
357
|
-
docLink: string;
|
|
358
|
-
type: number;
|
|
359
|
-
getValue: ({ commandLine }: {
|
|
360
|
-
commandLine: Record<string, unknown>;
|
|
361
|
-
}) => {
|
|
362
|
-
value: number;
|
|
363
|
-
source: string;
|
|
364
|
-
};
|
|
365
|
-
setConfig(value: number): void;
|
|
366
|
-
id: "number-of-shared-audio-tags";
|
|
367
|
-
}, ipv4Option: {
|
|
368
|
-
name: string;
|
|
369
|
-
cliFlag: "ipv4";
|
|
370
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
371
|
-
ssrName: null;
|
|
372
|
-
docLink: string;
|
|
373
|
-
type: boolean;
|
|
374
|
-
getValue: ({ commandLine }: {
|
|
375
|
-
commandLine: Record<string, unknown>;
|
|
376
|
-
}) => {
|
|
377
|
-
value: boolean;
|
|
378
|
-
source: string;
|
|
379
|
-
};
|
|
380
|
-
setConfig(value: boolean): void;
|
|
381
|
-
id: "ipv4";
|
|
382
|
-
};
|
|
383
|
-
export type CommandLineOptions = {
|
|
384
|
-
['browser-executable']: BrowserExecutable;
|
|
385
|
-
['pixel-format']: PixelFormat;
|
|
386
|
-
['image-format']: VideoImageFormat | StillImageFormat;
|
|
387
|
-
['prores-profile']: _InternalTypes['ProResProfile'];
|
|
388
|
-
[x264Option.cliFlag]: TypeOfOption<typeof x264Option>;
|
|
389
|
-
['bundle-cache']: string;
|
|
390
|
-
['env-file']: string;
|
|
391
|
-
['ignore-certificate-errors']: string;
|
|
392
|
-
[darkModeOption.cliFlag]: TypeOfOption<typeof darkModeOption>;
|
|
393
|
-
['disable-web-security']: string;
|
|
394
|
-
['every-nth-frame']: number;
|
|
395
|
-
[numberOfGifLoopsOption.cliFlag]: TypeOfOption<typeof numberOfGifLoopsOption>;
|
|
396
|
-
[numberOfSharedAudioTagsOption.cliFlag]: TypeOfOption<typeof numberOfSharedAudioTagsOption>;
|
|
397
|
-
[offthreadVideoCacheSizeInBytesOption.cliFlag]: TypeOfOption<typeof offthreadVideoCacheSizeInBytesOption>;
|
|
398
|
-
[colorSpaceOption.cliFlag]: TypeOfOption<typeof colorSpaceOption>;
|
|
399
|
-
[disallowParallelEncodingOption.cliFlag]: TypeOfOption<typeof disallowParallelEncodingOption>;
|
|
400
|
-
[beepOnFinishOption.cliFlag]: TypeOfOption<typeof beepOnFinishOption>;
|
|
401
|
-
version: string;
|
|
402
|
-
codec: Codec;
|
|
403
|
-
concurrency: number;
|
|
404
|
-
timeout: number;
|
|
405
|
-
config: string;
|
|
406
|
-
['public-dir']: string;
|
|
407
|
-
[audioBitrateOption.cliFlag]: TypeOfOption<typeof audioBitrateOption>;
|
|
408
|
-
[videoBitrateOption.cliFlag]: TypeOfOption<typeof videoBitrateOption>;
|
|
409
|
-
[encodingBufferSizeOption.cliFlag]: TypeOfOption<typeof encodingBufferSizeOption>;
|
|
410
|
-
[encodingMaxRateOption.cliFlag]: TypeOfOption<typeof encodingMaxRateOption>;
|
|
411
|
-
[audioCodecOption.cliFlag]: AudioCodec;
|
|
412
|
-
[publicPathOption.cliFlag]: string;
|
|
413
|
-
crf: number;
|
|
414
|
-
force: boolean;
|
|
415
|
-
output: string | undefined;
|
|
416
|
-
overwrite: boolean;
|
|
417
|
-
png: boolean;
|
|
418
|
-
props: string;
|
|
419
|
-
quality: number;
|
|
420
|
-
[jpegQualityOption.cliFlag]: TypeOfOption<typeof jpegQualityOption>;
|
|
421
|
-
frames: string | number;
|
|
422
|
-
scale: number;
|
|
423
|
-
sequence: boolean;
|
|
424
|
-
quiet: boolean;
|
|
425
|
-
q: boolean;
|
|
426
|
-
log: string;
|
|
427
|
-
help: boolean;
|
|
428
|
-
port: number;
|
|
429
|
-
frame: string | number;
|
|
430
|
-
['disable-headless']: boolean;
|
|
431
|
-
['disable-keyboard-shortcuts']: boolean;
|
|
432
|
-
['enable-experimental-client-side-rendering']: boolean;
|
|
433
|
-
muted: boolean;
|
|
434
|
-
height: number;
|
|
435
|
-
width: number;
|
|
436
|
-
runs: number;
|
|
437
|
-
concurrencies: string;
|
|
438
|
-
[enforceAudioOption.cliFlag]: TypeOfOption<typeof enforceAudioOption>;
|
|
439
|
-
gl: OpenGlRenderer;
|
|
440
|
-
['package-manager']: string;
|
|
441
|
-
['webpack-poll']: number;
|
|
442
|
-
['no-open']: boolean;
|
|
443
|
-
['browser']: string;
|
|
444
|
-
['browser-args']: string;
|
|
445
|
-
['user-agent']: string;
|
|
446
|
-
['out-dir']: string;
|
|
447
|
-
[audioLatencyHintOption.cliFlag]: AudioContextLatencyCategory;
|
|
448
|
-
[ipv4Option.cliFlag]: TypeOfOption<typeof ipv4Option>;
|
|
449
|
-
[deleteAfterOption.cliFlag]: TypeOfOption<typeof deleteAfterOption>;
|
|
450
|
-
[folderExpiryOption.cliFlag]: TypeOfOption<typeof folderExpiryOption>;
|
|
451
|
-
[enableMultiprocessOnLinuxOption.cliFlag]: TypeOfOption<typeof enableMultiprocessOnLinuxOption>;
|
|
452
|
-
repro: boolean;
|
|
453
|
-
'image-sequence-pattern': string;
|
|
454
|
-
'license-key': string;
|
|
455
|
-
[publicLicenseKeyOption.cliFlag]: string;
|
|
456
|
-
[forceNewStudioOption.cliFlag]: TypeOfOption<typeof forceNewStudioOption>;
|
|
457
|
-
};
|
|
458
1
|
export declare const parseCommandLine: () => void;
|
|
459
|
-
export {};
|
|
@@ -1,80 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parseCommandLine = void 0;
|
|
4
|
-
const client_1 = require("@remotion/renderer/client");
|
|
5
4
|
const config_1 = require("./config");
|
|
6
|
-
const log_1 = require("./log");
|
|
7
5
|
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;
|
|
9
6
|
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
|
-
if (typeof parsed_cli_1.parsedCli['bundle-cache'] !== 'undefined') {
|
|
17
|
-
config_1.Config.setCachingEnabled(parsed_cli_1.parsedCli['bundle-cache'] !== 'false');
|
|
18
|
-
}
|
|
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
|
-
if (parsed_cli_1.parsedCli.frames) {
|
|
41
|
-
config_1.ConfigInternals.setFrameRangeFromCli(parsed_cli_1.parsedCli.frames);
|
|
42
|
-
}
|
|
43
|
-
if (parsed_cli_1.parsedCli.frame) {
|
|
44
|
-
config_1.ConfigInternals.setStillFrame(Number(parsed_cli_1.parsedCli.frame));
|
|
45
|
-
}
|
|
46
7
|
if (parsed_cli_1.parsedCli.png) {
|
|
47
8
|
throw new Error('The --png flag has been removed. Use --sequence --image-format=png from now on.');
|
|
48
9
|
}
|
|
49
|
-
if (parsed_cli_1.parsedCli.sequence) {
|
|
50
|
-
config_1.Config.setImageSequence(true);
|
|
51
|
-
}
|
|
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
10
|
if (parsed_cli_1.parsedCli['license-key'] &&
|
|
59
11
|
parsed_cli_1.parsedCli['license-key'].startsWith('rm_pub_')) {
|
|
60
12
|
config_1.Config.setPublicLicenseKey(parsed_cli_1.parsedCli['license-key']);
|
|
61
13
|
}
|
|
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
|
-
if (typeof parsed_cli_1.parsedCli['webpack-poll'] !== 'undefined') {
|
|
77
|
-
config_1.Config.setWebpackPollingInMilliseconds(parsed_cli_1.parsedCli['webpack-poll']);
|
|
78
|
-
}
|
|
79
14
|
};
|
|
80
15
|
exports.parseCommandLine = parseCommandLine;
|