@remotion/renderer 4.0.85 → 4.0.87
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 +39 -39
- package/dist/compositor/compose.js +10 -1
- package/dist/compositor/compositor.js +1 -1
- package/dist/get-compositions.js +3 -0
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/index.d.ts +27 -27
- package/dist/options/color-space.d.ts +1 -1
- package/dist/options/index.d.ts +1 -1
- package/dist/pixel-format.d.ts +1 -1
- package/dist/pure.d.ts +3 -3
- package/dist/validate-output-filename.d.ts +1 -1
- package/package.json +9 -9
package/dist/client.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export { AvailableOptions } from './options';
|
|
3
3
|
export declare const BrowserSafeApis: {
|
|
4
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
4
|
+
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;
|
|
5
5
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
6
6
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
7
|
-
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
8
|
-
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
9
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
7
|
+
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => number;
|
|
8
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => [number, number];
|
|
9
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null | undefined) => boolean;
|
|
10
10
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
11
11
|
x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
|
|
12
12
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
13
13
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
14
|
-
validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
14
|
+
validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
|
|
15
15
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
16
16
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
17
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
17
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
18
18
|
DEFAULT_TIMEOUT: number;
|
|
19
19
|
supportedAudioCodecs: {
|
|
20
20
|
readonly h264: readonly ["aac", "pcm-16", "mp3"];
|
|
@@ -32,11 +32,11 @@ export declare const BrowserSafeApis: {
|
|
|
32
32
|
h264: {
|
|
33
33
|
default: import("./file-extensions").FileExtension;
|
|
34
34
|
forAudioCodec: {
|
|
35
|
-
|
|
35
|
+
aac: {
|
|
36
36
|
possible: import("./file-extensions").FileExtension[];
|
|
37
37
|
default: import("./file-extensions").FileExtension;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
mp3: {
|
|
40
40
|
possible: import("./file-extensions").FileExtension[];
|
|
41
41
|
default: import("./file-extensions").FileExtension;
|
|
42
42
|
};
|
|
@@ -62,11 +62,11 @@ export declare const BrowserSafeApis: {
|
|
|
62
62
|
vp8: {
|
|
63
63
|
default: import("./file-extensions").FileExtension;
|
|
64
64
|
forAudioCodec: {
|
|
65
|
-
|
|
65
|
+
opus: {
|
|
66
66
|
possible: import("./file-extensions").FileExtension[];
|
|
67
67
|
default: import("./file-extensions").FileExtension;
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
"pcm-16": {
|
|
70
70
|
possible: import("./file-extensions").FileExtension[];
|
|
71
71
|
default: import("./file-extensions").FileExtension;
|
|
72
72
|
};
|
|
@@ -75,20 +75,20 @@ export declare const BrowserSafeApis: {
|
|
|
75
75
|
vp9: {
|
|
76
76
|
default: import("./file-extensions").FileExtension;
|
|
77
77
|
forAudioCodec: {
|
|
78
|
-
|
|
78
|
+
opus: {
|
|
79
79
|
possible: import("./file-extensions").FileExtension[];
|
|
80
80
|
default: import("./file-extensions").FileExtension;
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
"pcm-16": {
|
|
83
83
|
possible: import("./file-extensions").FileExtension[];
|
|
84
84
|
default: import("./file-extensions").FileExtension;
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
prores: {
|
|
89
89
|
default: import("./file-extensions").FileExtension;
|
|
90
90
|
forAudioCodec: {
|
|
91
|
-
|
|
91
|
+
aac: {
|
|
92
92
|
possible: import("./file-extensions").FileExtension[];
|
|
93
93
|
default: import("./file-extensions").FileExtension;
|
|
94
94
|
};
|
|
@@ -111,22 +111,22 @@ export declare const BrowserSafeApis: {
|
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
mp3: {
|
|
115
115
|
default: import("./file-extensions").FileExtension;
|
|
116
116
|
forAudioCodec: {
|
|
117
|
+
mp3: {
|
|
118
|
+
possible: import("./file-extensions").FileExtension[];
|
|
119
|
+
default: import("./file-extensions").FileExtension;
|
|
120
|
+
};
|
|
117
121
|
"pcm-16": {
|
|
118
122
|
possible: import("./file-extensions").FileExtension[];
|
|
119
123
|
default: import("./file-extensions").FileExtension;
|
|
120
124
|
};
|
|
121
125
|
};
|
|
122
126
|
};
|
|
123
|
-
|
|
127
|
+
wav: {
|
|
124
128
|
default: import("./file-extensions").FileExtension;
|
|
125
129
|
forAudioCodec: {
|
|
126
|
-
aac: {
|
|
127
|
-
possible: import("./file-extensions").FileExtension[];
|
|
128
|
-
default: import("./file-extensions").FileExtension;
|
|
129
|
-
};
|
|
130
130
|
"pcm-16": {
|
|
131
131
|
possible: import("./file-extensions").FileExtension[];
|
|
132
132
|
default: import("./file-extensions").FileExtension;
|
|
@@ -153,37 +153,37 @@ export declare const BrowserSafeApis: {
|
|
|
153
153
|
};
|
|
154
154
|
defaultAudioCodecs: {
|
|
155
155
|
h264: {
|
|
156
|
-
compressed: "
|
|
157
|
-
lossless: "
|
|
156
|
+
compressed: "aac" | "mp3" | "pcm-16" | null;
|
|
157
|
+
lossless: "aac" | "mp3" | "pcm-16" | null;
|
|
158
158
|
};
|
|
159
159
|
h265: {
|
|
160
160
|
compressed: "aac" | "pcm-16" | null;
|
|
161
161
|
lossless: "aac" | "pcm-16" | null;
|
|
162
162
|
};
|
|
163
163
|
vp8: {
|
|
164
|
-
compressed: "
|
|
165
|
-
lossless: "
|
|
164
|
+
compressed: "opus" | "pcm-16" | null;
|
|
165
|
+
lossless: "opus" | "pcm-16" | null;
|
|
166
166
|
};
|
|
167
167
|
vp9: {
|
|
168
|
-
compressed: "
|
|
169
|
-
lossless: "
|
|
168
|
+
compressed: "opus" | "pcm-16" | null;
|
|
169
|
+
lossless: "opus" | "pcm-16" | null;
|
|
170
170
|
};
|
|
171
|
-
|
|
172
|
-
compressed: "
|
|
173
|
-
lossless: "
|
|
171
|
+
prores: {
|
|
172
|
+
compressed: "aac" | "pcm-16" | null;
|
|
173
|
+
lossless: "aac" | "pcm-16" | null;
|
|
174
174
|
};
|
|
175
175
|
aac: {
|
|
176
176
|
compressed: "aac" | "pcm-16" | null;
|
|
177
177
|
lossless: "aac" | "pcm-16" | null;
|
|
178
178
|
};
|
|
179
|
+
mp3: {
|
|
180
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
181
|
+
lossless: "mp3" | "pcm-16" | null;
|
|
182
|
+
};
|
|
179
183
|
wav: {
|
|
180
184
|
compressed: "pcm-16" | null;
|
|
181
185
|
lossless: "pcm-16" | null;
|
|
182
186
|
};
|
|
183
|
-
prores: {
|
|
184
|
-
compressed: "aac" | "pcm-16" | null;
|
|
185
|
-
lossless: "aac" | "pcm-16" | null;
|
|
186
|
-
};
|
|
187
187
|
"h264-mkv": {
|
|
188
188
|
compressed: "mp3" | "pcm-16" | null;
|
|
189
189
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -193,10 +193,10 @@ export declare const BrowserSafeApis: {
|
|
|
193
193
|
lossless: null;
|
|
194
194
|
};
|
|
195
195
|
};
|
|
196
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
197
|
-
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
196
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">;
|
|
197
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
198
198
|
codec: T_1;
|
|
199
|
-
audioCodec: "
|
|
199
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
200
200
|
extension: string;
|
|
201
201
|
preferLossless: boolean;
|
|
202
202
|
}) => void;
|
|
@@ -287,7 +287,7 @@ export declare const BrowserSafeApis: {
|
|
|
287
287
|
description: () => JSX.Element;
|
|
288
288
|
docLink: string;
|
|
289
289
|
ssrName: string;
|
|
290
|
-
type: "
|
|
290
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
291
291
|
};
|
|
292
292
|
deleteAfterOption: {
|
|
293
293
|
name: string;
|
|
@@ -505,7 +505,7 @@ export declare const BrowserSafeApis: {
|
|
|
505
505
|
};
|
|
506
506
|
};
|
|
507
507
|
};
|
|
508
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
509
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
508
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
509
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
510
510
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
511
511
|
};
|
|
@@ -80,7 +80,16 @@ const callCompositor = (payload, indent, logLevel) => {
|
|
|
80
80
|
Buffer.concat(stderrChunks).toString('utf-8')));
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
try {
|
|
84
|
+
child.stdin.write(payload);
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
if (err instanceof Error && err.message.includes('EPIPE')) {
|
|
88
|
+
reject(new Error('Compositor stdin closed unexpectedly,' +
|
|
89
|
+
Buffer.concat(stderrChunks).toString('utf-8')));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
84
93
|
child.stdin.end();
|
|
85
94
|
});
|
|
86
95
|
};
|
|
@@ -188,7 +188,7 @@ const startCompositor = (type, payload, logLevel, indent) => {
|
|
|
188
188
|
throw new Error(`Compositor quit${runningStatus.signal ? ` with signal ${runningStatus.signal}` : ''}`);
|
|
189
189
|
}
|
|
190
190
|
if (runningStatus.type === 'quit-with-error') {
|
|
191
|
-
throw new Error(`Compositor quit: ${runningStatus.error}`);
|
|
191
|
+
throw new Error(`Compositor quit${runningStatus.signal ? ` with signal ${runningStatus.signal}` : ''}: ${runningStatus.error}`);
|
|
192
192
|
}
|
|
193
193
|
return new Promise((_resolve, _reject) => {
|
|
194
194
|
const nonce = (0, make_nonce_1.makeNonce)();
|
package/dist/get-compositions.js
CHANGED
|
@@ -144,6 +144,9 @@ exports.internalGetCompositions = (0, wrap_with_error_handling_1.wrapWithErrorHa
|
|
|
144
144
|
*/
|
|
145
145
|
const getCompositions = (serveUrlOrWebpackUrl, config) => {
|
|
146
146
|
var _a;
|
|
147
|
+
if (!serveUrlOrWebpackUrl) {
|
|
148
|
+
throw new Error('No serve URL or webpack bundle directory was passed to getCompositions().');
|
|
149
|
+
}
|
|
147
150
|
const { browserExecutable, chromiumOptions, envVariables, inputProps, onBrowserLog, port, puppeteerInstance, timeoutInMilliseconds, logLevel, } = config !== null && config !== void 0 ? config : {};
|
|
148
151
|
return (0, exports.internalGetCompositions)({
|
|
149
152
|
browserExecutable: browserExecutable !== null && browserExecutable !== void 0 ? browserExecutable : null,
|
|
@@ -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
|
@@ -67,10 +67,10 @@ export declare const RenderInternals: {
|
|
|
67
67
|
width: number;
|
|
68
68
|
height: number;
|
|
69
69
|
scale: number;
|
|
70
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
70
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
71
71
|
wantsImageSequence: boolean;
|
|
72
72
|
}) => void;
|
|
73
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
73
|
+
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;
|
|
74
74
|
tmpDir: (str: string) => string;
|
|
75
75
|
deleteDirectory: (directory: string) => void;
|
|
76
76
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -127,7 +127,7 @@ export declare const RenderInternals: {
|
|
|
127
127
|
};
|
|
128
128
|
registerErrorSymbolicationLock: () => number;
|
|
129
129
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
130
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
130
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
131
131
|
mimeContentType: typeof mimeContentType;
|
|
132
132
|
mimeLookup: typeof mimeLookup;
|
|
133
133
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -141,11 +141,11 @@ export declare const RenderInternals: {
|
|
|
141
141
|
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
142
142
|
validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
143
143
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
144
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
144
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
145
145
|
validateJpegQuality: (q: number | undefined) => void;
|
|
146
146
|
DEFAULT_TIMEOUT: number;
|
|
147
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
148
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
147
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
148
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null | undefined) => boolean;
|
|
149
149
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
150
150
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
151
151
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -162,10 +162,10 @@ export declare const RenderInternals: {
|
|
|
162
162
|
output: string;
|
|
163
163
|
onProgress: (p: number) => void;
|
|
164
164
|
numberOfFrames: number;
|
|
165
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
165
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
166
166
|
fps: number;
|
|
167
167
|
numberOfGifLoops: number | null;
|
|
168
|
-
audioCodec: "
|
|
168
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
169
169
|
audioBitrate: string | null;
|
|
170
170
|
indent: boolean;
|
|
171
171
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
@@ -173,19 +173,19 @@ export declare const RenderInternals: {
|
|
|
173
173
|
getMinConcurrency: () => number;
|
|
174
174
|
getMaxConcurrency: () => number;
|
|
175
175
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
176
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
176
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
177
177
|
preferLossless: boolean;
|
|
178
|
-
}) => "
|
|
178
|
+
}) => "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
179
179
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
180
180
|
defaultFileExtensionMap: {
|
|
181
181
|
h264: {
|
|
182
182
|
default: import("./file-extensions").FileExtension;
|
|
183
183
|
forAudioCodec: {
|
|
184
|
-
|
|
184
|
+
aac: {
|
|
185
185
|
possible: import("./file-extensions").FileExtension[];
|
|
186
186
|
default: import("./file-extensions").FileExtension;
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
mp3: {
|
|
189
189
|
possible: import("./file-extensions").FileExtension[];
|
|
190
190
|
default: import("./file-extensions").FileExtension;
|
|
191
191
|
};
|
|
@@ -211,11 +211,11 @@ export declare const RenderInternals: {
|
|
|
211
211
|
vp8: {
|
|
212
212
|
default: import("./file-extensions").FileExtension;
|
|
213
213
|
forAudioCodec: {
|
|
214
|
-
|
|
214
|
+
opus: {
|
|
215
215
|
possible: import("./file-extensions").FileExtension[];
|
|
216
216
|
default: import("./file-extensions").FileExtension;
|
|
217
217
|
};
|
|
218
|
-
|
|
218
|
+
"pcm-16": {
|
|
219
219
|
possible: import("./file-extensions").FileExtension[];
|
|
220
220
|
default: import("./file-extensions").FileExtension;
|
|
221
221
|
};
|
|
@@ -224,20 +224,20 @@ export declare const RenderInternals: {
|
|
|
224
224
|
vp9: {
|
|
225
225
|
default: import("./file-extensions").FileExtension;
|
|
226
226
|
forAudioCodec: {
|
|
227
|
-
|
|
227
|
+
opus: {
|
|
228
228
|
possible: import("./file-extensions").FileExtension[];
|
|
229
229
|
default: import("./file-extensions").FileExtension;
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
"pcm-16": {
|
|
232
232
|
possible: import("./file-extensions").FileExtension[];
|
|
233
233
|
default: import("./file-extensions").FileExtension;
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
|
-
|
|
237
|
+
prores: {
|
|
238
238
|
default: import("./file-extensions").FileExtension;
|
|
239
239
|
forAudioCodec: {
|
|
240
|
-
|
|
240
|
+
aac: {
|
|
241
241
|
possible: import("./file-extensions").FileExtension[];
|
|
242
242
|
default: import("./file-extensions").FileExtension;
|
|
243
243
|
};
|
|
@@ -260,22 +260,22 @@ export declare const RenderInternals: {
|
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
|
-
|
|
263
|
+
mp3: {
|
|
264
264
|
default: import("./file-extensions").FileExtension;
|
|
265
265
|
forAudioCodec: {
|
|
266
|
+
mp3: {
|
|
267
|
+
possible: import("./file-extensions").FileExtension[];
|
|
268
|
+
default: import("./file-extensions").FileExtension;
|
|
269
|
+
};
|
|
266
270
|
"pcm-16": {
|
|
267
271
|
possible: import("./file-extensions").FileExtension[];
|
|
268
272
|
default: import("./file-extensions").FileExtension;
|
|
269
273
|
};
|
|
270
274
|
};
|
|
271
275
|
};
|
|
272
|
-
|
|
276
|
+
wav: {
|
|
273
277
|
default: import("./file-extensions").FileExtension;
|
|
274
278
|
forAudioCodec: {
|
|
275
|
-
aac: {
|
|
276
|
-
possible: import("./file-extensions").FileExtension[];
|
|
277
|
-
default: import("./file-extensions").FileExtension;
|
|
278
|
-
};
|
|
279
279
|
"pcm-16": {
|
|
280
280
|
possible: import("./file-extensions").FileExtension[];
|
|
281
281
|
default: import("./file-extensions").FileExtension;
|
|
@@ -312,8 +312,8 @@ export declare const RenderInternals: {
|
|
|
312
312
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
313
313
|
readonly wav: readonly ["pcm-16"];
|
|
314
314
|
};
|
|
315
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
316
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
315
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif")[]>;
|
|
316
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">;
|
|
317
317
|
getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
|
|
318
318
|
callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], indent: boolean, logLevel: "verbose" | "info" | "warn" | "error", options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
|
|
319
319
|
dynamicLibraryPathOptions: (indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => {
|
|
@@ -331,7 +331,7 @@ export declare const RenderInternals: {
|
|
|
331
331
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
332
332
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
333
333
|
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
334
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
334
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "jpeg" | "png";
|
|
335
335
|
DEFAULT_JPEG_QUALITY: number;
|
|
336
336
|
chalk: {
|
|
337
337
|
enabled: () => boolean;
|
|
@@ -7,6 +7,6 @@ export declare const colorSpaceOption: {
|
|
|
7
7
|
description: () => JSX.Element;
|
|
8
8
|
docLink: string;
|
|
9
9
|
ssrName: string;
|
|
10
|
-
type: "
|
|
10
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
11
11
|
};
|
|
12
12
|
export declare const validateColorSpace: (option: unknown) => void;
|
package/dist/options/index.d.ts
CHANGED
package/dist/pixel-format.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { Codec } from './codec';
|
|
|
2
2
|
export declare const validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
3
3
|
export type PixelFormat = (typeof validPixelFormats)[number];
|
|
4
4
|
export declare const DEFAULT_PIXEL_FORMAT: PixelFormat;
|
|
5
|
-
export declare const validPixelFormatsForCodec: (codec: Codec) => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "
|
|
5
|
+
export declare const validPixelFormatsForCodec: (codec: Codec) => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
|
|
6
6
|
export declare const validateSelectedPixelFormatAndCodecCombination: (pixelFormat: PixelFormat | undefined, codec: Codec) => undefined;
|
package/dist/pure.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const NoReactAPIs: {
|
|
2
2
|
wrapWithErrorHandling: <A extends unknown[], R>(fn: (...args: A) => Promise<R>) => (...args: A) => Promise<R>;
|
|
3
3
|
getExtensionOfFilename: (filename: string | null) => string | null;
|
|
4
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
5
|
-
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
4
|
+
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;
|
|
5
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
6
6
|
codec: T_1;
|
|
7
|
-
audioCodec: "
|
|
7
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
8
8
|
extension: string;
|
|
9
9
|
preferLossless: boolean;
|
|
10
10
|
}) => void;
|
|
@@ -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.87",
|
|
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.87"
|
|
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-linux-arm64-gnu": "4.0.
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-linux-
|
|
47
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
48
|
-
"@remotion/compositor-linux-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-arm64": "4.0.87",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.87",
|
|
45
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.87",
|
|
46
|
+
"@remotion/compositor-linux-x64-musl": "4.0.87",
|
|
47
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.87",
|
|
48
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.87",
|
|
49
|
+
"@remotion/compositor-darwin-x64": "4.0.87"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|