@remotion/renderer 4.0.85 → 4.0.86
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 +40 -41
- package/dist/compositor/compose.js +10 -1
- package/dist/get-compositions.js +3 -0
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/index.d.ts +28 -31
- package/dist/options/audio-bitrate.d.ts +0 -1
- package/dist/options/beep-on-finish.d.ts +0 -1
- package/dist/options/color-space.d.ts +1 -2
- package/dist/options/crf.d.ts +0 -1
- package/dist/options/enable-lambda-insights.d.ts +0 -1
- package/dist/options/encoding-buffer-size.d.ts +0 -1
- package/dist/options/encoding-max-rate.d.ts +0 -1
- package/dist/options/enforce-audio.d.ts +0 -1
- package/dist/options/gl.d.ts +1 -2
- package/dist/options/index.d.ts +2 -3
- package/dist/options/jpeg-quality.d.ts +0 -1
- package/dist/options/number-of-gif-loops.d.ts +0 -1
- package/dist/options/offthreadvideo-cache-size.d.ts +0 -1
- package/dist/options/options-map.d.ts +0 -1
- package/dist/options/scale.d.ts +0 -1
- package/dist/options/video-bitrate.d.ts +0 -1
- package/dist/options/video-codec.d.ts +0 -1
- package/dist/pixel-format.d.ts +1 -1
- package/dist/provide-screenshot.d.ts +0 -1
- package/dist/puppeteer-screenshot.d.ts +0 -1
- package/dist/pure.d.ts +3 -3
- package/dist/screenshot-dom-element.d.ts +0 -1
- package/dist/screenshot-task.d.ts +0 -1
- package/dist/stitch-frames-to-video.d.ts +0 -1
- package/dist/take-frame-and-compose.d.ts +0 -1
- package/dist/validate-output-filename.d.ts +1 -1
- package/package.json +9 -9
package/dist/client.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export { AvailableOptions } from './options';
|
|
3
2
|
export declare const BrowserSafeApis: {
|
|
4
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
3
|
+
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
4
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
6
5
|
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" | "
|
|
6
|
+
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null | undefined) => boolean;
|
|
10
9
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
11
10
|
x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
|
|
12
11
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
13
12
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
14
|
-
validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
13
|
+
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
14
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
16
15
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
17
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
16
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
18
17
|
DEFAULT_TIMEOUT: number;
|
|
19
18
|
supportedAudioCodecs: {
|
|
20
19
|
readonly h264: readonly ["aac", "pcm-16", "mp3"];
|
|
@@ -32,11 +31,11 @@ export declare const BrowserSafeApis: {
|
|
|
32
31
|
h264: {
|
|
33
32
|
default: import("./file-extensions").FileExtension;
|
|
34
33
|
forAudioCodec: {
|
|
35
|
-
|
|
34
|
+
aac: {
|
|
36
35
|
possible: import("./file-extensions").FileExtension[];
|
|
37
36
|
default: import("./file-extensions").FileExtension;
|
|
38
37
|
};
|
|
39
|
-
|
|
38
|
+
mp3: {
|
|
40
39
|
possible: import("./file-extensions").FileExtension[];
|
|
41
40
|
default: import("./file-extensions").FileExtension;
|
|
42
41
|
};
|
|
@@ -62,11 +61,11 @@ export declare const BrowserSafeApis: {
|
|
|
62
61
|
vp8: {
|
|
63
62
|
default: import("./file-extensions").FileExtension;
|
|
64
63
|
forAudioCodec: {
|
|
65
|
-
|
|
64
|
+
opus: {
|
|
66
65
|
possible: import("./file-extensions").FileExtension[];
|
|
67
66
|
default: import("./file-extensions").FileExtension;
|
|
68
67
|
};
|
|
69
|
-
|
|
68
|
+
"pcm-16": {
|
|
70
69
|
possible: import("./file-extensions").FileExtension[];
|
|
71
70
|
default: import("./file-extensions").FileExtension;
|
|
72
71
|
};
|
|
@@ -75,20 +74,20 @@ export declare const BrowserSafeApis: {
|
|
|
75
74
|
vp9: {
|
|
76
75
|
default: import("./file-extensions").FileExtension;
|
|
77
76
|
forAudioCodec: {
|
|
78
|
-
|
|
77
|
+
opus: {
|
|
79
78
|
possible: import("./file-extensions").FileExtension[];
|
|
80
79
|
default: import("./file-extensions").FileExtension;
|
|
81
80
|
};
|
|
82
|
-
|
|
81
|
+
"pcm-16": {
|
|
83
82
|
possible: import("./file-extensions").FileExtension[];
|
|
84
83
|
default: import("./file-extensions").FileExtension;
|
|
85
84
|
};
|
|
86
85
|
};
|
|
87
86
|
};
|
|
88
|
-
|
|
87
|
+
prores: {
|
|
89
88
|
default: import("./file-extensions").FileExtension;
|
|
90
89
|
forAudioCodec: {
|
|
91
|
-
|
|
90
|
+
aac: {
|
|
92
91
|
possible: import("./file-extensions").FileExtension[];
|
|
93
92
|
default: import("./file-extensions").FileExtension;
|
|
94
93
|
};
|
|
@@ -111,22 +110,22 @@ export declare const BrowserSafeApis: {
|
|
|
111
110
|
};
|
|
112
111
|
};
|
|
113
112
|
};
|
|
114
|
-
|
|
113
|
+
mp3: {
|
|
115
114
|
default: import("./file-extensions").FileExtension;
|
|
116
115
|
forAudioCodec: {
|
|
116
|
+
mp3: {
|
|
117
|
+
possible: import("./file-extensions").FileExtension[];
|
|
118
|
+
default: import("./file-extensions").FileExtension;
|
|
119
|
+
};
|
|
117
120
|
"pcm-16": {
|
|
118
121
|
possible: import("./file-extensions").FileExtension[];
|
|
119
122
|
default: import("./file-extensions").FileExtension;
|
|
120
123
|
};
|
|
121
124
|
};
|
|
122
125
|
};
|
|
123
|
-
|
|
126
|
+
wav: {
|
|
124
127
|
default: import("./file-extensions").FileExtension;
|
|
125
128
|
forAudioCodec: {
|
|
126
|
-
aac: {
|
|
127
|
-
possible: import("./file-extensions").FileExtension[];
|
|
128
|
-
default: import("./file-extensions").FileExtension;
|
|
129
|
-
};
|
|
130
129
|
"pcm-16": {
|
|
131
130
|
possible: import("./file-extensions").FileExtension[];
|
|
132
131
|
default: import("./file-extensions").FileExtension;
|
|
@@ -153,37 +152,37 @@ export declare const BrowserSafeApis: {
|
|
|
153
152
|
};
|
|
154
153
|
defaultAudioCodecs: {
|
|
155
154
|
h264: {
|
|
156
|
-
compressed: "
|
|
157
|
-
lossless: "
|
|
155
|
+
compressed: "aac" | "mp3" | "pcm-16" | null;
|
|
156
|
+
lossless: "aac" | "mp3" | "pcm-16" | null;
|
|
158
157
|
};
|
|
159
158
|
h265: {
|
|
160
159
|
compressed: "aac" | "pcm-16" | null;
|
|
161
160
|
lossless: "aac" | "pcm-16" | null;
|
|
162
161
|
};
|
|
163
162
|
vp8: {
|
|
164
|
-
compressed: "
|
|
165
|
-
lossless: "
|
|
163
|
+
compressed: "opus" | "pcm-16" | null;
|
|
164
|
+
lossless: "opus" | "pcm-16" | null;
|
|
166
165
|
};
|
|
167
166
|
vp9: {
|
|
168
|
-
compressed: "
|
|
169
|
-
lossless: "
|
|
167
|
+
compressed: "opus" | "pcm-16" | null;
|
|
168
|
+
lossless: "opus" | "pcm-16" | null;
|
|
170
169
|
};
|
|
171
|
-
|
|
172
|
-
compressed: "
|
|
173
|
-
lossless: "
|
|
170
|
+
prores: {
|
|
171
|
+
compressed: "aac" | "pcm-16" | null;
|
|
172
|
+
lossless: "aac" | "pcm-16" | null;
|
|
174
173
|
};
|
|
175
174
|
aac: {
|
|
176
175
|
compressed: "aac" | "pcm-16" | null;
|
|
177
176
|
lossless: "aac" | "pcm-16" | null;
|
|
178
177
|
};
|
|
178
|
+
mp3: {
|
|
179
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
180
|
+
lossless: "mp3" | "pcm-16" | null;
|
|
181
|
+
};
|
|
179
182
|
wav: {
|
|
180
183
|
compressed: "pcm-16" | null;
|
|
181
184
|
lossless: "pcm-16" | null;
|
|
182
185
|
};
|
|
183
|
-
prores: {
|
|
184
|
-
compressed: "aac" | "pcm-16" | null;
|
|
185
|
-
lossless: "aac" | "pcm-16" | null;
|
|
186
|
-
};
|
|
187
186
|
"h264-mkv": {
|
|
188
187
|
compressed: "mp3" | "pcm-16" | null;
|
|
189
188
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -193,10 +192,10 @@ export declare const BrowserSafeApis: {
|
|
|
193
192
|
lossless: null;
|
|
194
193
|
};
|
|
195
194
|
};
|
|
196
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
197
|
-
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
195
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">;
|
|
196
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
198
197
|
codec: T_1;
|
|
199
|
-
audioCodec: "
|
|
198
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
200
199
|
extension: string;
|
|
201
200
|
preferLossless: boolean;
|
|
202
201
|
}) => void;
|
|
@@ -287,7 +286,7 @@ export declare const BrowserSafeApis: {
|
|
|
287
286
|
description: () => JSX.Element;
|
|
288
287
|
docLink: string;
|
|
289
288
|
ssrName: string;
|
|
290
|
-
type: "
|
|
289
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
291
290
|
};
|
|
292
291
|
deleteAfterOption: {
|
|
293
292
|
name: string;
|
|
@@ -317,7 +316,7 @@ export declare const BrowserSafeApis: {
|
|
|
317
316
|
cliFlag: "gl";
|
|
318
317
|
docLink: string;
|
|
319
318
|
name: string;
|
|
320
|
-
type: "
|
|
319
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
321
320
|
ssrName: string;
|
|
322
321
|
description: () => JSX.Element;
|
|
323
322
|
};
|
|
@@ -505,7 +504,7 @@ export declare const BrowserSafeApis: {
|
|
|
505
504
|
};
|
|
506
505
|
};
|
|
507
506
|
};
|
|
508
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
509
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
507
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
508
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
510
509
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
511
510
|
};
|
|
@@ -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
|
};
|
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
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
1
|
import execa from 'execa';
|
|
5
2
|
import { HeadlessBrowser } from './browser/Browser';
|
|
6
3
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -67,10 +64,10 @@ export declare const RenderInternals: {
|
|
|
67
64
|
width: number;
|
|
68
65
|
height: number;
|
|
69
66
|
scale: number;
|
|
70
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
67
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
71
68
|
wantsImageSequence: boolean;
|
|
72
69
|
}) => void;
|
|
73
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
70
|
+
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
71
|
tmpDir: (str: string) => string;
|
|
75
72
|
deleteDirectory: (directory: string) => void;
|
|
76
73
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -127,7 +124,7 @@ export declare const RenderInternals: {
|
|
|
127
124
|
};
|
|
128
125
|
registerErrorSymbolicationLock: () => number;
|
|
129
126
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
130
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
127
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
131
128
|
mimeContentType: typeof mimeContentType;
|
|
132
129
|
mimeLookup: typeof mimeLookup;
|
|
133
130
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -138,14 +135,14 @@ export declare const RenderInternals: {
|
|
|
138
135
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
139
136
|
DEFAULT_BROWSER: "chrome";
|
|
140
137
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
141
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
142
|
-
validateOpenGlRenderer: (option: "
|
|
138
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
139
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
143
140
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
144
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
141
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
145
142
|
validateJpegQuality: (q: number | undefined) => void;
|
|
146
143
|
DEFAULT_TIMEOUT: number;
|
|
147
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
148
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
144
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
145
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null | undefined) => boolean;
|
|
149
146
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
150
147
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
151
148
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -162,10 +159,10 @@ export declare const RenderInternals: {
|
|
|
162
159
|
output: string;
|
|
163
160
|
onProgress: (p: number) => void;
|
|
164
161
|
numberOfFrames: number;
|
|
165
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
162
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
166
163
|
fps: number;
|
|
167
164
|
numberOfGifLoops: number | null;
|
|
168
|
-
audioCodec: "
|
|
165
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
169
166
|
audioBitrate: string | null;
|
|
170
167
|
indent: boolean;
|
|
171
168
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
@@ -173,19 +170,19 @@ export declare const RenderInternals: {
|
|
|
173
170
|
getMinConcurrency: () => number;
|
|
174
171
|
getMaxConcurrency: () => number;
|
|
175
172
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
176
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
173
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
177
174
|
preferLossless: boolean;
|
|
178
|
-
}) => "
|
|
175
|
+
}) => "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
179
176
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
180
177
|
defaultFileExtensionMap: {
|
|
181
178
|
h264: {
|
|
182
179
|
default: import("./file-extensions").FileExtension;
|
|
183
180
|
forAudioCodec: {
|
|
184
|
-
|
|
181
|
+
aac: {
|
|
185
182
|
possible: import("./file-extensions").FileExtension[];
|
|
186
183
|
default: import("./file-extensions").FileExtension;
|
|
187
184
|
};
|
|
188
|
-
|
|
185
|
+
mp3: {
|
|
189
186
|
possible: import("./file-extensions").FileExtension[];
|
|
190
187
|
default: import("./file-extensions").FileExtension;
|
|
191
188
|
};
|
|
@@ -211,11 +208,11 @@ export declare const RenderInternals: {
|
|
|
211
208
|
vp8: {
|
|
212
209
|
default: import("./file-extensions").FileExtension;
|
|
213
210
|
forAudioCodec: {
|
|
214
|
-
|
|
211
|
+
opus: {
|
|
215
212
|
possible: import("./file-extensions").FileExtension[];
|
|
216
213
|
default: import("./file-extensions").FileExtension;
|
|
217
214
|
};
|
|
218
|
-
|
|
215
|
+
"pcm-16": {
|
|
219
216
|
possible: import("./file-extensions").FileExtension[];
|
|
220
217
|
default: import("./file-extensions").FileExtension;
|
|
221
218
|
};
|
|
@@ -224,20 +221,20 @@ export declare const RenderInternals: {
|
|
|
224
221
|
vp9: {
|
|
225
222
|
default: import("./file-extensions").FileExtension;
|
|
226
223
|
forAudioCodec: {
|
|
227
|
-
|
|
224
|
+
opus: {
|
|
228
225
|
possible: import("./file-extensions").FileExtension[];
|
|
229
226
|
default: import("./file-extensions").FileExtension;
|
|
230
227
|
};
|
|
231
|
-
|
|
228
|
+
"pcm-16": {
|
|
232
229
|
possible: import("./file-extensions").FileExtension[];
|
|
233
230
|
default: import("./file-extensions").FileExtension;
|
|
234
231
|
};
|
|
235
232
|
};
|
|
236
233
|
};
|
|
237
|
-
|
|
234
|
+
prores: {
|
|
238
235
|
default: import("./file-extensions").FileExtension;
|
|
239
236
|
forAudioCodec: {
|
|
240
|
-
|
|
237
|
+
aac: {
|
|
241
238
|
possible: import("./file-extensions").FileExtension[];
|
|
242
239
|
default: import("./file-extensions").FileExtension;
|
|
243
240
|
};
|
|
@@ -260,22 +257,22 @@ export declare const RenderInternals: {
|
|
|
260
257
|
};
|
|
261
258
|
};
|
|
262
259
|
};
|
|
263
|
-
|
|
260
|
+
mp3: {
|
|
264
261
|
default: import("./file-extensions").FileExtension;
|
|
265
262
|
forAudioCodec: {
|
|
263
|
+
mp3: {
|
|
264
|
+
possible: import("./file-extensions").FileExtension[];
|
|
265
|
+
default: import("./file-extensions").FileExtension;
|
|
266
|
+
};
|
|
266
267
|
"pcm-16": {
|
|
267
268
|
possible: import("./file-extensions").FileExtension[];
|
|
268
269
|
default: import("./file-extensions").FileExtension;
|
|
269
270
|
};
|
|
270
271
|
};
|
|
271
272
|
};
|
|
272
|
-
|
|
273
|
+
wav: {
|
|
273
274
|
default: import("./file-extensions").FileExtension;
|
|
274
275
|
forAudioCodec: {
|
|
275
|
-
aac: {
|
|
276
|
-
possible: import("./file-extensions").FileExtension[];
|
|
277
|
-
default: import("./file-extensions").FileExtension;
|
|
278
|
-
};
|
|
279
276
|
"pcm-16": {
|
|
280
277
|
possible: import("./file-extensions").FileExtension[];
|
|
281
278
|
default: import("./file-extensions").FileExtension;
|
|
@@ -312,8 +309,8 @@ export declare const RenderInternals: {
|
|
|
312
309
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
313
310
|
readonly wav: readonly ["pcm-16"];
|
|
314
311
|
};
|
|
315
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
316
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
312
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif")[]>;
|
|
313
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">;
|
|
317
314
|
getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
|
|
318
315
|
callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], indent: boolean, logLevel: "verbose" | "info" | "warn" | "error", options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
|
|
319
316
|
dynamicLibraryPathOptions: (indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const validColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
|
|
3
2
|
export type ColorSpace = (typeof validColorSpaces)[number];
|
|
4
3
|
export declare const colorSpaceOption: {
|
|
@@ -7,6 +6,6 @@ export declare const colorSpaceOption: {
|
|
|
7
6
|
description: () => JSX.Element;
|
|
8
7
|
docLink: string;
|
|
9
8
|
ssrName: string;
|
|
10
|
-
type: "
|
|
9
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
11
10
|
};
|
|
12
11
|
export declare const validateColorSpace: (option: unknown) => void;
|
package/dist/options/crf.d.ts
CHANGED
package/dist/options/gl.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
3
2
|
export declare const glOption: {
|
|
4
3
|
cliFlag: "gl";
|
|
5
4
|
docLink: string;
|
|
6
5
|
name: string;
|
|
7
|
-
type: "
|
|
6
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
8
7
|
ssrName: string;
|
|
9
8
|
description: () => JSX.Element;
|
|
10
9
|
};
|
package/dist/options/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const allOptions: {
|
|
3
2
|
scaleOption: {
|
|
4
3
|
name: string;
|
|
@@ -86,7 +85,7 @@ export declare const allOptions: {
|
|
|
86
85
|
description: () => JSX.Element;
|
|
87
86
|
docLink: string;
|
|
88
87
|
ssrName: string;
|
|
89
|
-
type: "
|
|
88
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
90
89
|
};
|
|
91
90
|
deleteAfterOption: {
|
|
92
91
|
name: string;
|
|
@@ -116,7 +115,7 @@ export declare const allOptions: {
|
|
|
116
115
|
cliFlag: "gl";
|
|
117
116
|
docLink: string;
|
|
118
117
|
name: string;
|
|
119
|
-
type: "
|
|
118
|
+
type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
|
|
120
119
|
ssrName: string;
|
|
121
120
|
description: () => JSX.Element;
|
|
122
121
|
};
|
package/dist/options/scale.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.86",
|
|
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.86"
|
|
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-
|
|
44
|
-
"@remotion/compositor-
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-linux-
|
|
47
|
-
"@remotion/compositor-
|
|
48
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-x64": "4.0.86",
|
|
44
|
+
"@remotion/compositor-darwin-arm64": "4.0.86",
|
|
45
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.86",
|
|
46
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.86",
|
|
47
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.86",
|
|
48
|
+
"@remotion/compositor-linux-x64-musl": "4.0.86",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.86"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|