@remotion/renderer 4.0.112 → 4.0.113

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 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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => import("./file-extensions").FileExtension;
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" | "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;
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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
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" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
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
- aac: {
34
+ mp3: {
35
35
  possible: import("./file-extensions").FileExtension[];
36
36
  default: import("./file-extensions").FileExtension;
37
37
  };
38
- mp3: {
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
- opus: {
64
+ "pcm-16": {
65
65
  possible: import("./file-extensions").FileExtension[];
66
66
  default: import("./file-extensions").FileExtension;
67
67
  };
68
- "pcm-16": {
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
- opus: {
77
+ "pcm-16": {
78
78
  possible: import("./file-extensions").FileExtension[];
79
79
  default: import("./file-extensions").FileExtension;
80
80
  };
81
- "pcm-16": {
81
+ opus: {
82
82
  possible: import("./file-extensions").FileExtension[];
83
83
  default: import("./file-extensions").FileExtension;
84
84
  };
85
85
  };
86
86
  };
87
- prores: {
87
+ mp3: {
88
88
  default: import("./file-extensions").FileExtension;
89
89
  forAudioCodec: {
90
- aac: {
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
- mp3: {
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
- wav: {
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: "aac" | "mp3" | "pcm-16" | null;
156
- lossless: "aac" | "mp3" | "pcm-16" | null;
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: "opus" | "pcm-16" | null;
164
- lossless: "opus" | "pcm-16" | null;
163
+ compressed: "pcm-16" | "opus" | null;
164
+ lossless: "pcm-16" | "opus" | null;
165
165
  };
166
166
  vp9: {
167
- compressed: "opus" | "pcm-16" | null;
168
- lossless: "opus" | "pcm-16" | null;
167
+ compressed: "pcm-16" | "opus" | null;
168
+ lossless: "pcm-16" | "opus" | null;
169
169
  };
170
- prores: {
171
- compressed: "aac" | "pcm-16" | null;
172
- lossless: "aac" | "pcm-16" | null;
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" | "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, }: {
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: "opus" | "aac" | "mp3" | "pcm-16" | null;
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: "bt709" | "bt2020-ncl" | "default";
289
+ type: "default" | "bt709" | "bt2020-ncl";
290
290
  };
291
291
  deleteAfterOption: {
292
292
  name: string;
@@ -316,7 +316,7 @@ export declare const BrowserSafeApis: {
316
316
  cliFlag: "gl";
317
317
  docLink: string;
318
318
  name: string;
319
- type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
319
+ type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
320
320
  ssrName: string;
321
321
  description: () => import("react/jsx-runtime").JSX.Element;
322
322
  };
@@ -520,7 +520,7 @@ export declare const BrowserSafeApis: {
520
520
  };
521
521
  };
522
522
  };
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;
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" | "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")[]>;
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
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import execa from 'execa';
4
2
  import { HeadlessBrowser } from './browser/Browser';
5
3
  import { SymbolicateableError } from './error-handling/symbolicateable-error';
@@ -66,10 +64,10 @@ export declare const RenderInternals: {
66
64
  width: number;
67
65
  height: number;
68
66
  scale: number;
69
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
67
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
70
68
  wantsImageSequence: boolean;
71
69
  }) => void;
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;
70
+ 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
71
  tmpDir: (str: string) => string;
74
72
  deleteDirectory: (directory: string) => void;
75
73
  isServeUrl: (potentialUrl: string) => boolean;
@@ -126,7 +124,7 @@ export declare const RenderInternals: {
126
124
  };
127
125
  registerErrorSymbolicationLock: () => number;
128
126
  unlockErrorSymbolicationLock: (id: number) => void;
129
- canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
127
+ canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
130
128
  mimeContentType: typeof mimeContentType;
131
129
  mimeLookup: typeof mimeLookup;
132
130
  validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
@@ -137,14 +135,14 @@ export declare const RenderInternals: {
137
135
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
138
136
  DEFAULT_BROWSER: "chrome";
139
137
  validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
140
- DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
141
- validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
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;
142
140
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
143
- DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
141
+ DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
144
142
  validateJpegQuality: (q: number | undefined) => void;
145
143
  DEFAULT_TIMEOUT: number;
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;
144
+ DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
145
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null | undefined) => boolean;
148
146
  logLevels: readonly ["verbose", "info", "warn", "error"];
149
147
  isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
150
148
  isValidLogLevel: (level: string) => boolean;
@@ -161,10 +159,10 @@ export declare const RenderInternals: {
161
159
  output: string;
162
160
  onProgress: (p: number) => void;
163
161
  numberOfFrames: number;
164
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
162
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
165
163
  fps: number;
166
164
  numberOfGifLoops: number | null;
167
- audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
165
+ audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
168
166
  audioBitrate: string | null;
169
167
  indent: boolean;
170
168
  logLevel: "verbose" | "info" | "warn" | "error";
@@ -172,19 +170,19 @@ export declare const RenderInternals: {
172
170
  getMinConcurrency: () => number;
173
171
  getMaxConcurrency: () => number;
174
172
  getDefaultAudioCodec: ({ codec, preferLossless, }: {
175
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
173
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
176
174
  preferLossless: boolean;
177
- }) => "opus" | "aac" | "mp3" | "pcm-16" | null;
175
+ }) => "mp3" | "aac" | "pcm-16" | "opus" | null;
178
176
  validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
179
177
  defaultFileExtensionMap: {
180
178
  h264: {
181
179
  default: import("./file-extensions").FileExtension;
182
180
  forAudioCodec: {
183
- aac: {
181
+ mp3: {
184
182
  possible: import("./file-extensions").FileExtension[];
185
183
  default: import("./file-extensions").FileExtension;
186
184
  };
187
- mp3: {
185
+ aac: {
188
186
  possible: import("./file-extensions").FileExtension[];
189
187
  default: import("./file-extensions").FileExtension;
190
188
  };
@@ -210,11 +208,11 @@ export declare const RenderInternals: {
210
208
  vp8: {
211
209
  default: import("./file-extensions").FileExtension;
212
210
  forAudioCodec: {
213
- opus: {
211
+ "pcm-16": {
214
212
  possible: import("./file-extensions").FileExtension[];
215
213
  default: import("./file-extensions").FileExtension;
216
214
  };
217
- "pcm-16": {
215
+ opus: {
218
216
  possible: import("./file-extensions").FileExtension[];
219
217
  default: import("./file-extensions").FileExtension;
220
218
  };
@@ -223,20 +221,20 @@ export declare const RenderInternals: {
223
221
  vp9: {
224
222
  default: import("./file-extensions").FileExtension;
225
223
  forAudioCodec: {
226
- opus: {
224
+ "pcm-16": {
227
225
  possible: import("./file-extensions").FileExtension[];
228
226
  default: import("./file-extensions").FileExtension;
229
227
  };
230
- "pcm-16": {
228
+ opus: {
231
229
  possible: import("./file-extensions").FileExtension[];
232
230
  default: import("./file-extensions").FileExtension;
233
231
  };
234
232
  };
235
233
  };
236
- prores: {
234
+ mp3: {
237
235
  default: import("./file-extensions").FileExtension;
238
236
  forAudioCodec: {
239
- aac: {
237
+ mp3: {
240
238
  possible: import("./file-extensions").FileExtension[];
241
239
  default: import("./file-extensions").FileExtension;
242
240
  };
@@ -259,22 +257,22 @@ export declare const RenderInternals: {
259
257
  };
260
258
  };
261
259
  };
262
- mp3: {
260
+ wav: {
263
261
  default: import("./file-extensions").FileExtension;
264
262
  forAudioCodec: {
265
- mp3: {
266
- possible: import("./file-extensions").FileExtension[];
267
- default: import("./file-extensions").FileExtension;
268
- };
269
263
  "pcm-16": {
270
264
  possible: import("./file-extensions").FileExtension[];
271
265
  default: import("./file-extensions").FileExtension;
272
266
  };
273
267
  };
274
268
  };
275
- wav: {
269
+ prores: {
276
270
  default: import("./file-extensions").FileExtension;
277
271
  forAudioCodec: {
272
+ aac: {
273
+ possible: import("./file-extensions").FileExtension[];
274
+ default: import("./file-extensions").FileExtension;
275
+ };
278
276
  "pcm-16": {
279
277
  possible: import("./file-extensions").FileExtension[];
280
278
  default: import("./file-extensions").FileExtension;
@@ -311,9 +309,9 @@ export declare const RenderInternals: {
311
309
  readonly vp9: readonly ["opus", "pcm-16"];
312
310
  readonly wav: readonly ["pcm-16"];
313
311
  };
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
- getExecutablePath: (type: "ffmpeg" | "ffprobe" | "compositor", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
312
+ makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
313
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
314
+ getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
317
315
  callFf: ({ args, bin, indent, logLevel, options, }: {
318
316
  bin: "ffmpeg" | "ffprobe";
319
317
  args: (string | null)[];
@@ -323,8 +321,8 @@ export declare const RenderInternals: {
323
321
  }) => execa.ExecaChildProcess<string>;
324
322
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
325
323
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
326
- DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
327
- DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "jpeg" | "png";
324
+ DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
325
+ DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
328
326
  DEFAULT_JPEG_QUALITY: number;
329
327
  chalk: {
330
328
  enabled: () => boolean;
@@ -423,7 +421,7 @@ export declare const RenderInternals: {
423
421
  frame: number;
424
422
  serializedInputPropsWithCustomSchema: string;
425
423
  serializedResolvedPropsWithCustomSchema: string;
426
- imageFormat: "jpeg" | "png" | "webp" | "pdf";
424
+ imageFormat: "png" | "jpeg" | "pdf" | "webp";
427
425
  jpegQuality: number;
428
426
  puppeteerInstance: HeadlessBrowser | null;
429
427
  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: "bt709" | "bt2020-ncl" | "default";
9
+ type: "default" | "bt709" | "bt2020-ncl";
10
10
  };
11
11
  export declare const validateColorSpace: (option: unknown) => void;
@@ -3,7 +3,7 @@ export declare const glOption: {
3
3
  cliFlag: "gl";
4
4
  docLink: string;
5
5
  name: string;
6
- type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
6
+ type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
7
7
  ssrName: string;
8
8
  description: () => import("react/jsx-runtime").JSX.Element;
9
9
  };
@@ -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: "bt709" | "bt2020-ncl" | "default";
88
+ type: "default" | "bt709" | "bt2020-ncl";
89
89
  };
90
90
  deleteAfterOption: {
91
91
  name: string;
@@ -115,7 +115,7 @@ export declare const allOptions: {
115
115
  cliFlag: "gl";
116
116
  docLink: string;
117
117
  name: string;
118
- type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
118
+ type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
119
119
  ssrName: string;
120
120
  description: () => import("react/jsx-runtime").JSX.Element;
121
121
  };
@@ -0,0 +1,8 @@
1
+ export declare const offthreadVideoCacheSizeInBytes: {
2
+ name: string;
3
+ cliFlag: "x264-preset";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "offthreadVideoCacheSizeInBytes";
6
+ docLink: string;
7
+ type: number | null;
8
+ };
@@ -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
+ };
@@ -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" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
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" | "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, }: {
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: "opus" | "aac" | "mp3" | "pcm-16" | null;
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" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
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.112",
3
+ "version": "4.0.113",
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.112"
21
+ "remotion": "4.0.113"
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.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"
43
+ "@remotion/compositor-darwin-x64": "4.0.113",
44
+ "@remotion/compositor-linux-x64-gnu": "4.0.113",
45
+ "@remotion/compositor-darwin-arm64": "4.0.113",
46
+ "@remotion/compositor-win32-x64-msvc": "4.0.113",
47
+ "@remotion/compositor-linux-x64-musl": "4.0.113",
48
+ "@remotion/compositor-linux-arm64-gnu": "4.0.113",
49
+ "@remotion/compositor-linux-arm64-musl": "4.0.113"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",