@remotion/renderer 4.0.534 → 4.0.535

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 (225) hide show
  1. package/dist/browser/BrowserPage.js +4 -0
  2. package/dist/client.d.ts +315 -0
  3. package/dist/combine-chunks.d.ts +2 -1
  4. package/dist/combine-chunks.js +81 -52
  5. package/dist/combine-video-streams.js +3 -0
  6. package/dist/compositor/get-executable-path.js +30 -15
  7. package/dist/ensure-browser.d.ts +3 -0
  8. package/dist/esm/client.mjs +1076 -846
  9. package/dist/esm/index.mjs +394 -351
  10. package/dist/esm/pure.mjs +3 -1
  11. package/dist/get-video-threads-flag.js +5 -1
  12. package/dist/index.d.ts +47 -1
  13. package/dist/mux-video-and-audio.js +3 -0
  14. package/dist/options/allow-html-in-canvas.d.ts +1 -0
  15. package/dist/options/allow-html-in-canvas.js +1 -0
  16. package/dist/options/api-key.d.ts +1 -0
  17. package/dist/options/api-key.js +1 -0
  18. package/dist/options/ask-ai.d.ts +1 -0
  19. package/dist/options/ask-ai.js +1 -0
  20. package/dist/options/audio-bitrate.d.ts +1 -0
  21. package/dist/options/audio-bitrate.js +1 -0
  22. package/dist/options/audio-codec.d.ts +1 -0
  23. package/dist/options/audio-codec.js +1 -0
  24. package/dist/options/beep-on-finish.d.ts +1 -0
  25. package/dist/options/beep-on-finish.js +1 -0
  26. package/dist/options/benchmark-concurrencies.d.ts +1 -0
  27. package/dist/options/benchmark-concurrencies.js +1 -0
  28. package/dist/options/binaries-directory.d.ts +1 -0
  29. package/dist/options/binaries-directory.js +1 -0
  30. package/dist/options/browser-executable.d.ts +1 -0
  31. package/dist/options/browser-executable.js +1 -0
  32. package/dist/options/browser.d.ts +1 -0
  33. package/dist/options/browser.js +1 -0
  34. package/dist/options/bundle-cache.d.ts +1 -0
  35. package/dist/options/bundle-cache.js +1 -0
  36. package/dist/options/canvas-tabs.d.ts +1 -0
  37. package/dist/options/canvas-tabs.js +1 -0
  38. package/dist/options/chrome-mode.d.ts +1 -0
  39. package/dist/options/chrome-mode.js +1 -0
  40. package/dist/options/color-space.d.ts +1 -0
  41. package/dist/options/color-space.js +1 -0
  42. package/dist/options/concurrency.d.ts +1 -0
  43. package/dist/options/concurrency.js +1 -0
  44. package/dist/options/config.d.ts +1 -0
  45. package/dist/options/config.js +1 -0
  46. package/dist/options/crf.d.ts +1 -0
  47. package/dist/options/crf.js +1 -0
  48. package/dist/options/cross-site-isolation.d.ts +1 -0
  49. package/dist/options/cross-site-isolation.js +1 -0
  50. package/dist/options/dark-mode.d.ts +1 -0
  51. package/dist/options/dark-mode.js +1 -0
  52. package/dist/options/default-coding-agent.d.ts +1 -0
  53. package/dist/options/default-coding-agent.js +1 -0
  54. package/dist/options/default-editor.d.ts +1 -0
  55. package/dist/options/default-editor.js +1 -0
  56. package/dist/options/default-premount-in-seconds.d.ts +19 -0
  57. package/dist/options/default-premount-in-seconds.js +36 -0
  58. package/dist/options/delete-after.d.ts +1 -0
  59. package/dist/options/delete-after.js +1 -0
  60. package/dist/options/disable-git-source.d.ts +1 -0
  61. package/dist/options/disable-git-source.js +1 -0
  62. package/dist/options/disable-shared-memory-capture.d.ts +1 -0
  63. package/dist/options/disable-shared-memory-capture.js +1 -0
  64. package/dist/options/disable-web-security.d.ts +1 -0
  65. package/dist/options/disable-web-security.js +1 -0
  66. package/dist/options/disallow-parallel-encoding.d.ts +1 -0
  67. package/dist/options/disallow-parallel-encoding.js +1 -0
  68. package/dist/options/enable-cancellation.d.ts +1 -0
  69. package/dist/options/enable-cancellation.js +1 -0
  70. package/dist/options/enable-lambda-insights.d.ts +1 -0
  71. package/dist/options/enable-lambda-insights.js +1 -0
  72. package/dist/options/enable-multiprocess-on-linux.d.ts +1 -0
  73. package/dist/options/enable-multiprocess-on-linux.js +1 -0
  74. package/dist/options/encoding-buffer-size.d.ts +1 -0
  75. package/dist/options/encoding-buffer-size.js +1 -0
  76. package/dist/options/encoding-max-rate.d.ts +1 -0
  77. package/dist/options/encoding-max-rate.js +1 -0
  78. package/dist/options/enforce-audio.d.ts +1 -0
  79. package/dist/options/enforce-audio.js +1 -0
  80. package/dist/options/env-file.d.ts +1 -0
  81. package/dist/options/env-file.js +1 -0
  82. package/dist/options/every-nth-frame.d.ts +1 -0
  83. package/dist/options/every-nth-frame.js +1 -0
  84. package/dist/options/experimental-keep-audio-context-alive.d.ts +1 -0
  85. package/dist/options/experimental-keep-audio-context-alive.js +1 -0
  86. package/dist/options/experimental-sequence-activity-limit.d.ts +19 -0
  87. package/dist/options/experimental-sequence-activity-limit.js +40 -0
  88. package/dist/options/experimental-sequence-activity.d.ts +19 -0
  89. package/dist/options/experimental-sequence-activity.js +38 -0
  90. package/dist/options/experimental-tracks.d.ts +1 -0
  91. package/dist/options/experimental-tracks.js +1 -0
  92. package/dist/options/folder-expiry.d.ts +1 -0
  93. package/dist/options/folder-expiry.js +1 -0
  94. package/dist/options/for-seamless-aac-concatenation.d.ts +1 -0
  95. package/dist/options/for-seamless-aac-concatenation.js +1 -0
  96. package/dist/options/force-new-studio.d.ts +1 -0
  97. package/dist/options/force-new-studio.js +1 -0
  98. package/dist/options/frames.d.ts +1 -0
  99. package/dist/options/frames.js +1 -0
  100. package/dist/options/gl.d.ts +1 -0
  101. package/dist/options/gl.js +1 -0
  102. package/dist/options/gop-size.d.ts +1 -0
  103. package/dist/options/gop-size.js +1 -0
  104. package/dist/options/hardware-acceleration.d.ts +1 -0
  105. package/dist/options/hardware-acceleration.js +1 -0
  106. package/dist/options/headless.d.ts +1 -0
  107. package/dist/options/headless.js +1 -0
  108. package/dist/options/ignore-certificate-errors.d.ts +1 -0
  109. package/dist/options/ignore-certificate-errors.js +1 -0
  110. package/dist/options/image-sequence-pattern.d.ts +1 -0
  111. package/dist/options/image-sequence-pattern.js +1 -0
  112. package/dist/options/image-sequence.d.ts +1 -0
  113. package/dist/options/image-sequence.js +1 -0
  114. package/dist/options/index.d.ts +175 -0
  115. package/dist/options/index.js +8 -0
  116. package/dist/options/interactivity.d.ts +1 -0
  117. package/dist/options/interactivity.js +1 -0
  118. package/dist/options/ipv4.d.ts +1 -0
  119. package/dist/options/ipv4.js +1 -0
  120. package/dist/options/is-production.d.ts +1 -0
  121. package/dist/options/is-production.js +1 -0
  122. package/dist/options/jpeg-quality.d.ts +1 -0
  123. package/dist/options/jpeg-quality.js +1 -0
  124. package/dist/options/keyboard-shortcuts.d.ts +1 -0
  125. package/dist/options/keyboard-shortcuts.js +1 -0
  126. package/dist/options/latency-hint.d.ts +1 -0
  127. package/dist/options/latency-hint.js +1 -0
  128. package/dist/options/license-key.d.ts +1 -0
  129. package/dist/options/license-key.js +1 -0
  130. package/dist/options/log-level.d.ts +1 -0
  131. package/dist/options/log-level.js +1 -0
  132. package/dist/options/metadata.d.ts +1 -0
  133. package/dist/options/metadata.js +1 -0
  134. package/dist/options/mute.d.ts +1 -0
  135. package/dist/options/mute.js +1 -0
  136. package/dist/options/no-open.d.ts +1 -0
  137. package/dist/options/no-open.js +1 -0
  138. package/dist/options/number-of-gif-loops.d.ts +1 -0
  139. package/dist/options/number-of-gif-loops.js +1 -0
  140. package/dist/options/number-of-shared-audio-tags.d.ts +1 -0
  141. package/dist/options/number-of-shared-audio-tags.js +1 -0
  142. package/dist/options/offthreadvideo-cache-size.d.ts +1 -0
  143. package/dist/options/offthreadvideo-cache-size.js +1 -0
  144. package/dist/options/offthreadvideo-threads.d.ts +1 -0
  145. package/dist/options/offthreadvideo-threads.js +1 -0
  146. package/dist/options/on-browser-download.d.ts +1 -0
  147. package/dist/options/on-browser-download.js +1 -0
  148. package/dist/options/option.d.ts +1 -0
  149. package/dist/options/options-map.d.ts +140 -0
  150. package/dist/options/out-dir.d.ts +1 -0
  151. package/dist/options/out-dir.js +1 -0
  152. package/dist/options/override-duration.d.ts +1 -0
  153. package/dist/options/override-duration.js +1 -0
  154. package/dist/options/override-fps.d.ts +1 -0
  155. package/dist/options/override-fps.js +1 -0
  156. package/dist/options/override-height.d.ts +1 -0
  157. package/dist/options/override-height.js +1 -0
  158. package/dist/options/override-width.d.ts +1 -0
  159. package/dist/options/override-width.js +1 -0
  160. package/dist/options/overwrite.d.ts +1 -0
  161. package/dist/options/overwrite.js +1 -0
  162. package/dist/options/package-manager.d.ts +1 -0
  163. package/dist/options/package-manager.js +1 -0
  164. package/dist/options/pixel-format.d.ts +1 -0
  165. package/dist/options/pixel-format.js +1 -0
  166. package/dist/options/port.d.ts +1 -0
  167. package/dist/options/port.js +1 -0
  168. package/dist/options/prefer-lossless.d.ts +1 -0
  169. package/dist/options/prefer-lossless.js +1 -0
  170. package/dist/options/preview-sample-rate.d.ts +1 -0
  171. package/dist/options/preview-sample-rate.js +1 -0
  172. package/dist/options/props.d.ts +1 -0
  173. package/dist/options/props.js +1 -0
  174. package/dist/options/prores-profile.d.ts +1 -0
  175. package/dist/options/prores-profile.js +1 -0
  176. package/dist/options/public-dir.d.ts +1 -0
  177. package/dist/options/public-dir.js +1 -0
  178. package/dist/options/public-license-key.d.ts +1 -0
  179. package/dist/options/public-license-key.js +1 -0
  180. package/dist/options/public-path.d.ts +1 -0
  181. package/dist/options/public-path.js +1 -0
  182. package/dist/options/repro.d.ts +1 -0
  183. package/dist/options/repro.js +1 -0
  184. package/dist/options/rspack.d.ts +1 -0
  185. package/dist/options/rspack.js +1 -0
  186. package/dist/options/runs.d.ts +1 -0
  187. package/dist/options/runs.js +1 -0
  188. package/dist/options/sample-rate.d.ts +1 -0
  189. package/dist/options/sample-rate.js +1 -0
  190. package/dist/options/scale.d.ts +1 -0
  191. package/dist/options/scale.js +1 -0
  192. package/dist/options/separate-audio.d.ts +1 -0
  193. package/dist/options/separate-audio.js +2 -1
  194. package/dist/options/show-premounting.d.ts +19 -0
  195. package/dist/options/show-premounting.js +33 -0
  196. package/dist/options/skip-skills.d.ts +1 -0
  197. package/dist/options/skip-skills.js +1 -0
  198. package/dist/options/still-frame.d.ts +1 -0
  199. package/dist/options/still-frame.js +1 -0
  200. package/dist/options/still-image-format.d.ts +1 -0
  201. package/dist/options/still-image-format.js +1 -0
  202. package/dist/options/throw-if-site-exists.d.ts +1 -0
  203. package/dist/options/throw-if-site-exists.js +1 -0
  204. package/dist/options/timeout.d.ts +1 -0
  205. package/dist/options/timeout.js +1 -0
  206. package/dist/options/user-agent.d.ts +1 -0
  207. package/dist/options/user-agent.js +1 -0
  208. package/dist/options/version-flag.d.ts +1 -0
  209. package/dist/options/version-flag.js +1 -0
  210. package/dist/options/video-bitrate.d.ts +1 -0
  211. package/dist/options/video-bitrate.js +1 -0
  212. package/dist/options/video-cache-size.d.ts +1 -0
  213. package/dist/options/video-cache-size.js +1 -0
  214. package/dist/options/video-codec.d.ts +1 -0
  215. package/dist/options/video-codec.js +1 -0
  216. package/dist/options/video-image-format.d.ts +1 -0
  217. package/dist/options/video-image-format.js +1 -0
  218. package/dist/options/webhook-custom-data.d.ts +1 -0
  219. package/dist/options/webhook-custom-data.js +1 -0
  220. package/dist/options/webpack-poll.d.ts +1 -0
  221. package/dist/options/webpack-poll.js +1 -0
  222. package/dist/options/x264-preset.d.ts +1 -0
  223. package/dist/options/x264-preset.js +1 -0
  224. package/dist/prespawn-ffmpeg.js +10 -5
  225. package/package.json +13 -13
@@ -1,6 +1,7 @@
1
1
  import type { CodecOrUndefined } from '../codec';
2
2
  export declare const videoImageFormatOption: {
3
3
  name: string;
4
+ addedIn: string;
4
5
  cliFlag: "image-format";
5
6
  description: () => import("react/jsx-runtime").JSX.Element;
6
7
  ssrName: "imageFormat";
@@ -8,6 +8,7 @@ let currentVideoImageFormat = null;
8
8
  const cliFlag = 'image-format';
9
9
  exports.videoImageFormatOption = {
10
10
  name: 'Video Image Format',
11
+ addedIn: '1.4.0',
11
12
  cliFlag,
12
13
  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\"" }),
13
14
  ". JPEG is faster, but does not support transparency.",
@@ -1,5 +1,6 @@
1
1
  export declare const webhookCustomDataOption: {
2
2
  name: string;
3
+ addedIn: string;
3
4
  cliFlag: "webhook-custom-data";
4
5
  description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
5
6
  ssrName: "customData";
@@ -5,6 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const cliFlag = 'webhook-custom-data';
6
6
  exports.webhookCustomDataOption = {
7
7
  name: 'Webhook custom data',
8
+ addedIn: '4.0.25',
8
9
  cliFlag,
9
10
  description: (type) => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.", ' ', type === 'cli'
10
11
  ? 'Alternatively, pass a file path pointing to a JSON file'
@@ -1,5 +1,6 @@
1
1
  export declare const webpackPollOption: {
2
2
  name: string;
3
+ addedIn: string;
3
4
  cliFlag: "webpack-poll";
4
5
  description: () => import("react/jsx-runtime").JSX.Element;
5
6
  ssrName: null;
@@ -6,6 +6,7 @@ const cliFlag = 'webpack-poll';
6
6
  let webpackPolling = null;
7
7
  exports.webpackPollOption = {
8
8
  name: 'Webpack Polling',
9
+ addedIn: '3.3.11',
9
10
  cliFlag,
10
11
  description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Enables Webpack polling instead of the file system event listeners for hot reloading. This is useful if you are inside a virtual machine or have a remote file system. Pass a value in milliseconds." })),
11
12
  ssrName: null,
@@ -6,6 +6,7 @@ export declare const validateSelectedCodecAndPresetCombination: ({ codec, x264Pr
6
6
  }) => void;
7
7
  export declare const x264Option: {
8
8
  name: string;
9
+ addedIn: string;
9
10
  cliFlag: "x264-preset";
10
11
  description: () => import("react/jsx-runtime").JSX.Element;
11
12
  ssrName: "x264Preset";
@@ -34,6 +34,7 @@ const cliFlag = 'x264-preset';
34
34
  const DEFAULT_PRESET = 'medium';
35
35
  exports.x264Option = {
36
36
  name: 'x264 Preset',
37
+ addedIn: '4.0.22',
37
38
  cliFlag,
38
39
  description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Sets a x264 preset profile. Only applies to videos rendered with", ' ', jsx_runtime_1.jsx("code", { children: "h264" }),
39
40
  " codec.",
@@ -134,8 +134,8 @@ const prespawnFfmpeg = (options) => {
134
134
  ['-f', 'remotionshm'],
135
135
  ['-video_size', `${options.width}x${options.height}`],
136
136
  ['-framerate', fpsAsFraction(options.fps)],
137
- ['-control_fd', '3'],
138
- ['-ack_fd', '4'],
137
+ ['-control_fd', '0'],
138
+ ['-ack_fd', '1'],
139
139
  options.remotionSharedMemoryPoolDirectory === null
140
140
  ? null
141
141
  : ['-pool_dir', options.remotionSharedMemoryPoolDirectory],
@@ -179,13 +179,18 @@ const prespawnFfmpeg = (options) => {
179
179
  binariesDirectory: options.binariesDirectory,
180
180
  cancelSignal: options.signal,
181
181
  options: options.inputMode === 'remotion-shared-memory'
182
- ? { stdio: ['ignore', 'pipe', 'pipe', 'pipe', 'pipe'] }
182
+ ? {
183
+ // Older Bun versions can double-close extra stdio FDs. Use
184
+ // stdin/stdout for the protocol and consume ACKs without buffering.
185
+ stdio: 'pipe',
186
+ buffer: false,
187
+ }
183
188
  : undefined,
184
189
  });
185
190
  const remotionSharedMemory = options.inputMode === 'remotion-shared-memory'
186
191
  ? (0, remotion_shared_memory_ffmpeg_1.createRemotionSharedMemoryFfmpegBridge)({
187
- control: task.stdio[3],
188
- acknowledgements: task.stdio[4],
192
+ control: task.stdin,
193
+ acknowledgements: task.stdout,
189
194
  })
190
195
  : null;
191
196
  let ffmpegOutput = '';
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.534",
6
+ "version": "4.0.535",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "execa": "5.1.1",
25
- "remotion": "4.0.534",
26
- "@remotion/streaming": "4.0.534",
25
+ "remotion": "4.0.535",
26
+ "@remotion/streaming": "4.0.535",
27
27
  "source-map": "0.8.0",
28
28
  "ws": "8.21.0",
29
- "@remotion/licensing": "4.0.534"
29
+ "@remotion/licensing": "4.0.535"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=16.8.0",
@@ -40,19 +40,19 @@
40
40
  "react-dom": "19.2.3",
41
41
  "@typescript/native-preview": "7.0.0-dev.20260217.1",
42
42
  "@types/ws": "8.5.10",
43
- "@remotion/example-videos": "4.0.534",
44
- "@remotion/eslint-config-internal": "4.0.534",
43
+ "@remotion/example-videos": "4.0.535",
44
+ "@remotion/eslint-config-internal": "4.0.535",
45
45
  "eslint": "9.19.0",
46
46
  "@types/node": "20.12.14"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@remotion/compositor-darwin-arm64": "4.0.534",
50
- "@remotion/compositor-darwin-x64": "4.0.534",
51
- "@remotion/compositor-linux-arm64-gnu": "4.0.534",
52
- "@remotion/compositor-linux-arm64-musl": "4.0.534",
53
- "@remotion/compositor-linux-x64-gnu": "4.0.534",
54
- "@remotion/compositor-linux-x64-musl": "4.0.534",
55
- "@remotion/compositor-win32-x64-msvc": "4.0.534"
49
+ "@remotion/compositor-darwin-arm64": "4.0.535",
50
+ "@remotion/compositor-darwin-x64": "4.0.535",
51
+ "@remotion/compositor-linux-arm64-gnu": "4.0.535",
52
+ "@remotion/compositor-linux-arm64-musl": "4.0.535",
53
+ "@remotion/compositor-linux-x64-gnu": "4.0.535",
54
+ "@remotion/compositor-linux-x64-musl": "4.0.535",
55
+ "@remotion/compositor-win32-x64-msvc": "4.0.535"
56
56
  },
57
57
  "keywords": [
58
58
  "remotion",