@remotion/renderer 4.0.161 → 4.0.163
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 +70 -70
- package/dist/compositor/compositor.js +13 -14
- package/dist/index.d.ts +38 -38
- package/dist/options/audio-codec.d.ts +5 -5
- package/dist/options/gl.d.ts +3 -3
- package/dist/options/index.d.ts +14 -14
- package/dist/options/options-map.d.ts +17 -17
- package/dist/options/video-codec.d.ts +1 -1
- package/dist/options/x264-preset.d.ts +2 -2
- package/dist/print-useful-error-message.js +4 -0
- package/dist/streaming.d.ts +5 -0
- package/dist/streaming.js +106 -0
- package/package.json +9 -9
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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | 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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "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" | "yuv422p" | "yuv444p" | "yuva420p" | "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
|
+
aac: {
|
|
39
39
|
possible: import("./file-extensions").FileExtension[];
|
|
40
40
|
default: import("./file-extensions").FileExtension;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
mp3: {
|
|
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
|
+
opus: {
|
|
69
69
|
possible: import("./file-extensions").FileExtension[];
|
|
70
70
|
default: import("./file-extensions").FileExtension;
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
"pcm-16": {
|
|
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
|
+
opus: {
|
|
82
82
|
possible: import("./file-extensions").FileExtension[];
|
|
83
83
|
default: import("./file-extensions").FileExtension;
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
"pcm-16": {
|
|
86
86
|
possible: import("./file-extensions").FileExtension[];
|
|
87
87
|
default: import("./file-extensions").FileExtension;
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
prores: {
|
|
92
92
|
default: import("./file-extensions").FileExtension;
|
|
93
93
|
forAudioCodec: {
|
|
94
|
-
|
|
94
|
+
aac: {
|
|
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
|
+
mp3: {
|
|
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
|
+
};
|
|
120
124
|
"pcm-16": {
|
|
121
125
|
possible: import("./file-extensions").FileExtension[];
|
|
122
126
|
default: import("./file-extensions").FileExtension;
|
|
123
127
|
};
|
|
124
128
|
};
|
|
125
129
|
};
|
|
126
|
-
|
|
130
|
+
wav: {
|
|
127
131
|
default: import("./file-extensions").FileExtension;
|
|
128
132
|
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: "aac" | "mp3" | "pcm-16" | null;
|
|
173
|
+
lossless: "aac" | "mp3" | "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: "opus" | "pcm-16" | null;
|
|
181
|
+
lossless: "opus" | "pcm-16" | null;
|
|
182
182
|
};
|
|
183
183
|
vp9: {
|
|
184
|
-
compressed: "
|
|
185
|
-
lossless: "
|
|
184
|
+
compressed: "opus" | "pcm-16" | null;
|
|
185
|
+
lossless: "opus" | "pcm-16" | null;
|
|
186
186
|
};
|
|
187
|
-
|
|
188
|
-
compressed: "
|
|
189
|
-
lossless: "
|
|
187
|
+
prores: {
|
|
188
|
+
compressed: "aac" | "pcm-16" | null;
|
|
189
|
+
lossless: "aac" | "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
|
+
};
|
|
195
199
|
wav: {
|
|
196
200
|
compressed: "pcm-16" | null;
|
|
197
201
|
lossless: "pcm-16" | null;
|
|
198
202
|
};
|
|
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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">;
|
|
217
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
|
|
218
218
|
codec: T_1;
|
|
219
|
-
audioCodecSetting: "
|
|
219
|
+
audioCodecSetting: "opus" | "aac" | "mp3" | "pcm-16" | 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: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
|
|
228
228
|
getValue: ({ commandLine }: {
|
|
229
229
|
commandLine: Record<string, unknown>;
|
|
230
230
|
}) => {
|
|
231
231
|
source: string;
|
|
232
|
-
value: "
|
|
232
|
+
value: "opus" | "aac" | "mp3" | "pcm-16";
|
|
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: "opus" | "aac" | "mp3" | "pcm-16";
|
|
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" | "prores" | "aac" | "mp3" | "wav" | "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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
367
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
368
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
369
369
|
}) => {
|
|
370
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
370
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
371
371
|
source: string;
|
|
372
372
|
};
|
|
373
373
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -467,19 +467,19 @@ export declare const BrowserSafeApis: {
|
|
|
467
467
|
cliFlag: "gl";
|
|
468
468
|
docLink: string;
|
|
469
469
|
name: string;
|
|
470
|
-
type: "
|
|
470
|
+
type: "swangle" | "angle" | "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: "swangle" | "angle" | "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: "swangle" | "angle" | "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";
|
|
@@ -864,17 +864,17 @@ export declare const BrowserSafeApis: {
|
|
|
864
864
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
865
865
|
ssrName: "x264Preset";
|
|
866
866
|
docLink: string;
|
|
867
|
-
type: "
|
|
867
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
868
868
|
getValue: ({ commandLine }: {
|
|
869
869
|
commandLine: Record<string, unknown>;
|
|
870
870
|
}) => {
|
|
871
|
-
value: "
|
|
871
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
872
872
|
source: string;
|
|
873
873
|
} | {
|
|
874
874
|
value: null;
|
|
875
875
|
source: string;
|
|
876
876
|
};
|
|
877
|
-
setConfig: (profile: "
|
|
877
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
878
878
|
};
|
|
879
879
|
readonly audioBitrate: {
|
|
880
880
|
name: string;
|
|
@@ -915,17 +915,17 @@ export declare const BrowserSafeApis: {
|
|
|
915
915
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
916
916
|
ssrName: string;
|
|
917
917
|
docLink: string;
|
|
918
|
-
type: "h264" | "h265" | "vp8" | "vp9" | "
|
|
918
|
+
type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
919
919
|
getValue: ({ commandLine }: {
|
|
920
920
|
commandLine: Record<string, unknown>;
|
|
921
921
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
922
922
|
outName: string | null;
|
|
923
923
|
downloadName: string | null;
|
|
924
|
-
configFile: "h264" | "h265" | "vp8" | "vp9" | "
|
|
925
|
-
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
926
|
-
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
924
|
+
configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
925
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
926
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
927
927
|
}) => {
|
|
928
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
928
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
929
929
|
source: string;
|
|
930
930
|
};
|
|
931
931
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -1079,12 +1079,12 @@ export declare const BrowserSafeApis: {
|
|
|
1079
1079
|
};
|
|
1080
1080
|
readonly audioCodec: {
|
|
1081
1081
|
cliFlag: "audio-codec";
|
|
1082
|
-
setConfig: (audioCodec: "
|
|
1082
|
+
setConfig: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
|
|
1083
1083
|
getValue: ({ commandLine }: {
|
|
1084
1084
|
commandLine: Record<string, unknown>;
|
|
1085
1085
|
}) => {
|
|
1086
1086
|
source: string;
|
|
1087
|
-
value: "
|
|
1087
|
+
value: "opus" | "aac" | "mp3" | "pcm-16";
|
|
1088
1088
|
} | {
|
|
1089
1089
|
source: string;
|
|
1090
1090
|
value: null;
|
|
@@ -1093,7 +1093,7 @@ export declare const BrowserSafeApis: {
|
|
|
1093
1093
|
docLink: string;
|
|
1094
1094
|
name: string;
|
|
1095
1095
|
ssrName: "audioCodec";
|
|
1096
|
-
type: "
|
|
1096
|
+
type: "opus" | "aac" | "mp3" | "pcm-16";
|
|
1097
1097
|
};
|
|
1098
1098
|
readonly onBrowserDownload: {
|
|
1099
1099
|
name: string;
|
|
@@ -1586,17 +1586,17 @@ export declare const BrowserSafeApis: {
|
|
|
1586
1586
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1587
1587
|
ssrName: "x264Preset";
|
|
1588
1588
|
docLink: string;
|
|
1589
|
-
type: "
|
|
1589
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
1590
1590
|
getValue: ({ commandLine }: {
|
|
1591
1591
|
commandLine: Record<string, unknown>;
|
|
1592
1592
|
}) => {
|
|
1593
|
-
value: "
|
|
1593
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
1594
1594
|
source: string;
|
|
1595
1595
|
} | {
|
|
1596
1596
|
value: null;
|
|
1597
1597
|
source: string;
|
|
1598
1598
|
};
|
|
1599
|
-
setConfig: (profile: "
|
|
1599
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
1600
1600
|
};
|
|
1601
1601
|
readonly encodingMaxRate: {
|
|
1602
1602
|
name: string;
|
|
@@ -1952,17 +1952,17 @@ export declare const BrowserSafeApis: {
|
|
|
1952
1952
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1953
1953
|
ssrName: "x264Preset";
|
|
1954
1954
|
docLink: string;
|
|
1955
|
-
type: "
|
|
1955
|
+
type: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null;
|
|
1956
1956
|
getValue: ({ commandLine }: {
|
|
1957
1957
|
commandLine: Record<string, unknown>;
|
|
1958
1958
|
}) => {
|
|
1959
|
-
value: "
|
|
1959
|
+
value: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
1960
1960
|
source: string;
|
|
1961
1961
|
} | {
|
|
1962
1962
|
value: null;
|
|
1963
1963
|
source: string;
|
|
1964
1964
|
};
|
|
1965
|
-
setConfig: (profile: "
|
|
1965
|
+
setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
|
|
1966
1966
|
};
|
|
1967
1967
|
readonly encodingMaxRate: {
|
|
1968
1968
|
name: string;
|
|
@@ -2249,9 +2249,9 @@ export declare const BrowserSafeApis: {
|
|
|
2249
2249
|
};
|
|
2250
2250
|
};
|
|
2251
2251
|
};
|
|
2252
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
2253
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
2252
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
2253
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
2254
2254
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
2255
2255
|
getOutputCodecOrUndefined: () => import("./codec").CodecOrUndefined;
|
|
2256
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
2256
|
+
getExtensionFromAudioCodec: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16") => "opus" | "aac" | "mp3" | "wav";
|
|
2257
2257
|
};
|
|
@@ -53,6 +53,7 @@ const startCompositor = ({ type, payload, logLevel, indent, binariesDirectory =
|
|
|
53
53
|
const separator = Buffer.from('remotion_buffer:');
|
|
54
54
|
const waiters = new Map();
|
|
55
55
|
const onMessage = (statusType, nonce, data) => {
|
|
56
|
+
// Nonce '0' just means that the message should be logged
|
|
56
57
|
if (nonce === '0') {
|
|
57
58
|
logger_1.Log.verbose({ indent, logLevel, tag: 'compositor' }, data.toString('utf8'));
|
|
58
59
|
}
|
|
@@ -83,46 +84,44 @@ const startCompositor = ({ type, payload, logLevel, indent, binariesDirectory =
|
|
|
83
84
|
let nonceString = '';
|
|
84
85
|
let lengthString = '';
|
|
85
86
|
let statusString = '';
|
|
86
|
-
// Each message from Rust is prefixed with `remotion_buffer
|
|
87
|
+
// Each message from Rust is prefixed with `remotion_buffer:{[nonce]}:{[length]}`
|
|
87
88
|
// Let's read the buffer to extract the nonce, and if the full length is available,
|
|
88
89
|
// we'll extract the data and pass it to the callback.
|
|
89
90
|
// eslint-disable-next-line no-constant-condition
|
|
90
91
|
while (true) {
|
|
92
|
+
if (separatorIndex > outputBuffer.length - 1) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
91
95
|
const nextDigit = outputBuffer[separatorIndex];
|
|
96
|
+
separatorIndex++;
|
|
92
97
|
// 0x3a is the character ":"
|
|
93
98
|
if (nextDigit === 0x3a) {
|
|
94
|
-
separatorIndex++;
|
|
95
99
|
break;
|
|
96
100
|
}
|
|
97
|
-
separatorIndex++;
|
|
98
|
-
if (separatorIndex > outputBuffer.length) {
|
|
99
|
-
throw new Error('separatorIndex out of bounds: ' + JSON.stringify(outputBuffer));
|
|
100
|
-
}
|
|
101
101
|
nonceString += String.fromCharCode(nextDigit);
|
|
102
102
|
}
|
|
103
103
|
// eslint-disable-next-line no-constant-condition
|
|
104
104
|
while (true) {
|
|
105
|
+
if (separatorIndex > outputBuffer.length - 1) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
105
108
|
const nextDigit = outputBuffer[separatorIndex];
|
|
109
|
+
separatorIndex++;
|
|
106
110
|
if (nextDigit === 0x3a) {
|
|
107
|
-
separatorIndex++;
|
|
108
111
|
break;
|
|
109
112
|
}
|
|
110
|
-
separatorIndex++;
|
|
111
|
-
if (separatorIndex > outputBuffer.length) {
|
|
112
|
-
throw new Error('separatorIndex out of bounds ' + JSON.stringify(outputBuffer));
|
|
113
|
-
}
|
|
114
113
|
lengthString += String.fromCharCode(nextDigit);
|
|
115
114
|
}
|
|
116
115
|
// eslint-disable-next-line no-constant-condition
|
|
117
116
|
while (true) {
|
|
117
|
+
if (separatorIndex > outputBuffer.length - 1) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
118
120
|
const nextDigit = outputBuffer[separatorIndex];
|
|
119
121
|
if (nextDigit === 0x3a) {
|
|
120
122
|
break;
|
|
121
123
|
}
|
|
122
124
|
separatorIndex++;
|
|
123
|
-
if (separatorIndex > outputBuffer.length) {
|
|
124
|
-
throw new Error('separatorIndex out of bounds ' + JSON.stringify(outputBuffer));
|
|
125
|
-
}
|
|
126
125
|
statusString += String.fromCharCode(nextDigit);
|
|
127
126
|
}
|
|
128
127
|
const length = Number(lengthString);
|
package/dist/index.d.ts
CHANGED
|
@@ -69,10 +69,10 @@ export declare const RenderInternals: {
|
|
|
69
69
|
width: number;
|
|
70
70
|
height: number;
|
|
71
71
|
scale: number;
|
|
72
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
72
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
73
73
|
wantsImageSequence: boolean;
|
|
74
74
|
}) => void;
|
|
75
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
75
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => import("./file-extensions").FileExtension;
|
|
76
76
|
tmpDir: (str: string) => string;
|
|
77
77
|
deleteDirectory: (directory: string) => void;
|
|
78
78
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -129,7 +129,7 @@ export declare const RenderInternals: {
|
|
|
129
129
|
};
|
|
130
130
|
registerErrorSymbolicationLock: () => number;
|
|
131
131
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
132
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
132
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
133
133
|
mimeContentType: typeof mimeContentType;
|
|
134
134
|
mimeLookup: typeof mimeLookup;
|
|
135
135
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -140,14 +140,14 @@ export declare const RenderInternals: {
|
|
|
140
140
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
141
141
|
DEFAULT_BROWSER: "chrome";
|
|
142
142
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
143
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
144
|
-
validateOpenGlRenderer: (option: unknown) => "
|
|
143
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
144
|
+
validateOpenGlRenderer: (option: unknown) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
145
145
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
146
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
146
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
147
147
|
validateJpegQuality: (q: unknown) => void;
|
|
148
148
|
DEFAULT_TIMEOUT: number;
|
|
149
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
150
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
149
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
150
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null | undefined) => boolean;
|
|
151
151
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
152
152
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
153
153
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -164,10 +164,10 @@ export declare const RenderInternals: {
|
|
|
164
164
|
output: string;
|
|
165
165
|
onProgress: (p: number) => void;
|
|
166
166
|
numberOfFrames: number;
|
|
167
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
167
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
168
168
|
fps: number;
|
|
169
169
|
numberOfGifLoops: number | null;
|
|
170
|
-
resolvedAudioCodec: "
|
|
170
|
+
resolvedAudioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
171
171
|
audioBitrate: string | null;
|
|
172
172
|
indent: boolean;
|
|
173
173
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
@@ -181,18 +181,18 @@ export declare const RenderInternals: {
|
|
|
181
181
|
getMinConcurrency: () => number;
|
|
182
182
|
getMaxConcurrency: () => number;
|
|
183
183
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
184
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
184
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
185
185
|
preferLossless: boolean;
|
|
186
|
-
}) => "
|
|
186
|
+
}) => "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
187
187
|
defaultFileExtensionMap: {
|
|
188
188
|
h264: {
|
|
189
189
|
default: import("./file-extensions").FileExtension;
|
|
190
190
|
forAudioCodec: {
|
|
191
|
-
|
|
191
|
+
aac: {
|
|
192
192
|
possible: import("./file-extensions").FileExtension[];
|
|
193
193
|
default: import("./file-extensions").FileExtension;
|
|
194
194
|
};
|
|
195
|
-
|
|
195
|
+
mp3: {
|
|
196
196
|
possible: import("./file-extensions").FileExtension[];
|
|
197
197
|
default: import("./file-extensions").FileExtension;
|
|
198
198
|
};
|
|
@@ -218,11 +218,11 @@ export declare const RenderInternals: {
|
|
|
218
218
|
vp8: {
|
|
219
219
|
default: import("./file-extensions").FileExtension;
|
|
220
220
|
forAudioCodec: {
|
|
221
|
-
|
|
221
|
+
opus: {
|
|
222
222
|
possible: import("./file-extensions").FileExtension[];
|
|
223
223
|
default: import("./file-extensions").FileExtension;
|
|
224
224
|
};
|
|
225
|
-
|
|
225
|
+
"pcm-16": {
|
|
226
226
|
possible: import("./file-extensions").FileExtension[];
|
|
227
227
|
default: import("./file-extensions").FileExtension;
|
|
228
228
|
};
|
|
@@ -231,20 +231,20 @@ export declare const RenderInternals: {
|
|
|
231
231
|
vp9: {
|
|
232
232
|
default: import("./file-extensions").FileExtension;
|
|
233
233
|
forAudioCodec: {
|
|
234
|
-
|
|
234
|
+
opus: {
|
|
235
235
|
possible: import("./file-extensions").FileExtension[];
|
|
236
236
|
default: import("./file-extensions").FileExtension;
|
|
237
237
|
};
|
|
238
|
-
|
|
238
|
+
"pcm-16": {
|
|
239
239
|
possible: import("./file-extensions").FileExtension[];
|
|
240
240
|
default: import("./file-extensions").FileExtension;
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
prores: {
|
|
245
245
|
default: import("./file-extensions").FileExtension;
|
|
246
246
|
forAudioCodec: {
|
|
247
|
-
|
|
247
|
+
aac: {
|
|
248
248
|
possible: import("./file-extensions").FileExtension[];
|
|
249
249
|
default: import("./file-extensions").FileExtension;
|
|
250
250
|
};
|
|
@@ -267,22 +267,22 @@ export declare const RenderInternals: {
|
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
|
-
|
|
270
|
+
mp3: {
|
|
271
271
|
default: import("./file-extensions").FileExtension;
|
|
272
272
|
forAudioCodec: {
|
|
273
|
+
mp3: {
|
|
274
|
+
possible: import("./file-extensions").FileExtension[];
|
|
275
|
+
default: import("./file-extensions").FileExtension;
|
|
276
|
+
};
|
|
273
277
|
"pcm-16": {
|
|
274
278
|
possible: import("./file-extensions").FileExtension[];
|
|
275
279
|
default: import("./file-extensions").FileExtension;
|
|
276
280
|
};
|
|
277
281
|
};
|
|
278
282
|
};
|
|
279
|
-
|
|
283
|
+
wav: {
|
|
280
284
|
default: import("./file-extensions").FileExtension;
|
|
281
285
|
forAudioCodec: {
|
|
282
|
-
aac: {
|
|
283
|
-
possible: import("./file-extensions").FileExtension[];
|
|
284
|
-
default: import("./file-extensions").FileExtension;
|
|
285
|
-
};
|
|
286
286
|
"pcm-16": {
|
|
287
287
|
possible: import("./file-extensions").FileExtension[];
|
|
288
288
|
default: import("./file-extensions").FileExtension;
|
|
@@ -334,8 +334,8 @@ export declare const RenderInternals: {
|
|
|
334
334
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
335
335
|
readonly wav: readonly ["pcm-16"];
|
|
336
336
|
};
|
|
337
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
338
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
337
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
338
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">;
|
|
339
339
|
getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
|
|
340
340
|
type: "compositor" | "ffmpeg" | "ffprobe";
|
|
341
341
|
indent: boolean;
|
|
@@ -353,8 +353,8 @@ export declare const RenderInternals: {
|
|
|
353
353
|
}) => execa.ExecaChildProcess<string>;
|
|
354
354
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
355
355
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
356
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
357
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
356
|
+
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
|
|
357
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
|
|
358
358
|
DEFAULT_JPEG_QUALITY: number;
|
|
359
359
|
chalk: {
|
|
360
360
|
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: "png" | "jpeg" | "pdf" | "webp";
|
|
457
457
|
jpegQuality: number;
|
|
458
458
|
puppeteerInstance: HeadlessBrowser | null;
|
|
459
459
|
envVariables: Record<string, string>;
|
|
@@ -771,21 +771,21 @@ export declare const RenderInternals: {
|
|
|
771
771
|
hostsToTry: string[];
|
|
772
772
|
};
|
|
773
773
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
|
774
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
774
|
+
getExtensionFromAudioCodec: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16") => "opus" | "aac" | "mp3" | "wav";
|
|
775
775
|
makeFileExecutableIfItIsNot: (path: string) => void;
|
|
776
776
|
resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
777
|
-
setting: "
|
|
778
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
777
|
+
setting: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
778
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
779
779
|
preferLossless: boolean;
|
|
780
780
|
separateAudioTo: string | null;
|
|
781
|
-
}) => "
|
|
781
|
+
}) => "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
782
782
|
getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
|
|
783
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
783
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
784
784
|
assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
|
|
785
785
|
enforceAudioTrack: boolean;
|
|
786
786
|
muted: boolean;
|
|
787
|
-
}) => "
|
|
788
|
-
codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
787
|
+
}) => "yes" | "maybe" | "no";
|
|
788
|
+
codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => {
|
|
789
789
|
video: boolean;
|
|
790
790
|
audio: boolean;
|
|
791
791
|
};
|
|
@@ -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) => "opus" | "aac" | "mp3" | "wav";
|
|
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
|
+
}) => "opus" | "aac" | "mp3" | "pcm-16" | 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: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
|
|
41
41
|
getValue: ({ commandLine }: {
|
|
42
42
|
commandLine: Record<string, unknown>;
|
|
43
43
|
}) => {
|
|
44
44
|
source: string;
|
|
45
|
-
value: "
|
|
45
|
+
value: "opus" | "aac" | "mp3" | "pcm-16";
|
|
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: "opus" | "aac" | "mp3" | "pcm-16";
|
|
55
55
|
};
|
|
56
56
|
export {};
|
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: () => "swangle" | "angle" | "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: "swangle" | "angle" | "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: "swangle" | "angle" | "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: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
|
|
6
6
|
getValue: ({ commandLine }: {
|
|
7
7
|
commandLine: Record<string, unknown>;
|
|
8
8
|
}) => {
|
|
9
9
|
source: string;
|
|
10
|
-
value: "
|
|
10
|
+
value: "opus" | "aac" | "mp3" | "pcm-16";
|
|
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: "opus" | "aac" | "mp3" | "pcm-16";
|
|
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" | "prores" | "aac" | "mp3" | "wav" | "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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
145
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
146
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
147
147
|
}) => {
|
|
148
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
148
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
|
|
149
149
|
source: string;
|
|
150
150
|
};
|
|
151
151
|
setConfig: (newCodec: import("..").CodecOrUndefined) => void;
|
|
@@ -245,19 +245,19 @@ export declare const allOptions: {
|
|
|
245
245
|
cliFlag: "gl";
|
|
246
246
|
docLink: string;
|
|
247
247
|
name: string;
|
|
248
|
-
type: "
|
|
248
|
+
type: "swangle" | "angle" | "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: "swangle" | "angle" | "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: "swangle" | "angle" | "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;
|
|
@@ -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" | "prores" | "aac" | "mp3" | "wav" | "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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
133
|
+
uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
134
|
+
compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
135
135
|
}) => {
|
|
136
|
-
value: "h264" | "h265" | "vp8" | "vp9" | "
|
|
136
|
+
value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "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: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
|
|
291
291
|
getValue: ({ commandLine }: {
|
|
292
292
|
commandLine: Record<string, unknown>;
|
|
293
293
|
}) => {
|
|
294
294
|
source: string;
|
|
295
|
-
value: "
|
|
295
|
+
value: "opus" | "aac" | "mp3" | "pcm-16";
|
|
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: "opus" | "aac" | "mp3" | "pcm-16";
|
|
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;
|
|
@@ -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" | "prores" | "aac" | "mp3" | "wav" | "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;
|
|
@@ -73,5 +73,9 @@ const printUsefulErrorMessage = (err, logLevel, indent) => {
|
|
|
73
73
|
logger_1.Log.info({ indent, logLevel }, '💡 This error might be fixed by changing your Node version:');
|
|
74
74
|
logger_1.Log.info({ indent, logLevel }, ' https://github.com/remotion-dev/remotion/issues/2452');
|
|
75
75
|
}
|
|
76
|
+
if (err.message.includes('routines::unsupported')) {
|
|
77
|
+
logger_1.Log.info({ indent, logLevel }, '💡 This error might happen if using Cloud Run with credentials that have a newline at the end or are otherwise badly encoded.');
|
|
78
|
+
logger_1.Log.info({ indent, logLevel }, ' https://github.com/remotion-dev/remotion/issues/3864');
|
|
79
|
+
}
|
|
76
80
|
};
|
|
77
81
|
exports.printUsefulErrorMessage = printUsefulErrorMessage;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeStreamer = void 0;
|
|
4
|
+
const makeStreamer = (onMessage) => {
|
|
5
|
+
const separatorStr = 'remotion_buffer:';
|
|
6
|
+
const separator = new Uint8Array(separatorStr.length);
|
|
7
|
+
for (let i = 0; i < separatorStr.length; i++) {
|
|
8
|
+
separator[i] = separatorStr.charCodeAt(i);
|
|
9
|
+
}
|
|
10
|
+
let unprocessedBuffers = [];
|
|
11
|
+
let outputBuffer = new Uint8Array(0);
|
|
12
|
+
let missingData = null;
|
|
13
|
+
const processInput = () => {
|
|
14
|
+
let separatorIndex = outputBuffer.indexOf(separator[0]); // Start checking for the first byte of the separator
|
|
15
|
+
if (separatorIndex === -1 ||
|
|
16
|
+
outputBuffer
|
|
17
|
+
.subarray(separatorIndex, separatorIndex + separator.length)
|
|
18
|
+
.toString() !== separator.toString()) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
separatorIndex += separator.length;
|
|
22
|
+
let nonceString = '';
|
|
23
|
+
let lengthString = '';
|
|
24
|
+
let statusString = '';
|
|
25
|
+
// eslint-disable-next-line no-constant-condition
|
|
26
|
+
while (true) {
|
|
27
|
+
if (separatorIndex > outputBuffer.length - 1) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const nextDigit = outputBuffer[separatorIndex];
|
|
31
|
+
separatorIndex++;
|
|
32
|
+
if (nextDigit === 0x3a) {
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
nonceString += String.fromCharCode(nextDigit);
|
|
36
|
+
}
|
|
37
|
+
// eslint-disable-next-line no-constant-condition
|
|
38
|
+
while (true) {
|
|
39
|
+
if (separatorIndex > outputBuffer.length - 1) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const nextDigit = outputBuffer[separatorIndex];
|
|
43
|
+
separatorIndex++;
|
|
44
|
+
if (nextDigit === 0x3a) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
lengthString += String.fromCharCode(nextDigit);
|
|
48
|
+
}
|
|
49
|
+
// eslint-disable-next-line no-constant-condition
|
|
50
|
+
while (true) {
|
|
51
|
+
if (separatorIndex > outputBuffer.length - 1) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const nextDigit = outputBuffer[separatorIndex];
|
|
55
|
+
if (nextDigit === 0x3a) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
separatorIndex++;
|
|
59
|
+
statusString += String.fromCharCode(nextDigit);
|
|
60
|
+
}
|
|
61
|
+
const length = Number(lengthString);
|
|
62
|
+
const status = Number(statusString);
|
|
63
|
+
const dataLength = outputBuffer.length - separatorIndex - 1;
|
|
64
|
+
if (dataLength < length) {
|
|
65
|
+
missingData = {
|
|
66
|
+
dataMissing: length - dataLength,
|
|
67
|
+
};
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const data = outputBuffer.subarray(separatorIndex + 1, separatorIndex + 1 + Number(lengthString));
|
|
71
|
+
onMessage(status === 1 ? 'error' : 'success', nonceString, data);
|
|
72
|
+
missingData = null;
|
|
73
|
+
outputBuffer = outputBuffer.subarray(separatorIndex + Number(lengthString) + 1);
|
|
74
|
+
processInput();
|
|
75
|
+
};
|
|
76
|
+
const onData = (data) => {
|
|
77
|
+
unprocessedBuffers.push(data);
|
|
78
|
+
const separatorIndex = data.indexOf(separator[0]);
|
|
79
|
+
if (separatorIndex === -1) {
|
|
80
|
+
if (missingData) {
|
|
81
|
+
missingData.dataMissing -= data.length;
|
|
82
|
+
}
|
|
83
|
+
if (!missingData || missingData.dataMissing > 0) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
unprocessedBuffers.unshift(outputBuffer);
|
|
88
|
+
outputBuffer = new Uint8Array(unprocessedBuffers.reduce((acc, val) => acc + val.length, 0));
|
|
89
|
+
let offset = 0;
|
|
90
|
+
for (const buf of unprocessedBuffers) {
|
|
91
|
+
outputBuffer.set(buf, offset);
|
|
92
|
+
offset += buf.length;
|
|
93
|
+
}
|
|
94
|
+
unprocessedBuffers = [];
|
|
95
|
+
processInput();
|
|
96
|
+
};
|
|
97
|
+
return {
|
|
98
|
+
onData,
|
|
99
|
+
getOutputBuffer: () => outputBuffer,
|
|
100
|
+
clear: () => {
|
|
101
|
+
unprocessedBuffers = [];
|
|
102
|
+
outputBuffer = new Uint8Array(0);
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
exports.makeStreamer = makeStreamer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.163",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"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.7.0",
|
|
21
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.163"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@types/ws": "8.5.10"
|
|
44
44
|
},
|
|
45
45
|
"optionalDependencies": {
|
|
46
|
-
"@remotion/compositor-darwin-
|
|
47
|
-
"@remotion/compositor-darwin-
|
|
48
|
-
"@remotion/compositor-linux-arm64-
|
|
49
|
-
"@remotion/compositor-linux-arm64-
|
|
50
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
51
|
-
"@remotion/compositor-
|
|
52
|
-
"@remotion/compositor-
|
|
46
|
+
"@remotion/compositor-darwin-x64": "4.0.163",
|
|
47
|
+
"@remotion/compositor-darwin-arm64": "4.0.163",
|
|
48
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.163",
|
|
49
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.163",
|
|
50
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.163",
|
|
51
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.163",
|
|
52
|
+
"@remotion/compositor-linux-x64-musl": "4.0.163"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"remotion",
|