@remotion/renderer 4.0.117 → 4.0.119

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, TypeOfOption } 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;
@@ -314,17 +314,17 @@ export declare const BrowserSafeApis: {
314
314
  description: () => import("react/jsx-runtime").JSX.Element;
315
315
  ssrName: string;
316
316
  docLink: string;
317
- type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
317
+ type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
318
318
  getValue: ({ commandLine }: {
319
319
  commandLine: Record<string, unknown>;
320
320
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
321
321
  outName: string | null;
322
322
  downloadName: string | null;
323
- configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
324
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
325
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
323
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
324
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
325
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
326
326
  }) => {
327
- value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
327
+ value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
328
328
  source: string;
329
329
  };
330
330
  setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
@@ -350,7 +350,7 @@ export declare const BrowserSafeApis: {
350
350
  webhookCustomDataOption: {
351
351
  name: string;
352
352
  cliFlag: "webhook-custom-data";
353
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
353
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
354
354
  ssrName: "customData";
355
355
  docLink: string;
356
356
  type: Record<string, unknown> | null;
@@ -424,19 +424,19 @@ export declare const BrowserSafeApis: {
424
424
  cliFlag: "gl";
425
425
  docLink: string;
426
426
  name: string;
427
- type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
427
+ type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
428
428
  ssrName: string;
429
429
  description: () => import("react/jsx-runtime").JSX.Element;
430
430
  getValue: ({ commandLine }: {
431
431
  commandLine: Record<string, unknown>;
432
432
  }) => {
433
- value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
433
+ value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
434
434
  source: string;
435
435
  } | {
436
436
  value: null;
437
437
  source: string;
438
438
  };
439
- setConfig: (value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
439
+ setConfig: (value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
440
440
  };
441
441
  enableLambdaInsights: {
442
442
  name: string;
@@ -742,17 +742,17 @@ export declare const BrowserSafeApis: {
742
742
  description: () => import("react/jsx-runtime").JSX.Element;
743
743
  ssrName: string;
744
744
  docLink: string;
745
- type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
745
+ type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
746
746
  getValue: ({ commandLine }: {
747
747
  commandLine: Record<string, unknown>;
748
748
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
749
749
  outName: string | null;
750
750
  downloadName: string | null;
751
- configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
752
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
753
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
751
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
752
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
753
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
754
754
  }) => {
755
- value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
755
+ value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
756
756
  source: string;
757
757
  };
758
758
  setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
@@ -1761,8 +1761,8 @@ export declare const BrowserSafeApis: {
1761
1761
  };
1762
1762
  };
1763
1763
  };
1764
- codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
1765
- codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
1764
+ codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
1765
+ codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
1766
1766
  logLevels: readonly ["verbose", "info", "warn", "error"];
1767
1767
  getOutputCodecOrUndefined: () => import("./codec").CodecOrUndefined;
1768
1768
  };
@@ -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
  }>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import execa from 'execa';
2
4
  import { HeadlessBrowser } from './browser/Browser';
3
5
  import { SymbolicateableError } from './error-handling/symbolicateable-error';
@@ -66,10 +68,10 @@ export declare const RenderInternals: {
66
68
  width: number;
67
69
  height: number;
68
70
  scale: number;
69
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
71
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
70
72
  wantsImageSequence: boolean;
71
73
  }) => 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;
74
+ 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
75
  tmpDir: (str: string) => string;
74
76
  deleteDirectory: (directory: string) => void;
75
77
  isServeUrl: (potentialUrl: string) => boolean;
@@ -126,7 +128,7 @@ export declare const RenderInternals: {
126
128
  };
127
129
  registerErrorSymbolicationLock: () => number;
128
130
  unlockErrorSymbolicationLock: (id: number) => void;
129
- canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif") => boolean;
131
+ canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
130
132
  mimeContentType: typeof mimeContentType;
131
133
  mimeLookup: typeof mimeLookup;
132
134
  validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
@@ -137,14 +139,14 @@ export declare const RenderInternals: {
137
139
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
138
140
  DEFAULT_BROWSER: "chrome";
139
141
  validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
140
- DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
141
- validateOpenGlRenderer: (option: unknown) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
142
+ DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
143
+ validateOpenGlRenderer: (option: unknown) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
142
144
  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";
145
+ DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
144
146
  validateJpegQuality: (q: unknown) => void;
145
147
  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;
148
+ DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
149
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null | undefined) => boolean;
148
150
  logLevels: readonly ["verbose", "info", "warn", "error"];
149
151
  isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
150
152
  isValidLogLevel: (level: string) => boolean;
@@ -161,10 +163,10 @@ export declare const RenderInternals: {
161
163
  output: string;
162
164
  onProgress: (p: number) => void;
163
165
  numberOfFrames: number;
164
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
166
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
165
167
  fps: number;
166
168
  numberOfGifLoops: number | null;
167
- audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
169
+ audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
168
170
  audioBitrate: string | null;
169
171
  indent: boolean;
170
172
  logLevel: "verbose" | "info" | "warn" | "error";
@@ -172,19 +174,19 @@ export declare const RenderInternals: {
172
174
  getMinConcurrency: () => number;
173
175
  getMaxConcurrency: () => number;
174
176
  getDefaultAudioCodec: ({ codec, preferLossless, }: {
175
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
177
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
176
178
  preferLossless: boolean;
177
- }) => "opus" | "aac" | "mp3" | "pcm-16" | null;
179
+ }) => "mp3" | "aac" | "pcm-16" | "opus" | null;
178
180
  validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
179
181
  defaultFileExtensionMap: {
180
182
  h264: {
181
183
  default: import("./file-extensions").FileExtension;
182
184
  forAudioCodec: {
183
- aac: {
185
+ mp3: {
184
186
  possible: import("./file-extensions").FileExtension[];
185
187
  default: import("./file-extensions").FileExtension;
186
188
  };
187
- mp3: {
189
+ aac: {
188
190
  possible: import("./file-extensions").FileExtension[];
189
191
  default: import("./file-extensions").FileExtension;
190
192
  };
@@ -210,11 +212,11 @@ export declare const RenderInternals: {
210
212
  vp8: {
211
213
  default: import("./file-extensions").FileExtension;
212
214
  forAudioCodec: {
213
- opus: {
215
+ "pcm-16": {
214
216
  possible: import("./file-extensions").FileExtension[];
215
217
  default: import("./file-extensions").FileExtension;
216
218
  };
217
- "pcm-16": {
219
+ opus: {
218
220
  possible: import("./file-extensions").FileExtension[];
219
221
  default: import("./file-extensions").FileExtension;
220
222
  };
@@ -223,20 +225,20 @@ export declare const RenderInternals: {
223
225
  vp9: {
224
226
  default: import("./file-extensions").FileExtension;
225
227
  forAudioCodec: {
226
- opus: {
228
+ "pcm-16": {
227
229
  possible: import("./file-extensions").FileExtension[];
228
230
  default: import("./file-extensions").FileExtension;
229
231
  };
230
- "pcm-16": {
232
+ opus: {
231
233
  possible: import("./file-extensions").FileExtension[];
232
234
  default: import("./file-extensions").FileExtension;
233
235
  };
234
236
  };
235
237
  };
236
- prores: {
238
+ mp3: {
237
239
  default: import("./file-extensions").FileExtension;
238
240
  forAudioCodec: {
239
- aac: {
241
+ mp3: {
240
242
  possible: import("./file-extensions").FileExtension[];
241
243
  default: import("./file-extensions").FileExtension;
242
244
  };
@@ -259,22 +261,22 @@ export declare const RenderInternals: {
259
261
  };
260
262
  };
261
263
  };
262
- mp3: {
264
+ wav: {
263
265
  default: import("./file-extensions").FileExtension;
264
266
  forAudioCodec: {
265
- mp3: {
266
- possible: import("./file-extensions").FileExtension[];
267
- default: import("./file-extensions").FileExtension;
268
- };
269
267
  "pcm-16": {
270
268
  possible: import("./file-extensions").FileExtension[];
271
269
  default: import("./file-extensions").FileExtension;
272
270
  };
273
271
  };
274
272
  };
275
- wav: {
273
+ prores: {
276
274
  default: import("./file-extensions").FileExtension;
277
275
  forAudioCodec: {
276
+ aac: {
277
+ possible: import("./file-extensions").FileExtension[];
278
+ default: import("./file-extensions").FileExtension;
279
+ };
278
280
  "pcm-16": {
279
281
  possible: import("./file-extensions").FileExtension[];
280
282
  default: import("./file-extensions").FileExtension;
@@ -311,9 +313,9 @@ export declare const RenderInternals: {
311
313
  readonly vp9: readonly ["opus", "pcm-16"];
312
314
  readonly wav: readonly ["pcm-16"];
313
315
  };
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: "compositor" | "ffmpeg" | "ffprobe", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
316
+ makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
317
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
318
+ getExecutablePath: (type: "ffmpeg" | "ffprobe" | "compositor", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
317
319
  callFf: ({ args, bin, indent, logLevel, options, }: {
318
320
  bin: "ffmpeg" | "ffprobe";
319
321
  args: (string | null)[];
@@ -323,8 +325,8 @@ export declare const RenderInternals: {
323
325
  }) => execa.ExecaChildProcess<string>;
324
326
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
325
327
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
326
- DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
327
- DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
328
+ DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
329
+ DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
328
330
  DEFAULT_JPEG_QUALITY: number;
329
331
  chalk: {
330
332
  enabled: () => boolean;
@@ -419,7 +421,7 @@ export declare const RenderInternals: {
419
421
  frame: number;
420
422
  serializedInputPropsWithCustomSchema: string;
421
423
  serializedResolvedPropsWithCustomSchema: string;
422
- imageFormat: "png" | "jpeg" | "pdf" | "webp";
424
+ imageFormat: "jpeg" | "png" | "webp" | "pdf";
423
425
  jpegQuality: number;
424
426
  puppeteerInstance: HeadlessBrowser | null;
425
427
  envVariables: Record<string, string>;
@@ -1,19 +1,19 @@
1
1
  export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
2
2
  export type OpenGlRenderer = (typeof validOpenGlRenderers)[number];
3
3
  export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
4
- export declare const getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
4
+ export declare const getChromiumOpenGlRenderer: () => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
5
5
  export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
6
6
  export declare const glOption: {
7
7
  cliFlag: "gl";
8
8
  docLink: string;
9
9
  name: string;
10
- type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
10
+ type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
11
11
  ssrName: string;
12
12
  description: () => import("react/jsx-runtime").JSX.Element;
13
13
  getValue: ({ commandLine }: {
14
14
  commandLine: Record<string, unknown>;
15
15
  }) => {
16
- value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
16
+ value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
17
17
  source: string;
18
18
  } | {
19
19
  value: null;
@@ -114,17 +114,17 @@ export declare const allOptions: {
114
114
  description: () => import("react/jsx-runtime").JSX.Element;
115
115
  ssrName: string;
116
116
  docLink: string;
117
- type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
117
+ type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
118
118
  getValue: ({ commandLine }: {
119
119
  commandLine: Record<string, unknown>;
120
120
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
121
121
  outName: string | null;
122
122
  downloadName: string | null;
123
- configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
124
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
125
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
123
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
124
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
125
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
126
126
  }) => {
127
- value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
127
+ value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
128
128
  source: string;
129
129
  };
130
130
  setConfig: (newCodec: import("..").CodecOrUndefined) => void;
@@ -150,7 +150,7 @@ export declare const allOptions: {
150
150
  webhookCustomDataOption: {
151
151
  name: string;
152
152
  cliFlag: "webhook-custom-data";
153
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
153
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
154
154
  ssrName: "customData";
155
155
  docLink: string;
156
156
  type: Record<string, unknown> | null;
@@ -224,19 +224,19 @@ export declare const allOptions: {
224
224
  cliFlag: "gl";
225
225
  docLink: string;
226
226
  name: string;
227
- type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
227
+ type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
228
228
  ssrName: string;
229
229
  description: () => import("react/jsx-runtime").JSX.Element;
230
230
  getValue: ({ commandLine }: {
231
231
  commandLine: Record<string, unknown>;
232
232
  }) => {
233
- value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
233
+ value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
234
234
  source: string;
235
235
  } | {
236
236
  value: null;
237
237
  source: string;
238
238
  };
239
- setConfig: (value: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
239
+ setConfig: (value: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => void;
240
240
  };
241
241
  enableLambdaInsights: {
242
242
  name: string;
@@ -123,17 +123,17 @@ export declare const optionsMap: {
123
123
  description: () => import("react/jsx-runtime").JSX.Element;
124
124
  ssrName: string;
125
125
  docLink: string;
126
- type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
126
+ type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
127
127
  getValue: ({ commandLine }: {
128
128
  commandLine: Record<string, unknown>;
129
129
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
130
130
  outName: string | null;
131
131
  downloadName: string | null;
132
- configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
133
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
134
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif" | null;
132
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
133
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
134
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | null;
135
135
  }) => {
136
- value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
136
+ value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
137
137
  source: string;
138
138
  };
139
139
  setConfig: (newCodec: import("..").CodecOrUndefined) => void;
@@ -6,7 +6,7 @@ export declare const videoCodecOption: {
6
6
  description: () => import("react/jsx-runtime").JSX.Element;
7
7
  ssrName: string;
8
8
  docLink: string;
9
- type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "gif";
9
+ type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
10
10
  getValue: ({ commandLine }: {
11
11
  commandLine: Record<string, unknown>;
12
12
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
@@ -1,7 +1,7 @@
1
1
  export declare const webhookCustomDataOption: {
2
2
  name: string;
3
3
  cliFlag: "webhook-custom-data";
4
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
4
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
5
5
  ssrName: "customData";
6
6
  docLink: string;
7
7
  type: Record<string, unknown> | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion/no-react';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  import type { StillImageFormat } from './image-format';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion/no-react';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  import type { StillImageFormat } from './image-format';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion/no-react';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  import type { StillImageFormat } from './image-format';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion/no-react';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  import type { StillImageFormat } from './image-format';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { TRenderAsset } from 'remotion/no-react';
2
3
  import type { DownloadMap } from './assets/download-map';
3
4
  import type { Page } from './browser/BrowserPage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.117",
3
+ "version": "4.0.119",
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.117"
21
+ "remotion": "4.0.119"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
@@ -40,13 +40,13 @@
40
40
  "vitest": "0.31.1"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@remotion/compositor-darwin-arm64": "4.0.117",
44
- "@remotion/compositor-linux-arm64-gnu": "4.0.117",
45
- "@remotion/compositor-linux-arm64-musl": "4.0.117",
46
- "@remotion/compositor-linux-x64-gnu": "4.0.117",
47
- "@remotion/compositor-linux-x64-musl": "4.0.117",
48
- "@remotion/compositor-win32-x64-msvc": "4.0.117",
49
- "@remotion/compositor-darwin-x64": "4.0.117"
43
+ "@remotion/compositor-darwin-arm64": "4.0.119",
44
+ "@remotion/compositor-linux-arm64-musl": "4.0.119",
45
+ "@remotion/compositor-darwin-x64": "4.0.119",
46
+ "@remotion/compositor-linux-arm64-gnu": "4.0.119",
47
+ "@remotion/compositor-linux-x64-musl": "4.0.119",
48
+ "@remotion/compositor-win32-x64-msvc": "4.0.119",
49
+ "@remotion/compositor-linux-x64-gnu": "4.0.119"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",