@remotion/renderer 4.0.53 → 4.0.54
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 +37 -37
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/index.d.ts +30 -28
- package/dist/open-browser.js +3 -3
- package/dist/options/color-space.d.ts +1 -1
- package/dist/options/index.d.ts +1 -1
- package/dist/print-useful-error-message.js +1 -1
- package/dist/stitch-frames-to-video.d.ts +1 -0
- package/dist/validate-output-filename.d.ts +1 -1
- package/package.json +9 -9
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
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" | "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", "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" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "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"];
|
|
@@ -26,11 +26,11 @@ export declare const BrowserSafeApis: {
|
|
|
26
26
|
h264: {
|
|
27
27
|
default: import("./file-extensions").FileExtension;
|
|
28
28
|
forAudioCodec: {
|
|
29
|
-
|
|
29
|
+
aac: {
|
|
30
30
|
possible: import("./file-extensions").FileExtension[];
|
|
31
31
|
default: import("./file-extensions").FileExtension;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
mp3: {
|
|
34
34
|
possible: import("./file-extensions").FileExtension[];
|
|
35
35
|
default: import("./file-extensions").FileExtension;
|
|
36
36
|
};
|
|
@@ -56,11 +56,11 @@ export declare const BrowserSafeApis: {
|
|
|
56
56
|
vp8: {
|
|
57
57
|
default: import("./file-extensions").FileExtension;
|
|
58
58
|
forAudioCodec: {
|
|
59
|
-
|
|
59
|
+
opus: {
|
|
60
60
|
possible: import("./file-extensions").FileExtension[];
|
|
61
61
|
default: import("./file-extensions").FileExtension;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
"pcm-16": {
|
|
64
64
|
possible: import("./file-extensions").FileExtension[];
|
|
65
65
|
default: import("./file-extensions").FileExtension;
|
|
66
66
|
};
|
|
@@ -69,20 +69,20 @@ export declare const BrowserSafeApis: {
|
|
|
69
69
|
vp9: {
|
|
70
70
|
default: import("./file-extensions").FileExtension;
|
|
71
71
|
forAudioCodec: {
|
|
72
|
-
|
|
72
|
+
opus: {
|
|
73
73
|
possible: import("./file-extensions").FileExtension[];
|
|
74
74
|
default: import("./file-extensions").FileExtension;
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
"pcm-16": {
|
|
77
77
|
possible: import("./file-extensions").FileExtension[];
|
|
78
78
|
default: import("./file-extensions").FileExtension;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
prores: {
|
|
83
83
|
default: import("./file-extensions").FileExtension;
|
|
84
84
|
forAudioCodec: {
|
|
85
|
-
|
|
85
|
+
aac: {
|
|
86
86
|
possible: import("./file-extensions").FileExtension[];
|
|
87
87
|
default: import("./file-extensions").FileExtension;
|
|
88
88
|
};
|
|
@@ -105,22 +105,22 @@ export declare const BrowserSafeApis: {
|
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
mp3: {
|
|
109
109
|
default: import("./file-extensions").FileExtension;
|
|
110
110
|
forAudioCodec: {
|
|
111
|
+
mp3: {
|
|
112
|
+
possible: import("./file-extensions").FileExtension[];
|
|
113
|
+
default: import("./file-extensions").FileExtension;
|
|
114
|
+
};
|
|
111
115
|
"pcm-16": {
|
|
112
116
|
possible: import("./file-extensions").FileExtension[];
|
|
113
117
|
default: import("./file-extensions").FileExtension;
|
|
114
118
|
};
|
|
115
119
|
};
|
|
116
120
|
};
|
|
117
|
-
|
|
121
|
+
wav: {
|
|
118
122
|
default: import("./file-extensions").FileExtension;
|
|
119
123
|
forAudioCodec: {
|
|
120
|
-
aac: {
|
|
121
|
-
possible: import("./file-extensions").FileExtension[];
|
|
122
|
-
default: import("./file-extensions").FileExtension;
|
|
123
|
-
};
|
|
124
124
|
"pcm-16": {
|
|
125
125
|
possible: import("./file-extensions").FileExtension[];
|
|
126
126
|
default: import("./file-extensions").FileExtension;
|
|
@@ -147,37 +147,37 @@ export declare const BrowserSafeApis: {
|
|
|
147
147
|
};
|
|
148
148
|
defaultAudioCodecs: {
|
|
149
149
|
h264: {
|
|
150
|
-
compressed: "
|
|
151
|
-
lossless: "
|
|
150
|
+
compressed: "aac" | "mp3" | "pcm-16" | null;
|
|
151
|
+
lossless: "aac" | "mp3" | "pcm-16" | null;
|
|
152
152
|
};
|
|
153
153
|
h265: {
|
|
154
154
|
compressed: "aac" | "pcm-16" | null;
|
|
155
155
|
lossless: "aac" | "pcm-16" | null;
|
|
156
156
|
};
|
|
157
157
|
vp8: {
|
|
158
|
-
compressed: "
|
|
159
|
-
lossless: "
|
|
158
|
+
compressed: "opus" | "pcm-16" | null;
|
|
159
|
+
lossless: "opus" | "pcm-16" | null;
|
|
160
160
|
};
|
|
161
161
|
vp9: {
|
|
162
|
-
compressed: "
|
|
163
|
-
lossless: "
|
|
162
|
+
compressed: "opus" | "pcm-16" | null;
|
|
163
|
+
lossless: "opus" | "pcm-16" | null;
|
|
164
164
|
};
|
|
165
|
-
|
|
166
|
-
compressed: "
|
|
167
|
-
lossless: "
|
|
165
|
+
prores: {
|
|
166
|
+
compressed: "aac" | "pcm-16" | null;
|
|
167
|
+
lossless: "aac" | "pcm-16" | null;
|
|
168
168
|
};
|
|
169
169
|
aac: {
|
|
170
170
|
compressed: "aac" | "pcm-16" | null;
|
|
171
171
|
lossless: "aac" | "pcm-16" | null;
|
|
172
172
|
};
|
|
173
|
+
mp3: {
|
|
174
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
175
|
+
lossless: "mp3" | "pcm-16" | null;
|
|
176
|
+
};
|
|
173
177
|
wav: {
|
|
174
178
|
compressed: "pcm-16" | null;
|
|
175
179
|
lossless: "pcm-16" | null;
|
|
176
180
|
};
|
|
177
|
-
prores: {
|
|
178
|
-
compressed: "aac" | "pcm-16" | null;
|
|
179
|
-
lossless: "aac" | "pcm-16" | null;
|
|
180
|
-
};
|
|
181
181
|
"h264-mkv": {
|
|
182
182
|
compressed: "mp3" | "pcm-16" | null;
|
|
183
183
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -187,10 +187,10 @@ export declare const BrowserSafeApis: {
|
|
|
187
187
|
lossless: null;
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
191
|
-
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
190
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">;
|
|
191
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
192
192
|
codec: T_1;
|
|
193
|
-
audioCodec: "
|
|
193
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
194
194
|
extension: string;
|
|
195
195
|
preferLossless: boolean;
|
|
196
196
|
}) => void;
|
|
@@ -281,7 +281,7 @@ export declare const BrowserSafeApis: {
|
|
|
281
281
|
description: () => JSX.Element;
|
|
282
282
|
docLink: string;
|
|
283
283
|
ssrName: string;
|
|
284
|
-
type: "
|
|
284
|
+
type: "bt709" | "default";
|
|
285
285
|
};
|
|
286
286
|
deleteAfterOption: {
|
|
287
287
|
name: string;
|
|
@@ -399,6 +399,6 @@ export declare const BrowserSafeApis: {
|
|
|
399
399
|
type: number | null;
|
|
400
400
|
}];
|
|
401
401
|
};
|
|
402
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
403
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
402
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
403
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
404
404
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AudioCodec } from './audio-codec';
|
|
2
2
|
import type { Codec } from './codec';
|
|
3
3
|
import type { FileExtension } from './file-extensions';
|
|
4
|
-
export declare const getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
5
|
-
export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
4
|
+
export declare const getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
|
|
5
|
+
export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif")[]>;
|
|
6
6
|
export declare const defaultCodecsForFileExtension: Record<FileExtension, Codec>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="react" />
|
|
1
3
|
import execa from 'execa';
|
|
2
4
|
import { HeadlessBrowser } from './browser/Browser';
|
|
3
5
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -63,10 +65,10 @@ export declare const RenderInternals: {
|
|
|
63
65
|
width: number;
|
|
64
66
|
height: number;
|
|
65
67
|
scale: number;
|
|
66
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
68
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
67
69
|
wantsImageSequence: boolean;
|
|
68
70
|
}) => void;
|
|
69
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
71
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => import("./file-extensions").FileExtension;
|
|
70
72
|
tmpDir: (str: string) => string;
|
|
71
73
|
deleteDirectory: (directory: string) => void;
|
|
72
74
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -123,7 +125,7 @@ export declare const RenderInternals: {
|
|
|
123
125
|
};
|
|
124
126
|
registerErrorSymbolicationLock: () => number;
|
|
125
127
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
126
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
128
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
127
129
|
mimeContentType: typeof mimeContentType;
|
|
128
130
|
mimeLookup: typeof mimeLookup;
|
|
129
131
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -140,8 +142,8 @@ export declare const RenderInternals: {
|
|
|
140
142
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
141
143
|
validateJpegQuality: (q: number | undefined) => void;
|
|
142
144
|
DEFAULT_TIMEOUT: number;
|
|
143
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
144
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
145
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
146
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null | undefined) => boolean;
|
|
145
147
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
146
148
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
147
149
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -158,28 +160,28 @@ export declare const RenderInternals: {
|
|
|
158
160
|
output: string;
|
|
159
161
|
onProgress: (p: number) => void;
|
|
160
162
|
numberOfFrames: number;
|
|
161
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
163
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
162
164
|
fps: number;
|
|
163
165
|
numberOfGifLoops: number | null;
|
|
164
|
-
audioCodec: "
|
|
166
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
165
167
|
audioBitrate: string | null;
|
|
166
168
|
}) => Promise<void>;
|
|
167
169
|
getMinConcurrency: () => number;
|
|
168
170
|
getMaxConcurrency: () => number;
|
|
169
171
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
170
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
172
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
171
173
|
preferLossless: boolean;
|
|
172
|
-
}) => "
|
|
174
|
+
}) => "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
173
175
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
174
176
|
defaultFileExtensionMap: {
|
|
175
177
|
h264: {
|
|
176
178
|
default: import("./file-extensions").FileExtension;
|
|
177
179
|
forAudioCodec: {
|
|
178
|
-
|
|
180
|
+
aac: {
|
|
179
181
|
possible: import("./file-extensions").FileExtension[];
|
|
180
182
|
default: import("./file-extensions").FileExtension;
|
|
181
183
|
};
|
|
182
|
-
|
|
184
|
+
mp3: {
|
|
183
185
|
possible: import("./file-extensions").FileExtension[];
|
|
184
186
|
default: import("./file-extensions").FileExtension;
|
|
185
187
|
};
|
|
@@ -205,11 +207,11 @@ export declare const RenderInternals: {
|
|
|
205
207
|
vp8: {
|
|
206
208
|
default: import("./file-extensions").FileExtension;
|
|
207
209
|
forAudioCodec: {
|
|
208
|
-
|
|
210
|
+
opus: {
|
|
209
211
|
possible: import("./file-extensions").FileExtension[];
|
|
210
212
|
default: import("./file-extensions").FileExtension;
|
|
211
213
|
};
|
|
212
|
-
|
|
214
|
+
"pcm-16": {
|
|
213
215
|
possible: import("./file-extensions").FileExtension[];
|
|
214
216
|
default: import("./file-extensions").FileExtension;
|
|
215
217
|
};
|
|
@@ -218,20 +220,20 @@ export declare const RenderInternals: {
|
|
|
218
220
|
vp9: {
|
|
219
221
|
default: import("./file-extensions").FileExtension;
|
|
220
222
|
forAudioCodec: {
|
|
221
|
-
|
|
223
|
+
opus: {
|
|
222
224
|
possible: import("./file-extensions").FileExtension[];
|
|
223
225
|
default: import("./file-extensions").FileExtension;
|
|
224
226
|
};
|
|
225
|
-
|
|
227
|
+
"pcm-16": {
|
|
226
228
|
possible: import("./file-extensions").FileExtension[];
|
|
227
229
|
default: import("./file-extensions").FileExtension;
|
|
228
230
|
};
|
|
229
231
|
};
|
|
230
232
|
};
|
|
231
|
-
|
|
233
|
+
prores: {
|
|
232
234
|
default: import("./file-extensions").FileExtension;
|
|
233
235
|
forAudioCodec: {
|
|
234
|
-
|
|
236
|
+
aac: {
|
|
235
237
|
possible: import("./file-extensions").FileExtension[];
|
|
236
238
|
default: import("./file-extensions").FileExtension;
|
|
237
239
|
};
|
|
@@ -254,22 +256,22 @@ export declare const RenderInternals: {
|
|
|
254
256
|
};
|
|
255
257
|
};
|
|
256
258
|
};
|
|
257
|
-
|
|
259
|
+
mp3: {
|
|
258
260
|
default: import("./file-extensions").FileExtension;
|
|
259
261
|
forAudioCodec: {
|
|
262
|
+
mp3: {
|
|
263
|
+
possible: import("./file-extensions").FileExtension[];
|
|
264
|
+
default: import("./file-extensions").FileExtension;
|
|
265
|
+
};
|
|
260
266
|
"pcm-16": {
|
|
261
267
|
possible: import("./file-extensions").FileExtension[];
|
|
262
268
|
default: import("./file-extensions").FileExtension;
|
|
263
269
|
};
|
|
264
270
|
};
|
|
265
271
|
};
|
|
266
|
-
|
|
272
|
+
wav: {
|
|
267
273
|
default: import("./file-extensions").FileExtension;
|
|
268
274
|
forAudioCodec: {
|
|
269
|
-
aac: {
|
|
270
|
-
possible: import("./file-extensions").FileExtension[];
|
|
271
|
-
default: import("./file-extensions").FileExtension;
|
|
272
|
-
};
|
|
273
275
|
"pcm-16": {
|
|
274
276
|
possible: import("./file-extensions").FileExtension[];
|
|
275
277
|
default: import("./file-extensions").FileExtension;
|
|
@@ -306,8 +308,8 @@ export declare const RenderInternals: {
|
|
|
306
308
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
307
309
|
readonly wav: readonly ["pcm-16"];
|
|
308
310
|
};
|
|
309
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
310
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
311
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif")[]>;
|
|
312
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">;
|
|
311
313
|
getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd") => string;
|
|
312
314
|
callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
|
|
313
315
|
dynamicLibraryPathOptions: () => {
|
|
@@ -324,8 +326,8 @@ export declare const RenderInternals: {
|
|
|
324
326
|
};
|
|
325
327
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
326
328
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
327
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
328
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
329
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
330
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
329
331
|
DEFAULT_JPEG_QUALITY: number;
|
|
330
332
|
chalk: {
|
|
331
333
|
enabled: () => boolean;
|
|
@@ -438,7 +440,7 @@ export declare const RenderInternals: {
|
|
|
438
440
|
frame: number;
|
|
439
441
|
serializedInputPropsWithCustomSchema: string;
|
|
440
442
|
serializedResolvedPropsWithCustomSchema: string;
|
|
441
|
-
imageFormat: "
|
|
443
|
+
imageFormat: "jpeg" | "png" | "webp" | "pdf";
|
|
442
444
|
jpegQuality: number;
|
|
443
445
|
puppeteerInstance: HeadlessBrowser | null;
|
|
444
446
|
envVariables: Record<string, string>;
|
package/dist/open-browser.js
CHANGED
|
@@ -10,15 +10,15 @@ const getOpenGlRenderer = (option) => {
|
|
|
10
10
|
const renderer = option !== null && option !== void 0 ? option : gl_1.DEFAULT_OPENGL_RENDERER;
|
|
11
11
|
(0, gl_1.validateOpenGlRenderer)(renderer);
|
|
12
12
|
if (renderer === 'swangle') {
|
|
13
|
-
return [
|
|
13
|
+
return ['--use-gl=angle', '--use-angle=swiftshader'];
|
|
14
14
|
}
|
|
15
15
|
if (renderer === 'angle-egl') {
|
|
16
|
-
return [
|
|
16
|
+
return ['--use-gl=angle', '--use-angle=gl-egl'];
|
|
17
17
|
}
|
|
18
18
|
if (renderer === 'vulkan') {
|
|
19
19
|
return [
|
|
20
20
|
'--use-angle=vulkan',
|
|
21
|
-
|
|
21
|
+
'--use-vulkan=swiftshader',
|
|
22
22
|
'--disable-vulkan-fallback-to-gl-for-testing',
|
|
23
23
|
'--dignore-gpu-blocklist',
|
|
24
24
|
'--enable-features=Vulkan,UseSkiaRenderer',
|
package/dist/options/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ const printUsefulErrorMessage = (err) => {
|
|
|
37
37
|
}
|
|
38
38
|
if (err.message.includes('Error creating WebGL context')) {
|
|
39
39
|
console.log();
|
|
40
|
-
console.warn('💡 You might need to set the OpenGL renderer to "angle" (or "swangle" if rendering on lambda). Learn why at https://www.remotion.dev/docs/three');
|
|
40
|
+
console.warn('💡 You might need to set the OpenGL renderer to "angle-egl", "angle" (or "swangle" if rendering on lambda). Learn why at https://www.remotion.dev/docs/three');
|
|
41
41
|
console.warn("💡 Check how it's done at https://www.remotion.dev/docs/chromium-flags#--gl");
|
|
42
42
|
}
|
|
43
43
|
if (err.message.includes('The bucket does not allow ACLs')) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AudioCodec } from './audio-codec';
|
|
2
|
-
export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
2
|
+
export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
3
3
|
codec: T;
|
|
4
4
|
audioCodec: AudioCodec | null;
|
|
5
5
|
extension: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.54",
|
|
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.54"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"vitest": "0.31.1"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
44
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
45
|
-
"@remotion/compositor-linux-
|
|
46
|
-
"@remotion/compositor-
|
|
47
|
-
"@remotion/compositor-linux-
|
|
48
|
-
"@remotion/compositor-linux-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-arm64": "4.0.54",
|
|
44
|
+
"@remotion/compositor-darwin-x64": "4.0.54",
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.54",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.54",
|
|
47
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.54",
|
|
48
|
+
"@remotion/compositor-linux-x64-musl": "4.0.54",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.54"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|