@remotion/renderer 4.0.32 → 4.0.33

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,10 +1,10 @@
1
1
  export declare const BrowserSafeApis: {
2
- 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;
2
+ getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
3
3
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
4
4
  validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
5
- getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
6
- getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => [number, number];
7
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
5
+ getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => number;
6
+ getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => [number, number];
7
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | undefined) => boolean;
8
8
  proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
9
9
  x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
10
10
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
@@ -78,10 +78,10 @@ export declare const BrowserSafeApis: {
78
78
  };
79
79
  };
80
80
  };
81
- mp3: {
81
+ prores: {
82
82
  default: import("./file-extensions").FileExtension;
83
83
  forAudioCodec: {
84
- mp3: {
84
+ aac: {
85
85
  possible: import("./file-extensions").FileExtension[];
86
86
  default: import("./file-extensions").FileExtension;
87
87
  };
@@ -91,10 +91,10 @@ export declare const BrowserSafeApis: {
91
91
  };
92
92
  };
93
93
  };
94
- aac: {
94
+ mp3: {
95
95
  default: import("./file-extensions").FileExtension;
96
96
  forAudioCodec: {
97
- aac: {
97
+ mp3: {
98
98
  possible: import("./file-extensions").FileExtension[];
99
99
  default: import("./file-extensions").FileExtension;
100
100
  };
@@ -104,22 +104,22 @@ export declare const BrowserSafeApis: {
104
104
  };
105
105
  };
106
106
  };
107
- wav: {
107
+ aac: {
108
108
  default: import("./file-extensions").FileExtension;
109
109
  forAudioCodec: {
110
+ aac: {
111
+ possible: import("./file-extensions").FileExtension[];
112
+ default: import("./file-extensions").FileExtension;
113
+ };
110
114
  "pcm-16": {
111
115
  possible: import("./file-extensions").FileExtension[];
112
116
  default: import("./file-extensions").FileExtension;
113
117
  };
114
118
  };
115
119
  };
116
- prores: {
120
+ wav: {
117
121
  default: import("./file-extensions").FileExtension;
118
122
  forAudioCodec: {
119
- aac: {
120
- possible: import("./file-extensions").FileExtension[];
121
- default: import("./file-extensions").FileExtension;
122
- };
123
123
  "pcm-16": {
124
124
  possible: import("./file-extensions").FileExtension[];
125
125
  default: import("./file-extensions").FileExtension;
@@ -161,6 +161,10 @@ export declare const BrowserSafeApis: {
161
161
  compressed: "pcm-16" | "opus" | null;
162
162
  lossless: "pcm-16" | "opus" | null;
163
163
  };
164
+ prores: {
165
+ compressed: "aac" | "pcm-16" | null;
166
+ lossless: "aac" | "pcm-16" | null;
167
+ };
164
168
  mp3: {
165
169
  compressed: "mp3" | "pcm-16" | null;
166
170
  lossless: "mp3" | "pcm-16" | null;
@@ -173,10 +177,6 @@ export declare const BrowserSafeApis: {
173
177
  compressed: "pcm-16" | null;
174
178
  lossless: "pcm-16" | null;
175
179
  };
176
- prores: {
177
- compressed: "aac" | "pcm-16" | null;
178
- lossless: "aac" | "pcm-16" | null;
179
- };
180
180
  "h264-mkv": {
181
181
  compressed: "mp3" | "pcm-16" | null;
182
182
  lossless: "mp3" | "pcm-16" | null;
@@ -186,8 +186,8 @@ export declare const BrowserSafeApis: {
186
186
  lossless: null;
187
187
  };
188
188
  };
189
- defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
190
- validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
189
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
190
+ validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
191
191
  codec: T_1;
192
192
  audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
193
193
  extension: string;
@@ -280,7 +280,7 @@ export declare const BrowserSafeApis: {
280
280
  description: () => JSX.Element;
281
281
  docLink: string;
282
282
  ssrName: string;
283
- type: "default" | "bt709";
283
+ type: "bt709" | "default";
284
284
  };
285
285
  deleteAfterOption: {
286
286
  name: string;
@@ -382,6 +382,6 @@ export declare const BrowserSafeApis: {
382
382
  type: number | null;
383
383
  }];
384
384
  };
385
- codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
386
- codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
385
+ codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
386
+ codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
387
387
  };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="react" />
1
3
  import execa from 'execa';
2
4
  import { HeadlessBrowser } from './browser/Browser';
3
5
  import { SymbolicateableError } from './error-handling/symbolicateable-error';
@@ -58,9 +60,9 @@ export declare const RenderInternals: {
58
60
  width: number;
59
61
  height: number;
60
62
  scale: number;
61
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
63
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
62
64
  }) => void;
63
- 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;
65
+ getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
64
66
  tmpDir: (str: string) => string;
65
67
  deleteDirectory: (directory: string) => void;
66
68
  isServeUrl: (potentialUrl: string) => boolean;
@@ -110,7 +112,7 @@ export declare const RenderInternals: {
110
112
  };
111
113
  registerErrorSymbolicationLock: () => number;
112
114
  unlockErrorSymbolicationLock: (id: number) => void;
113
- canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
115
+ canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
114
116
  mimeContentType: typeof mimeContentType;
115
117
  mimeLookup: typeof mimeLookup;
116
118
  validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
@@ -127,8 +129,8 @@ export declare const RenderInternals: {
127
129
  DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
128
130
  validateJpegQuality: (q: number | undefined) => void;
129
131
  DEFAULT_TIMEOUT: number;
130
- DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
131
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
132
+ DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
133
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | undefined) => boolean;
132
134
  logLevels: readonly ["verbose", "info", "warn", "error"];
133
135
  isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
134
136
  isValidLogLevel: (level: string) => boolean;
@@ -145,7 +147,7 @@ export declare const RenderInternals: {
145
147
  output: string;
146
148
  onProgress: (p: number) => void;
147
149
  numberOfFrames: number;
148
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
150
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
149
151
  fps: number;
150
152
  numberOfGifLoops: number | null;
151
153
  audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
@@ -153,7 +155,7 @@ export declare const RenderInternals: {
153
155
  getMinConcurrency: () => number;
154
156
  getMaxConcurrency: () => any;
155
157
  getDefaultAudioCodec: ({ codec, preferLossless, }: {
156
- codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
158
+ codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
157
159
  preferLossless: boolean;
158
160
  }) => "mp3" | "aac" | "pcm-16" | "opus" | null;
159
161
  validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
@@ -214,10 +216,10 @@ export declare const RenderInternals: {
214
216
  };
215
217
  };
216
218
  };
217
- mp3: {
219
+ prores: {
218
220
  default: import("./file-extensions").FileExtension;
219
221
  forAudioCodec: {
220
- mp3: {
222
+ aac: {
221
223
  possible: import("./file-extensions").FileExtension[];
222
224
  default: import("./file-extensions").FileExtension;
223
225
  };
@@ -227,10 +229,10 @@ export declare const RenderInternals: {
227
229
  };
228
230
  };
229
231
  };
230
- aac: {
232
+ mp3: {
231
233
  default: import("./file-extensions").FileExtension;
232
234
  forAudioCodec: {
233
- aac: {
235
+ mp3: {
234
236
  possible: import("./file-extensions").FileExtension[];
235
237
  default: import("./file-extensions").FileExtension;
236
238
  };
@@ -240,22 +242,22 @@ export declare const RenderInternals: {
240
242
  };
241
243
  };
242
244
  };
243
- wav: {
245
+ aac: {
244
246
  default: import("./file-extensions").FileExtension;
245
247
  forAudioCodec: {
248
+ aac: {
249
+ possible: import("./file-extensions").FileExtension[];
250
+ default: import("./file-extensions").FileExtension;
251
+ };
246
252
  "pcm-16": {
247
253
  possible: import("./file-extensions").FileExtension[];
248
254
  default: import("./file-extensions").FileExtension;
249
255
  };
250
256
  };
251
257
  };
252
- prores: {
258
+ wav: {
253
259
  default: import("./file-extensions").FileExtension;
254
260
  forAudioCodec: {
255
- aac: {
256
- possible: import("./file-extensions").FileExtension[];
257
- default: import("./file-extensions").FileExtension;
258
- };
259
261
  "pcm-16": {
260
262
  possible: import("./file-extensions").FileExtension[];
261
263
  default: import("./file-extensions").FileExtension;
@@ -292,8 +294,8 @@ export declare const RenderInternals: {
292
294
  readonly vp9: readonly ["opus", "pcm-16"];
293
295
  readonly wav: readonly ["pcm-16"];
294
296
  };
295
- makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
296
- defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
297
+ makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif")[]>;
298
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
297
299
  getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd") => string;
298
300
  callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
299
301
  dynamicLibraryPathOptions: () => {
@@ -311,7 +313,7 @@ export declare const RenderInternals: {
311
313
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
312
314
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
313
315
  DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
314
- DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
316
+ DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "png" | "jpeg";
315
317
  DEFAULT_JPEG_QUALITY: number;
316
318
  chalk: {
317
319
  enabled: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.32",
3
+ "version": "4.0.33",
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.32"
21
+ "remotion": "4.0.33"
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.32",
44
- "@remotion/compositor-linux-arm64-gnu": "4.0.32",
45
- "@remotion/compositor-linux-arm64-musl": "4.0.32",
46
- "@remotion/compositor-darwin-x64": "4.0.32",
47
- "@remotion/compositor-linux-x64-gnu": "4.0.32",
48
- "@remotion/compositor-linux-x64-musl": "4.0.32",
49
- "@remotion/compositor-win32-x64-msvc": "4.0.32"
43
+ "@remotion/compositor-darwin-arm64": "4.0.33",
44
+ "@remotion/compositor-darwin-x64": "4.0.33",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.33",
46
+ "@remotion/compositor-linux-arm64-musl": "4.0.33",
47
+ "@remotion/compositor-linux-x64-gnu": "4.0.33",
48
+ "@remotion/compositor-linux-x64-musl": "4.0.33",
49
+ "@remotion/compositor-win32-x64-msvc": "4.0.33"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",
@@ -1,8 +0,0 @@
1
- export declare const deleteAfterOption: {
2
- name: string;
3
- cliFlag: "delete-after";
4
- description: () => JSX.Element;
5
- ssrName: "deleteAfter";
6
- docLink: string;
7
- type: number | null;
8
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteAfterOption = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- exports.deleteAfterOption = {
6
- name: 'Render expiry days',
7
- cliFlag: 'delete-after',
8
- description: () => {
9
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Automatically delete the render after a certain period. Accepted values are ", (0, jsx_runtime_1.jsx)("code", { children: "1-day" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "3-days" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "7-days" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "30-days" }), ".", (0, jsx_runtime_1.jsx)("br", {}), " For this to work, your bucket needs to have", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/lambda/autodelete", children: "lifecycles enabled" }), "."] }));
10
- },
11
- ssrName: 'deleteAfter',
12
- docLink: 'https://www.remotion.dev/docs/autodelete',
13
- type: 0,
14
- };
@@ -1,7 +0,0 @@
1
- import type { Codec } from './codec';
2
- export declare const x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
3
- export type x264Preset = typeof x264PresetOptions[number];
4
- export declare const validateSelectedCodecAndPresetCombination: ({ codec, x264Preset, }: {
5
- codec: Codec;
6
- x264Preset: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | undefined;
7
- }) => void;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateSelectedCodecAndPresetCombination = exports.x264PresetOptions = void 0;
4
- exports.x264PresetOptions = [
5
- 'ultrafast',
6
- 'superfast',
7
- 'veryfast',
8
- 'faster',
9
- 'fast',
10
- 'medium',
11
- 'slow',
12
- 'slower',
13
- 'veryslow',
14
- 'placebo',
15
- ];
16
- const validateSelectedCodecAndPresetCombination = ({ codec, x264Preset, }) => {
17
- if (typeof x264Preset !== 'undefined' && codec !== 'h264') {
18
- throw new TypeError(`You have set a Preset profile but the codec is "${codec}". Set the codec to "h264" or remove the Preset profile.`);
19
- }
20
- if (x264Preset !== undefined &&
21
- !exports.x264PresetOptions.includes(x264Preset)) {
22
- throw new TypeError(`The Preset profile "${x264Preset}" is not valid. Valid options are ${exports.x264PresetOptions
23
- .map((p) => `"${p}"`)
24
- .join(', ')}`);
25
- }
26
- };
27
- exports.validateSelectedCodecAndPresetCombination = validateSelectedCodecAndPresetCombination;