@remotion/renderer 4.0.178 → 4.0.179

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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
3
+ getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "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", "h264-ts", "gif"];
5
5
  validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
6
- getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => number;
7
- getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => [number, number];
8
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null | undefined) => boolean;
6
+ getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => number;
7
+ getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => [number, number];
8
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
13
+ validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "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" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
16
+ DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
17
17
  DEFAULT_TIMEOUT: number;
18
18
  DEFAULT_JPEG_QUALITY: number;
19
19
  DEFAULT_COLOR_SPACE: "default";
@@ -35,11 +35,11 @@ export declare const BrowserSafeApis: {
35
35
  h264: {
36
36
  default: import("./file-extensions").FileExtension;
37
37
  forAudioCodec: {
38
- mp3: {
38
+ aac: {
39
39
  possible: import("./file-extensions").FileExtension[];
40
40
  default: import("./file-extensions").FileExtension;
41
41
  };
42
- aac: {
42
+ mp3: {
43
43
  possible: import("./file-extensions").FileExtension[];
44
44
  default: import("./file-extensions").FileExtension;
45
45
  };
@@ -65,11 +65,11 @@ export declare const BrowserSafeApis: {
65
65
  vp8: {
66
66
  default: import("./file-extensions").FileExtension;
67
67
  forAudioCodec: {
68
- "pcm-16": {
68
+ opus: {
69
69
  possible: import("./file-extensions").FileExtension[];
70
70
  default: import("./file-extensions").FileExtension;
71
71
  };
72
- opus: {
72
+ "pcm-16": {
73
73
  possible: import("./file-extensions").FileExtension[];
74
74
  default: import("./file-extensions").FileExtension;
75
75
  };
@@ -78,20 +78,20 @@ export declare const BrowserSafeApis: {
78
78
  vp9: {
79
79
  default: import("./file-extensions").FileExtension;
80
80
  forAudioCodec: {
81
- "pcm-16": {
81
+ opus: {
82
82
  possible: import("./file-extensions").FileExtension[];
83
83
  default: import("./file-extensions").FileExtension;
84
84
  };
85
- opus: {
85
+ "pcm-16": {
86
86
  possible: import("./file-extensions").FileExtension[];
87
87
  default: import("./file-extensions").FileExtension;
88
88
  };
89
89
  };
90
90
  };
91
- mp3: {
91
+ prores: {
92
92
  default: import("./file-extensions").FileExtension;
93
93
  forAudioCodec: {
94
- mp3: {
94
+ aac: {
95
95
  possible: import("./file-extensions").FileExtension[];
96
96
  default: import("./file-extensions").FileExtension;
97
97
  };
@@ -114,22 +114,22 @@ export declare const BrowserSafeApis: {
114
114
  };
115
115
  };
116
116
  };
117
- wav: {
117
+ mp3: {
118
118
  default: import("./file-extensions").FileExtension;
119
119
  forAudioCodec: {
120
+ mp3: {
121
+ possible: import("./file-extensions").FileExtension[];
122
+ default: import("./file-extensions").FileExtension;
123
+ };
120
124
  "pcm-16": {
121
125
  possible: import("./file-extensions").FileExtension[];
122
126
  default: import("./file-extensions").FileExtension;
123
127
  };
124
128
  };
125
129
  };
126
- prores: {
130
+ wav: {
127
131
  default: import("./file-extensions").FileExtension;
128
132
  forAudioCodec: {
129
- aac: {
130
- possible: import("./file-extensions").FileExtension[];
131
- default: import("./file-extensions").FileExtension;
132
- };
133
133
  "pcm-16": {
134
134
  possible: import("./file-extensions").FileExtension[];
135
135
  default: import("./file-extensions").FileExtension;
@@ -169,37 +169,37 @@ export declare const BrowserSafeApis: {
169
169
  };
170
170
  defaultAudioCodecs: {
171
171
  h264: {
172
- compressed: "mp3" | "aac" | "pcm-16" | null;
173
- lossless: "mp3" | "aac" | "pcm-16" | null;
172
+ compressed: "aac" | "mp3" | "pcm-16" | null;
173
+ lossless: "aac" | "mp3" | "pcm-16" | null;
174
174
  };
175
175
  h265: {
176
176
  compressed: "aac" | "pcm-16" | null;
177
177
  lossless: "aac" | "pcm-16" | null;
178
178
  };
179
179
  vp8: {
180
- compressed: "pcm-16" | "opus" | null;
181
- lossless: "pcm-16" | "opus" | null;
180
+ compressed: "opus" | "pcm-16" | null;
181
+ lossless: "opus" | "pcm-16" | null;
182
182
  };
183
183
  vp9: {
184
- compressed: "pcm-16" | "opus" | null;
185
- lossless: "pcm-16" | "opus" | null;
184
+ compressed: "opus" | "pcm-16" | null;
185
+ lossless: "opus" | "pcm-16" | null;
186
186
  };
187
- mp3: {
188
- compressed: "mp3" | "pcm-16" | null;
189
- lossless: "mp3" | "pcm-16" | null;
187
+ prores: {
188
+ compressed: "aac" | "pcm-16" | null;
189
+ lossless: "aac" | "pcm-16" | null;
190
190
  };
191
191
  aac: {
192
192
  compressed: "aac" | "pcm-16" | null;
193
193
  lossless: "aac" | "pcm-16" | null;
194
194
  };
195
+ mp3: {
196
+ compressed: "mp3" | "pcm-16" | null;
197
+ lossless: "mp3" | "pcm-16" | null;
198
+ };
195
199
  wav: {
196
200
  compressed: "pcm-16" | null;
197
201
  lossless: "pcm-16" | null;
198
202
  };
199
- prores: {
200
- compressed: "aac" | "pcm-16" | null;
201
- lossless: "aac" | "pcm-16" | null;
202
- };
203
203
  "h264-mkv": {
204
204
  compressed: "mp3" | "pcm-16" | null;
205
205
  lossless: "mp3" | "pcm-16" | null;
@@ -213,10 +213,10 @@ export declare const BrowserSafeApis: {
213
213
  lossless: null;
214
214
  };
215
215
  };
216
- defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
217
- validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
216
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">;
217
+ validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
218
218
  codec: T_1;
219
- audioCodecSetting: "mp3" | "aac" | "pcm-16" | "opus" | null;
219
+ audioCodecSetting: "opus" | "aac" | "mp3" | "pcm-16" | null;
220
220
  extension: string;
221
221
  preferLossless: boolean;
222
222
  separateAudioTo: string | null;
@@ -224,12 +224,12 @@ export declare const BrowserSafeApis: {
224
224
  options: {
225
225
  audioCodecOption: {
226
226
  cliFlag: "audio-codec";
227
- setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
227
+ setConfig: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
228
228
  getValue: ({ commandLine }: {
229
229
  commandLine: Record<string, unknown>;
230
230
  }) => {
231
231
  source: string;
232
- value: "mp3" | "aac" | "pcm-16" | "opus";
232
+ value: "opus" | "aac" | "mp3" | "pcm-16";
233
233
  } | {
234
234
  source: string;
235
235
  value: null;
@@ -238,7 +238,7 @@ export declare const BrowserSafeApis: {
238
238
  docLink: string;
239
239
  name: string;
240
240
  ssrName: "audioCodec";
241
- type: "mp3" | "aac" | "pcm-16" | "opus";
241
+ type: "opus" | "aac" | "mp3" | "pcm-16";
242
242
  };
243
243
  scaleOption: {
244
244
  name: string;
@@ -357,17 +357,17 @@ export declare const BrowserSafeApis: {
357
357
  description: () => import("react/jsx-runtime").JSX.Element;
358
358
  ssrName: string;
359
359
  docLink: string;
360
- type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
360
+ type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
361
361
  getValue: ({ commandLine }: {
362
362
  commandLine: Record<string, unknown>;
363
363
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
364
364
  outName: string | null;
365
365
  downloadName: string | null;
366
- configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
367
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
368
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
366
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
367
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
368
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
369
369
  }) => {
370
- value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
370
+ value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
371
371
  source: string;
372
372
  };
373
373
  setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
@@ -406,14 +406,14 @@ export declare const BrowserSafeApis: {
406
406
  description: () => import("react/jsx-runtime").JSX.Element;
407
407
  docLink: string;
408
408
  ssrName: string;
409
- type: "default" | "bt709" | "bt2020-ncl" | null;
409
+ type: "bt709" | "bt2020-ncl" | "default" | null;
410
410
  getValue: ({ commandLine }: {
411
411
  commandLine: Record<string, unknown>;
412
412
  }) => {
413
413
  source: string;
414
- value: "default" | "bt709" | "bt2020-ncl";
414
+ value: "bt709" | "bt2020-ncl" | "default";
415
415
  };
416
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
416
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
417
417
  };
418
418
  deleteAfterOption: {
419
419
  name: string;
@@ -900,14 +900,14 @@ export declare const BrowserSafeApis: {
900
900
  description: () => import("react/jsx-runtime").JSX.Element;
901
901
  docLink: string;
902
902
  ssrName: string;
903
- type: "default" | "bt709" | "bt2020-ncl" | null;
903
+ type: "bt709" | "bt2020-ncl" | "default" | null;
904
904
  getValue: ({ commandLine }: {
905
905
  commandLine: Record<string, unknown>;
906
906
  }) => {
907
907
  source: string;
908
- value: "default" | "bt709" | "bt2020-ncl";
908
+ value: "bt709" | "bt2020-ncl" | "default";
909
909
  };
910
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
910
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
911
911
  };
912
912
  readonly codec: {
913
913
  name: string;
@@ -915,17 +915,17 @@ export declare const BrowserSafeApis: {
915
915
  description: () => import("react/jsx-runtime").JSX.Element;
916
916
  ssrName: string;
917
917
  docLink: string;
918
- type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
918
+ type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
919
919
  getValue: ({ commandLine }: {
920
920
  commandLine: Record<string, unknown>;
921
921
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
922
922
  outName: string | null;
923
923
  downloadName: string | null;
924
- configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
925
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
926
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
924
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
925
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
926
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
927
927
  }) => {
928
- value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
928
+ value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
929
929
  source: string;
930
930
  };
931
931
  setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
@@ -1079,12 +1079,12 @@ export declare const BrowserSafeApis: {
1079
1079
  };
1080
1080
  readonly audioCodec: {
1081
1081
  cliFlag: "audio-codec";
1082
- setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
1082
+ setConfig: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
1083
1083
  getValue: ({ commandLine }: {
1084
1084
  commandLine: Record<string, unknown>;
1085
1085
  }) => {
1086
1086
  source: string;
1087
- value: "mp3" | "aac" | "pcm-16" | "opus";
1087
+ value: "opus" | "aac" | "mp3" | "pcm-16";
1088
1088
  } | {
1089
1089
  source: string;
1090
1090
  value: null;
@@ -1093,7 +1093,7 @@ export declare const BrowserSafeApis: {
1093
1093
  docLink: string;
1094
1094
  name: string;
1095
1095
  ssrName: "audioCodec";
1096
- type: "mp3" | "aac" | "pcm-16" | "opus";
1096
+ type: "opus" | "aac" | "mp3" | "pcm-16";
1097
1097
  };
1098
1098
  readonly onBrowserDownload: {
1099
1099
  name: string;
@@ -1640,14 +1640,14 @@ export declare const BrowserSafeApis: {
1640
1640
  description: () => import("react/jsx-runtime").JSX.Element;
1641
1641
  docLink: string;
1642
1642
  ssrName: string;
1643
- type: "default" | "bt709" | "bt2020-ncl" | null;
1643
+ type: "bt709" | "bt2020-ncl" | "default" | null;
1644
1644
  getValue: ({ commandLine }: {
1645
1645
  commandLine: Record<string, unknown>;
1646
1646
  }) => {
1647
1647
  source: string;
1648
- value: "default" | "bt709" | "bt2020-ncl";
1648
+ value: "bt709" | "bt2020-ncl" | "default";
1649
1649
  };
1650
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
1650
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
1651
1651
  };
1652
1652
  readonly muted: {
1653
1653
  name: string;
@@ -1904,14 +1904,14 @@ export declare const BrowserSafeApis: {
1904
1904
  description: () => import("react/jsx-runtime").JSX.Element;
1905
1905
  docLink: string;
1906
1906
  ssrName: string;
1907
- type: "default" | "bt709" | "bt2020-ncl" | null;
1907
+ type: "bt709" | "bt2020-ncl" | "default" | null;
1908
1908
  getValue: ({ commandLine }: {
1909
1909
  commandLine: Record<string, unknown>;
1910
1910
  }) => {
1911
1911
  source: string;
1912
- value: "default" | "bt709" | "bt2020-ncl";
1912
+ value: "bt709" | "bt2020-ncl" | "default";
1913
1913
  };
1914
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
1914
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
1915
1915
  };
1916
1916
  readonly audioBitrate: {
1917
1917
  name: string;
@@ -2249,9 +2249,9 @@ export declare const BrowserSafeApis: {
2249
2249
  };
2250
2250
  };
2251
2251
  };
2252
- codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
2253
- codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
2252
+ codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => boolean;
2253
+ codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => boolean;
2254
2254
  logLevels: readonly ["verbose", "info", "warn", "error"];
2255
2255
  getOutputCodecOrUndefined: () => import("./codec").CodecOrUndefined;
2256
- getExtensionFromAudioCodec: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus") => "mp3" | "aac" | "wav" | "opus";
2256
+ getExtensionFromAudioCodec: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16") => "opus" | "aac" | "mp3" | "wav";
2257
2257
  };
@@ -1,6 +1,6 @@
1
1
  import type { Codec } from './codec';
2
2
  import type { FileExtension } from './file-extensions';
3
3
  import type { AudioCodec } from './options/audio-codec';
4
- export declare const getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
5
- export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
4
+ export declare const getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
5
+ export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif")[]>;
6
6
  export declare const defaultCodecsForFileExtension: Record<FileExtension, Codec>;
package/dist/index.d.ts CHANGED
@@ -70,10 +70,10 @@ export declare const RenderInternals: {
70
70
  width: number;
71
71
  height: number;
72
72
  scale: number;
73
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
73
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
74
74
  wantsImageSequence: boolean;
75
75
  }) => void;
76
- getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
76
+ getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => import("./file-extensions").FileExtension;
77
77
  tmpDir: (str: string) => string;
78
78
  deleteDirectory: (directory: string) => void;
79
79
  isServeUrl: (potentialUrl: string) => boolean;
@@ -130,7 +130,7 @@ export declare const RenderInternals: {
130
130
  };
131
131
  registerErrorSymbolicationLock: () => number;
132
132
  unlockErrorSymbolicationLock: (id: number) => void;
133
- canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
133
+ canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => boolean;
134
134
  mimeContentType: typeof mimeContentType;
135
135
  mimeLookup: typeof mimeLookup;
136
136
  validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
@@ -144,11 +144,11 @@ export declare const RenderInternals: {
144
144
  DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
145
145
  validateOpenGlRenderer: (option: unknown) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
146
146
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
147
- DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
147
+ DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
148
148
  validateJpegQuality: (q: unknown) => void;
149
149
  DEFAULT_TIMEOUT: number;
150
- DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
151
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null | undefined) => boolean;
150
+ DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
151
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null | undefined) => boolean;
152
152
  logLevels: readonly ["verbose", "info", "warn", "error"];
153
153
  isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
154
154
  isValidLogLevel: (level: string) => boolean;
@@ -165,10 +165,10 @@ export declare const RenderInternals: {
165
165
  output: string;
166
166
  onProgress: (p: number) => void;
167
167
  numberOfFrames: number;
168
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
168
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
169
169
  fps: number;
170
170
  numberOfGifLoops: number | null;
171
- resolvedAudioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
171
+ resolvedAudioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null;
172
172
  audioBitrate: string | null;
173
173
  indent: boolean;
174
174
  logLevel: "verbose" | "info" | "warn" | "error";
@@ -182,18 +182,18 @@ export declare const RenderInternals: {
182
182
  getMinConcurrency: () => number;
183
183
  getMaxConcurrency: () => number;
184
184
  getDefaultAudioCodec: ({ codec, preferLossless, }: {
185
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
185
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
186
186
  preferLossless: boolean;
187
- }) => "mp3" | "aac" | "pcm-16" | "opus" | null;
187
+ }) => "opus" | "aac" | "mp3" | "pcm-16" | null;
188
188
  defaultFileExtensionMap: {
189
189
  h264: {
190
190
  default: import("./file-extensions").FileExtension;
191
191
  forAudioCodec: {
192
- mp3: {
192
+ aac: {
193
193
  possible: import("./file-extensions").FileExtension[];
194
194
  default: import("./file-extensions").FileExtension;
195
195
  };
196
- aac: {
196
+ mp3: {
197
197
  possible: import("./file-extensions").FileExtension[];
198
198
  default: import("./file-extensions").FileExtension;
199
199
  };
@@ -219,11 +219,11 @@ export declare const RenderInternals: {
219
219
  vp8: {
220
220
  default: import("./file-extensions").FileExtension;
221
221
  forAudioCodec: {
222
- "pcm-16": {
222
+ opus: {
223
223
  possible: import("./file-extensions").FileExtension[];
224
224
  default: import("./file-extensions").FileExtension;
225
225
  };
226
- opus: {
226
+ "pcm-16": {
227
227
  possible: import("./file-extensions").FileExtension[];
228
228
  default: import("./file-extensions").FileExtension;
229
229
  };
@@ -232,20 +232,20 @@ export declare const RenderInternals: {
232
232
  vp9: {
233
233
  default: import("./file-extensions").FileExtension;
234
234
  forAudioCodec: {
235
- "pcm-16": {
235
+ opus: {
236
236
  possible: import("./file-extensions").FileExtension[];
237
237
  default: import("./file-extensions").FileExtension;
238
238
  };
239
- opus: {
239
+ "pcm-16": {
240
240
  possible: import("./file-extensions").FileExtension[];
241
241
  default: import("./file-extensions").FileExtension;
242
242
  };
243
243
  };
244
244
  };
245
- mp3: {
245
+ prores: {
246
246
  default: import("./file-extensions").FileExtension;
247
247
  forAudioCodec: {
248
- mp3: {
248
+ aac: {
249
249
  possible: import("./file-extensions").FileExtension[];
250
250
  default: import("./file-extensions").FileExtension;
251
251
  };
@@ -268,22 +268,22 @@ export declare const RenderInternals: {
268
268
  };
269
269
  };
270
270
  };
271
- wav: {
271
+ mp3: {
272
272
  default: import("./file-extensions").FileExtension;
273
273
  forAudioCodec: {
274
+ mp3: {
275
+ possible: import("./file-extensions").FileExtension[];
276
+ default: import("./file-extensions").FileExtension;
277
+ };
274
278
  "pcm-16": {
275
279
  possible: import("./file-extensions").FileExtension[];
276
280
  default: import("./file-extensions").FileExtension;
277
281
  };
278
282
  };
279
283
  };
280
- prores: {
284
+ wav: {
281
285
  default: import("./file-extensions").FileExtension;
282
286
  forAudioCodec: {
283
- aac: {
284
- possible: import("./file-extensions").FileExtension[];
285
- default: import("./file-extensions").FileExtension;
286
- };
287
287
  "pcm-16": {
288
288
  possible: import("./file-extensions").FileExtension[];
289
289
  default: import("./file-extensions").FileExtension;
@@ -335,8 +335,8 @@ export declare const RenderInternals: {
335
335
  readonly vp9: readonly ["opus", "pcm-16"];
336
336
  readonly wav: readonly ["pcm-16"];
337
337
  };
338
- makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
339
- defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
338
+ makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif")[]>;
339
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">;
340
340
  getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
341
341
  type: "compositor" | "ffmpeg" | "ffprobe";
342
342
  indent: boolean;
@@ -355,7 +355,7 @@ export declare const RenderInternals: {
355
355
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
356
356
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
357
357
  DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
358
- DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
358
+ DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "png" | "jpeg";
359
359
  DEFAULT_JPEG_QUALITY: number;
360
360
  chalk: {
361
361
  enabled: () => boolean;
@@ -755,7 +755,7 @@ export declare const RenderInternals: {
755
755
  onFrameUpdate: ((framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void) | null;
756
756
  outputDir: string | null;
757
757
  envVariables: Record<string, string>;
758
- imageFormat: "png" | "jpeg" | "none";
758
+ imageFormat: "none" | "png" | "jpeg";
759
759
  jpegQuality: number;
760
760
  frameRange: import("./frame-range").FrameRange | null;
761
761
  everyNthFrame: number;
@@ -910,21 +910,21 @@ export declare const RenderInternals: {
910
910
  hostsToTry: string[];
911
911
  };
912
912
  makeDownloadMap: () => import("./assets/download-map").DownloadMap;
913
- getExtensionFromAudioCodec: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus") => "mp3" | "aac" | "wav" | "opus";
913
+ getExtensionFromAudioCodec: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16") => "opus" | "aac" | "mp3" | "wav";
914
914
  makeFileExecutableIfItIsNot: (path: string) => void;
915
915
  resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
916
- setting: "mp3" | "aac" | "pcm-16" | "opus" | null;
917
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
916
+ setting: "opus" | "aac" | "mp3" | "pcm-16" | null;
917
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
918
918
  preferLossless: boolean;
919
919
  separateAudioTo: string | null;
920
- }) => "mp3" | "aac" | "pcm-16" | "opus" | null;
920
+ }) => "opus" | "aac" | "mp3" | "pcm-16" | null;
921
921
  getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
922
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
922
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
923
923
  assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
924
924
  enforceAudioTrack: boolean;
925
925
  muted: boolean;
926
926
  }) => "yes" | "maybe" | "no";
927
- codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => {
927
+ codecSupportsMedia: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif") => {
928
928
  video: boolean;
929
929
  audio: boolean;
930
930
  };
@@ -24,25 +24,25 @@ export declare const defaultAudioCodecs: {
24
24
  [k in 'compressed' | 'lossless']: (typeof supportedAudioCodecs)[key][number] | null;
25
25
  };
26
26
  };
27
- export declare const getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "mp3" | "aac" | "wav" | "opus";
27
+ export declare const getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "opus" | "aac" | "mp3" | "wav";
28
28
  export declare const resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
29
29
  setting: AudioCodec | null;
30
30
  codec: Codec;
31
31
  preferLossless: boolean;
32
32
  separateAudioTo: string | null;
33
- }) => "mp3" | "aac" | "pcm-16" | "opus" | null;
33
+ }) => "opus" | "aac" | "mp3" | "pcm-16" | null;
34
34
  export declare const getDefaultAudioCodec: ({ codec, preferLossless, }: {
35
35
  codec: Codec;
36
36
  preferLossless: boolean;
37
37
  }) => AudioCodec | null;
38
38
  export declare const audioCodecOption: {
39
39
  cliFlag: "audio-codec";
40
- setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
40
+ setConfig: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
41
41
  getValue: ({ commandLine }: {
42
42
  commandLine: Record<string, unknown>;
43
43
  }) => {
44
44
  source: string;
45
- value: "mp3" | "aac" | "pcm-16" | "opus";
45
+ value: "opus" | "aac" | "mp3" | "pcm-16";
46
46
  } | {
47
47
  source: string;
48
48
  value: null;
@@ -51,6 +51,6 @@ export declare const audioCodecOption: {
51
51
  docLink: string;
52
52
  name: string;
53
53
  ssrName: "audioCodec";
54
- type: "mp3" | "aac" | "pcm-16" | "opus";
54
+ type: "opus" | "aac" | "mp3" | "pcm-16";
55
55
  };
56
56
  export {};
@@ -7,13 +7,13 @@ export declare const colorSpaceOption: {
7
7
  description: () => import("react/jsx-runtime").JSX.Element;
8
8
  docLink: string;
9
9
  ssrName: string;
10
- type: "default" | "bt709" | "bt2020-ncl" | null;
10
+ type: "bt709" | "bt2020-ncl" | "default" | null;
11
11
  getValue: ({ commandLine }: {
12
12
  commandLine: Record<string, unknown>;
13
13
  }) => {
14
14
  source: string;
15
- value: "default" | "bt709" | "bt2020-ncl";
15
+ value: "bt709" | "bt2020-ncl" | "default";
16
16
  };
17
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
17
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
18
18
  };
19
19
  export declare const validateColorSpace: (option: unknown) => void;
@@ -2,12 +2,12 @@ import type { AnyRemotionOption } from './option';
2
2
  export declare const allOptions: {
3
3
  audioCodecOption: {
4
4
  cliFlag: "audio-codec";
5
- setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
5
+ setConfig: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
6
6
  getValue: ({ commandLine }: {
7
7
  commandLine: Record<string, unknown>;
8
8
  }) => {
9
9
  source: string;
10
- value: "mp3" | "aac" | "pcm-16" | "opus";
10
+ value: "opus" | "aac" | "mp3" | "pcm-16";
11
11
  } | {
12
12
  source: string;
13
13
  value: null;
@@ -16,7 +16,7 @@ export declare const allOptions: {
16
16
  docLink: string;
17
17
  name: string;
18
18
  ssrName: "audioCodec";
19
- type: "mp3" | "aac" | "pcm-16" | "opus";
19
+ type: "opus" | "aac" | "mp3" | "pcm-16";
20
20
  };
21
21
  scaleOption: {
22
22
  name: string;
@@ -135,17 +135,17 @@ export declare const allOptions: {
135
135
  description: () => import("react/jsx-runtime").JSX.Element;
136
136
  ssrName: string;
137
137
  docLink: string;
138
- type: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
138
+ type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
139
139
  getValue: ({ commandLine }: {
140
140
  commandLine: Record<string, unknown>;
141
141
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
142
142
  outName: string | null;
143
143
  downloadName: string | null;
144
- configFile: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
145
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
146
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
144
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
145
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
146
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
147
147
  }) => {
148
- value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
148
+ value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
149
149
  source: string;
150
150
  };
151
151
  setConfig: (newCodec: import("..").CodecOrUndefined) => void;
@@ -184,14 +184,14 @@ export declare const allOptions: {
184
184
  description: () => import("react/jsx-runtime").JSX.Element;
185
185
  docLink: string;
186
186
  ssrName: string;
187
- type: "default" | "bt709" | "bt2020-ncl" | null;
187
+ type: "bt709" | "bt2020-ncl" | "default" | null;
188
188
  getValue: ({ commandLine }: {
189
189
  commandLine: Record<string, unknown>;
190
190
  }) => {
191
191
  source: string;
192
- value: "default" | "bt709" | "bt2020-ncl";
192
+ value: "bt709" | "bt2020-ncl" | "default";
193
193
  };
194
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
194
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
195
195
  };
196
196
  deleteAfterOption: {
197
197
  name: string;
@@ -108,14 +108,14 @@ export declare const optionsMap: {
108
108
  description: () => import("react/jsx-runtime").JSX.Element;
109
109
  docLink: string;
110
110
  ssrName: string;
111
- type: "default" | "bt709" | "bt2020-ncl" | null;
111
+ type: "bt709" | "bt2020-ncl" | "default" | null;
112
112
  getValue: ({ commandLine }: {
113
113
  commandLine: Record<string, unknown>;
114
114
  }) => {
115
115
  source: string;
116
- value: "default" | "bt709" | "bt2020-ncl";
116
+ value: "bt709" | "bt2020-ncl" | "default";
117
117
  };
118
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
118
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
119
119
  };
120
120
  readonly codec: {
121
121
  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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
126
+ type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
133
- uiCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
134
- compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
132
+ configFile: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
133
+ uiCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
134
+ compositionCodec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif" | null;
135
135
  }) => {
136
- value: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
136
+ value: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
137
137
  source: string;
138
138
  };
139
139
  setConfig: (newCodec: import("..").CodecOrUndefined) => void;
@@ -287,12 +287,12 @@ export declare const optionsMap: {
287
287
  };
288
288
  readonly audioCodec: {
289
289
  cliFlag: "audio-codec";
290
- setConfig: (audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => void;
290
+ setConfig: (audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => void;
291
291
  getValue: ({ commandLine }: {
292
292
  commandLine: Record<string, unknown>;
293
293
  }) => {
294
294
  source: string;
295
- value: "mp3" | "aac" | "pcm-16" | "opus";
295
+ value: "opus" | "aac" | "mp3" | "pcm-16";
296
296
  } | {
297
297
  source: string;
298
298
  value: null;
@@ -301,7 +301,7 @@ export declare const optionsMap: {
301
301
  docLink: string;
302
302
  name: string;
303
303
  ssrName: "audioCodec";
304
- type: "mp3" | "aac" | "pcm-16" | "opus";
304
+ type: "opus" | "aac" | "mp3" | "pcm-16";
305
305
  };
306
306
  readonly onBrowserDownload: {
307
307
  name: string;
@@ -848,14 +848,14 @@ export declare const optionsMap: {
848
848
  description: () => import("react/jsx-runtime").JSX.Element;
849
849
  docLink: string;
850
850
  ssrName: string;
851
- type: "default" | "bt709" | "bt2020-ncl" | null;
851
+ type: "bt709" | "bt2020-ncl" | "default" | null;
852
852
  getValue: ({ commandLine }: {
853
853
  commandLine: Record<string, unknown>;
854
854
  }) => {
855
855
  source: string;
856
- value: "default" | "bt709" | "bt2020-ncl";
856
+ value: "bt709" | "bt2020-ncl" | "default";
857
857
  };
858
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
858
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
859
859
  };
860
860
  readonly muted: {
861
861
  name: string;
@@ -1112,14 +1112,14 @@ export declare const optionsMap: {
1112
1112
  description: () => import("react/jsx-runtime").JSX.Element;
1113
1113
  docLink: string;
1114
1114
  ssrName: string;
1115
- type: "default" | "bt709" | "bt2020-ncl" | null;
1115
+ type: "bt709" | "bt2020-ncl" | "default" | null;
1116
1116
  getValue: ({ commandLine }: {
1117
1117
  commandLine: Record<string, unknown>;
1118
1118
  }) => {
1119
1119
  source: string;
1120
- value: "default" | "bt709" | "bt2020-ncl";
1120
+ value: "bt709" | "bt2020-ncl" | "default";
1121
1121
  };
1122
- setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
1122
+ setConfig: (value: "bt709" | "bt2020-ncl" | "default" | null) => void;
1123
1123
  };
1124
1124
  readonly audioBitrate: {
1125
1125
  name: string;
@@ -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" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
9
+ type: "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif";
10
10
  getValue: ({ commandLine }: {
11
11
  commandLine: Record<string, unknown>;
12
12
  }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
@@ -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" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
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;
@@ -13,7 +13,7 @@ type PortConfig = {
13
13
  hostsToTry: string[];
14
14
  };
15
15
  export declare const getPortConfig: (preferIpv4: boolean) => PortConfig;
16
- export declare const getHostToBind: (flattened: os.NetworkInterfaceInfo[], preferIpv4: boolean) => "::" | "0.0.0.0";
16
+ export declare const getHostToBind: (flattened: os.NetworkInterfaceInfo[], preferIpv4: boolean) => "0.0.0.0" | "::";
17
17
  export declare const getHostsToTry: (flattened: os.NetworkInterfaceInfo[]) => string[];
18
18
  export declare const flattenNetworkInterfaces: (networkInterfaces: NodeJS.Dict<NetworkInterfaceInfo[]>) => NetworkInterfaceInfo[];
19
19
  export declare const isIpV6Supported: (flattened: os.NetworkInterfaceInfo[]) => boolean;
package/dist/pure.d.ts CHANGED
@@ -4,10 +4,10 @@ export declare const NoReactAPIs: {
4
4
  indent: boolean;
5
5
  }, ...unknown[]], R>(fn: (...args: A) => Promise<R>) => (...args: A) => Promise<R>;
6
6
  getExtensionOfFilename: (filename: string | null) => string | null;
7
- getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
8
- validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
7
+ getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "opus" | "aac" | "mp3" | "pcm-16" | null) => import("./file-extensions").FileExtension;
8
+ validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
9
9
  codec: T_1;
10
- audioCodecSetting: "mp3" | "aac" | "pcm-16" | "opus" | null;
10
+ audioCodecSetting: "opus" | "aac" | "mp3" | "pcm-16" | null;
11
11
  extension: string;
12
12
  preferLossless: boolean;
13
13
  separateAudioTo: string | null;
@@ -1,5 +1,5 @@
1
1
  import type { AudioCodec } from './options/audio-codec';
2
- export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
2
+ export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "aac" | "mp3" | "wav" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
3
3
  codec: T;
4
4
  audioCodecSetting: AudioCodec | null;
5
5
  extension: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
4
4
  },
5
5
  "name": "@remotion/renderer",
6
- "version": "4.0.178",
6
+ "version": "4.0.179",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "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.17.1",
21
- "remotion": "4.0.178"
21
+ "remotion": "4.0.179"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
@@ -31,16 +31,16 @@
31
31
  "react": "18.3.1",
32
32
  "react-dom": "18.3.1",
33
33
  "@types/ws": "8.5.10",
34
- "@remotion/streaming": "4.0.178"
34
+ "@remotion/streaming": "4.0.179"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@remotion/compositor-darwin-arm64": "4.0.178",
38
- "@remotion/compositor-darwin-x64": "4.0.178",
39
- "@remotion/compositor-linux-x64-gnu": "4.0.178",
40
- "@remotion/compositor-linux-arm64-gnu": "4.0.178",
41
- "@remotion/compositor-linux-arm64-musl": "4.0.178",
42
- "@remotion/compositor-linux-x64-musl": "4.0.178",
43
- "@remotion/compositor-win32-x64-msvc": "4.0.178"
37
+ "@remotion/compositor-darwin-x64": "4.0.179",
38
+ "@remotion/compositor-darwin-arm64": "4.0.179",
39
+ "@remotion/compositor-linux-arm64-gnu": "4.0.179",
40
+ "@remotion/compositor-linux-arm64-musl": "4.0.179",
41
+ "@remotion/compositor-linux-x64-gnu": "4.0.179",
42
+ "@remotion/compositor-linux-x64-musl": "4.0.179",
43
+ "@remotion/compositor-win32-x64-msvc": "4.0.179"
44
44
  },
45
45
  "keywords": [
46
46
  "remotion",