@remotion/renderer 4.0.26 → 4.0.27
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 +22 -22
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/get-silent-parts.d.ts +1 -1
- package/dist/index.d.ts +44 -40
- package/dist/logger.d.ts +1 -1
- package/dist/validate-concurrency.d.ts +5 -1
- package/dist/validate-concurrency.js +8 -6
- 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" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
4
4
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "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" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | 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"];
|
|
@@ -79,10 +79,10 @@ export declare const BrowserSafeApis: {
|
|
|
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
|
};
|
|
@@ -92,10 +92,10 @@ export declare const BrowserSafeApis: {
|
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
mp3: {
|
|
96
96
|
default: import("./file-extensions").FileExtension;
|
|
97
97
|
forAudioCodec: {
|
|
98
|
-
|
|
98
|
+
mp3: {
|
|
99
99
|
possible: import("./file-extensions").FileExtension[];
|
|
100
100
|
default: import("./file-extensions").FileExtension;
|
|
101
101
|
};
|
|
@@ -105,22 +105,22 @@ export declare const BrowserSafeApis: {
|
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
aac: {
|
|
109
109
|
default: import("./file-extensions").FileExtension;
|
|
110
110
|
forAudioCodec: {
|
|
111
|
+
aac: {
|
|
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;
|
|
@@ -162,6 +162,10 @@ export declare const BrowserSafeApis: {
|
|
|
162
162
|
compressed: "pcm-16" | "opus" | null;
|
|
163
163
|
lossless: "pcm-16" | "opus" | null;
|
|
164
164
|
};
|
|
165
|
+
prores: {
|
|
166
|
+
compressed: "aac" | "pcm-16" | null;
|
|
167
|
+
lossless: "aac" | "pcm-16" | null;
|
|
168
|
+
};
|
|
165
169
|
mp3: {
|
|
166
170
|
compressed: "mp3" | "pcm-16" | null;
|
|
167
171
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -174,10 +178,6 @@ export declare const BrowserSafeApis: {
|
|
|
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,8 +187,8 @@ 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" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
|
|
191
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
192
192
|
codec: T_1;
|
|
193
193
|
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
194
194
|
extension: string;
|
|
@@ -358,6 +358,6 @@ export declare const BrowserSafeApis: {
|
|
|
358
358
|
type: number | null;
|
|
359
359
|
}];
|
|
360
360
|
};
|
|
361
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
362
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
361
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
362
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
363
363
|
};
|
|
@@ -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" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
|
|
5
|
+
export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif")[]>;
|
|
6
6
|
export declare const defaultCodecsForFileExtension: Record<FileExtension, Codec>;
|
|
@@ -3,6 +3,6 @@ import type { LogLevel } from './log-level';
|
|
|
3
3
|
export declare const getSilentParts: ({ src, noiseThresholdInDecibels: passedNoiseThresholdInDecibels, minDurationInSeconds: passedMinDuration, logLevel, }: {
|
|
4
4
|
src: string;
|
|
5
5
|
minDurationInSeconds?: number | undefined;
|
|
6
|
-
logLevel?: "
|
|
6
|
+
logLevel?: "verbose" | "info" | "warn" | "error" | undefined;
|
|
7
7
|
noiseThresholdInDecibels?: number | undefined;
|
|
8
8
|
}) => Promise<GetSilentPartsResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare const RenderInternals: {
|
|
|
47
47
|
downloadMap: import("./assets/download-map").DownloadMap;
|
|
48
48
|
remotionRoot: string;
|
|
49
49
|
concurrency: number;
|
|
50
|
-
logLevel: "
|
|
50
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
51
51
|
indent: boolean;
|
|
52
52
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
53
53
|
}) => Promise<{
|
|
@@ -59,9 +59,9 @@ export declare const RenderInternals: {
|
|
|
59
59
|
width: number;
|
|
60
60
|
height: number;
|
|
61
61
|
scale: number;
|
|
62
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
62
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
63
63
|
}) => void;
|
|
64
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
64
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
65
65
|
tmpDir: (str: string) => string;
|
|
66
66
|
deleteDirectory: (directory: string) => void;
|
|
67
67
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -111,23 +111,27 @@ export declare const RenderInternals: {
|
|
|
111
111
|
};
|
|
112
112
|
registerErrorSymbolicationLock: () => number;
|
|
113
113
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
114
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
114
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
115
115
|
mimeContentType: typeof mimeContentType;
|
|
116
116
|
mimeLookup: typeof mimeLookup;
|
|
117
|
-
validateConcurrency: (value
|
|
117
|
+
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
118
|
+
value: unknown;
|
|
119
|
+
setting: string;
|
|
120
|
+
checkIfValidForCurrentMachine: boolean;
|
|
121
|
+
}) => void;
|
|
118
122
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
119
123
|
DEFAULT_BROWSER: "chrome";
|
|
120
124
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
121
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
122
|
-
validateOpenGlRenderer: (option: "
|
|
125
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
126
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
123
127
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
124
128
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
125
129
|
validateJpegQuality: (q: number | undefined) => void;
|
|
126
130
|
DEFAULT_TIMEOUT: number;
|
|
127
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
128
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
131
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
132
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
129
133
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
130
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
134
|
+
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
131
135
|
isValidLogLevel: (level: string) => boolean;
|
|
132
136
|
perf: typeof perf;
|
|
133
137
|
convertToPositiveFrameIndex: ({ frame, durationInFrames, }: {
|
|
@@ -142,7 +146,7 @@ export declare const RenderInternals: {
|
|
|
142
146
|
output: string;
|
|
143
147
|
onProgress: (p: number) => void;
|
|
144
148
|
numberOfFrames: number;
|
|
145
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
149
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
146
150
|
fps: number;
|
|
147
151
|
numberOfGifLoops: number | null;
|
|
148
152
|
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
@@ -150,7 +154,7 @@ export declare const RenderInternals: {
|
|
|
150
154
|
getMinConcurrency: () => number;
|
|
151
155
|
getMaxConcurrency: () => any;
|
|
152
156
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
153
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
157
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
154
158
|
preferLossless: boolean;
|
|
155
159
|
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
156
160
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
@@ -211,10 +215,10 @@ export declare const RenderInternals: {
|
|
|
211
215
|
};
|
|
212
216
|
};
|
|
213
217
|
};
|
|
214
|
-
|
|
218
|
+
prores: {
|
|
215
219
|
default: import("./file-extensions").FileExtension;
|
|
216
220
|
forAudioCodec: {
|
|
217
|
-
|
|
221
|
+
aac: {
|
|
218
222
|
possible: import("./file-extensions").FileExtension[];
|
|
219
223
|
default: import("./file-extensions").FileExtension;
|
|
220
224
|
};
|
|
@@ -224,10 +228,10 @@ export declare const RenderInternals: {
|
|
|
224
228
|
};
|
|
225
229
|
};
|
|
226
230
|
};
|
|
227
|
-
|
|
231
|
+
mp3: {
|
|
228
232
|
default: import("./file-extensions").FileExtension;
|
|
229
233
|
forAudioCodec: {
|
|
230
|
-
|
|
234
|
+
mp3: {
|
|
231
235
|
possible: import("./file-extensions").FileExtension[];
|
|
232
236
|
default: import("./file-extensions").FileExtension;
|
|
233
237
|
};
|
|
@@ -237,22 +241,22 @@ export declare const RenderInternals: {
|
|
|
237
241
|
};
|
|
238
242
|
};
|
|
239
243
|
};
|
|
240
|
-
|
|
244
|
+
aac: {
|
|
241
245
|
default: import("./file-extensions").FileExtension;
|
|
242
246
|
forAudioCodec: {
|
|
247
|
+
aac: {
|
|
248
|
+
possible: import("./file-extensions").FileExtension[];
|
|
249
|
+
default: import("./file-extensions").FileExtension;
|
|
250
|
+
};
|
|
243
251
|
"pcm-16": {
|
|
244
252
|
possible: import("./file-extensions").FileExtension[];
|
|
245
253
|
default: import("./file-extensions").FileExtension;
|
|
246
254
|
};
|
|
247
255
|
};
|
|
248
256
|
};
|
|
249
|
-
|
|
257
|
+
wav: {
|
|
250
258
|
default: import("./file-extensions").FileExtension;
|
|
251
259
|
forAudioCodec: {
|
|
252
|
-
aac: {
|
|
253
|
-
possible: import("./file-extensions").FileExtension[];
|
|
254
|
-
default: import("./file-extensions").FileExtension;
|
|
255
|
-
};
|
|
256
260
|
"pcm-16": {
|
|
257
261
|
possible: import("./file-extensions").FileExtension[];
|
|
258
262
|
default: import("./file-extensions").FileExtension;
|
|
@@ -289,8 +293,8 @@ export declare const RenderInternals: {
|
|
|
289
293
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
290
294
|
readonly wav: readonly ["pcm-16"];
|
|
291
295
|
};
|
|
292
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
293
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
296
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif")[]>;
|
|
297
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
|
|
294
298
|
getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd") => string;
|
|
295
299
|
callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
|
|
296
300
|
dynamicLibraryPathOptions: () => {
|
|
@@ -307,8 +311,8 @@ export declare const RenderInternals: {
|
|
|
307
311
|
};
|
|
308
312
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
309
313
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
310
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
311
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
314
|
+
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
|
|
315
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "png" | "jpeg";
|
|
312
316
|
DEFAULT_JPEG_QUALITY: number;
|
|
313
317
|
chalk: {
|
|
314
318
|
enabled: () => boolean;
|
|
@@ -364,30 +368,30 @@ export declare const RenderInternals: {
|
|
|
364
368
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
365
369
|
verboseAdvanced: (options: {
|
|
366
370
|
indent: boolean;
|
|
367
|
-
logLevel: "
|
|
371
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
368
372
|
} & {
|
|
369
373
|
tag?: string | undefined;
|
|
370
374
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
371
375
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
372
376
|
infoAdvanced: (options: {
|
|
373
377
|
indent: boolean;
|
|
374
|
-
logLevel: "
|
|
378
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
375
379
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
376
380
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
377
381
|
warnAdvanced: (options: {
|
|
378
382
|
indent: boolean;
|
|
379
|
-
logLevel: "
|
|
383
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
380
384
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
381
385
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
382
386
|
errorAdvanced: (options: {
|
|
383
387
|
indent: boolean;
|
|
384
|
-
logLevel: "
|
|
388
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
385
389
|
} & {
|
|
386
390
|
tag?: string | undefined;
|
|
387
391
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
388
392
|
};
|
|
389
|
-
getLogLevel: () => "
|
|
390
|
-
setLogLevel: (newLogLevel: "
|
|
393
|
+
getLogLevel: () => "verbose" | "info" | "warn" | "error";
|
|
394
|
+
setLogLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
|
|
391
395
|
INDENT_TOKEN: string;
|
|
392
396
|
isColorSupported: () => boolean;
|
|
393
397
|
HeadlessBrowser: typeof HeadlessBrowser;
|
|
@@ -396,7 +400,7 @@ export declare const RenderInternals: {
|
|
|
396
400
|
port: number | null;
|
|
397
401
|
remotionRoot: string;
|
|
398
402
|
concurrency: number;
|
|
399
|
-
logLevel: "
|
|
403
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
400
404
|
indent: boolean;
|
|
401
405
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
402
406
|
}) => Promise<import("./prepare-server").RemotionServer>;
|
|
@@ -405,7 +409,7 @@ export declare const RenderInternals: {
|
|
|
405
409
|
port: number | null;
|
|
406
410
|
remotionRoot: string;
|
|
407
411
|
concurrency: number;
|
|
408
|
-
logLevel: "
|
|
412
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
409
413
|
indent: boolean;
|
|
410
414
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
411
415
|
}, { onDownload, onError, }: {
|
|
@@ -421,7 +425,7 @@ export declare const RenderInternals: {
|
|
|
421
425
|
frame: number;
|
|
422
426
|
serializedInputPropsWithCustomSchema: string;
|
|
423
427
|
serializedResolvedPropsWithCustomSchema: string;
|
|
424
|
-
imageFormat: "
|
|
428
|
+
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
425
429
|
jpegQuality: number;
|
|
426
430
|
puppeteerInstance: HeadlessBrowser | null;
|
|
427
431
|
envVariables: Record<string, string>;
|
|
@@ -435,7 +439,7 @@ export declare const RenderInternals: {
|
|
|
435
439
|
cancelSignal: import("./make-cancel-signal").CancelSignal | null;
|
|
436
440
|
indent: boolean;
|
|
437
441
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
438
|
-
logLevel: "
|
|
442
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
439
443
|
serveUrl: string;
|
|
440
444
|
port: number | null;
|
|
441
445
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
@@ -456,7 +460,7 @@ export declare const RenderInternals: {
|
|
|
456
460
|
viewport: import("./browser/PuppeteerViewport").Viewport | null;
|
|
457
461
|
indent: boolean;
|
|
458
462
|
browser: "chrome";
|
|
459
|
-
logLevel: "
|
|
463
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
460
464
|
}) => Promise<HeadlessBrowser>;
|
|
461
465
|
internalSelectComposition: (options: {
|
|
462
466
|
serializedInputPropsWithCustomSchema: string;
|
|
@@ -469,7 +473,7 @@ export declare const RenderInternals: {
|
|
|
469
473
|
port: number | null;
|
|
470
474
|
indent: boolean;
|
|
471
475
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
472
|
-
logLevel: "
|
|
476
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
473
477
|
serveUrl: string;
|
|
474
478
|
id: string;
|
|
475
479
|
} & import("./options/option").ToOptions<readonly [{
|
|
@@ -494,7 +498,7 @@ export declare const RenderInternals: {
|
|
|
494
498
|
port: number | null;
|
|
495
499
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
496
500
|
indent: boolean;
|
|
497
|
-
logLevel: "
|
|
501
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
498
502
|
serveUrlOrWebpackUrl: string;
|
|
499
503
|
} & import("./options/option").ToOptions<readonly [{
|
|
500
504
|
name: string;
|
|
@@ -510,5 +514,5 @@ export declare const RenderInternals: {
|
|
|
510
514
|
slowestFrames: import("./render-media").SlowFrame[];
|
|
511
515
|
}>;
|
|
512
516
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader"];
|
|
513
|
-
copyImageToClipboard: (src: string, logLevel: "
|
|
517
|
+
copyImageToClipboard: (src: string, logLevel: "verbose" | "info" | "warn" | "error") => Promise<void>;
|
|
514
518
|
};
|
package/dist/logger.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export declare const Log: {
|
|
|
19
19
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
20
20
|
errorAdvanced: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void;
|
|
21
21
|
};
|
|
22
|
-
export declare const getLogLevel: () => "
|
|
22
|
+
export declare const getLogLevel: () => "verbose" | "info" | "warn" | "error";
|
|
23
23
|
export declare const setLogLevel: (newLogLevel: LogLevel) => void;
|
|
24
24
|
export {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export declare const validateConcurrency: (value
|
|
1
|
+
export declare const validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
2
|
+
value: unknown;
|
|
3
|
+
setting: string;
|
|
4
|
+
checkIfValidForCurrentMachine: boolean;
|
|
5
|
+
}) => void;
|
|
2
6
|
export declare const getMaxConcurrency: () => any;
|
|
3
7
|
export declare const getMinConcurrency: () => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMinConcurrency = exports.getMaxConcurrency = exports.validateConcurrency = void 0;
|
|
4
|
-
const validateConcurrency = (value,
|
|
4
|
+
const validateConcurrency = ({ setting, value, checkIfValidForCurrentMachine, }) => {
|
|
5
5
|
if (typeof value === 'undefined') {
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
@@ -15,11 +15,13 @@ const validateConcurrency = (value, setting) => {
|
|
|
15
15
|
if (value % 1 !== 0) {
|
|
16
16
|
throw new Error(setting + ' must be an integer, but is ' + value);
|
|
17
17
|
}
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
if (checkIfValidForCurrentMachine) {
|
|
19
|
+
if (value < (0, exports.getMinConcurrency)()) {
|
|
20
|
+
throw new Error(`${setting} must be at least ${(0, exports.getMinConcurrency)()}, but is ${JSON.stringify(value)}`);
|
|
21
|
+
}
|
|
22
|
+
if (value > (0, exports.getMaxConcurrency)()) {
|
|
23
|
+
throw new Error(`${setting} is set higher than the amount of CPU cores available. Available CPU cores: ${(0, exports.getMaxConcurrency)()}, value set: ${value}`);
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
else if (!/^\d+(\.\d+)?%$/.test(value)) {
|
|
@@ -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" | "mp3" | "aac" | "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.27",
|
|
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.27"
|
|
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-
|
|
44
|
-
"@remotion/compositor-linux-arm64-
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-
|
|
47
|
-
"@remotion/compositor-
|
|
48
|
-
"@remotion/compositor-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.27",
|
|
44
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.27",
|
|
45
|
+
"@remotion/compositor-darwin-arm64": "4.0.27",
|
|
46
|
+
"@remotion/compositor-darwin-x64": "4.0.27",
|
|
47
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.27",
|
|
48
|
+
"@remotion/compositor-linux-x64-musl": "4.0.27",
|
|
49
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.27"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|