@remotion/renderer 4.0.43 → 4.0.45

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,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  export declare const BrowserSafeApis: {
3
- 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
+ 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" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => number;
7
- getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => [number, number];
8
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | 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" | 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"];
@@ -79,10 +79,10 @@ export declare const BrowserSafeApis: {
79
79
  };
80
80
  };
81
81
  };
82
- prores: {
82
+ mp3: {
83
83
  default: import("./file-extensions").FileExtension;
84
84
  forAudioCodec: {
85
- aac: {
85
+ mp3: {
86
86
  possible: import("./file-extensions").FileExtension[];
87
87
  default: import("./file-extensions").FileExtension;
88
88
  };
@@ -92,10 +92,10 @@ export declare const BrowserSafeApis: {
92
92
  };
93
93
  };
94
94
  };
95
- mp3: {
95
+ aac: {
96
96
  default: import("./file-extensions").FileExtension;
97
97
  forAudioCodec: {
98
- mp3: {
98
+ aac: {
99
99
  possible: import("./file-extensions").FileExtension[];
100
100
  default: import("./file-extensions").FileExtension;
101
101
  };
@@ -105,22 +105,22 @@ export declare const BrowserSafeApis: {
105
105
  };
106
106
  };
107
107
  };
108
- aac: {
108
+ wav: {
109
109
  default: import("./file-extensions").FileExtension;
110
110
  forAudioCodec: {
111
- aac: {
112
- possible: import("./file-extensions").FileExtension[];
113
- default: import("./file-extensions").FileExtension;
114
- };
115
111
  "pcm-16": {
116
112
  possible: import("./file-extensions").FileExtension[];
117
113
  default: import("./file-extensions").FileExtension;
118
114
  };
119
115
  };
120
116
  };
121
- wav: {
117
+ prores: {
122
118
  default: import("./file-extensions").FileExtension;
123
119
  forAudioCodec: {
120
+ aac: {
121
+ possible: import("./file-extensions").FileExtension[];
122
+ default: import("./file-extensions").FileExtension;
123
+ };
124
124
  "pcm-16": {
125
125
  possible: import("./file-extensions").FileExtension[];
126
126
  default: import("./file-extensions").FileExtension;
@@ -162,10 +162,6 @@ export declare const BrowserSafeApis: {
162
162
  compressed: "pcm-16" | "opus" | null;
163
163
  lossless: "pcm-16" | "opus" | null;
164
164
  };
165
- prores: {
166
- compressed: "aac" | "pcm-16" | null;
167
- lossless: "aac" | "pcm-16" | null;
168
- };
169
165
  mp3: {
170
166
  compressed: "mp3" | "pcm-16" | null;
171
167
  lossless: "mp3" | "pcm-16" | null;
@@ -178,6 +174,10 @@ export declare const BrowserSafeApis: {
178
174
  compressed: "pcm-16" | null;
179
175
  lossless: "pcm-16" | null;
180
176
  };
177
+ prores: {
178
+ compressed: "aac" | "pcm-16" | null;
179
+ lossless: "aac" | "pcm-16" | null;
180
+ };
181
181
  "h264-mkv": {
182
182
  compressed: "mp3" | "pcm-16" | null;
183
183
  lossless: "mp3" | "pcm-16" | null;
@@ -187,8 +187,8 @@ export declare const BrowserSafeApis: {
187
187
  lossless: null;
188
188
  };
189
189
  };
190
- defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
191
- validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
190
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
191
+ validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
192
192
  codec: T_1;
193
193
  audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
194
194
  extension: string;
@@ -281,7 +281,7 @@ export declare const BrowserSafeApis: {
281
281
  description: () => JSX.Element;
282
282
  docLink: string;
283
283
  ssrName: string;
284
- type: "bt709" | "default";
284
+ type: "default" | "bt709";
285
285
  };
286
286
  deleteAfterOption: {
287
287
  name: string;
@@ -391,6 +391,6 @@ export declare const BrowserSafeApis: {
391
391
  type: number | null;
392
392
  }];
393
393
  };
394
- codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
395
- codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
394
+ codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
395
+ codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
396
396
  };
@@ -56,6 +56,7 @@ const combineVideos = async (options) => {
56
56
  logger_1.Log.verbose(data.toString('utf8'));
57
57
  }
58
58
  else {
59
+ logger_1.Log.verbose(parsed);
59
60
  onProgress(parsed);
60
61
  }
61
62
  }
@@ -1,6 +1,6 @@
1
1
  import type { AudioCodec } from './audio-codec';
2
2
  import type { Codec } from './codec';
3
3
  import type { FileExtension } from './file-extensions';
4
- export declare const getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
5
- export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif")[]>;
4
+ export declare const getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
5
+ export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
6
6
  export declare const defaultCodecsForFileExtension: Record<FileExtension, Codec>;
package/dist/index.d.ts CHANGED
@@ -60,10 +60,10 @@ export declare const RenderInternals: {
60
60
  width: number;
61
61
  height: number;
62
62
  scale: number;
63
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
63
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
64
64
  wantsImageSequence: boolean;
65
65
  }) => void;
66
- 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;
66
+ 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;
67
67
  tmpDir: (str: string) => string;
68
68
  deleteDirectory: (directory: string) => void;
69
69
  isServeUrl: (potentialUrl: string) => boolean;
@@ -113,7 +113,7 @@ export declare const RenderInternals: {
113
113
  };
114
114
  registerErrorSymbolicationLock: () => number;
115
115
  unlockErrorSymbolicationLock: (id: number) => void;
116
- canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif") => boolean;
116
+ canUseParallelEncoding: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
117
117
  mimeContentType: typeof mimeContentType;
118
118
  mimeLookup: typeof mimeLookup;
119
119
  validateConcurrency: ({ setting, value, checkIfValidForCurrentMachine, }: {
@@ -124,14 +124,14 @@ export declare const RenderInternals: {
124
124
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
125
125
  DEFAULT_BROWSER: "chrome";
126
126
  validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
127
- DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | null;
128
- validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | null) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | null;
127
+ DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | null;
128
+ validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | null) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | null;
129
129
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
130
130
  DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
131
131
  validateJpegQuality: (q: number | undefined) => void;
132
132
  DEFAULT_TIMEOUT: number;
133
- DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
134
- isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif" | undefined) => boolean;
133
+ DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
134
+ isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
135
135
  logLevels: readonly ["verbose", "info", "warn", "error"];
136
136
  isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
137
137
  isValidLogLevel: (level: string) => boolean;
@@ -148,7 +148,7 @@ export declare const RenderInternals: {
148
148
  output: string;
149
149
  onProgress: (p: number) => void;
150
150
  numberOfFrames: number;
151
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
151
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
152
152
  fps: number;
153
153
  numberOfGifLoops: number | null;
154
154
  audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
@@ -156,7 +156,7 @@ export declare const RenderInternals: {
156
156
  getMinConcurrency: () => number;
157
157
  getMaxConcurrency: () => number;
158
158
  getDefaultAudioCodec: ({ codec, preferLossless, }: {
159
- codec: "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif";
159
+ codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
160
160
  preferLossless: boolean;
161
161
  }) => "mp3" | "aac" | "pcm-16" | "opus" | null;
162
162
  validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
@@ -217,10 +217,10 @@ export declare const RenderInternals: {
217
217
  };
218
218
  };
219
219
  };
220
- prores: {
220
+ mp3: {
221
221
  default: import("./file-extensions").FileExtension;
222
222
  forAudioCodec: {
223
- aac: {
223
+ mp3: {
224
224
  possible: import("./file-extensions").FileExtension[];
225
225
  default: import("./file-extensions").FileExtension;
226
226
  };
@@ -230,10 +230,10 @@ export declare const RenderInternals: {
230
230
  };
231
231
  };
232
232
  };
233
- mp3: {
233
+ aac: {
234
234
  default: import("./file-extensions").FileExtension;
235
235
  forAudioCodec: {
236
- mp3: {
236
+ aac: {
237
237
  possible: import("./file-extensions").FileExtension[];
238
238
  default: import("./file-extensions").FileExtension;
239
239
  };
@@ -243,22 +243,22 @@ export declare const RenderInternals: {
243
243
  };
244
244
  };
245
245
  };
246
- aac: {
246
+ wav: {
247
247
  default: import("./file-extensions").FileExtension;
248
248
  forAudioCodec: {
249
- aac: {
250
- possible: import("./file-extensions").FileExtension[];
251
- default: import("./file-extensions").FileExtension;
252
- };
253
249
  "pcm-16": {
254
250
  possible: import("./file-extensions").FileExtension[];
255
251
  default: import("./file-extensions").FileExtension;
256
252
  };
257
253
  };
258
254
  };
259
- wav: {
255
+ prores: {
260
256
  default: import("./file-extensions").FileExtension;
261
257
  forAudioCodec: {
258
+ aac: {
259
+ possible: import("./file-extensions").FileExtension[];
260
+ default: import("./file-extensions").FileExtension;
261
+ };
262
262
  "pcm-16": {
263
263
  possible: import("./file-extensions").FileExtension[];
264
264
  default: import("./file-extensions").FileExtension;
@@ -295,8 +295,8 @@ export declare const RenderInternals: {
295
295
  readonly vp9: readonly ["opus", "pcm-16"];
296
296
  readonly wav: readonly ["pcm-16"];
297
297
  };
298
- makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif")[]>;
299
- defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">;
298
+ makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
299
+ defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
300
300
  getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe" | "ffmpeg-cwd") => string;
301
301
  callFf: (bin: "ffmpeg" | "ffprobe", args: (string | null)[], options?: execa.Options<string> | undefined) => execa.ExecaChildProcess<string>;
302
302
  dynamicLibraryPathOptions: () => {
@@ -313,8 +313,8 @@ export declare const RenderInternals: {
313
313
  };
314
314
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
315
315
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
316
- DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
317
- DEFAULT_VIDEO_IMAGE_FORMAT: "none" | "png" | "jpeg";
316
+ DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
317
+ DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
318
318
  DEFAULT_JPEG_QUALITY: number;
319
319
  chalk: {
320
320
  enabled: () => boolean;
@@ -427,7 +427,7 @@ export declare const RenderInternals: {
427
427
  frame: number;
428
428
  serializedInputPropsWithCustomSchema: string;
429
429
  serializedResolvedPropsWithCustomSchema: string;
430
- imageFormat: "png" | "jpeg" | "pdf" | "webp";
430
+ imageFormat: "jpeg" | "png" | "webp" | "pdf";
431
431
  jpegQuality: number;
432
432
  puppeteerInstance: HeadlessBrowser | null;
433
433
  envVariables: Record<string, string>;
@@ -7,6 +7,6 @@ export declare const colorSpaceOption: {
7
7
  description: () => JSX.Element;
8
8
  docLink: string;
9
9
  ssrName: string;
10
- type: "bt709" | "default";
10
+ type: "default" | "bt709";
11
11
  };
12
12
  export declare const validateColorSpace: (option: unknown) => void;
@@ -1,5 +1,5 @@
1
1
  import type { AudioCodec } from './audio-codec';
2
- export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "prores" | "mp3" | "aac" | "wav" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
2
+ export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
3
3
  codec: T;
4
4
  audioCodec: AudioCodec | null;
5
5
  extension: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.43",
3
+ "version": "4.0.45",
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.43"
21
+ "remotion": "4.0.45"
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.43",
44
- "@remotion/compositor-darwin-x64": "4.0.43",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.43",
46
- "@remotion/compositor-linux-arm64-musl": "4.0.43",
47
- "@remotion/compositor-linux-x64-gnu": "4.0.43",
48
- "@remotion/compositor-linux-x64-musl": "4.0.43",
49
- "@remotion/compositor-win32-x64-msvc": "4.0.43"
43
+ "@remotion/compositor-darwin-arm64": "4.0.45",
44
+ "@remotion/compositor-darwin-x64": "4.0.45",
45
+ "@remotion/compositor-linux-arm64-gnu": "4.0.45",
46
+ "@remotion/compositor-linux-arm64-musl": "4.0.45",
47
+ "@remotion/compositor-linux-x64-gnu": "4.0.45",
48
+ "@remotion/compositor-linux-x64-musl": "4.0.45",
49
+ "@remotion/compositor-win32-x64-msvc": "4.0.45"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",