@remotion/renderer 4.0.112 → 4.0.114
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/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/options/x264-preset.d.ts +8 -0
- package/dist/options/x264-preset.js +12 -0
- 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,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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
4
4
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
5
5
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
6
|
-
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
7
|
-
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
8
|
-
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "
|
|
6
|
+
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "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" | "yuva420p" | "yuv422p" | "yuv444p" | "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
|
+
mp3: {
|
|
35
35
|
possible: import("./file-extensions").FileExtension[];
|
|
36
36
|
default: import("./file-extensions").FileExtension;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
aac: {
|
|
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
|
+
"pcm-16": {
|
|
65
65
|
possible: import("./file-extensions").FileExtension[];
|
|
66
66
|
default: import("./file-extensions").FileExtension;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
opus: {
|
|
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
|
+
"pcm-16": {
|
|
78
78
|
possible: import("./file-extensions").FileExtension[];
|
|
79
79
|
default: import("./file-extensions").FileExtension;
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
opus: {
|
|
82
82
|
possible: import("./file-extensions").FileExtension[];
|
|
83
83
|
default: import("./file-extensions").FileExtension;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
mp3: {
|
|
88
88
|
default: import("./file-extensions").FileExtension;
|
|
89
89
|
forAudioCodec: {
|
|
90
|
-
|
|
90
|
+
mp3: {
|
|
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
|
+
wav: {
|
|
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
|
-
};
|
|
120
116
|
"pcm-16": {
|
|
121
117
|
possible: import("./file-extensions").FileExtension[];
|
|
122
118
|
default: import("./file-extensions").FileExtension;
|
|
123
119
|
};
|
|
124
120
|
};
|
|
125
121
|
};
|
|
126
|
-
|
|
122
|
+
prores: {
|
|
127
123
|
default: import("./file-extensions").FileExtension;
|
|
128
124
|
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: "mp3" | "aac" | "pcm-16" | null;
|
|
156
|
+
lossless: "mp3" | "aac" | "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: "pcm-16" | "opus" | null;
|
|
164
|
+
lossless: "pcm-16" | "opus" | null;
|
|
165
165
|
};
|
|
166
166
|
vp9: {
|
|
167
|
-
compressed: "
|
|
168
|
-
lossless: "
|
|
167
|
+
compressed: "pcm-16" | "opus" | null;
|
|
168
|
+
lossless: "pcm-16" | "opus" | null;
|
|
169
169
|
};
|
|
170
|
-
|
|
171
|
-
compressed: "
|
|
172
|
-
lossless: "
|
|
170
|
+
mp3: {
|
|
171
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
172
|
+
lossless: "mp3" | "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
|
-
};
|
|
182
178
|
wav: {
|
|
183
179
|
compressed: "pcm-16" | null;
|
|
184
180
|
lossless: "pcm-16" | null;
|
|
185
181
|
};
|
|
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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
|
|
196
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
197
197
|
codec: T_1;
|
|
198
|
-
audioCodec: "
|
|
198
|
+
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | 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: "default" | "bt709" | "bt2020-ncl";
|
|
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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
|
|
524
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
|
|
525
525
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
526
526
|
};
|
|
@@ -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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
|
|
5
|
+
export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "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" | "mp3" | "aac" | "wav" | "prores" | "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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | 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" | "mp3" | "aac" | "wav" | "prores" | "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" | "yuva420p" | "yuv422p" | "yuv444p" | "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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
147
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
165
165
|
fps: number;
|
|
166
166
|
numberOfGifLoops: number | null;
|
|
167
|
-
audioCodec: "
|
|
167
|
+
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | 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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
176
176
|
preferLossless: boolean;
|
|
177
|
-
}) => "
|
|
177
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | 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
|
+
mp3: {
|
|
184
184
|
possible: import("./file-extensions").FileExtension[];
|
|
185
185
|
default: import("./file-extensions").FileExtension;
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
aac: {
|
|
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
|
+
"pcm-16": {
|
|
214
214
|
possible: import("./file-extensions").FileExtension[];
|
|
215
215
|
default: import("./file-extensions").FileExtension;
|
|
216
216
|
};
|
|
217
|
-
|
|
217
|
+
opus: {
|
|
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
|
+
"pcm-16": {
|
|
227
227
|
possible: import("./file-extensions").FileExtension[];
|
|
228
228
|
default: import("./file-extensions").FileExtension;
|
|
229
229
|
};
|
|
230
|
-
|
|
230
|
+
opus: {
|
|
231
231
|
possible: import("./file-extensions").FileExtension[];
|
|
232
232
|
default: import("./file-extensions").FileExtension;
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
-
|
|
236
|
+
mp3: {
|
|
237
237
|
default: import("./file-extensions").FileExtension;
|
|
238
238
|
forAudioCodec: {
|
|
239
|
-
|
|
239
|
+
mp3: {
|
|
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
|
+
wav: {
|
|
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
|
-
};
|
|
269
265
|
"pcm-16": {
|
|
270
266
|
possible: import("./file-extensions").FileExtension[];
|
|
271
267
|
default: import("./file-extensions").FileExtension;
|
|
272
268
|
};
|
|
273
269
|
};
|
|
274
270
|
};
|
|
275
|
-
|
|
271
|
+
prores: {
|
|
276
272
|
default: import("./file-extensions").FileExtension;
|
|
277
273
|
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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
|
|
315
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "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";
|
|
@@ -324,7 +324,7 @@ export declare const RenderInternals: {
|
|
|
324
324
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
325
325
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
326
326
|
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
327
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
327
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
328
328
|
DEFAULT_JPEG_QUALITY: number;
|
|
329
329
|
chalk: {
|
|
330
330
|
enabled: () => boolean;
|
|
@@ -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: "default" | "bt709" | "bt2020-ncl";
|
|
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: "default" | "bt709" | "bt2020-ncl";
|
|
89
89
|
};
|
|
90
90
|
deleteAfterOption: {
|
|
91
91
|
name: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.offthreadVideoCacheSizeInBytes = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
exports.offthreadVideoCacheSizeInBytes = {
|
|
6
|
+
name: 'x264 Preset',
|
|
7
|
+
cliFlag: 'x264-preset',
|
|
8
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["From v4.0, Remotion has a cache for", ' ', (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/offthreadvideo", children: (0, jsx_runtime_1.jsx)("code", { children: "<OffthreadVideo>" }) }), ' ', "frames. The default is ", (0, jsx_runtime_1.jsx)("code", { children: "null" }), ", corresponding to half of the system memory available when the render starts.", (0, jsx_runtime_1.jsx)("br", {}), " This option allows to override the size of the cache. The higher it is, the faster the render will be, but the more memory will be used.", (0, jsx_runtime_1.jsx)("br", {}), "The used value will be printed when running in verbose mode.", (0, jsx_runtime_1.jsx)("br", {}), "Default: ", (0, jsx_runtime_1.jsx)("code", { children: "null" })] })),
|
|
9
|
+
ssrName: 'offthreadVideoCacheSizeInBytes',
|
|
10
|
+
docLink: 'https://www.remotion.dev/docs/offthreadvideo',
|
|
11
|
+
type: 0,
|
|
12
|
+
};
|
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" | "yuva420p" | "yuv422p" | "yuv444p" | "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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
5
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
6
6
|
codec: T_1;
|
|
7
|
-
audioCodec: "
|
|
7
|
+
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | 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" | "mp3" | "aac" | "wav" | "prores" | "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.114",
|
|
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.114"
|
|
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-x64": "4.0.
|
|
44
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
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.114",
|
|
44
|
+
"@remotion/compositor-darwin-arm64": "4.0.114",
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.114",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.114",
|
|
47
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.114",
|
|
48
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.114",
|
|
49
|
+
"@remotion/compositor-linux-x64-musl": "4.0.114"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|