@remotion/renderer 4.0.184 → 4.0.185
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/client.d.ts +82 -82
- package/dist/example-videos.d.ts +20 -0
- package/dist/example-videos.js +29 -0
- package/dist/index.d.ts +39 -39
- package/dist/index.js +1 -1
- package/dist/options/audio-codec.d.ts +5 -5
- package/dist/options/color-space.d.ts +3 -3
- package/dist/options/gl.d.ts +3 -3
- package/dist/options/index.d.ts +17 -17
- package/dist/options/options-map.d.ts +26 -26
- package/dist/options/video-codec.d.ts +1 -1
- package/dist/options/x264-preset.d.ts +2 -2
- package/package.json +10 -10
package/dist/client.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export { AvailableOptions, TypeOfOption } from './options';
|
|
2
2
|
export declare const BrowserSafeApis: {
|
|
3
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
3
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
4
4
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
5
5
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
6
|
-
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
7
|
-
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
8
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
6
|
+
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null | undefined) => boolean;
|
|
9
9
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
10
10
|
x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
|
|
11
11
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
12
12
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
13
|
-
validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
13
|
+
validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
|
|
14
14
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
15
15
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
16
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
16
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
17
17
|
DEFAULT_TIMEOUT: number;
|
|
18
18
|
DEFAULT_JPEG_QUALITY: number;
|
|
19
19
|
DEFAULT_COLOR_SPACE: "default";
|
|
@@ -35,11 +35,11 @@ export declare const BrowserSafeApis: {
|
|
|
35
35
|
h264: {
|
|
36
36
|
default: import("./file-extensions").FileExtension;
|
|
37
37
|
forAudioCodec: {
|
|
38
|
-
|
|
38
|
+
mp3: {
|
|
39
39
|
possible: import("./file-extensions").FileExtension[];
|
|
40
40
|
default: import("./file-extensions").FileExtension;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
aac: {
|
|
43
43
|
possible: import("./file-extensions").FileExtension[];
|
|
44
44
|
default: import("./file-extensions").FileExtension;
|
|
45
45
|
};
|
|
@@ -65,11 +65,11 @@ export declare const BrowserSafeApis: {
|
|
|
65
65
|
vp8: {
|
|
66
66
|
default: import("./file-extensions").FileExtension;
|
|
67
67
|
forAudioCodec: {
|
|
68
|
-
|
|
68
|
+
"pcm-16": {
|
|
69
69
|
possible: import("./file-extensions").FileExtension[];
|
|
70
70
|
default: import("./file-extensions").FileExtension;
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
opus: {
|
|
73
73
|
possible: import("./file-extensions").FileExtension[];
|
|
74
74
|
default: import("./file-extensions").FileExtension;
|
|
75
75
|
};
|
|
@@ -78,20 +78,20 @@ export declare const BrowserSafeApis: {
|
|
|
78
78
|
vp9: {
|
|
79
79
|
default: import("./file-extensions").FileExtension;
|
|
80
80
|
forAudioCodec: {
|
|
81
|
-
|
|
81
|
+
"pcm-16": {
|
|
82
82
|
possible: import("./file-extensions").FileExtension[];
|
|
83
83
|
default: import("./file-extensions").FileExtension;
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
opus: {
|
|
86
86
|
possible: import("./file-extensions").FileExtension[];
|
|
87
87
|
default: import("./file-extensions").FileExtension;
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
mp3: {
|
|
92
92
|
default: import("./file-extensions").FileExtension;
|
|
93
93
|
forAudioCodec: {
|
|
94
|
-
|
|
94
|
+
mp3: {
|
|
95
95
|
possible: import("./file-extensions").FileExtension[];
|
|
96
96
|
default: import("./file-extensions").FileExtension;
|
|
97
97
|
};
|
|
@@ -114,22 +114,22 @@ export declare const BrowserSafeApis: {
|
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
wav: {
|
|
118
118
|
default: import("./file-extensions").FileExtension;
|
|
119
119
|
forAudioCodec: {
|
|
120
|
-
mp3: {
|
|
121
|
-
possible: import("./file-extensions").FileExtension[];
|
|
122
|
-
default: import("./file-extensions").FileExtension;
|
|
123
|
-
};
|
|
124
120
|
"pcm-16": {
|
|
125
121
|
possible: import("./file-extensions").FileExtension[];
|
|
126
122
|
default: import("./file-extensions").FileExtension;
|
|
127
123
|
};
|
|
128
124
|
};
|
|
129
125
|
};
|
|
130
|
-
|
|
126
|
+
prores: {
|
|
131
127
|
default: import("./file-extensions").FileExtension;
|
|
132
128
|
forAudioCodec: {
|
|
129
|
+
aac: {
|
|
130
|
+
possible: import("./file-extensions").FileExtension[];
|
|
131
|
+
default: import("./file-extensions").FileExtension;
|
|
132
|
+
};
|
|
133
133
|
"pcm-16": {
|
|
134
134
|
possible: import("./file-extensions").FileExtension[];
|
|
135
135
|
default: import("./file-extensions").FileExtension;
|
|
@@ -169,37 +169,37 @@ export declare const BrowserSafeApis: {
|
|
|
169
169
|
};
|
|
170
170
|
defaultAudioCodecs: {
|
|
171
171
|
h264: {
|
|
172
|
-
compressed: "
|
|
173
|
-
lossless: "
|
|
172
|
+
compressed: "mp3" | "aac" | "pcm-16" | null;
|
|
173
|
+
lossless: "mp3" | "aac" | "pcm-16" | null;
|
|
174
174
|
};
|
|
175
175
|
h265: {
|
|
176
176
|
compressed: "aac" | "pcm-16" | null;
|
|
177
177
|
lossless: "aac" | "pcm-16" | null;
|
|
178
178
|
};
|
|
179
179
|
vp8: {
|
|
180
|
-
compressed: "
|
|
181
|
-
lossless: "
|
|
180
|
+
compressed: "pcm-16" | "opus" | null;
|
|
181
|
+
lossless: "pcm-16" | "opus" | null;
|
|
182
182
|
};
|
|
183
183
|
vp9: {
|
|
184
|
-
compressed: "
|
|
185
|
-
lossless: "
|
|
184
|
+
compressed: "pcm-16" | "opus" | null;
|
|
185
|
+
lossless: "pcm-16" | "opus" | null;
|
|
186
186
|
};
|
|
187
|
-
|
|
188
|
-
compressed: "
|
|
189
|
-
lossless: "
|
|
187
|
+
mp3: {
|
|
188
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
189
|
+
lossless: "mp3" | "pcm-16" | null;
|
|
190
190
|
};
|
|
191
191
|
aac: {
|
|
192
192
|
compressed: "aac" | "pcm-16" | null;
|
|
193
193
|
lossless: "aac" | "pcm-16" | null;
|
|
194
194
|
};
|
|
195
|
-
mp3: {
|
|
196
|
-
compressed: "mp3" | "pcm-16" | null;
|
|
197
|
-
lossless: "mp3" | "pcm-16" | null;
|
|
198
|
-
};
|
|
199
195
|
wav: {
|
|
200
196
|
compressed: "pcm-16" | null;
|
|
201
197
|
lossless: "pcm-16" | null;
|
|
202
198
|
};
|
|
199
|
+
prores: {
|
|
200
|
+
compressed: "aac" | "pcm-16" | null;
|
|
201
|
+
lossless: "aac" | "pcm-16" | null;
|
|
202
|
+
};
|
|
203
203
|
"h264-mkv": {
|
|
204
204
|
compressed: "mp3" | "pcm-16" | null;
|
|
205
205
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -213,10 +213,10 @@ export declare const BrowserSafeApis: {
|
|
|
213
213
|
lossless: null;
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
217
|
-
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
216
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
217
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
|
|
218
218
|
codec: T_1;
|
|
219
|
-
audioCodecSetting: "
|
|
219
|
+
audioCodecSetting: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
220
220
|
extension: string;
|
|
221
221
|
preferLossless: boolean;
|
|
222
222
|
separateAudioTo: string | null;
|
|
@@ -224,12 +224,12 @@ export declare const BrowserSafeApis: {
|
|
|
224
224
|
options: {
|
|
225
225
|
audioCodecOption: {
|
|
226
226
|
cliFlag: "audio-codec";
|
|
227
|
-
setConfig: (audioCodec: "
|
|
227
|
+
setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
|
|
228
228
|
getValue: ({ commandLine }: {
|
|
229
229
|
commandLine: Record<string, unknown>;
|
|
230
230
|
}) => {
|
|
231
231
|
source: string;
|
|
232
|
-
value: "
|
|
232
|
+
value: "mp3" | "aac" | "pcm-16" | "opus";
|
|
233
233
|
} | {
|
|
234
234
|
source: string;
|
|
235
235
|
value: null;
|
|
@@ -238,7 +238,7 @@ export declare const BrowserSafeApis: {
|
|
|
238
238
|
docLink: string;
|
|
239
239
|
name: string;
|
|
240
240
|
ssrName: "audioCodec";
|
|
241
|
-
type: "
|
|
241
|
+
type: "mp3" | "aac" | "pcm-16" | "opus";
|
|
242
242
|
};
|
|
243
243
|
scaleOption: {
|
|
244
244
|
name: string;
|
|
@@ -357,17 +357,17 @@ export declare const BrowserSafeApis: {
|
|
|
357
357
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
358
358
|
ssrName: string;
|
|
359
359
|
docLink: string;
|
|
360
|
-
type: "h264" | "h265" | "vp8" | "vp9" | "
|
|
360
|
+
type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
361
361
|
getValue: ({ commandLine }: {
|
|
362
362
|
commandLine: Record<string, unknown>;
|
|
363
363
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
364
364
|
outName: string | null;
|
|
365
365
|
downloadName: string | null;
|
|
366
|
-
configFile: "h264" | "h265" | "vp8" | "vp9" | "
|
|
367
|
-
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
368
|
-
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
366
|
+
configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
367
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
368
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
369
369
|
}) => {
|
|
370
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
370
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
371
371
|
source: string;
|
|
372
372
|
};
|
|
373
373
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -406,14 +406,14 @@ export declare const BrowserSafeApis: {
|
|
|
406
406
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
407
407
|
docLink: string;
|
|
408
408
|
ssrName: string;
|
|
409
|
-
type: "
|
|
409
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
410
410
|
getValue: ({ commandLine }: {
|
|
411
411
|
commandLine: Record<string, unknown>;
|
|
412
412
|
}) => {
|
|
413
413
|
source: string;
|
|
414
|
-
value: "
|
|
414
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
415
415
|
};
|
|
416
|
-
setConfig: (value: "
|
|
416
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
417
417
|
};
|
|
418
418
|
deleteAfterOption: {
|
|
419
419
|
name: string;
|
|
@@ -467,19 +467,19 @@ export declare const BrowserSafeApis: {
|
|
|
467
467
|
cliFlag: "gl";
|
|
468
468
|
docLink: string;
|
|
469
469
|
name: string;
|
|
470
|
-
type: "
|
|
470
|
+
type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
471
471
|
ssrName: string;
|
|
472
472
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
473
473
|
getValue: ({ commandLine }: {
|
|
474
474
|
commandLine: Record<string, unknown>;
|
|
475
475
|
}) => {
|
|
476
|
-
value: "
|
|
476
|
+
value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
477
477
|
source: string;
|
|
478
478
|
} | {
|
|
479
479
|
value: null;
|
|
480
480
|
source: string;
|
|
481
481
|
};
|
|
482
|
-
setConfig: (value: "
|
|
482
|
+
setConfig: (value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
|
|
483
483
|
};
|
|
484
484
|
enableLambdaInsights: {
|
|
485
485
|
name: string;
|
|
@@ -604,17 +604,17 @@ export declare const BrowserSafeApis: {
|
|
|
604
604
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
605
605
|
ssrName: "x264Preset";
|
|
606
606
|
docLink: string;
|
|
607
|
-
type: "
|
|
607
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
608
608
|
getValue: ({ commandLine }: {
|
|
609
609
|
commandLine: Record<string, unknown>;
|
|
610
610
|
}) => {
|
|
611
|
-
value: "
|
|
611
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
612
612
|
source: string;
|
|
613
613
|
} | {
|
|
614
614
|
value: null;
|
|
615
615
|
source: string;
|
|
616
616
|
};
|
|
617
|
-
setConfig: (profile: "
|
|
617
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
618
618
|
};
|
|
619
619
|
logLevelOption: {
|
|
620
620
|
cliFlag: "log";
|
|
@@ -879,17 +879,17 @@ export declare const BrowserSafeApis: {
|
|
|
879
879
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
880
880
|
ssrName: "x264Preset";
|
|
881
881
|
docLink: string;
|
|
882
|
-
type: "
|
|
882
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
883
883
|
getValue: ({ commandLine }: {
|
|
884
884
|
commandLine: Record<string, unknown>;
|
|
885
885
|
}) => {
|
|
886
|
-
value: "
|
|
886
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
887
887
|
source: string;
|
|
888
888
|
} | {
|
|
889
889
|
value: null;
|
|
890
890
|
source: string;
|
|
891
891
|
};
|
|
892
|
-
setConfig: (profile: "
|
|
892
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
893
893
|
};
|
|
894
894
|
readonly audioBitrate: {
|
|
895
895
|
name: string;
|
|
@@ -915,14 +915,14 @@ export declare const BrowserSafeApis: {
|
|
|
915
915
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
916
916
|
docLink: string;
|
|
917
917
|
ssrName: string;
|
|
918
|
-
type: "
|
|
918
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
919
919
|
getValue: ({ commandLine }: {
|
|
920
920
|
commandLine: Record<string, unknown>;
|
|
921
921
|
}) => {
|
|
922
922
|
source: string;
|
|
923
|
-
value: "
|
|
923
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
924
924
|
};
|
|
925
|
-
setConfig: (value: "
|
|
925
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
926
926
|
};
|
|
927
927
|
readonly codec: {
|
|
928
928
|
name: string;
|
|
@@ -930,17 +930,17 @@ export declare const BrowserSafeApis: {
|
|
|
930
930
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
931
931
|
ssrName: string;
|
|
932
932
|
docLink: string;
|
|
933
|
-
type: "h264" | "h265" | "vp8" | "vp9" | "
|
|
933
|
+
type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
934
934
|
getValue: ({ commandLine }: {
|
|
935
935
|
commandLine: Record<string, unknown>;
|
|
936
936
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
937
937
|
outName: string | null;
|
|
938
938
|
downloadName: string | null;
|
|
939
|
-
configFile: "h264" | "h265" | "vp8" | "vp9" | "
|
|
940
|
-
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
941
|
-
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
939
|
+
configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
940
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
941
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
942
942
|
}) => {
|
|
943
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
943
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
944
944
|
source: string;
|
|
945
945
|
};
|
|
946
946
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -1094,12 +1094,12 @@ export declare const BrowserSafeApis: {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
readonly audioCodec: {
|
|
1096
1096
|
cliFlag: "audio-codec";
|
|
1097
|
-
setConfig: (audioCodec: "
|
|
1097
|
+
setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
|
|
1098
1098
|
getValue: ({ commandLine }: {
|
|
1099
1099
|
commandLine: Record<string, unknown>;
|
|
1100
1100
|
}) => {
|
|
1101
1101
|
source: string;
|
|
1102
|
-
value: "
|
|
1102
|
+
value: "mp3" | "aac" | "pcm-16" | "opus";
|
|
1103
1103
|
} | {
|
|
1104
1104
|
source: string;
|
|
1105
1105
|
value: null;
|
|
@@ -1108,7 +1108,7 @@ export declare const BrowserSafeApis: {
|
|
|
1108
1108
|
docLink: string;
|
|
1109
1109
|
name: string;
|
|
1110
1110
|
ssrName: "audioCodec";
|
|
1111
|
-
type: "
|
|
1111
|
+
type: "mp3" | "aac" | "pcm-16" | "opus";
|
|
1112
1112
|
};
|
|
1113
1113
|
readonly onBrowserDownload: {
|
|
1114
1114
|
name: string;
|
|
@@ -1601,17 +1601,17 @@ export declare const BrowserSafeApis: {
|
|
|
1601
1601
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1602
1602
|
ssrName: "x264Preset";
|
|
1603
1603
|
docLink: string;
|
|
1604
|
-
type: "
|
|
1604
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
1605
1605
|
getValue: ({ commandLine }: {
|
|
1606
1606
|
commandLine: Record<string, unknown>;
|
|
1607
1607
|
}) => {
|
|
1608
|
-
value: "
|
|
1608
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
1609
1609
|
source: string;
|
|
1610
1610
|
} | {
|
|
1611
1611
|
value: null;
|
|
1612
1612
|
source: string;
|
|
1613
1613
|
};
|
|
1614
|
-
setConfig: (profile: "
|
|
1614
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
1615
1615
|
};
|
|
1616
1616
|
readonly encodingMaxRate: {
|
|
1617
1617
|
name: string;
|
|
@@ -1655,14 +1655,14 @@ export declare const BrowserSafeApis: {
|
|
|
1655
1655
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1656
1656
|
docLink: string;
|
|
1657
1657
|
ssrName: string;
|
|
1658
|
-
type: "
|
|
1658
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
1659
1659
|
getValue: ({ commandLine }: {
|
|
1660
1660
|
commandLine: Record<string, unknown>;
|
|
1661
1661
|
}) => {
|
|
1662
1662
|
source: string;
|
|
1663
|
-
value: "
|
|
1663
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
1664
1664
|
};
|
|
1665
|
-
setConfig: (value: "
|
|
1665
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
1666
1666
|
};
|
|
1667
1667
|
readonly muted: {
|
|
1668
1668
|
name: string;
|
|
@@ -1919,14 +1919,14 @@ export declare const BrowserSafeApis: {
|
|
|
1919
1919
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1920
1920
|
docLink: string;
|
|
1921
1921
|
ssrName: string;
|
|
1922
|
-
type: "
|
|
1922
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
1923
1923
|
getValue: ({ commandLine }: {
|
|
1924
1924
|
commandLine: Record<string, unknown>;
|
|
1925
1925
|
}) => {
|
|
1926
1926
|
source: string;
|
|
1927
|
-
value: "
|
|
1927
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
1928
1928
|
};
|
|
1929
|
-
setConfig: (value: "
|
|
1929
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
1930
1930
|
};
|
|
1931
1931
|
readonly audioBitrate: {
|
|
1932
1932
|
name: string;
|
|
@@ -1967,17 +1967,17 @@ export declare const BrowserSafeApis: {
|
|
|
1967
1967
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1968
1968
|
ssrName: "x264Preset";
|
|
1969
1969
|
docLink: string;
|
|
1970
|
-
type: "
|
|
1970
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
1971
1971
|
getValue: ({ commandLine }: {
|
|
1972
1972
|
commandLine: Record<string, unknown>;
|
|
1973
1973
|
}) => {
|
|
1974
|
-
value: "
|
|
1974
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
1975
1975
|
source: string;
|
|
1976
1976
|
} | {
|
|
1977
1977
|
value: null;
|
|
1978
1978
|
source: string;
|
|
1979
1979
|
};
|
|
1980
|
-
setConfig: (profile: "
|
|
1980
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
1981
1981
|
};
|
|
1982
1982
|
readonly encodingMaxRate: {
|
|
1983
1983
|
name: string;
|
|
@@ -2281,9 +2281,9 @@ export declare const BrowserSafeApis: {
|
|
|
2281
2281
|
};
|
|
2282
2282
|
};
|
|
2283
2283
|
};
|
|
2284
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
2285
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
2284
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
2285
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
2286
2286
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
2287
2287
|
getOutputCodecOrUndefined: () => import("./codec").CodecOrUndefined;
|
|
2288
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
2288
|
+
getExtensionFromAudioCodec: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus") => "mp3" | "aac" | "wav" | "opus";
|
|
2289
2289
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const exampleVideos: {
|
|
2
|
+
bigBuckBunny: string;
|
|
3
|
+
transparentWebm: string;
|
|
4
|
+
framerWithoutFileExtension: string;
|
|
5
|
+
corrupted: string;
|
|
6
|
+
customDar: string;
|
|
7
|
+
screenrecording: string;
|
|
8
|
+
nofps: string;
|
|
9
|
+
variablefps: string;
|
|
10
|
+
zerotimestamp: string;
|
|
11
|
+
webcam: string;
|
|
12
|
+
iphonevideo: string;
|
|
13
|
+
av1: string;
|
|
14
|
+
framer24fps: string;
|
|
15
|
+
music: string;
|
|
16
|
+
notavideo: string;
|
|
17
|
+
notafile: string;
|
|
18
|
+
transparentwithdar: string;
|
|
19
|
+
iphonehevc: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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.exampleVideos = void 0;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const examplePackage = node_path_1.default.join(__dirname, '..', '..', 'example');
|
|
9
|
+
const docsPackage = node_path_1.default.join(__dirname, '..', '..', 'docs');
|
|
10
|
+
exports.exampleVideos = {
|
|
11
|
+
bigBuckBunny: node_path_1.default.join(examplePackage, 'public/bigbuckbunny.mp4'),
|
|
12
|
+
transparentWebm: node_path_1.default.join(docsPackage, '/static/img/transparent-video.webm'),
|
|
13
|
+
framerWithoutFileExtension: node_path_1.default.join(examplePackage, 'public', 'framermp4withoutfileextension'),
|
|
14
|
+
corrupted: node_path_1.default.join(examplePackage, 'public', 'corrupted.mp4'),
|
|
15
|
+
customDar: node_path_1.default.join(examplePackage, 'public', 'custom-dar.mp4'),
|
|
16
|
+
screenrecording: node_path_1.default.join(examplePackage, 'public', 'quick.mov'),
|
|
17
|
+
nofps: node_path_1.default.join(examplePackage, 'public', 'nofps.webm'),
|
|
18
|
+
variablefps: node_path_1.default.join(examplePackage, 'public', 'variablefps.webm'),
|
|
19
|
+
zerotimestamp: node_path_1.default.join(examplePackage, 'public', 'zero-timestamp.mp4'),
|
|
20
|
+
webcam: node_path_1.default.join(examplePackage, 'public', 'webcam.webm'),
|
|
21
|
+
iphonevideo: node_path_1.default.join(examplePackage, 'public', 'iphonevideo.mov'),
|
|
22
|
+
av1: node_path_1.default.join(examplePackage, 'public', 'av1.webm'),
|
|
23
|
+
framer24fps: node_path_1.default.join(examplePackage, 'src', 'resources', 'framer-24fps.mp4'),
|
|
24
|
+
music: node_path_1.default.join(examplePackage, 'public', 'music.mp3'),
|
|
25
|
+
notavideo: node_path_1.default.join(examplePackage, 'public', 'giphy.gif'),
|
|
26
|
+
notafile: node_path_1.default.join(examplePackage, 'public', 'doesnotexist'),
|
|
27
|
+
transparentwithdar: node_path_1.default.join(examplePackage, 'public', 'transparent-with-dar.webm'),
|
|
28
|
+
iphonehevc: node_path_1.default.join(examplePackage, 'public', 'iphone-hevc.mov'),
|
|
29
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -70,10 +70,10 @@ export declare const RenderInternals: {
|
|
|
70
70
|
width: number;
|
|
71
71
|
height: number;
|
|
72
72
|
scale: number;
|
|
73
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
73
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
74
74
|
wantsImageSequence: boolean;
|
|
75
75
|
}) => void;
|
|
76
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
76
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
77
77
|
tmpDir: (str: string) => string;
|
|
78
78
|
deleteDirectory: (directory: string) => void;
|
|
79
79
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -130,7 +130,7 @@ export declare const RenderInternals: {
|
|
|
130
130
|
};
|
|
131
131
|
registerErrorSymbolicationLock: () => number;
|
|
132
132
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
133
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
133
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
134
134
|
mimeContentType: typeof mimeContentType;
|
|
135
135
|
mimeLookup: typeof mimeLookup;
|
|
136
136
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -141,14 +141,14 @@ export declare const RenderInternals: {
|
|
|
141
141
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
142
142
|
DEFAULT_BROWSER: "chrome";
|
|
143
143
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
144
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
145
|
-
validateOpenGlRenderer: (option: unknown) => "
|
|
144
|
+
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
145
|
+
validateOpenGlRenderer: (option: unknown) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
146
146
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
147
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
147
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
148
148
|
validateJpegQuality: (q: unknown) => void;
|
|
149
149
|
DEFAULT_TIMEOUT: number;
|
|
150
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
151
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
150
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
151
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null | undefined) => boolean;
|
|
152
152
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
153
153
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
154
154
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -165,10 +165,10 @@ export declare const RenderInternals: {
|
|
|
165
165
|
output: string;
|
|
166
166
|
onProgress: (p: number) => void;
|
|
167
167
|
numberOfFrames: number;
|
|
168
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
168
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
169
169
|
fps: number;
|
|
170
170
|
numberOfGifLoops: number | null;
|
|
171
|
-
resolvedAudioCodec: "
|
|
171
|
+
resolvedAudioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
172
172
|
audioBitrate: string | null;
|
|
173
173
|
indent: boolean;
|
|
174
174
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
@@ -182,18 +182,18 @@ export declare const RenderInternals: {
|
|
|
182
182
|
getMinConcurrency: () => number;
|
|
183
183
|
getMaxConcurrency: () => number;
|
|
184
184
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
185
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
185
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
186
186
|
preferLossless: boolean;
|
|
187
|
-
}) => "
|
|
187
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
188
188
|
defaultFileExtensionMap: {
|
|
189
189
|
h264: {
|
|
190
190
|
default: import("./file-extensions").FileExtension;
|
|
191
191
|
forAudioCodec: {
|
|
192
|
-
|
|
192
|
+
mp3: {
|
|
193
193
|
possible: import("./file-extensions").FileExtension[];
|
|
194
194
|
default: import("./file-extensions").FileExtension;
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
aac: {
|
|
197
197
|
possible: import("./file-extensions").FileExtension[];
|
|
198
198
|
default: import("./file-extensions").FileExtension;
|
|
199
199
|
};
|
|
@@ -219,11 +219,11 @@ export declare const RenderInternals: {
|
|
|
219
219
|
vp8: {
|
|
220
220
|
default: import("./file-extensions").FileExtension;
|
|
221
221
|
forAudioCodec: {
|
|
222
|
-
|
|
222
|
+
"pcm-16": {
|
|
223
223
|
possible: import("./file-extensions").FileExtension[];
|
|
224
224
|
default: import("./file-extensions").FileExtension;
|
|
225
225
|
};
|
|
226
|
-
|
|
226
|
+
opus: {
|
|
227
227
|
possible: import("./file-extensions").FileExtension[];
|
|
228
228
|
default: import("./file-extensions").FileExtension;
|
|
229
229
|
};
|
|
@@ -232,20 +232,20 @@ export declare const RenderInternals: {
|
|
|
232
232
|
vp9: {
|
|
233
233
|
default: import("./file-extensions").FileExtension;
|
|
234
234
|
forAudioCodec: {
|
|
235
|
-
|
|
235
|
+
"pcm-16": {
|
|
236
236
|
possible: import("./file-extensions").FileExtension[];
|
|
237
237
|
default: import("./file-extensions").FileExtension;
|
|
238
238
|
};
|
|
239
|
-
|
|
239
|
+
opus: {
|
|
240
240
|
possible: import("./file-extensions").FileExtension[];
|
|
241
241
|
default: import("./file-extensions").FileExtension;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
};
|
|
245
|
-
|
|
245
|
+
mp3: {
|
|
246
246
|
default: import("./file-extensions").FileExtension;
|
|
247
247
|
forAudioCodec: {
|
|
248
|
-
|
|
248
|
+
mp3: {
|
|
249
249
|
possible: import("./file-extensions").FileExtension[];
|
|
250
250
|
default: import("./file-extensions").FileExtension;
|
|
251
251
|
};
|
|
@@ -268,22 +268,22 @@ export declare const RenderInternals: {
|
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
|
-
|
|
271
|
+
wav: {
|
|
272
272
|
default: import("./file-extensions").FileExtension;
|
|
273
273
|
forAudioCodec: {
|
|
274
|
-
mp3: {
|
|
275
|
-
possible: import("./file-extensions").FileExtension[];
|
|
276
|
-
default: import("./file-extensions").FileExtension;
|
|
277
|
-
};
|
|
278
274
|
"pcm-16": {
|
|
279
275
|
possible: import("./file-extensions").FileExtension[];
|
|
280
276
|
default: import("./file-extensions").FileExtension;
|
|
281
277
|
};
|
|
282
278
|
};
|
|
283
279
|
};
|
|
284
|
-
|
|
280
|
+
prores: {
|
|
285
281
|
default: import("./file-extensions").FileExtension;
|
|
286
282
|
forAudioCodec: {
|
|
283
|
+
aac: {
|
|
284
|
+
possible: import("./file-extensions").FileExtension[];
|
|
285
|
+
default: import("./file-extensions").FileExtension;
|
|
286
|
+
};
|
|
287
287
|
"pcm-16": {
|
|
288
288
|
possible: import("./file-extensions").FileExtension[];
|
|
289
289
|
default: import("./file-extensions").FileExtension;
|
|
@@ -335,10 +335,10 @@ export declare const RenderInternals: {
|
|
|
335
335
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
336
336
|
readonly wav: readonly ["pcm-16"];
|
|
337
337
|
};
|
|
338
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
339
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
338
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
339
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
340
340
|
getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
|
|
341
|
-
type: "
|
|
341
|
+
type: "ffmpeg" | "ffprobe" | "compositor";
|
|
342
342
|
indent: boolean;
|
|
343
343
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
344
344
|
binariesDirectory: string | null;
|
|
@@ -354,8 +354,8 @@ export declare const RenderInternals: {
|
|
|
354
354
|
}) => execa.ExecaChildProcess<string>;
|
|
355
355
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
356
356
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
357
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
358
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
357
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
358
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
359
359
|
DEFAULT_JPEG_QUALITY: number;
|
|
360
360
|
chalk: {
|
|
361
361
|
enabled: () => boolean;
|
|
@@ -453,7 +453,7 @@ export declare const RenderInternals: {
|
|
|
453
453
|
frame: number;
|
|
454
454
|
serializedInputPropsWithCustomSchema: string;
|
|
455
455
|
serializedResolvedPropsWithCustomSchema: string;
|
|
456
|
-
imageFormat: "
|
|
456
|
+
imageFormat: "jpeg" | "png" | "webp" | "pdf";
|
|
457
457
|
jpegQuality: number;
|
|
458
458
|
puppeteerInstance: HeadlessBrowser | null;
|
|
459
459
|
envVariables: Record<string, string>;
|
|
@@ -754,7 +754,7 @@ export declare const RenderInternals: {
|
|
|
754
754
|
onFrameUpdate: ((framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void) | null;
|
|
755
755
|
outputDir: string | null;
|
|
756
756
|
envVariables: Record<string, string>;
|
|
757
|
-
imageFormat: "
|
|
757
|
+
imageFormat: "jpeg" | "png" | "none";
|
|
758
758
|
jpegQuality: number;
|
|
759
759
|
frameRange: import("./frame-range").FrameRange | null;
|
|
760
760
|
everyNthFrame: number;
|
|
@@ -909,21 +909,21 @@ export declare const RenderInternals: {
|
|
|
909
909
|
hostsToTry: string[];
|
|
910
910
|
};
|
|
911
911
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
|
912
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
912
|
+
getExtensionFromAudioCodec: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus") => "mp3" | "aac" | "wav" | "opus";
|
|
913
913
|
makeFileExecutableIfItIsNot: (path: string) => void;
|
|
914
914
|
resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
915
|
-
setting: "
|
|
916
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
915
|
+
setting: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
916
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
917
917
|
preferLossless: boolean;
|
|
918
918
|
separateAudioTo: string | null;
|
|
919
|
-
}) => "
|
|
919
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
920
920
|
getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
|
|
921
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
921
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
922
922
|
assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
|
|
923
923
|
enforceAudioTrack: boolean;
|
|
924
924
|
muted: boolean;
|
|
925
925
|
}) => "yes" | "maybe" | "no";
|
|
926
|
-
codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
926
|
+
codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => {
|
|
927
927
|
video: boolean;
|
|
928
928
|
audio: boolean;
|
|
929
929
|
};
|
package/dist/index.js
CHANGED
|
@@ -114,9 +114,9 @@ const browser_instances_1 = require("./browser-instances");
|
|
|
114
114
|
const codec_supports_media_1 = require("./codec-supports-media");
|
|
115
115
|
const make_file_executable_1 = require("./compositor/make-file-executable");
|
|
116
116
|
const ensure_browser_2 = require("./ensure-browser");
|
|
117
|
+
const example_videos_1 = require("./example-videos");
|
|
117
118
|
const audio_codec_1 = require("./options/audio-codec");
|
|
118
119
|
const render_has_audio_1 = require("./render-has-audio");
|
|
119
|
-
const example_videos_1 = require("./test/example-videos");
|
|
120
120
|
const to_megabytes_1 = require("./to-megabytes");
|
|
121
121
|
const validate_puppeteer_timeout_1 = require("./validate-puppeteer-timeout");
|
|
122
122
|
const validate_videobitrate_1 = require("./validate-videobitrate");
|
|
@@ -24,25 +24,25 @@ export declare const defaultAudioCodecs: {
|
|
|
24
24
|
[k in 'compressed' | 'lossless']: (typeof supportedAudioCodecs)[key][number] | null;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
export declare const getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "
|
|
27
|
+
export declare const getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "mp3" | "aac" | "wav" | "opus";
|
|
28
28
|
export declare const resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
29
29
|
setting: AudioCodec | null;
|
|
30
30
|
codec: Codec;
|
|
31
31
|
preferLossless: boolean;
|
|
32
32
|
separateAudioTo: string | null;
|
|
33
|
-
}) => "
|
|
33
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
34
34
|
export declare const getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
35
35
|
codec: Codec;
|
|
36
36
|
preferLossless: boolean;
|
|
37
37
|
}) => AudioCodec | null;
|
|
38
38
|
export declare const audioCodecOption: {
|
|
39
39
|
cliFlag: "audio-codec";
|
|
40
|
-
setConfig: (audioCodec: "
|
|
40
|
+
setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
|
|
41
41
|
getValue: ({ commandLine }: {
|
|
42
42
|
commandLine: Record<string, unknown>;
|
|
43
43
|
}) => {
|
|
44
44
|
source: string;
|
|
45
|
-
value: "
|
|
45
|
+
value: "mp3" | "aac" | "pcm-16" | "opus";
|
|
46
46
|
} | {
|
|
47
47
|
source: string;
|
|
48
48
|
value: null;
|
|
@@ -51,6 +51,6 @@ export declare const audioCodecOption: {
|
|
|
51
51
|
docLink: string;
|
|
52
52
|
name: string;
|
|
53
53
|
ssrName: "audioCodec";
|
|
54
|
-
type: "
|
|
54
|
+
type: "mp3" | "aac" | "pcm-16" | "opus";
|
|
55
55
|
};
|
|
56
56
|
export {};
|
|
@@ -7,13 +7,13 @@ export declare const colorSpaceOption: {
|
|
|
7
7
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
docLink: string;
|
|
9
9
|
ssrName: string;
|
|
10
|
-
type: "
|
|
10
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
11
11
|
getValue: ({ commandLine }: {
|
|
12
12
|
commandLine: Record<string, unknown>;
|
|
13
13
|
}) => {
|
|
14
14
|
source: string;
|
|
15
|
-
value: "
|
|
15
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
16
16
|
};
|
|
17
|
-
setConfig: (value: "
|
|
17
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
18
18
|
};
|
|
19
19
|
export declare const validateColorSpace: (option: unknown) => void;
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
2
2
|
export type OpenGlRenderer = (typeof validOpenGlRenderers)[number];
|
|
3
3
|
export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
|
|
4
|
-
export declare const getChromiumOpenGlRenderer: () => "
|
|
4
|
+
export declare const getChromiumOpenGlRenderer: () => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
5
5
|
export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
|
|
6
6
|
export declare const glOption: {
|
|
7
7
|
cliFlag: "gl";
|
|
8
8
|
docLink: string;
|
|
9
9
|
name: string;
|
|
10
|
-
type: "
|
|
10
|
+
type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
11
11
|
ssrName: string;
|
|
12
12
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
getValue: ({ commandLine }: {
|
|
14
14
|
commandLine: Record<string, unknown>;
|
|
15
15
|
}) => {
|
|
16
|
-
value: "
|
|
16
|
+
value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
17
17
|
source: string;
|
|
18
18
|
} | {
|
|
19
19
|
value: null;
|
package/dist/options/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import type { AnyRemotionOption } from './option';
|
|
|
2
2
|
export declare const allOptions: {
|
|
3
3
|
audioCodecOption: {
|
|
4
4
|
cliFlag: "audio-codec";
|
|
5
|
-
setConfig: (audioCodec: "
|
|
5
|
+
setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
|
|
6
6
|
getValue: ({ commandLine }: {
|
|
7
7
|
commandLine: Record<string, unknown>;
|
|
8
8
|
}) => {
|
|
9
9
|
source: string;
|
|
10
|
-
value: "
|
|
10
|
+
value: "mp3" | "aac" | "pcm-16" | "opus";
|
|
11
11
|
} | {
|
|
12
12
|
source: string;
|
|
13
13
|
value: null;
|
|
@@ -16,7 +16,7 @@ export declare const allOptions: {
|
|
|
16
16
|
docLink: string;
|
|
17
17
|
name: string;
|
|
18
18
|
ssrName: "audioCodec";
|
|
19
|
-
type: "
|
|
19
|
+
type: "mp3" | "aac" | "pcm-16" | "opus";
|
|
20
20
|
};
|
|
21
21
|
scaleOption: {
|
|
22
22
|
name: string;
|
|
@@ -135,17 +135,17 @@ export declare const allOptions: {
|
|
|
135
135
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
136
136
|
ssrName: string;
|
|
137
137
|
docLink: string;
|
|
138
|
-
type: "h264" | "h265" | "vp8" | "vp9" | "
|
|
138
|
+
type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
139
139
|
getValue: ({ commandLine }: {
|
|
140
140
|
commandLine: Record<string, unknown>;
|
|
141
141
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
142
142
|
outName: string | null;
|
|
143
143
|
downloadName: string | null;
|
|
144
|
-
configFile: "h264" | "h265" | "vp8" | "vp9" | "
|
|
145
|
-
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
146
|
-
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
144
|
+
configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
145
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
146
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
147
147
|
}) => {
|
|
148
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
148
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
149
149
|
source: string;
|
|
150
150
|
};
|
|
151
151
|
setConfig: (newCodec: import("..").CodecOrUndefined) => void;
|
|
@@ -184,14 +184,14 @@ export declare const allOptions: {
|
|
|
184
184
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
185
185
|
docLink: string;
|
|
186
186
|
ssrName: string;
|
|
187
|
-
type: "
|
|
187
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
188
188
|
getValue: ({ commandLine }: {
|
|
189
189
|
commandLine: Record<string, unknown>;
|
|
190
190
|
}) => {
|
|
191
191
|
source: string;
|
|
192
|
-
value: "
|
|
192
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
193
193
|
};
|
|
194
|
-
setConfig: (value: "
|
|
194
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
195
195
|
};
|
|
196
196
|
deleteAfterOption: {
|
|
197
197
|
name: string;
|
|
@@ -245,19 +245,19 @@ export declare const allOptions: {
|
|
|
245
245
|
cliFlag: "gl";
|
|
246
246
|
docLink: string;
|
|
247
247
|
name: string;
|
|
248
|
-
type: "
|
|
248
|
+
type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
249
249
|
ssrName: string;
|
|
250
250
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
251
251
|
getValue: ({ commandLine }: {
|
|
252
252
|
commandLine: Record<string, unknown>;
|
|
253
253
|
}) => {
|
|
254
|
-
value: "
|
|
254
|
+
value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
255
255
|
source: string;
|
|
256
256
|
} | {
|
|
257
257
|
value: null;
|
|
258
258
|
source: string;
|
|
259
259
|
};
|
|
260
|
-
setConfig: (value: "
|
|
260
|
+
setConfig: (value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
|
|
261
261
|
};
|
|
262
262
|
enableLambdaInsights: {
|
|
263
263
|
name: string;
|
|
@@ -382,17 +382,17 @@ export declare const allOptions: {
|
|
|
382
382
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
383
383
|
ssrName: "x264Preset";
|
|
384
384
|
docLink: string;
|
|
385
|
-
type: "
|
|
385
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
386
386
|
getValue: ({ commandLine }: {
|
|
387
387
|
commandLine: Record<string, unknown>;
|
|
388
388
|
}) => {
|
|
389
|
-
value: "
|
|
389
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
390
390
|
source: string;
|
|
391
391
|
} | {
|
|
392
392
|
value: null;
|
|
393
393
|
source: string;
|
|
394
394
|
};
|
|
395
|
-
setConfig: (profile: "
|
|
395
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
396
396
|
};
|
|
397
397
|
logLevelOption: {
|
|
398
398
|
cliFlag: "log";
|
|
@@ -72,17 +72,17 @@ export declare const optionsMap: {
|
|
|
72
72
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
73
73
|
ssrName: "x264Preset";
|
|
74
74
|
docLink: string;
|
|
75
|
-
type: "
|
|
75
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
76
76
|
getValue: ({ commandLine }: {
|
|
77
77
|
commandLine: Record<string, unknown>;
|
|
78
78
|
}) => {
|
|
79
|
-
value: "
|
|
79
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
80
80
|
source: string;
|
|
81
81
|
} | {
|
|
82
82
|
value: null;
|
|
83
83
|
source: string;
|
|
84
84
|
};
|
|
85
|
-
setConfig: (profile: "
|
|
85
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
86
86
|
};
|
|
87
87
|
readonly audioBitrate: {
|
|
88
88
|
name: string;
|
|
@@ -108,14 +108,14 @@ export declare const optionsMap: {
|
|
|
108
108
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
109
109
|
docLink: string;
|
|
110
110
|
ssrName: string;
|
|
111
|
-
type: "
|
|
111
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
112
112
|
getValue: ({ commandLine }: {
|
|
113
113
|
commandLine: Record<string, unknown>;
|
|
114
114
|
}) => {
|
|
115
115
|
source: string;
|
|
116
|
-
value: "
|
|
116
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
117
117
|
};
|
|
118
|
-
setConfig: (value: "
|
|
118
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
119
119
|
};
|
|
120
120
|
readonly codec: {
|
|
121
121
|
name: string;
|
|
@@ -123,17 +123,17 @@ export declare const optionsMap: {
|
|
|
123
123
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
124
124
|
ssrName: string;
|
|
125
125
|
docLink: string;
|
|
126
|
-
type: "h264" | "h265" | "vp8" | "vp9" | "
|
|
126
|
+
type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
127
127
|
getValue: ({ commandLine }: {
|
|
128
128
|
commandLine: Record<string, unknown>;
|
|
129
129
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
130
130
|
outName: string | null;
|
|
131
131
|
downloadName: string | null;
|
|
132
|
-
configFile: "h264" | "h265" | "vp8" | "vp9" | "
|
|
133
|
-
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
134
|
-
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
132
|
+
configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
133
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
134
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
135
135
|
}) => {
|
|
136
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
136
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
137
137
|
source: string;
|
|
138
138
|
};
|
|
139
139
|
setConfig: (newCodec: import("..").CodecOrUndefined) => void;
|
|
@@ -287,12 +287,12 @@ export declare const optionsMap: {
|
|
|
287
287
|
};
|
|
288
288
|
readonly audioCodec: {
|
|
289
289
|
cliFlag: "audio-codec";
|
|
290
|
-
setConfig: (audioCodec: "
|
|
290
|
+
setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
|
|
291
291
|
getValue: ({ commandLine }: {
|
|
292
292
|
commandLine: Record<string, unknown>;
|
|
293
293
|
}) => {
|
|
294
294
|
source: string;
|
|
295
|
-
value: "
|
|
295
|
+
value: "mp3" | "aac" | "pcm-16" | "opus";
|
|
296
296
|
} | {
|
|
297
297
|
source: string;
|
|
298
298
|
value: null;
|
|
@@ -301,7 +301,7 @@ export declare const optionsMap: {
|
|
|
301
301
|
docLink: string;
|
|
302
302
|
name: string;
|
|
303
303
|
ssrName: "audioCodec";
|
|
304
|
-
type: "
|
|
304
|
+
type: "mp3" | "aac" | "pcm-16" | "opus";
|
|
305
305
|
};
|
|
306
306
|
readonly onBrowserDownload: {
|
|
307
307
|
name: string;
|
|
@@ -794,17 +794,17 @@ export declare const optionsMap: {
|
|
|
794
794
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
795
795
|
ssrName: "x264Preset";
|
|
796
796
|
docLink: string;
|
|
797
|
-
type: "
|
|
797
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
798
798
|
getValue: ({ commandLine }: {
|
|
799
799
|
commandLine: Record<string, unknown>;
|
|
800
800
|
}) => {
|
|
801
|
-
value: "
|
|
801
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
802
802
|
source: string;
|
|
803
803
|
} | {
|
|
804
804
|
value: null;
|
|
805
805
|
source: string;
|
|
806
806
|
};
|
|
807
|
-
setConfig: (profile: "
|
|
807
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
808
808
|
};
|
|
809
809
|
readonly encodingMaxRate: {
|
|
810
810
|
name: string;
|
|
@@ -848,14 +848,14 @@ export declare const optionsMap: {
|
|
|
848
848
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
849
849
|
docLink: string;
|
|
850
850
|
ssrName: string;
|
|
851
|
-
type: "
|
|
851
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
852
852
|
getValue: ({ commandLine }: {
|
|
853
853
|
commandLine: Record<string, unknown>;
|
|
854
854
|
}) => {
|
|
855
855
|
source: string;
|
|
856
|
-
value: "
|
|
856
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
857
857
|
};
|
|
858
|
-
setConfig: (value: "
|
|
858
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
859
859
|
};
|
|
860
860
|
readonly muted: {
|
|
861
861
|
name: string;
|
|
@@ -1112,14 +1112,14 @@ export declare const optionsMap: {
|
|
|
1112
1112
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1113
1113
|
docLink: string;
|
|
1114
1114
|
ssrName: string;
|
|
1115
|
-
type: "
|
|
1115
|
+
type: "default" | "bt709" | "bt2020-ncl" | null;
|
|
1116
1116
|
getValue: ({ commandLine }: {
|
|
1117
1117
|
commandLine: Record<string, unknown>;
|
|
1118
1118
|
}) => {
|
|
1119
1119
|
source: string;
|
|
1120
|
-
value: "
|
|
1120
|
+
value: "default" | "bt709" | "bt2020-ncl";
|
|
1121
1121
|
};
|
|
1122
|
-
setConfig: (value: "
|
|
1122
|
+
setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
|
|
1123
1123
|
};
|
|
1124
1124
|
readonly audioBitrate: {
|
|
1125
1125
|
name: string;
|
|
@@ -1160,17 +1160,17 @@ export declare const optionsMap: {
|
|
|
1160
1160
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1161
1161
|
ssrName: "x264Preset";
|
|
1162
1162
|
docLink: string;
|
|
1163
|
-
type: "
|
|
1163
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
1164
1164
|
getValue: ({ commandLine }: {
|
|
1165
1165
|
commandLine: Record<string, unknown>;
|
|
1166
1166
|
}) => {
|
|
1167
|
-
value: "
|
|
1167
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
1168
1168
|
source: string;
|
|
1169
1169
|
} | {
|
|
1170
1170
|
value: null;
|
|
1171
1171
|
source: string;
|
|
1172
1172
|
};
|
|
1173
|
-
setConfig: (profile: "
|
|
1173
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
1174
1174
|
};
|
|
1175
1175
|
readonly encodingMaxRate: {
|
|
1176
1176
|
name: string;
|
|
@@ -6,7 +6,7 @@ export declare const videoCodecOption: {
|
|
|
6
6
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
ssrName: string;
|
|
8
8
|
docLink: string;
|
|
9
|
-
type: "h264" | "h265" | "vp8" | "vp9" | "
|
|
9
|
+
type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
10
10
|
getValue: ({ commandLine }: {
|
|
11
11
|
commandLine: Record<string, unknown>;
|
|
12
12
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
@@ -11,11 +11,11 @@ export declare const x264Option: {
|
|
|
11
11
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
ssrName: "x264Preset";
|
|
13
13
|
docLink: string;
|
|
14
|
-
type: "
|
|
14
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
15
15
|
getValue: ({ commandLine }: {
|
|
16
16
|
commandLine: Record<string, unknown>;
|
|
17
17
|
}) => {
|
|
18
|
-
value: "
|
|
18
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
19
19
|
source: string;
|
|
20
20
|
} | {
|
|
21
21
|
value: null;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.185",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.185"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"react": "18.3.1",
|
|
32
32
|
"react-dom": "18.3.1",
|
|
33
33
|
"@types/ws": "8.5.10",
|
|
34
|
-
"@remotion/streaming": "4.0.
|
|
34
|
+
"@remotion/streaming": "4.0.185"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
38
|
-
"@remotion/compositor-
|
|
39
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
40
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
41
|
-
"@remotion/compositor-linux-
|
|
42
|
-
"@remotion/compositor-
|
|
43
|
-
"@remotion/compositor-
|
|
37
|
+
"@remotion/compositor-darwin-arm64": "4.0.185",
|
|
38
|
+
"@remotion/compositor-darwin-x64": "4.0.185",
|
|
39
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.185",
|
|
40
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.185",
|
|
41
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.185",
|
|
42
|
+
"@remotion/compositor-linux-x64-musl": "4.0.185",
|
|
43
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.185"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"remotion",
|