@remotion/cli 4.0.425 → 4.0.427
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 +25 -7
- package/dist/bundle.js +10 -3
- package/dist/compositions.js +7 -1
- package/dist/config/index.d.ts +16 -3
- package/dist/config/index.js +11 -19
- package/dist/config/preview-server.js +3 -1
- package/dist/extra-packages.js +2 -2
- package/dist/get-cli-options.d.ts +0 -5
- package/dist/get-cli-options.js +11 -29
- 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/index.d.ts +1 -6
- package/dist/index.js +9 -3
- package/dist/list-of-remotion-packages.js +2 -0
- package/dist/parse-command-line.d.ts +0 -657
- package/dist/parse-command-line.js +0 -17
- package/dist/parsed-cli.d.ts +1104 -1
- package/dist/parsed-cli.js +24 -33
- package/dist/render-flows/render.d.ts +3 -1
- package/dist/render-flows/render.js +8 -1
- package/dist/render-flows/still.d.ts +3 -1
- package/dist/render-flows/still.js +3 -1
- package/dist/render-queue/process-still.js +7 -1
- package/dist/render-queue/process-video.js +7 -1
- package/dist/render.js +25 -4
- package/dist/setup-cache.d.ts +6 -2
- package/dist/setup-cache.js +5 -3
- package/dist/still.js +18 -2
- package/dist/studio.js +11 -18
- package/package.json +15 -15
|
@@ -75,6 +75,7 @@ exports.listOfRemotionPackages = [
|
|
|
75
75
|
'@remotion/transitions',
|
|
76
76
|
'@remotion/media-parser',
|
|
77
77
|
'@remotion/zod-types',
|
|
78
|
+
'@remotion/zod-types-v3',
|
|
78
79
|
'@remotion/webcodecs',
|
|
79
80
|
'@remotion/convert',
|
|
80
81
|
'@remotion/captions',
|
|
@@ -86,4 +87,5 @@ exports.listOfRemotionPackages = [
|
|
|
86
87
|
'@remotion/web-renderer',
|
|
87
88
|
'@remotion/design',
|
|
88
89
|
'@remotion/light-leaks',
|
|
90
|
+
'@remotion/vercel',
|
|
89
91
|
];
|
|
@@ -1,658 +1 @@
|
|
|
1
|
-
import type { AudioCodec, Codec, OpenGlRenderer, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
|
-
import type { TypeOfOption } from '@remotion/renderer/client';
|
|
3
|
-
declare const beepOnFinishOption: {
|
|
4
|
-
name: string;
|
|
5
|
-
cliFlag: "beep-on-finish";
|
|
6
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
ssrName: null;
|
|
8
|
-
docLink: string;
|
|
9
|
-
type: boolean;
|
|
10
|
-
getValue: ({ commandLine }: {
|
|
11
|
-
commandLine: Record<string, unknown>;
|
|
12
|
-
}) => {
|
|
13
|
-
value: boolean;
|
|
14
|
-
source: string;
|
|
15
|
-
};
|
|
16
|
-
setConfig(value: boolean): void;
|
|
17
|
-
id: "beep-on-finish";
|
|
18
|
-
}, colorSpaceOption: {
|
|
19
|
-
name: string;
|
|
20
|
-
cliFlag: "color-space";
|
|
21
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
docLink: string;
|
|
23
|
-
ssrName: string;
|
|
24
|
-
type: "bt2020-ncl" | "bt601" | "bt709" | "default" | null;
|
|
25
|
-
getValue: ({ commandLine }: {
|
|
26
|
-
commandLine: Record<string, unknown>;
|
|
27
|
-
}) => {
|
|
28
|
-
source: string;
|
|
29
|
-
value: "bt2020-ncl" | "bt601" | "bt709" | "default";
|
|
30
|
-
};
|
|
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";
|
|
48
|
-
}, disallowParallelEncodingOption: {
|
|
49
|
-
name: string;
|
|
50
|
-
cliFlag: "disallow-parallel-encoding";
|
|
51
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
52
|
-
ssrName: string;
|
|
53
|
-
docLink: string;
|
|
54
|
-
type: boolean;
|
|
55
|
-
getValue: ({ commandLine }: {
|
|
56
|
-
commandLine: Record<string, unknown>;
|
|
57
|
-
}) => {
|
|
58
|
-
value: boolean;
|
|
59
|
-
source: string;
|
|
60
|
-
};
|
|
61
|
-
setConfig(value: boolean): void;
|
|
62
|
-
id: "disallow-parallel-encoding";
|
|
63
|
-
}, offthreadVideoCacheSizeInBytesOption: {
|
|
64
|
-
name: string;
|
|
65
|
-
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
66
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
67
|
-
ssrName: "offthreadVideoCacheSizeInBytes";
|
|
68
|
-
docLink: string;
|
|
69
|
-
type: number | null;
|
|
70
|
-
getValue: ({ commandLine }: {
|
|
71
|
-
commandLine: Record<string, unknown>;
|
|
72
|
-
}) => {
|
|
73
|
-
source: string;
|
|
74
|
-
value: number;
|
|
75
|
-
} | {
|
|
76
|
-
source: string;
|
|
77
|
-
value: null;
|
|
78
|
-
};
|
|
79
|
-
setConfig: (size: number | null) => void;
|
|
80
|
-
id: "offthreadvideo-cache-size-in-bytes";
|
|
81
|
-
}, encodingBufferSizeOption: {
|
|
82
|
-
name: string;
|
|
83
|
-
cliFlag: "buffer-size";
|
|
84
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
85
|
-
ssrName: "encodingBufferSize";
|
|
86
|
-
docLink: string;
|
|
87
|
-
type: string | null;
|
|
88
|
-
getValue: ({ commandLine }: {
|
|
89
|
-
commandLine: Record<string, unknown>;
|
|
90
|
-
}) => {
|
|
91
|
-
value: string;
|
|
92
|
-
source: string;
|
|
93
|
-
} | {
|
|
94
|
-
value: null;
|
|
95
|
-
source: string;
|
|
96
|
-
};
|
|
97
|
-
setConfig: (bitrate: string | null) => void;
|
|
98
|
-
id: "buffer-size";
|
|
99
|
-
}, encodingMaxRateOption: {
|
|
100
|
-
name: string;
|
|
101
|
-
cliFlag: "max-rate";
|
|
102
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
103
|
-
ssrName: "encodingMaxRate";
|
|
104
|
-
docLink: string;
|
|
105
|
-
type: string | null;
|
|
106
|
-
getValue: ({ commandLine }: {
|
|
107
|
-
commandLine: Record<string, unknown>;
|
|
108
|
-
}) => {
|
|
109
|
-
value: string;
|
|
110
|
-
source: string;
|
|
111
|
-
} | {
|
|
112
|
-
value: null;
|
|
113
|
-
source: string;
|
|
114
|
-
};
|
|
115
|
-
setConfig: (newMaxRate: string | null) => void;
|
|
116
|
-
id: "max-rate";
|
|
117
|
-
}, deleteAfterOption: {
|
|
118
|
-
name: string;
|
|
119
|
-
cliFlag: "delete-after";
|
|
120
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
121
|
-
ssrName: "deleteAfter";
|
|
122
|
-
docLink: string;
|
|
123
|
-
type: import("@remotion/renderer").DeleteAfter | null;
|
|
124
|
-
getValue: ({ commandLine }: {
|
|
125
|
-
commandLine: Record<string, unknown>;
|
|
126
|
-
}) => {
|
|
127
|
-
source: string;
|
|
128
|
-
value: import("@remotion/renderer").DeleteAfter;
|
|
129
|
-
} | {
|
|
130
|
-
source: string;
|
|
131
|
-
value: null;
|
|
132
|
-
};
|
|
133
|
-
setConfig: (value: import("@remotion/renderer").DeleteAfter | null) => void;
|
|
134
|
-
id: "delete-after";
|
|
135
|
-
}, folderExpiryOption: {
|
|
136
|
-
name: string;
|
|
137
|
-
cliFlag: "enable-folder-expiry";
|
|
138
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
139
|
-
ssrName: "enableFolderExpiry";
|
|
140
|
-
docLink: string;
|
|
141
|
-
type: boolean | null;
|
|
142
|
-
getValue: ({ commandLine }: {
|
|
143
|
-
commandLine: Record<string, unknown>;
|
|
144
|
-
}) => {
|
|
145
|
-
source: string;
|
|
146
|
-
value: boolean | null;
|
|
147
|
-
};
|
|
148
|
-
setConfig: (value: boolean | null) => void;
|
|
149
|
-
id: "enable-folder-expiry";
|
|
150
|
-
}, enableMultiprocessOnLinuxOption: {
|
|
151
|
-
name: string;
|
|
152
|
-
cliFlag: "enable-multiprocess-on-linux";
|
|
153
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
154
|
-
ssrName: string;
|
|
155
|
-
docLink: string;
|
|
156
|
-
type: boolean;
|
|
157
|
-
getValue: ({ commandLine }: {
|
|
158
|
-
commandLine: Record<string, unknown>;
|
|
159
|
-
}) => {
|
|
160
|
-
source: string;
|
|
161
|
-
value: boolean;
|
|
162
|
-
};
|
|
163
|
-
setConfig: (value: boolean) => void;
|
|
164
|
-
id: "enable-multiprocess-on-linux";
|
|
165
|
-
}, numberOfGifLoopsOption: {
|
|
166
|
-
name: string;
|
|
167
|
-
cliFlag: "number-of-gif-loops";
|
|
168
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
169
|
-
ssrName: "numberOfGifLoops";
|
|
170
|
-
docLink: string;
|
|
171
|
-
type: number | null;
|
|
172
|
-
getValue: ({ commandLine }: {
|
|
173
|
-
commandLine: Record<string, unknown>;
|
|
174
|
-
}) => {
|
|
175
|
-
value: number;
|
|
176
|
-
source: string;
|
|
177
|
-
} | {
|
|
178
|
-
value: null;
|
|
179
|
-
source: string;
|
|
180
|
-
};
|
|
181
|
-
setConfig: (newLoop: import("@remotion/renderer").NumberOfGifLoops) => void;
|
|
182
|
-
id: "number-of-gif-loops";
|
|
183
|
-
}, x264Option: {
|
|
184
|
-
name: string;
|
|
185
|
-
cliFlag: "x264-preset";
|
|
186
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
187
|
-
ssrName: "x264Preset";
|
|
188
|
-
docLink: string;
|
|
189
|
-
type: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
|
|
190
|
-
getValue: ({ commandLine }: {
|
|
191
|
-
commandLine: Record<string, unknown>;
|
|
192
|
-
}) => {
|
|
193
|
-
value: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow";
|
|
194
|
-
source: string;
|
|
195
|
-
} | {
|
|
196
|
-
value: null;
|
|
197
|
-
source: string;
|
|
198
|
-
};
|
|
199
|
-
setConfig: (profile: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null) => void;
|
|
200
|
-
id: "x264-preset";
|
|
201
|
-
}, enforceAudioOption: {
|
|
202
|
-
name: string;
|
|
203
|
-
cliFlag: "enforce-audio-track";
|
|
204
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
205
|
-
ssrName: string;
|
|
206
|
-
docLink: string;
|
|
207
|
-
type: boolean;
|
|
208
|
-
getValue: ({ commandLine }: {
|
|
209
|
-
commandLine: Record<string, unknown>;
|
|
210
|
-
}) => {
|
|
211
|
-
source: string;
|
|
212
|
-
value: true;
|
|
213
|
-
} | {
|
|
214
|
-
source: string;
|
|
215
|
-
value: false;
|
|
216
|
-
};
|
|
217
|
-
setConfig: (value: boolean) => void;
|
|
218
|
-
id: "enforce-audio-track";
|
|
219
|
-
}, jpegQualityOption: {
|
|
220
|
-
name: string;
|
|
221
|
-
cliFlag: "jpeg-quality";
|
|
222
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
223
|
-
ssrName: string;
|
|
224
|
-
docLink: string;
|
|
225
|
-
type: number;
|
|
226
|
-
setConfig: (q: number | undefined) => void;
|
|
227
|
-
getValue: ({ commandLine }: {
|
|
228
|
-
commandLine: Record<string, unknown>;
|
|
229
|
-
}) => {
|
|
230
|
-
source: string;
|
|
231
|
-
value: number;
|
|
232
|
-
};
|
|
233
|
-
id: "jpeg-quality";
|
|
234
|
-
}, audioBitrateOption: {
|
|
235
|
-
name: string;
|
|
236
|
-
cliFlag: "audio-bitrate";
|
|
237
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
238
|
-
ssrName: string;
|
|
239
|
-
docLink: string;
|
|
240
|
-
type: string;
|
|
241
|
-
getValue: ({ commandLine }: {
|
|
242
|
-
commandLine: Record<string, unknown>;
|
|
243
|
-
}) => {
|
|
244
|
-
value: string;
|
|
245
|
-
source: string;
|
|
246
|
-
} | {
|
|
247
|
-
value: null;
|
|
248
|
-
source: string;
|
|
249
|
-
};
|
|
250
|
-
setConfig: (value: string | null) => void;
|
|
251
|
-
id: "audio-bitrate";
|
|
252
|
-
}, videoBitrateOption: {
|
|
253
|
-
name: string;
|
|
254
|
-
cliFlag: "video-bitrate";
|
|
255
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
256
|
-
ssrName: string;
|
|
257
|
-
docLink: string;
|
|
258
|
-
type: string | null;
|
|
259
|
-
getValue: ({ commandLine }: {
|
|
260
|
-
commandLine: Record<string, unknown>;
|
|
261
|
-
}) => {
|
|
262
|
-
source: string;
|
|
263
|
-
value: string | null;
|
|
264
|
-
};
|
|
265
|
-
setConfig: (bitrate: string | null) => void;
|
|
266
|
-
id: "video-bitrate";
|
|
267
|
-
}, audioCodecOption: {
|
|
268
|
-
cliFlag: "audio-codec";
|
|
269
|
-
setConfig: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => void;
|
|
270
|
-
getValue: ({ commandLine }: {
|
|
271
|
-
commandLine: Record<string, unknown>;
|
|
272
|
-
}) => {
|
|
273
|
-
source: string;
|
|
274
|
-
value: "aac" | "mp3" | "opus" | "pcm-16";
|
|
275
|
-
} | {
|
|
276
|
-
source: string;
|
|
277
|
-
value: null;
|
|
278
|
-
};
|
|
279
|
-
description: () => string;
|
|
280
|
-
docLink: string;
|
|
281
|
-
name: string;
|
|
282
|
-
ssrName: "audioCodec";
|
|
283
|
-
type: "aac" | "mp3" | "opus" | "pcm-16";
|
|
284
|
-
id: "audio-codec";
|
|
285
|
-
}, publicPathOption: {
|
|
286
|
-
name: string;
|
|
287
|
-
cliFlag: "public-path";
|
|
288
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
289
|
-
ssrName: "publicPath";
|
|
290
|
-
docLink: string;
|
|
291
|
-
getValue: ({ commandLine }: {
|
|
292
|
-
commandLine: Record<string, unknown>;
|
|
293
|
-
}) => {
|
|
294
|
-
source: string;
|
|
295
|
-
value: string;
|
|
296
|
-
} | {
|
|
297
|
-
source: string;
|
|
298
|
-
value: null;
|
|
299
|
-
};
|
|
300
|
-
setConfig: (value: string | null) => void;
|
|
301
|
-
type: string | null;
|
|
302
|
-
id: "public-path";
|
|
303
|
-
}, audioLatencyHintOption: {
|
|
304
|
-
name: string;
|
|
305
|
-
cliFlag: "audio-latency-hint";
|
|
306
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
307
|
-
ssrName: "audioLatencyHint";
|
|
308
|
-
docLink: string;
|
|
309
|
-
type: AudioContextLatencyCategory;
|
|
310
|
-
getValue: ({ commandLine }: {
|
|
311
|
-
commandLine: Record<string, unknown>;
|
|
312
|
-
}) => {
|
|
313
|
-
value: AudioContextLatencyCategory;
|
|
314
|
-
source: string;
|
|
315
|
-
} | {
|
|
316
|
-
value: null;
|
|
317
|
-
source: string;
|
|
318
|
-
};
|
|
319
|
-
setConfig: (profile: AudioContextLatencyCategory | null) => void;
|
|
320
|
-
id: "audio-latency-hint";
|
|
321
|
-
}, darkModeOption: {
|
|
322
|
-
name: string;
|
|
323
|
-
cliFlag: "dark-mode";
|
|
324
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
325
|
-
ssrName: string;
|
|
326
|
-
docLink: string;
|
|
327
|
-
type: boolean;
|
|
328
|
-
getValue: ({ commandLine }: {
|
|
329
|
-
commandLine: Record<string, unknown>;
|
|
330
|
-
}) => {
|
|
331
|
-
source: string;
|
|
332
|
-
value: boolean;
|
|
333
|
-
};
|
|
334
|
-
setConfig: (value: boolean) => void;
|
|
335
|
-
id: "dark-mode";
|
|
336
|
-
}, publicLicenseKeyOption: {
|
|
337
|
-
name: string;
|
|
338
|
-
cliFlag: "public-license-key";
|
|
339
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
340
|
-
ssrName: "publicLicenseKey";
|
|
341
|
-
docLink: string;
|
|
342
|
-
getValue: ({ commandLine }: {
|
|
343
|
-
commandLine: Record<string, unknown>;
|
|
344
|
-
}) => {
|
|
345
|
-
source: string;
|
|
346
|
-
value: string | null;
|
|
347
|
-
};
|
|
348
|
-
setConfig: (value: string | null) => void;
|
|
349
|
-
type: string | null;
|
|
350
|
-
id: "public-license-key";
|
|
351
|
-
}, forceNewStudioOption: {
|
|
352
|
-
name: string;
|
|
353
|
-
cliFlag: "force-new";
|
|
354
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
355
|
-
ssrName: null;
|
|
356
|
-
docLink: string;
|
|
357
|
-
type: boolean;
|
|
358
|
-
getValue: ({ commandLine }: {
|
|
359
|
-
commandLine: Record<string, unknown>;
|
|
360
|
-
}) => {
|
|
361
|
-
value: boolean;
|
|
362
|
-
source: string;
|
|
363
|
-
};
|
|
364
|
-
setConfig(value: boolean): void;
|
|
365
|
-
id: "force-new";
|
|
366
|
-
}, numberOfSharedAudioTagsOption: {
|
|
367
|
-
name: string;
|
|
368
|
-
cliFlag: "number-of-shared-audio-tags";
|
|
369
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
370
|
-
ssrName: null;
|
|
371
|
-
docLink: string;
|
|
372
|
-
type: number;
|
|
373
|
-
getValue: ({ commandLine }: {
|
|
374
|
-
commandLine: Record<string, unknown>;
|
|
375
|
-
}) => {
|
|
376
|
-
value: number;
|
|
377
|
-
source: string;
|
|
378
|
-
};
|
|
379
|
-
setConfig(value: number): void;
|
|
380
|
-
id: "number-of-shared-audio-tags";
|
|
381
|
-
}, ipv4Option: {
|
|
382
|
-
name: string;
|
|
383
|
-
cliFlag: "ipv4";
|
|
384
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
385
|
-
ssrName: null;
|
|
386
|
-
docLink: string;
|
|
387
|
-
type: boolean;
|
|
388
|
-
getValue: ({ commandLine }: {
|
|
389
|
-
commandLine: Record<string, unknown>;
|
|
390
|
-
}) => {
|
|
391
|
-
value: boolean;
|
|
392
|
-
source: string;
|
|
393
|
-
};
|
|
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";
|
|
579
|
-
};
|
|
580
|
-
export type CommandLineOptions = {
|
|
581
|
-
[browserExecutableOption.cliFlag]: TypeOfOption<typeof browserExecutableOption>;
|
|
582
|
-
[pixelFormatOption.cliFlag]: TypeOfOption<typeof pixelFormatOption>;
|
|
583
|
-
['image-format']: VideoImageFormat | StillImageFormat;
|
|
584
|
-
[proResProfileOption.cliFlag]: TypeOfOption<typeof proResProfileOption>;
|
|
585
|
-
[x264Option.cliFlag]: TypeOfOption<typeof x264Option>;
|
|
586
|
-
['bundle-cache']: string;
|
|
587
|
-
['env-file']: string;
|
|
588
|
-
[ignoreCertificateErrorsOption.cliFlag]: TypeOfOption<typeof ignoreCertificateErrorsOption>;
|
|
589
|
-
[darkModeOption.cliFlag]: TypeOfOption<typeof darkModeOption>;
|
|
590
|
-
[disableWebSecurityOption.cliFlag]: TypeOfOption<typeof disableWebSecurityOption>;
|
|
591
|
-
[everyNthFrameOption.cliFlag]: TypeOfOption<typeof everyNthFrameOption>;
|
|
592
|
-
[numberOfGifLoopsOption.cliFlag]: TypeOfOption<typeof numberOfGifLoopsOption>;
|
|
593
|
-
[numberOfSharedAudioTagsOption.cliFlag]: TypeOfOption<typeof numberOfSharedAudioTagsOption>;
|
|
594
|
-
[offthreadVideoCacheSizeInBytesOption.cliFlag]: TypeOfOption<typeof offthreadVideoCacheSizeInBytesOption>;
|
|
595
|
-
[colorSpaceOption.cliFlag]: TypeOfOption<typeof colorSpaceOption>;
|
|
596
|
-
[disallowParallelEncodingOption.cliFlag]: TypeOfOption<typeof disallowParallelEncodingOption>;
|
|
597
|
-
[beepOnFinishOption.cliFlag]: TypeOfOption<typeof beepOnFinishOption>;
|
|
598
|
-
version: string;
|
|
599
|
-
codec: Codec;
|
|
600
|
-
[concurrencyOption.cliFlag]: TypeOfOption<typeof concurrencyOption>;
|
|
601
|
-
timeout: number;
|
|
602
|
-
config: string;
|
|
603
|
-
['public-dir']: string;
|
|
604
|
-
[audioBitrateOption.cliFlag]: TypeOfOption<typeof audioBitrateOption>;
|
|
605
|
-
[videoBitrateOption.cliFlag]: TypeOfOption<typeof videoBitrateOption>;
|
|
606
|
-
[encodingBufferSizeOption.cliFlag]: TypeOfOption<typeof encodingBufferSizeOption>;
|
|
607
|
-
[encodingMaxRateOption.cliFlag]: TypeOfOption<typeof encodingMaxRateOption>;
|
|
608
|
-
[audioCodecOption.cliFlag]: AudioCodec;
|
|
609
|
-
[publicPathOption.cliFlag]: string;
|
|
610
|
-
crf: number;
|
|
611
|
-
force: boolean;
|
|
612
|
-
output: string | undefined;
|
|
613
|
-
overwrite: boolean;
|
|
614
|
-
png: boolean;
|
|
615
|
-
props: string;
|
|
616
|
-
quality: number;
|
|
617
|
-
[jpegQualityOption.cliFlag]: TypeOfOption<typeof jpegQualityOption>;
|
|
618
|
-
frames: string | number;
|
|
619
|
-
scale: number;
|
|
620
|
-
sequence: boolean;
|
|
621
|
-
quiet: boolean;
|
|
622
|
-
q: boolean;
|
|
623
|
-
log: string;
|
|
624
|
-
help: boolean;
|
|
625
|
-
port: number;
|
|
626
|
-
frame: string | number;
|
|
627
|
-
['disable-headless']: boolean;
|
|
628
|
-
['disable-keyboard-shortcuts']: boolean;
|
|
629
|
-
['enable-experimental-client-side-rendering']: boolean;
|
|
630
|
-
muted: boolean;
|
|
631
|
-
[overrideHeightOption.cliFlag]: TypeOfOption<typeof overrideHeightOption>;
|
|
632
|
-
[overrideWidthOption.cliFlag]: TypeOfOption<typeof overrideWidthOption>;
|
|
633
|
-
[overrideFpsOption.cliFlag]: TypeOfOption<typeof overrideFpsOption>;
|
|
634
|
-
[overrideDurationOption.cliFlag]: TypeOfOption<typeof overrideDurationOption>;
|
|
635
|
-
runs: number;
|
|
636
|
-
concurrencies: string;
|
|
637
|
-
[enforceAudioOption.cliFlag]: TypeOfOption<typeof enforceAudioOption>;
|
|
638
|
-
gl: OpenGlRenderer;
|
|
639
|
-
['package-manager']: string;
|
|
640
|
-
['webpack-poll']: number;
|
|
641
|
-
['no-open']: boolean;
|
|
642
|
-
['browser']: string;
|
|
643
|
-
['browser-args']: string;
|
|
644
|
-
[userAgentOption.cliFlag]: TypeOfOption<typeof userAgentOption>;
|
|
645
|
-
['out-dir']: string;
|
|
646
|
-
[audioLatencyHintOption.cliFlag]: AudioContextLatencyCategory;
|
|
647
|
-
[ipv4Option.cliFlag]: TypeOfOption<typeof ipv4Option>;
|
|
648
|
-
[deleteAfterOption.cliFlag]: TypeOfOption<typeof deleteAfterOption>;
|
|
649
|
-
[folderExpiryOption.cliFlag]: TypeOfOption<typeof folderExpiryOption>;
|
|
650
|
-
[enableMultiprocessOnLinuxOption.cliFlag]: TypeOfOption<typeof enableMultiprocessOnLinuxOption>;
|
|
651
|
-
repro: boolean;
|
|
652
|
-
'image-sequence-pattern': string;
|
|
653
|
-
'license-key': string;
|
|
654
|
-
[publicLicenseKeyOption.cliFlag]: string;
|
|
655
|
-
[forceNewStudioOption.cliFlag]: TypeOfOption<typeof forceNewStudioOption>;
|
|
656
|
-
};
|
|
657
1
|
export declare const parseCommandLine: () => void;
|
|
658
|
-
export {};
|
|
@@ -1,32 +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
5
|
const parsed_cli_1 = require("./parsed-cli");
|
|
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;
|
|
8
6
|
const parseCommandLine = () => {
|
|
9
|
-
if (typeof parsed_cli_1.parsedCli['bundle-cache'] !== 'undefined') {
|
|
10
|
-
config_1.Config.setCachingEnabled(parsed_cli_1.parsedCli['bundle-cache'] !== 'false');
|
|
11
|
-
}
|
|
12
|
-
if (parsed_cli_1.parsedCli.frames) {
|
|
13
|
-
config_1.ConfigInternals.setFrameRangeFromCli(parsed_cli_1.parsedCli.frames);
|
|
14
|
-
}
|
|
15
|
-
if (parsed_cli_1.parsedCli.frame) {
|
|
16
|
-
config_1.ConfigInternals.setStillFrame(Number(parsed_cli_1.parsedCli.frame));
|
|
17
|
-
}
|
|
18
7
|
if (parsed_cli_1.parsedCli.png) {
|
|
19
8
|
throw new Error('The --png flag has been removed. Use --sequence --image-format=png from now on.');
|
|
20
9
|
}
|
|
21
|
-
if (parsed_cli_1.parsedCli.sequence) {
|
|
22
|
-
config_1.Config.setImageSequence(true);
|
|
23
|
-
}
|
|
24
10
|
if (parsed_cli_1.parsedCli['license-key'] &&
|
|
25
11
|
parsed_cli_1.parsedCli['license-key'].startsWith('rm_pub_')) {
|
|
26
12
|
config_1.Config.setPublicLicenseKey(parsed_cli_1.parsedCli['license-key']);
|
|
27
13
|
}
|
|
28
|
-
if (typeof parsed_cli_1.parsedCli['webpack-poll'] !== 'undefined') {
|
|
29
|
-
config_1.Config.setWebpackPollingInMilliseconds(parsed_cli_1.parsedCli['webpack-poll']);
|
|
30
|
-
}
|
|
31
14
|
};
|
|
32
15
|
exports.parseCommandLine = parseCommandLine;
|