@remotion/renderer 4.0.11 → 4.1.0-alpha10
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/index.d.ts +39 -39
- package/dist/index.js +1 -0
- package/dist/logger.d.ts +1 -1
- package/dist/serialize-props.d.ts +6 -0
- package/dist/serialize-props.js +36 -0
- package/dist/validate-opengl-renderer.d.ts +2 -3
- package/dist/validate-opengl-renderer.js +9 -4
- package/dist/validate-output-filename.d.ts +1 -1
- package/package.json +9 -9
package/dist/client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const BrowserSafeApis: {
|
|
2
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
2
|
+
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;
|
|
3
3
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
4
4
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
5
|
-
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
6
|
-
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
7
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
5
|
+
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => number;
|
|
6
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => [number, number];
|
|
7
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
8
8
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
9
9
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
10
10
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -73,10 +73,10 @@ export declare const BrowserSafeApis: {
|
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
prores: {
|
|
77
77
|
default: import("./file-extensions").FileExtension;
|
|
78
78
|
forAudioCodec: {
|
|
79
|
-
|
|
79
|
+
aac: {
|
|
80
80
|
possible: import("./file-extensions").FileExtension[];
|
|
81
81
|
default: import("./file-extensions").FileExtension;
|
|
82
82
|
};
|
|
@@ -86,10 +86,10 @@ export declare const BrowserSafeApis: {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
mp3: {
|
|
90
90
|
default: import("./file-extensions").FileExtension;
|
|
91
91
|
forAudioCodec: {
|
|
92
|
-
|
|
92
|
+
mp3: {
|
|
93
93
|
possible: import("./file-extensions").FileExtension[];
|
|
94
94
|
default: import("./file-extensions").FileExtension;
|
|
95
95
|
};
|
|
@@ -99,22 +99,22 @@ export declare const BrowserSafeApis: {
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
aac: {
|
|
103
103
|
default: import("./file-extensions").FileExtension;
|
|
104
104
|
forAudioCodec: {
|
|
105
|
+
aac: {
|
|
106
|
+
possible: import("./file-extensions").FileExtension[];
|
|
107
|
+
default: import("./file-extensions").FileExtension;
|
|
108
|
+
};
|
|
105
109
|
"pcm-16": {
|
|
106
110
|
possible: import("./file-extensions").FileExtension[];
|
|
107
111
|
default: import("./file-extensions").FileExtension;
|
|
108
112
|
};
|
|
109
113
|
};
|
|
110
114
|
};
|
|
111
|
-
|
|
115
|
+
wav: {
|
|
112
116
|
default: import("./file-extensions").FileExtension;
|
|
113
117
|
forAudioCodec: {
|
|
114
|
-
aac: {
|
|
115
|
-
possible: import("./file-extensions").FileExtension[];
|
|
116
|
-
default: import("./file-extensions").FileExtension;
|
|
117
|
-
};
|
|
118
118
|
"pcm-16": {
|
|
119
119
|
possible: import("./file-extensions").FileExtension[];
|
|
120
120
|
default: import("./file-extensions").FileExtension;
|
|
@@ -152,6 +152,10 @@ export declare const BrowserSafeApis: {
|
|
|
152
152
|
compressed: "pcm-16" | "opus" | null;
|
|
153
153
|
lossless: "pcm-16" | "opus" | null;
|
|
154
154
|
};
|
|
155
|
+
prores: {
|
|
156
|
+
compressed: "aac" | "pcm-16" | null;
|
|
157
|
+
lossless: "aac" | "pcm-16" | null;
|
|
158
|
+
};
|
|
155
159
|
mp3: {
|
|
156
160
|
compressed: "mp3" | "pcm-16" | null;
|
|
157
161
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -164,10 +168,6 @@ export declare const BrowserSafeApis: {
|
|
|
164
168
|
compressed: "pcm-16" | null;
|
|
165
169
|
lossless: "pcm-16" | null;
|
|
166
170
|
};
|
|
167
|
-
prores: {
|
|
168
|
-
compressed: "aac" | "pcm-16" | null;
|
|
169
|
-
lossless: "aac" | "pcm-16" | null;
|
|
170
|
-
};
|
|
171
171
|
"h264-mkv": {
|
|
172
172
|
compressed: "pcm-16" | null;
|
|
173
173
|
lossless: "pcm-16" | null;
|
|
@@ -177,8 +177,8 @@ export declare const BrowserSafeApis: {
|
|
|
177
177
|
lossless: null;
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
181
|
-
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
180
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
|
|
181
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
182
182
|
codec: T_1;
|
|
183
183
|
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
184
184
|
extension: string;
|
|
@@ -194,6 +194,6 @@ export declare const BrowserSafeApis: {
|
|
|
194
194
|
muteOption: import(".").RemotionOption;
|
|
195
195
|
videoCodecOption: import(".").RemotionOption;
|
|
196
196
|
};
|
|
197
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
198
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
197
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
198
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
199
199
|
};
|
|
@@ -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>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import execa from 'execa';
|
|
3
2
|
import { HeadlessBrowser } from './browser/Browser';
|
|
4
3
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -44,7 +43,7 @@ export declare const RenderInternals: {
|
|
|
44
43
|
downloadMap: import("./assets/download-map").DownloadMap;
|
|
45
44
|
remotionRoot: string;
|
|
46
45
|
concurrency: number;
|
|
47
|
-
logLevel: "
|
|
46
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
48
47
|
indent: boolean;
|
|
49
48
|
}) => Promise<{
|
|
50
49
|
port: number;
|
|
@@ -55,9 +54,9 @@ export declare const RenderInternals: {
|
|
|
55
54
|
width: number;
|
|
56
55
|
height: number;
|
|
57
56
|
scale: number;
|
|
58
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
57
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
59
58
|
}) => void;
|
|
60
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
59
|
+
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;
|
|
61
60
|
tmpDir: (str: string) => string;
|
|
62
61
|
deleteDirectory: (directory: string) => void;
|
|
63
62
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -107,23 +106,23 @@ export declare const RenderInternals: {
|
|
|
107
106
|
};
|
|
108
107
|
registerErrorSymbolicationLock: () => number;
|
|
109
108
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
110
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
109
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
111
110
|
mimeContentType: typeof mimeContentType;
|
|
112
111
|
mimeLookup: typeof mimeLookup;
|
|
113
112
|
validateConcurrency: (value: unknown, setting: string) => void;
|
|
114
113
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
115
114
|
DEFAULT_BROWSER: import("./browser").Browser;
|
|
116
115
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
117
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
118
|
-
validateOpenGlRenderer: (option: "
|
|
116
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
117
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
119
118
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
120
119
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
121
120
|
validateJpegQuality: (q: number | undefined) => void;
|
|
122
121
|
DEFAULT_TIMEOUT: number;
|
|
123
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
124
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
122
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
123
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
125
124
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
126
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
125
|
+
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
127
126
|
isValidLogLevel: (level: string) => boolean;
|
|
128
127
|
perf: typeof perf;
|
|
129
128
|
convertToPositiveFrameIndex: ({ frame, durationInFrames, }: {
|
|
@@ -138,7 +137,7 @@ export declare const RenderInternals: {
|
|
|
138
137
|
output: string;
|
|
139
138
|
onProgress: (p: number) => void;
|
|
140
139
|
numberOfFrames: number;
|
|
141
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
140
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
142
141
|
fps: number;
|
|
143
142
|
numberOfGifLoops: number | null;
|
|
144
143
|
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
@@ -146,7 +145,7 @@ export declare const RenderInternals: {
|
|
|
146
145
|
getMinConcurrency: () => number;
|
|
147
146
|
getMaxConcurrency: () => any;
|
|
148
147
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
149
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
148
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
|
|
150
149
|
preferLossless: boolean;
|
|
151
150
|
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
152
151
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
@@ -203,10 +202,10 @@ export declare const RenderInternals: {
|
|
|
203
202
|
};
|
|
204
203
|
};
|
|
205
204
|
};
|
|
206
|
-
|
|
205
|
+
prores: {
|
|
207
206
|
default: import("./file-extensions").FileExtension;
|
|
208
207
|
forAudioCodec: {
|
|
209
|
-
|
|
208
|
+
aac: {
|
|
210
209
|
possible: import("./file-extensions").FileExtension[];
|
|
211
210
|
default: import("./file-extensions").FileExtension;
|
|
212
211
|
};
|
|
@@ -216,10 +215,10 @@ export declare const RenderInternals: {
|
|
|
216
215
|
};
|
|
217
216
|
};
|
|
218
217
|
};
|
|
219
|
-
|
|
218
|
+
mp3: {
|
|
220
219
|
default: import("./file-extensions").FileExtension;
|
|
221
220
|
forAudioCodec: {
|
|
222
|
-
|
|
221
|
+
mp3: {
|
|
223
222
|
possible: import("./file-extensions").FileExtension[];
|
|
224
223
|
default: import("./file-extensions").FileExtension;
|
|
225
224
|
};
|
|
@@ -229,22 +228,22 @@ export declare const RenderInternals: {
|
|
|
229
228
|
};
|
|
230
229
|
};
|
|
231
230
|
};
|
|
232
|
-
|
|
231
|
+
aac: {
|
|
233
232
|
default: import("./file-extensions").FileExtension;
|
|
234
233
|
forAudioCodec: {
|
|
234
|
+
aac: {
|
|
235
|
+
possible: import("./file-extensions").FileExtension[];
|
|
236
|
+
default: import("./file-extensions").FileExtension;
|
|
237
|
+
};
|
|
235
238
|
"pcm-16": {
|
|
236
239
|
possible: import("./file-extensions").FileExtension[];
|
|
237
240
|
default: import("./file-extensions").FileExtension;
|
|
238
241
|
};
|
|
239
242
|
};
|
|
240
243
|
};
|
|
241
|
-
|
|
244
|
+
wav: {
|
|
242
245
|
default: import("./file-extensions").FileExtension;
|
|
243
246
|
forAudioCodec: {
|
|
244
|
-
aac: {
|
|
245
|
-
possible: import("./file-extensions").FileExtension[];
|
|
246
|
-
default: import("./file-extensions").FileExtension;
|
|
247
|
-
};
|
|
248
247
|
"pcm-16": {
|
|
249
248
|
possible: import("./file-extensions").FileExtension[];
|
|
250
249
|
default: import("./file-extensions").FileExtension;
|
|
@@ -277,8 +276,8 @@ export declare const RenderInternals: {
|
|
|
277
276
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
278
277
|
readonly wav: readonly ["pcm-16"];
|
|
279
278
|
};
|
|
280
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
281
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
279
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif")[]>;
|
|
280
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
|
|
282
281
|
getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd") => string;
|
|
283
282
|
callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
|
|
284
283
|
dynamicLibraryPathOptions: () => {
|
|
@@ -295,8 +294,8 @@ export declare const RenderInternals: {
|
|
|
295
294
|
};
|
|
296
295
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
297
296
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
298
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
299
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
297
|
+
DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
|
|
298
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
|
|
300
299
|
DEFAULT_JPEG_QUALITY: number;
|
|
301
300
|
chalk: {
|
|
302
301
|
enabled: () => boolean;
|
|
@@ -352,30 +351,30 @@ export declare const RenderInternals: {
|
|
|
352
351
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
353
352
|
verboseAdvanced: (options: {
|
|
354
353
|
indent: boolean;
|
|
355
|
-
logLevel: "
|
|
354
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
356
355
|
} & {
|
|
357
356
|
tag?: string | undefined;
|
|
358
357
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
359
358
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
360
359
|
infoAdvanced: (options: {
|
|
361
360
|
indent: boolean;
|
|
362
|
-
logLevel: "
|
|
361
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
363
362
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
364
363
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
365
364
|
warnAdvanced: (options: {
|
|
366
365
|
indent: boolean;
|
|
367
|
-
logLevel: "
|
|
366
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
368
367
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
369
368
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
370
369
|
errorAdvanced: (options: {
|
|
371
370
|
indent: boolean;
|
|
372
|
-
logLevel: "
|
|
371
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
373
372
|
} & {
|
|
374
373
|
tag?: string | undefined;
|
|
375
374
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
376
375
|
};
|
|
377
|
-
getLogLevel: () => "
|
|
378
|
-
setLogLevel: (newLogLevel: "
|
|
376
|
+
getLogLevel: () => "verbose" | "info" | "warn" | "error";
|
|
377
|
+
setLogLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
|
|
379
378
|
INDENT_TOKEN: string;
|
|
380
379
|
isColorSupported: () => boolean;
|
|
381
380
|
HeadlessBrowser: typeof HeadlessBrowser;
|
|
@@ -384,7 +383,7 @@ export declare const RenderInternals: {
|
|
|
384
383
|
port: number | null;
|
|
385
384
|
remotionRoot: string;
|
|
386
385
|
concurrency: number;
|
|
387
|
-
logLevel: "
|
|
386
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
388
387
|
indent: boolean;
|
|
389
388
|
}) => Promise<import("./prepare-server").RemotionServer>;
|
|
390
389
|
makeOrReuseServer: (server: import("./prepare-server").RemotionServer | undefined, config: {
|
|
@@ -392,7 +391,7 @@ export declare const RenderInternals: {
|
|
|
392
391
|
port: number | null;
|
|
393
392
|
remotionRoot: string;
|
|
394
393
|
concurrency: number;
|
|
395
|
-
logLevel: "
|
|
394
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
396
395
|
indent: boolean;
|
|
397
396
|
}, { onDownload, onError, }: {
|
|
398
397
|
onError: (err: Error) => void;
|
|
@@ -407,7 +406,7 @@ export declare const RenderInternals: {
|
|
|
407
406
|
frame: number;
|
|
408
407
|
serializedInputPropsWithCustomSchema: string;
|
|
409
408
|
serializedResolvedPropsWithCustomSchema: string;
|
|
410
|
-
imageFormat: "
|
|
409
|
+
imageFormat: "png" | "jpeg" | "pdf" | "webp";
|
|
411
410
|
jpegQuality: number;
|
|
412
411
|
puppeteerInstance: HeadlessBrowser | null;
|
|
413
412
|
envVariables: Record<string, string>;
|
|
@@ -421,7 +420,7 @@ export declare const RenderInternals: {
|
|
|
421
420
|
cancelSignal: import("./make-cancel-signal").CancelSignal | null;
|
|
422
421
|
indent: boolean;
|
|
423
422
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
424
|
-
logLevel: "
|
|
423
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
425
424
|
serveUrl: string;
|
|
426
425
|
port: number | null;
|
|
427
426
|
}) => Promise<{
|
|
@@ -434,7 +433,7 @@ export declare const RenderInternals: {
|
|
|
434
433
|
viewport: import("./browser/PuppeteerViewport").Viewport | null;
|
|
435
434
|
indent: boolean;
|
|
436
435
|
browser: import("./browser").Browser;
|
|
437
|
-
logLevel: "
|
|
436
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
438
437
|
}) => Promise<HeadlessBrowser>;
|
|
439
438
|
internalSelectComposition: (options: {
|
|
440
439
|
serializedInputPropsWithCustomSchema: string;
|
|
@@ -447,7 +446,7 @@ export declare const RenderInternals: {
|
|
|
447
446
|
port: number | null;
|
|
448
447
|
indent: boolean;
|
|
449
448
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
450
|
-
logLevel: "
|
|
449
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
451
450
|
serveUrl: string;
|
|
452
451
|
id: string;
|
|
453
452
|
}) => Promise<{
|
|
@@ -465,7 +464,7 @@ export declare const RenderInternals: {
|
|
|
465
464
|
port: number | null;
|
|
466
465
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
467
466
|
indent: boolean;
|
|
468
|
-
logLevel: "
|
|
467
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
469
468
|
serveUrlOrWebpackUrl: string;
|
|
470
469
|
}) => Promise<import("remotion").VideoConfig[]>;
|
|
471
470
|
internalRenderFrames: ({ browserExecutable, cancelSignal, chromiumOptions, composition, concurrency, envVariables, everyNthFrame, frameRange, imageFormat, indent, jpegQuality, muted, onBrowserLog, onDownload, onFrameBuffer, onFrameUpdate, onStart, outputDir, port, puppeteerInstance, scale, server, timeoutInMilliseconds, logLevel, webpackBundleOrServeUrl, serializedInputPropsWithCustomSchema, serializedResolvedPropsWithCustomSchema, }: import("./render-frames").InternalRenderFramesOptions) => Promise<import("./types").RenderFramesOutput>;
|
|
@@ -473,4 +472,5 @@ export declare const RenderInternals: {
|
|
|
473
472
|
buffer: Buffer | null;
|
|
474
473
|
slowestFrames: import("./render-media").SlowFrame[];
|
|
475
474
|
}>;
|
|
475
|
+
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader"];
|
|
476
476
|
};
|
package/dist/index.js
CHANGED
|
@@ -184,6 +184,7 @@ exports.RenderInternals = {
|
|
|
184
184
|
internalGetCompositions: get_compositions_1.internalGetCompositions,
|
|
185
185
|
internalRenderFrames: render_frames_1.internalRenderFrames,
|
|
186
186
|
internalRenderMedia: render_media_1.internalRenderMedia,
|
|
187
|
+
validOpenGlRenderers: validate_opengl_renderer_1.validOpenGlRenderers,
|
|
187
188
|
};
|
|
188
189
|
// Warn of potential performance issues with Apple Silicon (M1 chip under Rosetta)
|
|
189
190
|
(0, check_apple_silicon_1.checkNodeVersionAndWarnAboutRosetta)();
|
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 {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SerializedJSONWithCustomFields } from 'remotion';
|
|
2
|
+
export declare const serializeJSONWithDate: ({ data, indent, staticBase, }: {
|
|
3
|
+
data: Record<string, unknown>;
|
|
4
|
+
indent: number | undefined;
|
|
5
|
+
staticBase: string | null;
|
|
6
|
+
}) => SerializedJSONWithCustomFields;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serializeJSONWithDate = void 0;
|
|
4
|
+
// Keep in sync with /packages/core/src/input-props-serialization.ts
|
|
5
|
+
const DATE_TOKEN = 'remotion-date:';
|
|
6
|
+
const FILE_TOKEN = 'remotion-file:';
|
|
7
|
+
const serializeJSONWithDate = ({ data, indent, staticBase, }) => {
|
|
8
|
+
let customDateUsed = false;
|
|
9
|
+
let customFileUsed = false;
|
|
10
|
+
let mapUsed = false;
|
|
11
|
+
let setUsed = false;
|
|
12
|
+
const serializedString = JSON.stringify(data, function (key, value) {
|
|
13
|
+
const item = this[key];
|
|
14
|
+
if (item instanceof Date) {
|
|
15
|
+
customDateUsed = true;
|
|
16
|
+
return `${DATE_TOKEN}${item.toISOString()}`;
|
|
17
|
+
}
|
|
18
|
+
if (item instanceof Map) {
|
|
19
|
+
mapUsed = true;
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
if (item instanceof Set) {
|
|
23
|
+
setUsed = true;
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
if (typeof item === 'string' &&
|
|
27
|
+
staticBase !== null &&
|
|
28
|
+
item.startsWith(staticBase)) {
|
|
29
|
+
customFileUsed = true;
|
|
30
|
+
return `${FILE_TOKEN}${item.replace(staticBase + '/', '')}`;
|
|
31
|
+
}
|
|
32
|
+
return value;
|
|
33
|
+
}, indent);
|
|
34
|
+
return { serializedString, customDateUsed, customFileUsed, mapUsed, setUsed };
|
|
35
|
+
};
|
|
36
|
+
exports.serializeJSONWithDate = serializeJSONWithDate;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export type OpenGlRenderer = typeof
|
|
1
|
+
export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader"];
|
|
2
|
+
export type OpenGlRenderer = typeof validOpenGlRenderers[number];
|
|
3
3
|
export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
|
|
4
4
|
export declare const validateOpenGlRenderer: (option: OpenGlRenderer | null) => OpenGlRenderer | null;
|
|
5
|
-
export {};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateOpenGlRenderer = exports.DEFAULT_OPENGL_RENDERER = void 0;
|
|
4
|
-
|
|
3
|
+
exports.validateOpenGlRenderer = exports.DEFAULT_OPENGL_RENDERER = exports.validOpenGlRenderers = void 0;
|
|
4
|
+
exports.validOpenGlRenderers = [
|
|
5
|
+
'swangle',
|
|
6
|
+
'angle',
|
|
7
|
+
'egl',
|
|
8
|
+
'swiftshader',
|
|
9
|
+
];
|
|
5
10
|
exports.DEFAULT_OPENGL_RENDERER = null;
|
|
6
11
|
const validateOpenGlRenderer = (option) => {
|
|
7
12
|
if (option === null) {
|
|
8
13
|
return null;
|
|
9
14
|
}
|
|
10
|
-
if (!
|
|
11
|
-
throw new TypeError(`${option} is not a valid GL backend. Accepted values: ${
|
|
15
|
+
if (!exports.validOpenGlRenderers.includes(option)) {
|
|
16
|
+
throw new TypeError(`${option} is not a valid GL backend. Accepted values: ${exports.validOpenGlRenderers.join(', ')}`);
|
|
12
17
|
}
|
|
13
18
|
return option;
|
|
14
19
|
};
|
|
@@ -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.1.0-alpha10",
|
|
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.1.0-alpha10"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"zod": "^3.21.4"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-darwin-
|
|
47
|
-
"@remotion/compositor-linux-
|
|
48
|
-
"@remotion/compositor-linux-
|
|
49
|
-
"@remotion/compositor-
|
|
50
|
-
"@remotion/compositor-linux-x64-musl": "4.0
|
|
51
|
-
"@remotion/compositor-win32-x64-msvc": "4.0
|
|
45
|
+
"@remotion/compositor-darwin-arm64": "4.1.0-alpha10",
|
|
46
|
+
"@remotion/compositor-darwin-x64": "4.1.0-alpha10",
|
|
47
|
+
"@remotion/compositor-linux-arm64-gnu": "4.1.0-alpha10",
|
|
48
|
+
"@remotion/compositor-linux-x64-gnu": "4.1.0-alpha10",
|
|
49
|
+
"@remotion/compositor-linux-arm64-musl": "4.1.0-alpha10",
|
|
50
|
+
"@remotion/compositor-linux-x64-musl": "4.1.0-alpha10",
|
|
51
|
+
"@remotion/compositor-win32-x64-msvc": "4.1.0-alpha10"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"remotion",
|