@remotion/renderer 4.0.114 → 4.0.116

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.
Files changed (94) hide show
  1. package/dist/browser/BrowserFetcher.js +1 -1
  2. package/dist/browser/BrowserPage.js +3 -3
  3. package/dist/browser/Connection.js +1 -1
  4. package/dist/check-apple-silicon.d.ts +3 -1
  5. package/dist/check-apple-silicon.js +32 -2
  6. package/dist/client.d.ts +1256 -14
  7. package/dist/client.js +3 -1
  8. package/dist/combine-videos.js +1 -1
  9. package/dist/ffmpeg-args.d.ts +1 -1
  10. package/dist/get-compositions.d.ts +1 -7
  11. package/dist/get-compositions.js +2 -2
  12. package/dist/get-extension-of-filename.js +2 -5
  13. package/dist/get-local-browser-executable.js +1 -1
  14. package/dist/index.d.ts +143 -16
  15. package/dist/index.js +0 -2
  16. package/dist/jpeg-quality.d.ts +1 -1
  17. package/dist/logger.d.ts +2 -6
  18. package/dist/logger.js +5 -23
  19. package/dist/options/audio-bitrate.d.ts +10 -0
  20. package/dist/options/audio-bitrate.js +25 -2
  21. package/dist/options/beep-on-finish.d.ts +7 -0
  22. package/dist/options/beep-on-finish.js +24 -1
  23. package/dist/options/color-space.d.ts +7 -0
  24. package/dist/options/color-space.js +23 -0
  25. package/dist/options/crf.d.ts +9 -0
  26. package/dist/options/crf.js +33 -2
  27. package/dist/options/delete-after.d.ts +12 -1
  28. package/dist/options/delete-after.js +25 -2
  29. package/dist/options/enable-lambda-insights.d.ts +7 -0
  30. package/dist/options/enable-lambda-insights.js +24 -1
  31. package/dist/options/enable-multiprocess-on-linux.d.ts +7 -0
  32. package/dist/options/enable-multiprocess-on-linux.js +24 -1
  33. package/dist/options/encoding-buffer-size.d.ts +10 -0
  34. package/dist/options/encoding-buffer-size.js +28 -1
  35. package/dist/options/encoding-max-rate.d.ts +10 -0
  36. package/dist/options/encoding-max-rate.js +24 -1
  37. package/dist/options/enforce-audio.d.ts +7 -0
  38. package/dist/options/enforce-audio.js +25 -1
  39. package/dist/options/folder-expiry.d.ts +7 -0
  40. package/dist/options/folder-expiry.js +24 -1
  41. package/dist/options/gl.d.ts +16 -4
  42. package/dist/options/gl.js +35 -3
  43. package/dist/options/headless.d.ts +15 -0
  44. package/dist/options/headless.js +36 -0
  45. package/dist/options/index.d.ts +259 -10
  46. package/dist/options/index.js +13 -3
  47. package/dist/options/jpeg-quality.d.ts +9 -0
  48. package/dist/options/jpeg-quality.js +37 -2
  49. package/dist/options/log-level.d.ts +16 -0
  50. package/dist/options/log-level.js +32 -0
  51. package/dist/options/mute.d.ts +9 -2
  52. package/dist/options/mute.js +27 -3
  53. package/dist/options/number-of-gif-loops.d.ts +11 -0
  54. package/dist/options/number-of-gif-loops.js +31 -1
  55. package/dist/options/offthreadvideo-cache-size.d.ts +12 -1
  56. package/dist/options/offthreadvideo-cache-size.js +30 -3
  57. package/dist/options/option.d.ts +11 -3
  58. package/dist/options/options-map.d.ts +997 -3
  59. package/dist/options/options-map.js +79 -12
  60. package/dist/options/overwrite.d.ts +15 -0
  61. package/dist/options/overwrite.js +42 -0
  62. package/dist/options/repro.d.ts +8 -1
  63. package/dist/options/repro.js +25 -1
  64. package/dist/options/scale.d.ts +7 -0
  65. package/dist/options/scale.js +30 -1
  66. package/dist/options/timeout.d.ts +15 -0
  67. package/dist/options/timeout.js +44 -0
  68. package/dist/options/video-bitrate.d.ts +9 -2
  69. package/dist/options/video-bitrate.js +27 -4
  70. package/dist/options/video-codec.d.ts +16 -1
  71. package/dist/options/video-codec.js +81 -2
  72. package/dist/options/webhook-custom-data.d.ts +3 -1
  73. package/dist/options/webhook-custom-data.js +8 -1
  74. package/dist/options/x264-preset.d.ts +20 -3
  75. package/dist/options/x264-preset.js +47 -7
  76. package/dist/path-normalize.d.ts +1 -0
  77. package/dist/path-normalize.js +133 -0
  78. package/dist/prespawn-ffmpeg.d.ts +1 -1
  79. package/dist/print-useful-error-message.d.ts +2 -1
  80. package/dist/print-useful-error-message.js +29 -29
  81. package/dist/render-frames.d.ts +1 -7
  82. package/dist/render-frames.js +1 -1
  83. package/dist/render-media.d.ts +0 -17
  84. package/dist/render-media.js +4 -4
  85. package/dist/render-still.d.ts +1 -7
  86. package/dist/render-still.js +2 -3
  87. package/dist/repro.js +6 -6
  88. package/dist/select-composition.d.ts +2 -8
  89. package/dist/stitch-frames-to-video.d.ts +1 -1
  90. package/dist/stitch-frames-to-video.js +1 -1
  91. package/dist/wrap-with-error-handling.js +1 -1
  92. package/package.json +9 -9
  93. package/dist/does-have-m2-bug.d.ts +0 -3
  94. package/dist/does-have-m2-bug.js +0 -12
@@ -2,7 +2,6 @@ import type { VideoConfig } from 'remotion/no-react';
2
2
  import type { BrowserExecutable } from './browser-executable';
3
3
  import type { BrowserLog } from './browser-log';
4
4
  import type { HeadlessBrowser } from './browser/Browser';
5
- import { type LogLevel } from './log-level';
6
5
  import type { ChromiumOptions } from './open-browser';
7
6
  import type { ToOptions } from './options/option';
8
7
  import type { optionsMap } from './options/options-map';
@@ -13,33 +12,28 @@ type InternalSelectCompositionsConfig = {
13
12
  puppeteerInstance: HeadlessBrowser | undefined;
14
13
  onBrowserLog: null | ((log: BrowserLog) => void);
15
14
  browserExecutable: BrowserExecutable | null;
16
- timeoutInMilliseconds: number;
17
15
  chromiumOptions: ChromiumOptions;
18
16
  port: number | null;
19
17
  indent: boolean;
20
18
  server: RemotionServer | undefined;
21
- logLevel: LogLevel;
22
19
  serveUrl: string;
23
20
  id: string;
24
- } & ToOptions<typeof optionsMap.renderStill>;
21
+ } & ToOptions<typeof optionsMap.selectComposition>;
25
22
  export type SelectCompositionOptions = {
26
23
  inputProps?: Record<string, unknown> | null;
27
24
  envVariables?: Record<string, string>;
28
25
  puppeteerInstance?: HeadlessBrowser;
29
26
  onBrowserLog?: (log: BrowserLog) => void;
30
27
  browserExecutable?: BrowserExecutable;
31
- timeoutInMilliseconds?: number;
32
28
  chromiumOptions?: ChromiumOptions;
33
29
  port?: number | null;
34
30
  /**
35
31
  * @deprecated Use `logLevel` instead.
36
32
  */
37
33
  verbose?: boolean;
38
- logLevel?: LogLevel;
39
- offthreadVideoCacheSizeInBytes?: number | null;
40
34
  serveUrl: string;
41
35
  id: string;
42
- };
36
+ } & Partial<ToOptions<typeof optionsMap.renderStill>>;
43
37
  type InternalReturnType = {
44
38
  metadata: VideoConfig;
45
39
  propsSize: number;
@@ -6,9 +6,9 @@ import type { FfmpegOverrideFn } from './ffmpeg-override';
6
6
  import type { LogLevel } from './log-level';
7
7
  import type { CancelSignal } from './make-cancel-signal';
8
8
  import type { ColorSpace } from './options/color-space';
9
+ import type { X264Preset } from './options/x264-preset';
9
10
  import type { PixelFormat } from './pixel-format';
10
11
  import type { ProResProfile } from './prores-profile';
11
- import type { X264Preset } from './x264-preset';
12
12
  type InternalStitchFramesToVideoOptions = {
13
13
  audioBitrate: string | null;
14
14
  videoBitrate: string | null;
@@ -181,7 +181,7 @@ const innerStitchFramesToVideo = async ({ assetsInfo, audioBitrate, audioCodec,
181
181
  '-c:a',
182
182
  (0, audio_codec_1.mapAudioCodecToFfmpegAudioCodecName)(resolvedAudioCodec),
183
183
  '-b:a',
184
- audioBitrate ? audioBitrate : '320k',
184
+ audioBitrate !== null && audioBitrate !== void 0 ? audioBitrate : '320k',
185
185
  force ? '-y' : null,
186
186
  outputLocation !== null && outputLocation !== void 0 ? outputLocation : tempFile,
187
187
  ].filter(no_react_1.NoReactInternals.truthy),
@@ -8,7 +8,7 @@ const wrapWithErrorHandling = (fn) => {
8
8
  return await fn(...args);
9
9
  }
10
10
  catch (err) {
11
- (0, print_useful_error_message_1.printUsefulErrorMessage)(err);
11
+ (0, print_useful_error_message_1.printUsefulErrorMessage)(err, 'info');
12
12
  throw err;
13
13
  }
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.114",
3
+ "version": "4.0.116",
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.114"
21
+ "remotion": "4.0.116"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
@@ -40,13 +40,13 @@
40
40
  "vitest": "0.31.1"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@remotion/compositor-darwin-x64": "4.0.114",
44
- "@remotion/compositor-darwin-arm64": "4.0.114",
45
- "@remotion/compositor-linux-arm64-gnu": "4.0.114",
46
- "@remotion/compositor-linux-arm64-musl": "4.0.114",
47
- "@remotion/compositor-linux-x64-gnu": "4.0.114",
48
- "@remotion/compositor-win32-x64-msvc": "4.0.114",
49
- "@remotion/compositor-linux-x64-musl": "4.0.114"
43
+ "@remotion/compositor-darwin-arm64": "4.0.116",
44
+ "@remotion/compositor-linux-arm64-gnu": "4.0.116",
45
+ "@remotion/compositor-linux-x64-musl": "4.0.116",
46
+ "@remotion/compositor-darwin-x64": "4.0.116",
47
+ "@remotion/compositor-linux-arm64-musl": "4.0.116",
48
+ "@remotion/compositor-linux-x64-gnu": "4.0.116",
49
+ "@remotion/compositor-win32-x64-msvc": "4.0.116"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",
@@ -1,3 +0,0 @@
1
- import type { Codec } from './codec';
2
- import type { PixelFormat } from './pixel-format';
3
- export declare const warnAboutM2Bug: (codec: Codec | null, pixelFormat: PixelFormat | null) => void;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.warnAboutM2Bug = void 0;
4
- const node_os_1 = require("node:os");
5
- const warnAboutM2Bug = (codec, pixelFormat) => {
6
- const isM2 = (0, node_os_1.cpus)().find((c) => c.model.includes('Apple M2'));
7
- if (codec === 'prores' && pixelFormat === 'yuv422p10le' && isM2) {
8
- console.warn();
9
- console.warn('⚠️ Known issue: Apple M2 CPUs currently suffer from a bug where transparent ProRes videos have flickering. https://github.com/remotion-dev/remotion/issues/1929');
10
- }
11
- };
12
- exports.warnAboutM2Bug = warnAboutM2Bug;