@remotion/renderer 4.0.111 → 4.0.112
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/check-apple-silicon.d.ts +1 -3
- package/dist/check-apple-silicon.js +2 -32
- package/dist/client.d.ts +39 -39
- package/dist/create-ffmpeg-complex-filter.d.ts +1 -4
- package/dist/does-have-m2-bug.d.ts +3 -0
- package/dist/does-have-m2-bug.js +12 -0
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/index.d.ts +29 -29
- 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
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const gLibCErrorMessage: (libCString: string) => string | null;
|
|
3
|
-
export declare const checkNodeVersionAndWarnAboutRosetta: (logLevel: LogLevel, indent: boolean) => void;
|
|
1
|
+
export declare const checkNodeVersionAndWarnAboutRosetta: () => void;
|
|
@@ -1,42 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkNodeVersionAndWarnAboutRosetta =
|
|
4
|
-
const
|
|
5
|
-
const gLibCErrorMessage = (libCString) => {
|
|
6
|
-
const split = libCString.split('.');
|
|
7
|
-
if (split.length !== 2) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
if (split[0] === '2' && Number(split[1]) >= 35) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
if (Number(split[0]) > 2) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
return `Rendering videos requires glibc 2.35 or higher. Your system has glibc ${libCString}.`;
|
|
17
|
-
};
|
|
18
|
-
exports.gLibCErrorMessage = gLibCErrorMessage;
|
|
19
|
-
const checkLibCRequirement = (logLevel, indent) => {
|
|
20
|
-
const { report } = process;
|
|
21
|
-
if (report) {
|
|
22
|
-
// @ts-expect-error no types
|
|
23
|
-
const { glibcVersionRuntime } = report.getReport().header;
|
|
24
|
-
if (!glibcVersionRuntime) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const error = (0, exports.gLibCErrorMessage)(glibcVersionRuntime);
|
|
28
|
-
if (error) {
|
|
29
|
-
logger_1.Log.warn({ logLevel, indent }, error);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const checkNodeVersionAndWarnAboutRosetta = (logLevel, indent) => {
|
|
3
|
+
exports.checkNodeVersionAndWarnAboutRosetta = void 0;
|
|
4
|
+
const checkNodeVersionAndWarnAboutRosetta = () => {
|
|
34
5
|
const version = process.version.replace('v', '').split('.');
|
|
35
6
|
const majorVersion = Number(version[0]);
|
|
36
7
|
const requiredNodeVersion = 16;
|
|
37
8
|
if (majorVersion < 16) {
|
|
38
9
|
throw new Error(`Remotion requires at least Node ${requiredNodeVersion}. You currently have ${process.version}. Update your node version to ${requiredNodeVersion} to use Remotion.`);
|
|
39
10
|
}
|
|
40
|
-
checkLibCRequirement(logLevel, indent);
|
|
41
11
|
};
|
|
42
12
|
exports.checkNodeVersionAndWarnAboutRosetta = checkNodeVersionAndWarnAboutRosetta;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export { AvailableOptions } from './options';
|
|
2
2
|
export declare const BrowserSafeApis: {
|
|
3
|
-
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;
|
|
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" | "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;
|
|
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"];
|
|
12
12
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
13
|
-
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")[];
|
|
14
14
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
15
15
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
16
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
16
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
17
17
|
DEFAULT_TIMEOUT: number;
|
|
18
18
|
supportedAudioCodecs: {
|
|
19
19
|
readonly h264: readonly ["aac", "pcm-16", "mp3"];
|
|
@@ -31,11 +31,11 @@ export declare const BrowserSafeApis: {
|
|
|
31
31
|
h264: {
|
|
32
32
|
default: import("./file-extensions").FileExtension;
|
|
33
33
|
forAudioCodec: {
|
|
34
|
-
|
|
34
|
+
aac: {
|
|
35
35
|
possible: import("./file-extensions").FileExtension[];
|
|
36
36
|
default: import("./file-extensions").FileExtension;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
mp3: {
|
|
39
39
|
possible: import("./file-extensions").FileExtension[];
|
|
40
40
|
default: import("./file-extensions").FileExtension;
|
|
41
41
|
};
|
|
@@ -61,11 +61,11 @@ export declare const BrowserSafeApis: {
|
|
|
61
61
|
vp8: {
|
|
62
62
|
default: import("./file-extensions").FileExtension;
|
|
63
63
|
forAudioCodec: {
|
|
64
|
-
|
|
64
|
+
opus: {
|
|
65
65
|
possible: import("./file-extensions").FileExtension[];
|
|
66
66
|
default: import("./file-extensions").FileExtension;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
"pcm-16": {
|
|
69
69
|
possible: import("./file-extensions").FileExtension[];
|
|
70
70
|
default: import("./file-extensions").FileExtension;
|
|
71
71
|
};
|
|
@@ -74,20 +74,20 @@ export declare const BrowserSafeApis: {
|
|
|
74
74
|
vp9: {
|
|
75
75
|
default: import("./file-extensions").FileExtension;
|
|
76
76
|
forAudioCodec: {
|
|
77
|
-
|
|
77
|
+
opus: {
|
|
78
78
|
possible: import("./file-extensions").FileExtension[];
|
|
79
79
|
default: import("./file-extensions").FileExtension;
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
"pcm-16": {
|
|
82
82
|
possible: import("./file-extensions").FileExtension[];
|
|
83
83
|
default: import("./file-extensions").FileExtension;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
prores: {
|
|
88
88
|
default: import("./file-extensions").FileExtension;
|
|
89
89
|
forAudioCodec: {
|
|
90
|
-
|
|
90
|
+
aac: {
|
|
91
91
|
possible: import("./file-extensions").FileExtension[];
|
|
92
92
|
default: import("./file-extensions").FileExtension;
|
|
93
93
|
};
|
|
@@ -110,22 +110,22 @@ export declare const BrowserSafeApis: {
|
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
mp3: {
|
|
114
114
|
default: import("./file-extensions").FileExtension;
|
|
115
115
|
forAudioCodec: {
|
|
116
|
+
mp3: {
|
|
117
|
+
possible: import("./file-extensions").FileExtension[];
|
|
118
|
+
default: import("./file-extensions").FileExtension;
|
|
119
|
+
};
|
|
116
120
|
"pcm-16": {
|
|
117
121
|
possible: import("./file-extensions").FileExtension[];
|
|
118
122
|
default: import("./file-extensions").FileExtension;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
121
125
|
};
|
|
122
|
-
|
|
126
|
+
wav: {
|
|
123
127
|
default: import("./file-extensions").FileExtension;
|
|
124
128
|
forAudioCodec: {
|
|
125
|
-
aac: {
|
|
126
|
-
possible: import("./file-extensions").FileExtension[];
|
|
127
|
-
default: import("./file-extensions").FileExtension;
|
|
128
|
-
};
|
|
129
129
|
"pcm-16": {
|
|
130
130
|
possible: import("./file-extensions").FileExtension[];
|
|
131
131
|
default: import("./file-extensions").FileExtension;
|
|
@@ -152,37 +152,37 @@ export declare const BrowserSafeApis: {
|
|
|
152
152
|
};
|
|
153
153
|
defaultAudioCodecs: {
|
|
154
154
|
h264: {
|
|
155
|
-
compressed: "
|
|
156
|
-
lossless: "
|
|
155
|
+
compressed: "aac" | "mp3" | "pcm-16" | null;
|
|
156
|
+
lossless: "aac" | "mp3" | "pcm-16" | null;
|
|
157
157
|
};
|
|
158
158
|
h265: {
|
|
159
159
|
compressed: "aac" | "pcm-16" | null;
|
|
160
160
|
lossless: "aac" | "pcm-16" | null;
|
|
161
161
|
};
|
|
162
162
|
vp8: {
|
|
163
|
-
compressed: "
|
|
164
|
-
lossless: "
|
|
163
|
+
compressed: "opus" | "pcm-16" | null;
|
|
164
|
+
lossless: "opus" | "pcm-16" | null;
|
|
165
165
|
};
|
|
166
166
|
vp9: {
|
|
167
|
-
compressed: "
|
|
168
|
-
lossless: "
|
|
167
|
+
compressed: "opus" | "pcm-16" | null;
|
|
168
|
+
lossless: "opus" | "pcm-16" | null;
|
|
169
169
|
};
|
|
170
|
-
|
|
171
|
-
compressed: "
|
|
172
|
-
lossless: "
|
|
170
|
+
prores: {
|
|
171
|
+
compressed: "aac" | "pcm-16" | null;
|
|
172
|
+
lossless: "aac" | "pcm-16" | null;
|
|
173
173
|
};
|
|
174
174
|
aac: {
|
|
175
175
|
compressed: "aac" | "pcm-16" | null;
|
|
176
176
|
lossless: "aac" | "pcm-16" | null;
|
|
177
177
|
};
|
|
178
|
+
mp3: {
|
|
179
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
180
|
+
lossless: "mp3" | "pcm-16" | null;
|
|
181
|
+
};
|
|
178
182
|
wav: {
|
|
179
183
|
compressed: "pcm-16" | null;
|
|
180
184
|
lossless: "pcm-16" | null;
|
|
181
185
|
};
|
|
182
|
-
prores: {
|
|
183
|
-
compressed: "aac" | "pcm-16" | null;
|
|
184
|
-
lossless: "aac" | "pcm-16" | null;
|
|
185
|
-
};
|
|
186
186
|
"h264-mkv": {
|
|
187
187
|
compressed: "mp3" | "pcm-16" | null;
|
|
188
188
|
lossless: "mp3" | "pcm-16" | null;
|
|
@@ -192,10 +192,10 @@ export declare const BrowserSafeApis: {
|
|
|
192
192
|
lossless: null;
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
196
|
-
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, }: {
|
|
197
197
|
codec: T_1;
|
|
198
|
-
audioCodec: "
|
|
198
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
199
199
|
extension: string;
|
|
200
200
|
preferLossless: boolean;
|
|
201
201
|
}) => void;
|
|
@@ -286,7 +286,7 @@ export declare const BrowserSafeApis: {
|
|
|
286
286
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
287
287
|
docLink: string;
|
|
288
288
|
ssrName: string;
|
|
289
|
-
type: "
|
|
289
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
290
290
|
};
|
|
291
291
|
deleteAfterOption: {
|
|
292
292
|
name: string;
|
|
@@ -520,7 +520,7 @@ export declare const BrowserSafeApis: {
|
|
|
520
520
|
};
|
|
521
521
|
};
|
|
522
522
|
};
|
|
523
|
-
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
524
|
-
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
523
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
524
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
525
525
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
526
526
|
};
|
|
@@ -4,9 +4,6 @@ export declare const createFfmpegComplexFilter: ({ filters, downloadMap, }: {
|
|
|
4
4
|
filters: PreprocessedAudioTrack[];
|
|
5
5
|
downloadMap: DownloadMap;
|
|
6
6
|
}) => Promise<{
|
|
7
|
-
complexFilterFlag: [
|
|
8
|
-
string,
|
|
9
|
-
string
|
|
10
|
-
] | null;
|
|
7
|
+
complexFilterFlag: [string, string] | null;
|
|
11
8
|
cleanup: () => void;
|
|
12
9
|
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.warnAboutM2Bug = void 0;
|
|
4
|
+
const node_os_1 = require("node:os");
|
|
5
|
+
const warnAboutM2Bug = (codec, pixelFormat) => {
|
|
6
|
+
const isM2 = (0, node_os_1.cpus)().find((c) => c.model.includes('Apple M2'));
|
|
7
|
+
if (codec === 'prores' && pixelFormat === 'yuv422p10le' && isM2) {
|
|
8
|
+
console.warn();
|
|
9
|
+
console.warn('⚠️ Known issue: Apple M2 CPUs currently suffer from a bug where transparent ProRes videos have flickering. https://github.com/remotion-dev/remotion/issues/1929');
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.warnAboutM2Bug = warnAboutM2Bug;
|
|
@@ -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
|
@@ -66,10 +66,10 @@ export declare const RenderInternals: {
|
|
|
66
66
|
width: number;
|
|
67
67
|
height: number;
|
|
68
68
|
scale: number;
|
|
69
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
69
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
70
70
|
wantsImageSequence: boolean;
|
|
71
71
|
}) => void;
|
|
72
|
-
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "
|
|
72
|
+
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;
|
|
73
73
|
tmpDir: (str: string) => string;
|
|
74
74
|
deleteDirectory: (directory: string) => void;
|
|
75
75
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -126,7 +126,7 @@ export declare const RenderInternals: {
|
|
|
126
126
|
};
|
|
127
127
|
registerErrorSymbolicationLock: () => number;
|
|
128
128
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
129
|
-
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
129
|
+
canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
|
|
130
130
|
mimeContentType: typeof mimeContentType;
|
|
131
131
|
mimeLookup: typeof mimeLookup;
|
|
132
132
|
validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
|
|
@@ -140,11 +140,11 @@ export declare const RenderInternals: {
|
|
|
140
140
|
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
141
141
|
validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
142
142
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
143
|
-
DEFAULT_PIXEL_FORMAT: "yuv420p" | "
|
|
143
|
+
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
144
144
|
validateJpegQuality: (q: number | undefined) => void;
|
|
145
145
|
DEFAULT_TIMEOUT: number;
|
|
146
|
-
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "
|
|
147
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
146
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
147
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null | undefined) => boolean;
|
|
148
148
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
149
149
|
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
|
|
150
150
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -161,10 +161,10 @@ export declare const RenderInternals: {
|
|
|
161
161
|
output: string;
|
|
162
162
|
onProgress: (p: number) => void;
|
|
163
163
|
numberOfFrames: number;
|
|
164
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
164
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
165
165
|
fps: number;
|
|
166
166
|
numberOfGifLoops: number | null;
|
|
167
|
-
audioCodec: "
|
|
167
|
+
audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
168
168
|
audioBitrate: string | null;
|
|
169
169
|
indent: boolean;
|
|
170
170
|
logLevel: "verbose" | "info" | "warn" | "error";
|
|
@@ -172,19 +172,19 @@ export declare const RenderInternals: {
|
|
|
172
172
|
getMinConcurrency: () => number;
|
|
173
173
|
getMaxConcurrency: () => number;
|
|
174
174
|
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
175
|
-
codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
175
|
+
codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
|
|
176
176
|
preferLossless: boolean;
|
|
177
|
-
}) => "
|
|
177
|
+
}) => "opus" | "aac" | "mp3" | "pcm-16" | null;
|
|
178
178
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
179
179
|
defaultFileExtensionMap: {
|
|
180
180
|
h264: {
|
|
181
181
|
default: import("./file-extensions").FileExtension;
|
|
182
182
|
forAudioCodec: {
|
|
183
|
-
|
|
183
|
+
aac: {
|
|
184
184
|
possible: import("./file-extensions").FileExtension[];
|
|
185
185
|
default: import("./file-extensions").FileExtension;
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
mp3: {
|
|
188
188
|
possible: import("./file-extensions").FileExtension[];
|
|
189
189
|
default: import("./file-extensions").FileExtension;
|
|
190
190
|
};
|
|
@@ -210,11 +210,11 @@ export declare const RenderInternals: {
|
|
|
210
210
|
vp8: {
|
|
211
211
|
default: import("./file-extensions").FileExtension;
|
|
212
212
|
forAudioCodec: {
|
|
213
|
-
|
|
213
|
+
opus: {
|
|
214
214
|
possible: import("./file-extensions").FileExtension[];
|
|
215
215
|
default: import("./file-extensions").FileExtension;
|
|
216
216
|
};
|
|
217
|
-
|
|
217
|
+
"pcm-16": {
|
|
218
218
|
possible: import("./file-extensions").FileExtension[];
|
|
219
219
|
default: import("./file-extensions").FileExtension;
|
|
220
220
|
};
|
|
@@ -223,20 +223,20 @@ export declare const RenderInternals: {
|
|
|
223
223
|
vp9: {
|
|
224
224
|
default: import("./file-extensions").FileExtension;
|
|
225
225
|
forAudioCodec: {
|
|
226
|
-
|
|
226
|
+
opus: {
|
|
227
227
|
possible: import("./file-extensions").FileExtension[];
|
|
228
228
|
default: import("./file-extensions").FileExtension;
|
|
229
229
|
};
|
|
230
|
-
|
|
230
|
+
"pcm-16": {
|
|
231
231
|
possible: import("./file-extensions").FileExtension[];
|
|
232
232
|
default: import("./file-extensions").FileExtension;
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
-
|
|
236
|
+
prores: {
|
|
237
237
|
default: import("./file-extensions").FileExtension;
|
|
238
238
|
forAudioCodec: {
|
|
239
|
-
|
|
239
|
+
aac: {
|
|
240
240
|
possible: import("./file-extensions").FileExtension[];
|
|
241
241
|
default: import("./file-extensions").FileExtension;
|
|
242
242
|
};
|
|
@@ -259,22 +259,22 @@ export declare const RenderInternals: {
|
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
|
-
|
|
262
|
+
mp3: {
|
|
263
263
|
default: import("./file-extensions").FileExtension;
|
|
264
264
|
forAudioCodec: {
|
|
265
|
+
mp3: {
|
|
266
|
+
possible: import("./file-extensions").FileExtension[];
|
|
267
|
+
default: import("./file-extensions").FileExtension;
|
|
268
|
+
};
|
|
265
269
|
"pcm-16": {
|
|
266
270
|
possible: import("./file-extensions").FileExtension[];
|
|
267
271
|
default: import("./file-extensions").FileExtension;
|
|
268
272
|
};
|
|
269
273
|
};
|
|
270
274
|
};
|
|
271
|
-
|
|
275
|
+
wav: {
|
|
272
276
|
default: import("./file-extensions").FileExtension;
|
|
273
277
|
forAudioCodec: {
|
|
274
|
-
aac: {
|
|
275
|
-
possible: import("./file-extensions").FileExtension[];
|
|
276
|
-
default: import("./file-extensions").FileExtension;
|
|
277
|
-
};
|
|
278
278
|
"pcm-16": {
|
|
279
279
|
possible: import("./file-extensions").FileExtension[];
|
|
280
280
|
default: import("./file-extensions").FileExtension;
|
|
@@ -311,8 +311,8 @@ export declare const RenderInternals: {
|
|
|
311
311
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
312
312
|
readonly wav: readonly ["pcm-16"];
|
|
313
313
|
};
|
|
314
|
-
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "
|
|
315
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "
|
|
314
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif")[]>;
|
|
315
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">;
|
|
316
316
|
getExecutablePath: (type: "ffmpeg" | "ffprobe" | "compositor", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
|
|
317
317
|
callFf: ({ args, bin, indent, logLevel, options, }: {
|
|
318
318
|
bin: "ffmpeg" | "ffprobe";
|
|
@@ -323,8 +323,8 @@ export declare const RenderInternals: {
|
|
|
323
323
|
}) => execa.ExecaChildProcess<string>;
|
|
324
324
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
325
325
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
326
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
327
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
326
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
327
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "jpeg" | "png";
|
|
328
328
|
DEFAULT_JPEG_QUALITY: number;
|
|
329
329
|
chalk: {
|
|
330
330
|
enabled: () => boolean;
|
|
@@ -423,7 +423,7 @@ export declare const RenderInternals: {
|
|
|
423
423
|
frame: number;
|
|
424
424
|
serializedInputPropsWithCustomSchema: string;
|
|
425
425
|
serializedResolvedPropsWithCustomSchema: string;
|
|
426
|
-
imageFormat: "
|
|
426
|
+
imageFormat: "jpeg" | "png" | "webp" | "pdf";
|
|
427
427
|
jpegQuality: number;
|
|
428
428
|
puppeteerInstance: HeadlessBrowser | null;
|
|
429
429
|
envVariables: Record<string, string>;
|
|
@@ -6,6 +6,6 @@ export declare const colorSpaceOption: {
|
|
|
6
6
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
docLink: string;
|
|
8
8
|
ssrName: string;
|
|
9
|
-
type: "
|
|
9
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
10
10
|
};
|
|
11
11
|
export declare const validateColorSpace: (option: unknown) => void;
|
package/dist/options/index.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export declare const allOptions: {
|
|
|
85
85
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
86
86
|
docLink: string;
|
|
87
87
|
ssrName: string;
|
|
88
|
-
type: "
|
|
88
|
+
type: "bt709" | "bt2020-ncl" | "default";
|
|
89
89
|
};
|
|
90
90
|
deleteAfterOption: {
|
|
91
91
|
name: string;
|
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.112",
|
|
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.112"
|
|
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-darwin-
|
|
45
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
46
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
47
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
48
|
-
"@remotion/compositor-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-x64": "4.0.112",
|
|
44
|
+
"@remotion/compositor-darwin-arm64": "4.0.112",
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.112",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.112",
|
|
47
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.112",
|
|
48
|
+
"@remotion/compositor-linux-x64-musl": "4.0.112",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.112"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|