@remotion/renderer 4.0.423 → 4.0.425

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 (159) hide show
  1. package/dist/client.d.ts +448 -13
  2. package/dist/combine-chunks.js +3 -0
  3. package/dist/ensure-browser.d.ts +3 -0
  4. package/dist/esm/client.mjs +1262 -516
  5. package/dist/esm/index.mjs +14 -7
  6. package/dist/esm/pure.mjs +4 -2
  7. package/dist/ffmpeg-args.d.ts +1 -1
  8. package/dist/ffmpeg-args.js +1 -1
  9. package/dist/index.d.ts +45 -0
  10. package/dist/mux-video-and-audio.d.ts +2 -1
  11. package/dist/mux-video-and-audio.js +6 -1
  12. package/dist/options/api-key.d.ts +1 -0
  13. package/dist/options/api-key.js +1 -0
  14. package/dist/options/ask-ai.d.ts +1 -0
  15. package/dist/options/ask-ai.js +1 -0
  16. package/dist/options/audio-bitrate.d.ts +1 -0
  17. package/dist/options/audio-bitrate.js +1 -0
  18. package/dist/options/audio-codec.d.ts +1 -0
  19. package/dist/options/audio-codec.js +1 -0
  20. package/dist/options/beep-on-finish.d.ts +1 -0
  21. package/dist/options/beep-on-finish.js +1 -0
  22. package/dist/options/binaries-directory.d.ts +1 -0
  23. package/dist/options/binaries-directory.js +1 -0
  24. package/dist/options/browser-executable.d.ts +17 -0
  25. package/dist/options/browser-executable.js +36 -0
  26. package/dist/options/chrome-mode.d.ts +1 -0
  27. package/dist/options/chrome-mode.js +1 -0
  28. package/dist/options/color-space.d.ts +5 -4
  29. package/dist/options/color-space.js +4 -2
  30. package/dist/options/concurrency.d.ts +17 -0
  31. package/dist/options/concurrency.js +40 -0
  32. package/dist/options/crf.d.ts +1 -0
  33. package/dist/options/crf.js +1 -0
  34. package/dist/options/cross-site-isolation.d.ts +1 -0
  35. package/dist/options/cross-site-isolation.js +1 -0
  36. package/dist/options/dark-mode.d.ts +1 -0
  37. package/dist/options/dark-mode.js +1 -0
  38. package/dist/options/delete-after.d.ts +1 -0
  39. package/dist/options/delete-after.js +1 -0
  40. package/dist/options/disable-git-source.d.ts +1 -0
  41. package/dist/options/disable-git-source.js +1 -0
  42. package/dist/options/disable-web-security.d.ts +16 -0
  43. package/dist/options/disable-web-security.js +36 -0
  44. package/dist/options/disallow-parallel-encoding.d.ts +1 -0
  45. package/dist/options/disallow-parallel-encoding.js +1 -0
  46. package/dist/options/enable-lambda-insights.d.ts +1 -0
  47. package/dist/options/enable-lambda-insights.js +1 -0
  48. package/dist/options/enable-multiprocess-on-linux.d.ts +1 -0
  49. package/dist/options/enable-multiprocess-on-linux.js +1 -0
  50. package/dist/options/encoding-buffer-size.d.ts +1 -0
  51. package/dist/options/encoding-buffer-size.js +1 -0
  52. package/dist/options/encoding-max-rate.d.ts +1 -0
  53. package/dist/options/encoding-max-rate.js +1 -0
  54. package/dist/options/enforce-audio.d.ts +1 -0
  55. package/dist/options/enforce-audio.js +1 -0
  56. package/dist/options/every-nth-frame.d.ts +16 -0
  57. package/dist/options/every-nth-frame.js +42 -0
  58. package/dist/options/experimental-client-side-rendering.d.ts +1 -0
  59. package/dist/options/experimental-client-side-rendering.js +1 -0
  60. package/dist/options/folder-expiry.d.ts +1 -0
  61. package/dist/options/folder-expiry.js +1 -0
  62. package/dist/options/for-seamless-aac-concatenation.d.ts +1 -0
  63. package/dist/options/for-seamless-aac-concatenation.js +1 -0
  64. package/dist/options/force-new-studio.d.ts +1 -0
  65. package/dist/options/force-new-studio.js +1 -0
  66. package/dist/options/gl.d.ts +1 -0
  67. package/dist/options/gl.js +1 -0
  68. package/dist/options/hardware-acceleration.d.ts +1 -0
  69. package/dist/options/hardware-acceleration.js +1 -0
  70. package/dist/options/headless.d.ts +1 -0
  71. package/dist/options/headless.js +1 -0
  72. package/dist/options/ignore-certificate-errors.d.ts +16 -0
  73. package/dist/options/ignore-certificate-errors.js +36 -0
  74. package/dist/options/image-format-option.d.ts +18 -0
  75. package/dist/options/image-format-option.js +33 -0
  76. package/dist/options/image-sequence-pattern.d.ts +1 -0
  77. package/dist/options/image-sequence-pattern.js +1 -0
  78. package/dist/options/index.d.ts +307 -3
  79. package/dist/options/index.js +28 -0
  80. package/dist/options/ipv4.d.ts +1 -0
  81. package/dist/options/ipv4.js +1 -0
  82. package/dist/options/is-production.d.ts +1 -0
  83. package/dist/options/is-production.js +1 -0
  84. package/dist/options/jpeg-quality.d.ts +1 -0
  85. package/dist/options/jpeg-quality.js +1 -0
  86. package/dist/options/keyboard-shortcuts.d.ts +1 -0
  87. package/dist/options/keyboard-shortcuts.js +1 -0
  88. package/dist/options/latency-hint.d.ts +1 -0
  89. package/dist/options/latency-hint.js +1 -0
  90. package/dist/options/license-key.d.ts +1 -0
  91. package/dist/options/license-key.js +1 -0
  92. package/dist/options/log-level.d.ts +1 -0
  93. package/dist/options/log-level.js +1 -0
  94. package/dist/options/metadata.d.ts +1 -0
  95. package/dist/options/metadata.js +1 -0
  96. package/dist/options/mute.d.ts +1 -0
  97. package/dist/options/mute.js +1 -0
  98. package/dist/options/number-of-gif-loops.d.ts +1 -0
  99. package/dist/options/number-of-gif-loops.js +1 -0
  100. package/dist/options/number-of-shared-audio-tags.d.ts +1 -0
  101. package/dist/options/number-of-shared-audio-tags.js +1 -0
  102. package/dist/options/offthreadvideo-cache-size.d.ts +1 -0
  103. package/dist/options/offthreadvideo-cache-size.js +1 -0
  104. package/dist/options/offthreadvideo-threads.d.ts +1 -0
  105. package/dist/options/offthreadvideo-threads.js +1 -0
  106. package/dist/options/on-browser-download.d.ts +1 -0
  107. package/dist/options/on-browser-download.js +1 -0
  108. package/dist/options/option.d.ts +1 -0
  109. package/dist/options/options-map.d.ts +139 -9
  110. package/dist/options/override-duration.d.ts +19 -0
  111. package/dist/options/override-duration.js +46 -0
  112. package/dist/options/override-fps.d.ts +19 -0
  113. package/dist/options/override-fps.js +40 -0
  114. package/dist/options/override-height.d.ts +19 -0
  115. package/dist/options/override-height.js +40 -0
  116. package/dist/options/override-width.d.ts +19 -0
  117. package/dist/options/override-width.js +40 -0
  118. package/dist/options/overwrite.d.ts +1 -0
  119. package/dist/options/overwrite.js +1 -0
  120. package/dist/options/pixel-format.d.ts +16 -0
  121. package/dist/options/pixel-format.js +41 -0
  122. package/dist/options/prefer-lossless.d.ts +1 -0
  123. package/dist/options/prefer-lossless.js +1 -0
  124. package/dist/options/prores-profile.d.ts +20 -0
  125. package/dist/options/prores-profile.js +48 -0
  126. package/dist/options/public-dir.d.ts +1 -0
  127. package/dist/options/public-dir.js +1 -0
  128. package/dist/options/public-license-key.d.ts +1 -0
  129. package/dist/options/public-license-key.js +1 -0
  130. package/dist/options/public-path.d.ts +1 -0
  131. package/dist/options/public-path.js +1 -0
  132. package/dist/options/repro.d.ts +1 -0
  133. package/dist/options/repro.js +1 -0
  134. package/dist/options/scale.d.ts +1 -0
  135. package/dist/options/scale.js +1 -0
  136. package/dist/options/separate-audio.d.ts +1 -0
  137. package/dist/options/separate-audio.js +1 -0
  138. package/dist/options/still-image-format.d.ts +19 -0
  139. package/dist/options/still-image-format.js +55 -0
  140. package/dist/options/throw-if-site-exists.d.ts +1 -0
  141. package/dist/options/throw-if-site-exists.js +1 -0
  142. package/dist/options/timeout.d.ts +1 -0
  143. package/dist/options/timeout.js +1 -0
  144. package/dist/options/user-agent.d.ts +19 -0
  145. package/dist/options/user-agent.js +36 -0
  146. package/dist/options/video-bitrate.d.ts +1 -0
  147. package/dist/options/video-bitrate.js +1 -0
  148. package/dist/options/video-cache-size.d.ts +1 -0
  149. package/dist/options/video-cache-size.js +1 -0
  150. package/dist/options/video-codec.d.ts +1 -0
  151. package/dist/options/video-codec.js +1 -0
  152. package/dist/options/video-image-format.d.ts +19 -0
  153. package/dist/options/video-image-format.js +55 -0
  154. package/dist/options/webhook-custom-data.d.ts +1 -0
  155. package/dist/options/webhook-custom-data.js +1 -0
  156. package/dist/options/x264-preset.d.ts +1 -0
  157. package/dist/options/x264-preset.js +1 -0
  158. package/dist/validate-number-of-gif-loops.js +1 -1
  159. package/package.json +15 -15
@@ -38,4 +38,5 @@ exports.videoBitrateOption = {
38
38
  setConfig: (bitrate) => {
39
39
  videoBitrate = bitrate;
40
40
  },
41
+ id: cliFlag,
41
42
  };
@@ -16,4 +16,5 @@ export declare const mediaCacheSizeInBytesOption: {
16
16
  value: null;
17
17
  };
18
18
  setConfig: (size: number | null) => void;
19
+ id: "media-cache-size-in-bytes";
19
20
  };
@@ -43,4 +43,5 @@ exports.mediaCacheSizeInBytesOption = {
43
43
  setConfig: (size) => {
44
44
  mediaCacheSizeInBytes = size !== null && size !== void 0 ? size : null;
45
45
  },
46
+ id: cliFlag,
46
47
  };
@@ -20,4 +20,5 @@ export declare const videoCodecOption: {
20
20
  source: string;
21
21
  };
22
22
  setConfig: (newCodec: CodecOrUndefined) => void;
23
+ id: "codec";
23
24
  };
@@ -101,4 +101,5 @@ exports.videoCodecOption = {
101
101
  return { value: codec_1.DEFAULT_CODEC, source: 'default' };
102
102
  },
103
103
  setConfig: setCodec,
104
+ id: cliFlag,
104
105
  };
@@ -0,0 +1,19 @@
1
+ export declare const videoImageFormatOption: {
2
+ name: string;
3
+ cliFlag: "image-format";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "imageFormat";
6
+ docLink: string;
7
+ type: "jpeg" | "none" | "png" | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: "jpeg" | "none" | "png";
13
+ } | {
14
+ source: string;
15
+ value: null;
16
+ };
17
+ setConfig: (value: "jpeg" | "none" | "png" | null) => void;
18
+ id: string;
19
+ };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.videoImageFormatOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const image_format_1 = require("../image-format");
6
+ let currentVideoImageFormat = null;
7
+ const cliFlag = 'image-format';
8
+ exports.videoImageFormatOption = {
9
+ name: 'Video Image Format',
10
+ cliFlag,
11
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The image format to use when rendering frames for a video. Must be one of", ' ', image_format_1.validVideoImageFormats.map((f) => `"${f}"`).join(', '), ". Default:", ' ', jsx_runtime_1.jsx("code", { children: "\"jpeg\"" }),
12
+ ". JPEG is faster, but does not support transparency."] })),
13
+ ssrName: 'imageFormat',
14
+ docLink: 'https://www.remotion.dev/docs/renderer/render-media#imageformat',
15
+ type: null,
16
+ getValue: ({ commandLine }) => {
17
+ if (commandLine[cliFlag] !== undefined) {
18
+ const value = commandLine[cliFlag];
19
+ if (!image_format_1.validVideoImageFormats.includes(value)) {
20
+ throw new Error(`Invalid video image format: ${value}. Must be one of: ${image_format_1.validVideoImageFormats.join(', ')}`);
21
+ }
22
+ return {
23
+ source: 'cli',
24
+ value,
25
+ };
26
+ }
27
+ if (currentVideoImageFormat !== null) {
28
+ return {
29
+ source: 'config',
30
+ value: currentVideoImageFormat,
31
+ };
32
+ }
33
+ return {
34
+ source: 'default',
35
+ value: null,
36
+ };
37
+ },
38
+ setConfig: (value) => {
39
+ if (value === null) {
40
+ currentVideoImageFormat = null;
41
+ return;
42
+ }
43
+ if (!image_format_1.validVideoImageFormats.includes(value)) {
44
+ throw new TypeError([
45
+ `Value ${value} is not valid as a video image format.`,
46
+ // @ts-expect-error
47
+ value === 'jpg' ? 'Did you mean "jpeg"?' : null,
48
+ ]
49
+ .filter(Boolean)
50
+ .join(' '));
51
+ }
52
+ currentVideoImageFormat = value;
53
+ },
54
+ id: 'video-image-format',
55
+ };
@@ -7,4 +7,5 @@ export declare const webhookCustomDataOption: {
7
7
  type: Record<string, unknown> | null;
8
8
  getValue: () => never;
9
9
  setConfig: () => never;
10
+ id: "webhook-custom-data";
10
11
  };
@@ -18,4 +18,5 @@ exports.webhookCustomDataOption = {
18
18
  setConfig: () => {
19
19
  throw new Error('Not implemented');
20
20
  },
21
+ id: cliFlag,
21
22
  };
@@ -21,4 +21,5 @@ export declare const x264Option: {
21
21
  source: string;
22
22
  };
23
23
  setConfig: (profile: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null) => void;
24
+ id: "x264-preset";
24
25
  };
@@ -74,4 +74,5 @@ exports.x264Option = {
74
74
  setConfig: (profile) => {
75
75
  preset = profile;
76
76
  },
77
+ id: cliFlag,
77
78
  };
@@ -18,7 +18,7 @@ const validateNumberOfGifLoops = (numberOfGifLoops, codec) => {
18
18
  throw new RangeError(`Argument for numberOfGifLoops must be an integer, but got ${numberOfGifLoops}`);
19
19
  }
20
20
  if (codec !== 'gif') {
21
- throw new Error(`"everyNthFrame" can only be set if "codec" is set to "gif". The codec is "${codec}"`);
21
+ throw new Error(`"numberOfGifLoops" can only be set if "codec" is set to "gif". The codec is "${codec}"`);
22
22
  }
23
23
  };
24
24
  exports.validateNumberOfGifLoops = validateNumberOfGifLoops;
package/package.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
4
4
  },
5
5
  "name": "@remotion/renderer",
6
- "version": "4.0.423",
6
+ "version": "4.0.425",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
10
  "sideEffects": false,
11
11
  "scripts": {
12
- "formatting": "prettier --experimental-cli src --check",
12
+ "formatting": "prettier src --check",
13
13
  "lint": "eslint src",
14
14
  "test": "bun test src",
15
15
  "watch": "tsgo -w",
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "execa": "5.1.1",
25
25
  "extract-zip": "2.0.1",
26
- "remotion": "4.0.423",
27
- "@remotion/streaming": "4.0.423",
26
+ "remotion": "4.0.425",
27
+ "@remotion/streaming": "4.0.425",
28
28
  "source-map": "^0.8.0-beta.0",
29
29
  "ws": "8.17.1",
30
- "@remotion/licensing": "4.0.423"
30
+ "@remotion/licensing": "4.0.425"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
@@ -39,21 +39,21 @@
39
39
  "@happy-dom/global-registrator": "14.5.1",
40
40
  "react": "19.2.3",
41
41
  "react-dom": "19.2.3",
42
- "@typescript/native-preview": "7.0.0-dev.20260105.1",
42
+ "@typescript/native-preview": "7.0.0-dev.20260217.1",
43
43
  "@types/ws": "8.5.10",
44
- "@remotion/example-videos": "4.0.423",
45
- "@remotion/eslint-config-internal": "4.0.423",
44
+ "@remotion/example-videos": "4.0.425",
45
+ "@remotion/eslint-config-internal": "4.0.425",
46
46
  "eslint": "9.19.0",
47
47
  "@types/node": "20.12.14"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@remotion/compositor-darwin-arm64": "4.0.423",
51
- "@remotion/compositor-darwin-x64": "4.0.423",
52
- "@remotion/compositor-linux-arm64-gnu": "4.0.423",
53
- "@remotion/compositor-linux-arm64-musl": "4.0.423",
54
- "@remotion/compositor-linux-x64-gnu": "4.0.423",
55
- "@remotion/compositor-linux-x64-musl": "4.0.423",
56
- "@remotion/compositor-win32-x64-msvc": "4.0.423"
50
+ "@remotion/compositor-darwin-arm64": "4.0.425",
51
+ "@remotion/compositor-darwin-x64": "4.0.425",
52
+ "@remotion/compositor-linux-arm64-gnu": "4.0.425",
53
+ "@remotion/compositor-linux-arm64-musl": "4.0.425",
54
+ "@remotion/compositor-linux-x64-gnu": "4.0.425",
55
+ "@remotion/compositor-linux-x64-musl": "4.0.425",
56
+ "@remotion/compositor-win32-x64-msvc": "4.0.425"
57
57
  },
58
58
  "keywords": [
59
59
  "remotion",