@remotion/renderer 4.0.149 → 4.0.150
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/index.d.ts +53 -53
- package/package.json +9 -9
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: "
|
|
72
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
73
73
|
wantsImageSequence: boolean;
|
|
74
74
|
}) => void;
|
|
75
|
-
getFileExtensionFromCodec: <T extends "
|
|
75
|
+
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;
|
|
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: "
|
|
132
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "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: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
144
|
+
validateOpenGlRenderer: (option: unknown) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
145
145
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
146
146
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
147
147
|
validateJpegQuality: (q: unknown) => void;
|
|
148
148
|
DEFAULT_TIMEOUT: number;
|
|
149
|
-
DEFAULT_CODEC: "
|
|
150
|
-
isAudioCodec: (codec: "
|
|
149
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
150
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "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: "
|
|
167
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
168
168
|
fps: number;
|
|
169
169
|
numberOfGifLoops: number | null;
|
|
170
|
-
resolvedAudioCodec: "
|
|
170
|
+
resolvedAudioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
171
171
|
audioBitrate: string | null;
|
|
172
172
|
indent: boolean;
|
|
173
173
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
@@ -181,14 +181,14 @@ export declare const RenderInternals: {
|
|
|
181
181
|
getMinConcurrency: () => number;
|
|
182
182
|
getMaxConcurrency: () => number;
|
|
183
183
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
184
|
-
codec: "
|
|
184
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
185
185
|
preferLossless: boolean;
|
|
186
|
-
}) => "
|
|
186
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
187
187
|
defaultFileExtensionMap: {
|
|
188
|
-
|
|
188
|
+
h264: {
|
|
189
189
|
default: import("./file-extensions").FileExtension;
|
|
190
190
|
forAudioCodec: {
|
|
191
|
-
|
|
191
|
+
mp3: {
|
|
192
192
|
possible: import("./file-extensions").FileExtension[];
|
|
193
193
|
default: import("./file-extensions").FileExtension;
|
|
194
194
|
};
|
|
@@ -196,94 +196,94 @@ export declare const RenderInternals: {
|
|
|
196
196
|
possible: import("./file-extensions").FileExtension[];
|
|
197
197
|
default: import("./file-extensions").FileExtension;
|
|
198
198
|
};
|
|
199
|
+
"pcm-16": {
|
|
200
|
+
possible: import("./file-extensions").FileExtension[];
|
|
201
|
+
default: import("./file-extensions").FileExtension;
|
|
202
|
+
};
|
|
199
203
|
};
|
|
200
204
|
};
|
|
201
|
-
|
|
205
|
+
h265: {
|
|
202
206
|
default: import("./file-extensions").FileExtension;
|
|
203
207
|
forAudioCodec: {
|
|
204
|
-
|
|
208
|
+
aac: {
|
|
205
209
|
possible: import("./file-extensions").FileExtension[];
|
|
206
210
|
default: import("./file-extensions").FileExtension;
|
|
207
211
|
};
|
|
208
|
-
|
|
212
|
+
"pcm-16": {
|
|
209
213
|
possible: import("./file-extensions").FileExtension[];
|
|
210
214
|
default: import("./file-extensions").FileExtension;
|
|
211
215
|
};
|
|
212
216
|
};
|
|
213
217
|
};
|
|
214
|
-
|
|
218
|
+
vp8: {
|
|
215
219
|
default: import("./file-extensions").FileExtension;
|
|
216
220
|
forAudioCodec: {
|
|
217
221
|
"pcm-16": {
|
|
218
222
|
possible: import("./file-extensions").FileExtension[];
|
|
219
223
|
default: import("./file-extensions").FileExtension;
|
|
220
224
|
};
|
|
225
|
+
opus: {
|
|
226
|
+
possible: import("./file-extensions").FileExtension[];
|
|
227
|
+
default: import("./file-extensions").FileExtension;
|
|
228
|
+
};
|
|
221
229
|
};
|
|
222
230
|
};
|
|
223
|
-
|
|
231
|
+
vp9: {
|
|
224
232
|
default: import("./file-extensions").FileExtension;
|
|
225
233
|
forAudioCodec: {
|
|
226
234
|
"pcm-16": {
|
|
227
235
|
possible: import("./file-extensions").FileExtension[];
|
|
228
236
|
default: import("./file-extensions").FileExtension;
|
|
229
237
|
};
|
|
230
|
-
|
|
231
|
-
possible: import("./file-extensions").FileExtension[];
|
|
232
|
-
default: import("./file-extensions").FileExtension;
|
|
233
|
-
};
|
|
234
|
-
mp3: {
|
|
238
|
+
opus: {
|
|
235
239
|
possible: import("./file-extensions").FileExtension[];
|
|
236
240
|
default: import("./file-extensions").FileExtension;
|
|
237
241
|
};
|
|
238
242
|
};
|
|
239
243
|
};
|
|
240
|
-
|
|
244
|
+
mp3: {
|
|
241
245
|
default: import("./file-extensions").FileExtension;
|
|
242
246
|
forAudioCodec: {
|
|
243
|
-
|
|
247
|
+
mp3: {
|
|
244
248
|
possible: import("./file-extensions").FileExtension[];
|
|
245
249
|
default: import("./file-extensions").FileExtension;
|
|
246
250
|
};
|
|
247
|
-
|
|
251
|
+
"pcm-16": {
|
|
248
252
|
possible: import("./file-extensions").FileExtension[];
|
|
249
253
|
default: import("./file-extensions").FileExtension;
|
|
250
254
|
};
|
|
251
255
|
};
|
|
252
256
|
};
|
|
253
|
-
|
|
257
|
+
aac: {
|
|
254
258
|
default: import("./file-extensions").FileExtension;
|
|
255
259
|
forAudioCodec: {
|
|
256
|
-
|
|
260
|
+
aac: {
|
|
257
261
|
possible: import("./file-extensions").FileExtension[];
|
|
258
262
|
default: import("./file-extensions").FileExtension;
|
|
259
263
|
};
|
|
260
|
-
|
|
264
|
+
"pcm-16": {
|
|
261
265
|
possible: import("./file-extensions").FileExtension[];
|
|
262
266
|
default: import("./file-extensions").FileExtension;
|
|
263
267
|
};
|
|
264
268
|
};
|
|
265
269
|
};
|
|
266
|
-
|
|
270
|
+
wav: {
|
|
267
271
|
default: import("./file-extensions").FileExtension;
|
|
268
272
|
forAudioCodec: {
|
|
269
273
|
"pcm-16": {
|
|
270
274
|
possible: import("./file-extensions").FileExtension[];
|
|
271
275
|
default: import("./file-extensions").FileExtension;
|
|
272
276
|
};
|
|
273
|
-
opus: {
|
|
274
|
-
possible: import("./file-extensions").FileExtension[];
|
|
275
|
-
default: import("./file-extensions").FileExtension;
|
|
276
|
-
};
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
prores: {
|
|
280
280
|
default: import("./file-extensions").FileExtension;
|
|
281
281
|
forAudioCodec: {
|
|
282
|
-
|
|
282
|
+
aac: {
|
|
283
283
|
possible: import("./file-extensions").FileExtension[];
|
|
284
284
|
default: import("./file-extensions").FileExtension;
|
|
285
285
|
};
|
|
286
|
-
|
|
286
|
+
"pcm-16": {
|
|
287
287
|
possible: import("./file-extensions").FileExtension[];
|
|
288
288
|
default: import("./file-extensions").FileExtension;
|
|
289
289
|
};
|
|
@@ -292,11 +292,11 @@ export declare const RenderInternals: {
|
|
|
292
292
|
"h264-mkv": {
|
|
293
293
|
default: import("./file-extensions").FileExtension;
|
|
294
294
|
forAudioCodec: {
|
|
295
|
-
|
|
295
|
+
mp3: {
|
|
296
296
|
possible: import("./file-extensions").FileExtension[];
|
|
297
297
|
default: import("./file-extensions").FileExtension;
|
|
298
298
|
};
|
|
299
|
-
|
|
299
|
+
"pcm-16": {
|
|
300
300
|
possible: import("./file-extensions").FileExtension[];
|
|
301
301
|
default: import("./file-extensions").FileExtension;
|
|
302
302
|
};
|
|
@@ -305,11 +305,11 @@ export declare const RenderInternals: {
|
|
|
305
305
|
"h264-ts": {
|
|
306
306
|
default: import("./file-extensions").FileExtension;
|
|
307
307
|
forAudioCodec: {
|
|
308
|
-
|
|
308
|
+
aac: {
|
|
309
309
|
possible: import("./file-extensions").FileExtension[];
|
|
310
310
|
default: import("./file-extensions").FileExtension;
|
|
311
311
|
};
|
|
312
|
-
|
|
312
|
+
"pcm-16": {
|
|
313
313
|
possible: import("./file-extensions").FileExtension[];
|
|
314
314
|
default: import("./file-extensions").FileExtension;
|
|
315
315
|
};
|
|
@@ -333,10 +333,10 @@ export declare const RenderInternals: {
|
|
|
333
333
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
334
334
|
readonly wav: readonly ["pcm-16"];
|
|
335
335
|
};
|
|
336
|
-
makeFileExtensionMap: () => Record<string, ("
|
|
337
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "
|
|
336
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
337
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
338
338
|
getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
|
|
339
|
-
type: "
|
|
339
|
+
type: "compositor" | "ffmpeg" | "ffprobe";
|
|
340
340
|
indent: boolean;
|
|
341
341
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
342
342
|
binariesDirectory: string | null;
|
|
@@ -352,8 +352,8 @@ export declare const RenderInternals: {
|
|
|
352
352
|
}) => execa.ExecaChildProcess<string>;
|
|
353
353
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
354
354
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
355
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
356
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
355
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
356
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
357
357
|
DEFAULT_JPEG_QUALITY: number;
|
|
358
358
|
chalk: {
|
|
359
359
|
enabled: () => boolean;
|
|
@@ -452,7 +452,7 @@ export declare const RenderInternals: {
|
|
|
452
452
|
frame: number;
|
|
453
453
|
serializedInputPropsWithCustomSchema: string;
|
|
454
454
|
serializedResolvedPropsWithCustomSchema: string;
|
|
455
|
-
imageFormat: "
|
|
455
|
+
imageFormat: "jpeg" | "png" | "webp" | "pdf";
|
|
456
456
|
jpegQuality: number;
|
|
457
457
|
puppeteerInstance: HeadlessBrowser | null;
|
|
458
458
|
envVariables: Record<string, string>;
|
|
@@ -770,21 +770,21 @@ export declare const RenderInternals: {
|
|
|
770
770
|
hostsToTry: string[];
|
|
771
771
|
};
|
|
772
772
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
|
773
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
773
|
+
getExtensionFromAudioCodec: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus") => "mp3" | "aac" | "wav" | "opus";
|
|
774
774
|
makeFileExecutableIfItIsNot: (path: string) => void;
|
|
775
775
|
resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
776
|
-
setting: "
|
|
777
|
-
codec: "
|
|
776
|
+
setting: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
777
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
778
778
|
preferLossless: boolean;
|
|
779
779
|
separateAudioTo: string | null;
|
|
780
|
-
}) => "
|
|
780
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
781
781
|
getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
|
|
782
|
-
codec: "
|
|
782
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
783
783
|
assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
|
|
784
784
|
enforceAudioTrack: boolean;
|
|
785
785
|
muted: boolean;
|
|
786
|
-
}) => "
|
|
787
|
-
codecSupportsMedia: (codec: "
|
|
786
|
+
}) => "no" | "yes" | "maybe";
|
|
787
|
+
codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => {
|
|
788
788
|
video: boolean;
|
|
789
789
|
audio: boolean;
|
|
790
790
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.150",
|
|
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.150"
|
|
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-
|
|
48
|
-
"@remotion/compositor-linux-arm64-
|
|
49
|
-
"@remotion/compositor-
|
|
50
|
-
"@remotion/compositor-linux-x64-
|
|
51
|
-
"@remotion/compositor-
|
|
52
|
-
"@remotion/compositor-
|
|
46
|
+
"@remotion/compositor-darwin-x64": "4.0.150",
|
|
47
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.150",
|
|
48
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.150",
|
|
49
|
+
"@remotion/compositor-darwin-arm64": "4.0.150",
|
|
50
|
+
"@remotion/compositor-linux-x64-musl": "4.0.150",
|
|
51
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.150",
|
|
52
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.150"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"remotion",
|