@remotion/renderer 4.0.196 → 4.0.197
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 +35 -35
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -70,10 +70,10 @@ export declare const RenderInternals: {
|
|
|
70
70
|
width: number;
|
|
71
71
|
height: number;
|
|
72
72
|
scale: number;
|
|
73
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
73
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
74
74
|
wantsImageSequence: boolean;
|
|
75
75
|
}) => void;
|
|
76
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
76
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
77
77
|
tmpDir: (str: string) => string;
|
|
78
78
|
deleteDirectory: (directory: string) => void;
|
|
79
79
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -130,7 +130,7 @@ export declare const RenderInternals: {
|
|
|
130
130
|
};
|
|
131
131
|
registerErrorSymbolicationLock: () => number;
|
|
132
132
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
133
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
133
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
134
134
|
mimeContentType: typeof mimeContentType;
|
|
135
135
|
mimeLookup: typeof mimeLookup;
|
|
136
136
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -144,11 +144,11 @@ export declare const RenderInternals: {
|
|
|
144
144
|
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
145
145
|
validateOpenGlRenderer: (option: unknown) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
146
146
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
147
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
147
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
148
148
|
validateJpegQuality: (q: unknown) => void;
|
|
149
149
|
DEFAULT_TIMEOUT: number;
|
|
150
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
151
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
150
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
151
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null | undefined) => boolean;
|
|
152
152
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
153
153
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
154
154
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -165,10 +165,10 @@ export declare const RenderInternals: {
|
|
|
165
165
|
output: string;
|
|
166
166
|
onProgress: (p: number) => void;
|
|
167
167
|
numberOfFrames: number;
|
|
168
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
168
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
169
169
|
fps: number;
|
|
170
170
|
numberOfGifLoops: number | null;
|
|
171
|
-
resolvedAudioCodec: "
|
|
171
|
+
resolvedAudioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
172
172
|
audioBitrate: string | null;
|
|
173
173
|
indent: boolean;
|
|
174
174
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
@@ -182,18 +182,18 @@ export declare const RenderInternals: {
|
|
|
182
182
|
getMinConcurrency: () => number;
|
|
183
183
|
getMaxConcurrency: () => number;
|
|
184
184
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
185
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
185
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
186
186
|
preferLossless: boolean;
|
|
187
|
-
}) => "
|
|
187
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
188
188
|
defaultFileExtensionMap: {
|
|
189
189
|
h264: {
|
|
190
190
|
default: import("./file-extensions").FileExtension;
|
|
191
191
|
forAudioCodec: {
|
|
192
|
-
|
|
192
|
+
mp3: {
|
|
193
193
|
possible: import("./file-extensions").FileExtension[];
|
|
194
194
|
default: import("./file-extensions").FileExtension;
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
aac: {
|
|
197
197
|
possible: import("./file-extensions").FileExtension[];
|
|
198
198
|
default: import("./file-extensions").FileExtension;
|
|
199
199
|
};
|
|
@@ -219,11 +219,11 @@ export declare const RenderInternals: {
|
|
|
219
219
|
vp8: {
|
|
220
220
|
default: import("./file-extensions").FileExtension;
|
|
221
221
|
forAudioCodec: {
|
|
222
|
-
|
|
222
|
+
"pcm-16": {
|
|
223
223
|
possible: import("./file-extensions").FileExtension[];
|
|
224
224
|
default: import("./file-extensions").FileExtension;
|
|
225
225
|
};
|
|
226
|
-
|
|
226
|
+
opus: {
|
|
227
227
|
possible: import("./file-extensions").FileExtension[];
|
|
228
228
|
default: import("./file-extensions").FileExtension;
|
|
229
229
|
};
|
|
@@ -232,20 +232,20 @@ export declare const RenderInternals: {
|
|
|
232
232
|
vp9: {
|
|
233
233
|
default: import("./file-extensions").FileExtension;
|
|
234
234
|
forAudioCodec: {
|
|
235
|
-
|
|
235
|
+
"pcm-16": {
|
|
236
236
|
possible: import("./file-extensions").FileExtension[];
|
|
237
237
|
default: import("./file-extensions").FileExtension;
|
|
238
238
|
};
|
|
239
|
-
|
|
239
|
+
opus: {
|
|
240
240
|
possible: import("./file-extensions").FileExtension[];
|
|
241
241
|
default: import("./file-extensions").FileExtension;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
};
|
|
245
|
-
|
|
245
|
+
mp3: {
|
|
246
246
|
default: import("./file-extensions").FileExtension;
|
|
247
247
|
forAudioCodec: {
|
|
248
|
-
|
|
248
|
+
mp3: {
|
|
249
249
|
possible: import("./file-extensions").FileExtension[];
|
|
250
250
|
default: import("./file-extensions").FileExtension;
|
|
251
251
|
};
|
|
@@ -268,22 +268,22 @@ export declare const RenderInternals: {
|
|
|
268
268
|
};
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
|
-
|
|
271
|
+
wav: {
|
|
272
272
|
default: import("./file-extensions").FileExtension;
|
|
273
273
|
forAudioCodec: {
|
|
274
|
-
mp3: {
|
|
275
|
-
possible: import("./file-extensions").FileExtension[];
|
|
276
|
-
default: import("./file-extensions").FileExtension;
|
|
277
|
-
};
|
|
278
274
|
"pcm-16": {
|
|
279
275
|
possible: import("./file-extensions").FileExtension[];
|
|
280
276
|
default: import("./file-extensions").FileExtension;
|
|
281
277
|
};
|
|
282
278
|
};
|
|
283
279
|
};
|
|
284
|
-
|
|
280
|
+
prores: {
|
|
285
281
|
default: import("./file-extensions").FileExtension;
|
|
286
282
|
forAudioCodec: {
|
|
283
|
+
aac: {
|
|
284
|
+
possible: import("./file-extensions").FileExtension[];
|
|
285
|
+
default: import("./file-extensions").FileExtension;
|
|
286
|
+
};
|
|
287
287
|
"pcm-16": {
|
|
288
288
|
possible: import("./file-extensions").FileExtension[];
|
|
289
289
|
default: import("./file-extensions").FileExtension;
|
|
@@ -335,10 +335,10 @@ export declare const RenderInternals: {
|
|
|
335
335
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
336
336
|
readonly wav: readonly ["pcm-16"];
|
|
337
337
|
};
|
|
338
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
339
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
338
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
339
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
340
340
|
getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
|
|
341
|
-
type: "
|
|
341
|
+
type: "ffmpeg" | "ffprobe" | "compositor";
|
|
342
342
|
indent: boolean;
|
|
343
343
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
344
344
|
binariesDirectory: string | null;
|
|
@@ -354,7 +354,7 @@ export declare const RenderInternals: {
|
|
|
354
354
|
}) => execa.ExecaChildProcess<string>;
|
|
355
355
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
356
356
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
357
|
-
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "
|
|
357
|
+
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "webp" | "pdf";
|
|
358
358
|
DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
|
|
359
359
|
DEFAULT_JPEG_QUALITY: number;
|
|
360
360
|
chalk: {
|
|
@@ -453,7 +453,7 @@ export declare const RenderInternals: {
|
|
|
453
453
|
frame: number;
|
|
454
454
|
serializedInputPropsWithCustomSchema: string;
|
|
455
455
|
serializedResolvedPropsWithCustomSchema: string;
|
|
456
|
-
imageFormat: "png" | "jpeg" | "
|
|
456
|
+
imageFormat: "png" | "jpeg" | "webp" | "pdf";
|
|
457
457
|
jpegQuality: number;
|
|
458
458
|
puppeteerInstance: HeadlessBrowser | null;
|
|
459
459
|
envVariables: Record<string, string>;
|
|
@@ -909,21 +909,21 @@ export declare const RenderInternals: {
|
|
|
909
909
|
hostsToTry: string[];
|
|
910
910
|
};
|
|
911
911
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
|
912
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
912
|
+
getExtensionFromAudioCodec: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus") => "mp3" | "aac" | "wav" | "opus";
|
|
913
913
|
makeFileExecutableIfItIsNot: (path: string) => void;
|
|
914
914
|
resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
915
|
-
setting: "
|
|
916
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
915
|
+
setting: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
916
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
917
917
|
preferLossless: boolean;
|
|
918
918
|
separateAudioTo: string | null;
|
|
919
|
-
}) => "
|
|
919
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
920
920
|
getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
|
|
921
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
921
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
922
922
|
assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
|
|
923
923
|
enforceAudioTrack: boolean;
|
|
924
924
|
muted: boolean;
|
|
925
925
|
}) => "yes" | "maybe" | "no";
|
|
926
|
-
codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
926
|
+
codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => {
|
|
927
927
|
video: boolean;
|
|
928
928
|
audio: boolean;
|
|
929
929
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.197",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"@remotion/streaming": "4.0.
|
|
21
|
+
"remotion": "4.0.197",
|
|
22
|
+
"@remotion/streaming": "4.0.197"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@types/ws": "8.5.10"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@remotion/compositor-
|
|
38
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
39
|
-
"@remotion/compositor-
|
|
40
|
-
"@remotion/compositor-
|
|
41
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
42
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
43
|
-
"@remotion/compositor-
|
|
37
|
+
"@remotion/compositor-darwin-x64": "4.0.197",
|
|
38
|
+
"@remotion/compositor-darwin-arm64": "4.0.197",
|
|
39
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.197",
|
|
40
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.197",
|
|
41
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.197",
|
|
42
|
+
"@remotion/compositor-linux-x64-musl": "4.0.197",
|
|
43
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.197"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"remotion",
|