@remotion/renderer 4.0.537 → 4.0.539

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 (297) hide show
  1. package/dist/aac-priming.d.ts +2 -1
  2. package/dist/assets/apply-tone-frequency.d.ts +2 -1
  3. package/dist/assets/apply-tone-frequency.js +8 -1
  4. package/dist/assets/calculate-asset-positions.js +2 -0
  5. package/dist/assets/convert-assets-to-file-urls.d.ts +2 -1
  6. package/dist/assets/download-and-map-assets-to-file.d.ts +3 -2
  7. package/dist/assets/get-audio-channels.d.ts +3 -2
  8. package/dist/assets/inline-audio-mixing.d.ts +2 -1
  9. package/dist/assets/read-file.js +1 -2
  10. package/dist/assets/types.d.ts +2 -1
  11. package/dist/browser/Browser.d.ts +5 -5
  12. package/dist/browser/Browser.js +74 -65
  13. package/dist/browser/BrowserFetcher.d.ts +7 -5
  14. package/dist/browser/BrowserPage.d.ts +4 -4
  15. package/dist/browser/BrowserPage.js +222 -226
  16. package/dist/browser/BrowserRunner.d.ts +2 -1
  17. package/dist/browser/Connection.js +109 -96
  18. package/dist/browser/ConsoleMessage.d.ts +1 -1
  19. package/dist/browser/ConsoleMessage.js +16 -9
  20. package/dist/browser/DOMWorld.d.ts +1 -1
  21. package/dist/browser/DOMWorld.js +91 -77
  22. package/dist/browser/Errors.js +4 -2
  23. package/dist/browser/EventEmitter.js +1 -2
  24. package/dist/browser/ExecutionContext.js +120 -117
  25. package/dist/browser/FrameManager.js +244 -249
  26. package/dist/browser/HTTPRequest.js +22 -11
  27. package/dist/browser/HTTPResponse.js +16 -3
  28. package/dist/browser/JSHandle.js +30 -17
  29. package/dist/browser/LifecycleWatcher.js +128 -122
  30. package/dist/browser/NetworkEventManager.js +40 -31
  31. package/dist/browser/NetworkManager.js +203 -210
  32. package/dist/browser/NodeWebSocketTransport.js +0 -3
  33. package/dist/browser/Target.d.ts +1 -1
  34. package/dist/browser/Target.js +39 -32
  35. package/dist/browser/TaskQueue.js +18 -5
  36. package/dist/browser/TimeoutSettings.js +25 -12
  37. package/dist/browser/browser-download-progress-bar.d.ts +2 -1
  38. package/dist/browser/get-chrome-download-url.d.ts +3 -2
  39. package/dist/browser/handle-failed-resource.d.ts +2 -1
  40. package/dist/call-ffmpeg.d.ts +7 -6
  41. package/dist/can-concat-seamlessly.d.ts +4 -2
  42. package/dist/can-use-parallel-encoding.d.ts +2 -1
  43. package/dist/check-version-requirements.d.ts +2 -1
  44. package/dist/client.d.ts +302 -280
  45. package/dist/client.js +2 -2
  46. package/dist/codec-supports-media.d.ts +4 -3
  47. package/dist/codec.d.ts +1 -1
  48. package/dist/collect-assets.d.ts +1 -1
  49. package/dist/combine-audio.d.ts +4 -2
  50. package/dist/combine-chunks.d.ts +2 -1
  51. package/dist/combine-video-streams.d.ts +4 -2
  52. package/dist/compositor/compositor.d.ts +4 -3
  53. package/dist/compositor/get-executable-path.d.ts +4 -4
  54. package/dist/compress-audio.d.ts +4 -2
  55. package/dist/create-audio.d.ts +4 -2
  56. package/dist/create-silent-audio.d.ts +2 -1
  57. package/dist/crf.d.ts +6 -4
  58. package/dist/cycle-browser-tabs.d.ts +2 -1
  59. package/dist/ensure-browser.d.ts +1 -52
  60. package/dist/error-handling/handle-javascript-exception.d.ts +1 -1
  61. package/dist/error-handling/handle-javascript-exception.js +0 -5
  62. package/dist/error-handling/symbolicateable-error.d.ts +1 -1
  63. package/dist/error-handling/symbolicateable-error.js +0 -4
  64. package/dist/error-handling.js +1 -1
  65. package/dist/esm/client.mjs +329 -242
  66. package/dist/esm/index.mjs +129 -110
  67. package/dist/extract-audio.d.ts +3 -2
  68. package/dist/ffmpeg-args.d.ts +12 -6
  69. package/dist/finalize-fast-start.d.ts +2 -1
  70. package/dist/get-browser-instance.d.ts +6 -4
  71. package/dist/get-codec-name.d.ts +6 -3
  72. package/dist/get-compositions.d.ts +2 -1
  73. package/dist/get-concurrency.d.ts +1 -1
  74. package/dist/get-concurrency.js +1 -1
  75. package/dist/get-duration-from-frame-range.d.ts +1 -1
  76. package/dist/get-extension-from-codec.d.ts +2 -1
  77. package/dist/get-frame-padded-index.d.ts +2 -1
  78. package/dist/get-local-browser-executable.d.ts +4 -2
  79. package/dist/get-port.d.ts +1 -1
  80. package/dist/get-prores-profile-name.d.ts +3 -1
  81. package/dist/get-silent-parts.d.ts +5 -4
  82. package/dist/get-video-metadata.d.ts +4 -3
  83. package/dist/get-video-threads-flag.d.ts +2 -1
  84. package/dist/goto-page-or-throw.d.ts +1 -1
  85. package/dist/guess-extension-for-media.d.ts +2 -1
  86. package/dist/image-format.d.ts +6 -5
  87. package/dist/index.d.ts +213 -440
  88. package/dist/index.js +18 -18
  89. package/dist/is-audio-codec.d.ts +2 -1
  90. package/dist/log-level.d.ts +2 -2
  91. package/dist/logger.d.ts +6 -6
  92. package/dist/make-page.d.ts +5 -3
  93. package/dist/memory/from-macos-sysctl.d.ts +2 -1
  94. package/dist/memory/from-proc-meminfo.d.ts +2 -1
  95. package/dist/memory/get-available-memory.d.ts +2 -1
  96. package/dist/merge-audio-track.d.ts +1 -1
  97. package/dist/merge-audio-track.js +24 -23
  98. package/dist/merge-inline-audio-tracks.d.ts +2 -1
  99. package/dist/mux-video-and-audio.d.ts +5 -3
  100. package/dist/offthread-video-server.d.ts +2 -1
  101. package/dist/offthread-video-server.js +6 -4
  102. package/dist/open-browser.d.ts +2 -2
  103. package/dist/options/allow-html-in-canvas.js +1 -2
  104. package/dist/options/api-key.d.ts +1 -1
  105. package/dist/options/api-key.js +1 -3
  106. package/dist/options/ask-ai.js +1 -1
  107. package/dist/options/audio-bitrate.js +1 -9
  108. package/dist/options/audio-codec.d.ts +23 -20
  109. package/dist/options/beep-on-finish.js +1 -1
  110. package/dist/options/benchmark-concurrencies.js +1 -2
  111. package/dist/options/binaries-directory.d.ts +1 -1
  112. package/dist/options/binaries-directory.js +1 -9
  113. package/dist/options/browser-executable.d.ts +1 -1
  114. package/dist/options/browser-executable.js +1 -1
  115. package/dist/options/browser.js +1 -2
  116. package/dist/options/bundle-cache.js +1 -2
  117. package/dist/options/canvas-tabs.js +1 -1
  118. package/dist/options/chrome-mode.d.ts +4 -4
  119. package/dist/options/chrome-mode.js +1 -6
  120. package/dist/options/color-space.d.ts +9 -5
  121. package/dist/options/color-space.js +1 -8
  122. package/dist/options/concurrency.d.ts +1 -1
  123. package/dist/options/concurrency.js +1 -5
  124. package/dist/options/config.js +1 -1
  125. package/dist/options/crf.js +1 -1
  126. package/dist/options/cross-site-isolation.js +1 -2
  127. package/dist/options/dark-mode.js +1 -2
  128. package/dist/options/default-coding-agent.d.ts +2 -2
  129. package/dist/options/default-coding-agent.js +1 -2
  130. package/dist/options/default-editor.d.ts +4 -4
  131. package/dist/options/default-editor.js +1 -3
  132. package/dist/options/default-premount-in-seconds.js +1 -1
  133. package/dist/options/delete-after.d.ts +1 -1
  134. package/dist/options/delete-after.js +1 -11
  135. package/dist/options/disable-shared-memory-capture.js +1 -3
  136. package/dist/options/disable-web-security.d.ts +1 -1
  137. package/dist/options/disable-web-security.js +1 -1
  138. package/dist/options/disallow-parallel-encoding.js +1 -1
  139. package/dist/options/enable-cancellation.js +1 -2
  140. package/dist/options/enable-lambda-insights.js +1 -2
  141. package/dist/options/enable-multiprocess-on-linux.js +1 -13
  142. package/dist/options/encoding-buffer-size.d.ts +4 -2
  143. package/dist/options/encoding-buffer-size.js +1 -3
  144. package/dist/options/encoding-max-rate.d.ts +1 -1
  145. package/dist/options/encoding-max-rate.js +1 -3
  146. package/dist/options/enforce-audio.js +1 -15
  147. package/dist/options/env-file.js +1 -3
  148. package/dist/options/every-nth-frame.d.ts +1 -1
  149. package/dist/options/every-nth-frame.js +1 -6
  150. package/dist/options/experimental-client-side-rendering.d.ts +16 -0
  151. package/dist/options/experimental-client-side-rendering.js +30 -0
  152. package/dist/options/experimental-keep-audio-context-alive.js +1 -3
  153. package/dist/options/folder-expiry.d.ts +1 -1
  154. package/dist/options/folder-expiry.js +1 -4
  155. package/dist/options/for-seamless-aac-concatenation.js +1 -3
  156. package/dist/options/force-new-studio.js +1 -1
  157. package/dist/options/frames.d.ts +1 -1
  158. package/dist/options/frames.js +1 -4
  159. package/dist/options/gl.d.ts +6 -6
  160. package/dist/options/gl.js +3 -28
  161. package/dist/options/gop-size.js +1 -3
  162. package/dist/options/hardware-acceleration.d.ts +3 -3
  163. package/dist/options/headless.js +1 -1
  164. package/dist/options/ignore-certificate-errors.d.ts +1 -1
  165. package/dist/options/ignore-certificate-errors.js +1 -1
  166. package/dist/options/image-sequence-pattern.js +1 -5
  167. package/dist/options/image-sequence.js +1 -1
  168. package/dist/options/index.d.ts +91 -72
  169. package/dist/options/index.js +2 -0
  170. package/dist/options/interactivity.js +1 -1
  171. package/dist/options/ipv4.js +1 -1
  172. package/dist/options/is-production.d.ts +1 -1
  173. package/dist/options/is-production.js +1 -4
  174. package/dist/options/jpeg-quality.d.ts +1 -1
  175. package/dist/options/jpeg-quality.js +1 -4
  176. package/dist/options/keyboard-shortcuts.js +1 -1
  177. package/dist/options/latency-hint.d.ts +1 -1
  178. package/dist/options/latency-hint.js +1 -10
  179. package/dist/options/license-key.d.ts +1 -1
  180. package/dist/options/license-key.js +1 -2
  181. package/dist/options/log-level.d.ts +4 -3
  182. package/dist/options/log-level.js +1 -16
  183. package/dist/options/metadata.js +2 -7
  184. package/dist/options/mute.js +1 -1
  185. package/dist/options/no-open.js +1 -1
  186. package/dist/options/number-of-gif-loops.d.ts +1 -1
  187. package/dist/options/number-of-gif-loops.js +1 -13
  188. package/dist/options/number-of-shared-audio-tags.js +1 -1
  189. package/dist/options/offthreadvideo-cache-size.d.ts +1 -1
  190. package/dist/options/offthreadvideo-cache-size.js +1 -11
  191. package/dist/options/offthreadvideo-threads.d.ts +1 -1
  192. package/dist/options/offthreadvideo-threads.js +1 -2
  193. package/dist/options/on-browser-download.d.ts +1 -1
  194. package/dist/options/on-browser-download.js +1 -2
  195. package/dist/options/options-map.d.ts +180 -180
  196. package/dist/options/out-dir.d.ts +1 -1
  197. package/dist/options/out-dir.js +1 -4
  198. package/dist/options/override-duration.js +1 -1
  199. package/dist/options/override-fps.js +1 -1
  200. package/dist/options/override-height.js +1 -1
  201. package/dist/options/override-width.js +1 -1
  202. package/dist/options/overwrite.js +1 -5
  203. package/dist/options/package-manager.d.ts +1 -1
  204. package/dist/options/package-manager.js +1 -12
  205. package/dist/options/pixel-format.d.ts +6 -5
  206. package/dist/options/pixel-format.js +1 -2
  207. package/dist/options/port.js +1 -1
  208. package/dist/options/prefer-lossless.d.ts +1 -1
  209. package/dist/options/prefer-lossless.js +1 -4
  210. package/dist/options/preserve-pitch-on-playback.d.ts +19 -0
  211. package/dist/options/preserve-pitch-on-playback.js +36 -0
  212. package/dist/options/preview-sample-rate.js +1 -3
  213. package/dist/options/props.js +1 -5
  214. package/dist/options/prores-profile.d.ts +2 -2
  215. package/dist/options/prores-profile.js +1 -5
  216. package/dist/options/public-dir.d.ts +1 -1
  217. package/dist/options/public-dir.js +1 -2
  218. package/dist/options/public-license-key.d.ts +1 -1
  219. package/dist/options/public-license-key.js +1 -3
  220. package/dist/options/public-path.d.ts +1 -1
  221. package/dist/options/public-path.js +1 -5
  222. package/dist/options/repro.d.ts +3 -1
  223. package/dist/options/repro.js +1 -1
  224. package/dist/options/rspack.js +1 -1
  225. package/dist/options/runs.js +1 -3
  226. package/dist/options/sample-rate.d.ts +2 -2
  227. package/dist/options/sample-rate.js +1 -2
  228. package/dist/options/scale.js +1 -5
  229. package/dist/options/sequence-activity-limit.js +1 -4
  230. package/dist/options/show-layer-frame-numbers.js +1 -3
  231. package/dist/options/show-premounting.js +1 -2
  232. package/dist/options/skip-skills.js +1 -1
  233. package/dist/options/still-frame.d.ts +1 -1
  234. package/dist/options/still-frame.js +1 -3
  235. package/dist/options/still-image-format.d.ts +3 -2
  236. package/dist/options/still-image-format.js +1 -2
  237. package/dist/options/timeout.d.ts +1 -1
  238. package/dist/options/timeout.js +1 -4
  239. package/dist/options/user-agent.d.ts +1 -1
  240. package/dist/options/user-agent.js +1 -1
  241. package/dist/options/version-flag.js +1 -1
  242. package/dist/options/video-bitrate.js +1 -7
  243. package/dist/options/video-cache-size.d.ts +1 -1
  244. package/dist/options/video-cache-size.js +1 -7
  245. package/dist/options/video-codec.d.ts +9 -7
  246. package/dist/options/video-codec.js +1 -1
  247. package/dist/options/video-image-format.d.ts +6 -5
  248. package/dist/options/video-image-format.js +1 -6
  249. package/dist/options/webhook-custom-data.d.ts +1 -1
  250. package/dist/options/webhook-custom-data.js +1 -1
  251. package/dist/options/webpack-poll.js +1 -1
  252. package/dist/options/x264-preset.d.ts +8 -7
  253. package/dist/options/x264-preset.js +1 -23
  254. package/dist/p-limit.d.ts +1 -1
  255. package/dist/pixel-format.d.ts +4 -3
  256. package/dist/pool.js +0 -2
  257. package/dist/port-config.d.ts +6 -5
  258. package/dist/prespawn-ffmpeg.d.ts +1 -1
  259. package/dist/prestitcher-memory-usage.d.ts +13 -0
  260. package/dist/prestitcher-memory-usage.js +33 -0
  261. package/dist/print-useful-error-message.d.ts +2 -1
  262. package/dist/probe-encoder.d.ts +8 -5
  263. package/dist/probe-shared-memory-capture.d.ts +4 -2
  264. package/dist/prores-profile.d.ts +4 -2
  265. package/dist/puppeteer-evaluate.d.ts +2 -2
  266. package/dist/puppeteer-screenshot.d.ts +4 -3
  267. package/dist/pure.d.ts +12 -15
  268. package/dist/remotion-shared-memory.d.ts +1 -1
  269. package/dist/remotion-shared-memory.js +199 -187
  270. package/dist/render-frame-and-retry-target-close.d.ts +10 -10
  271. package/dist/render-frame-with-option-to-reject.d.ts +7 -5
  272. package/dist/render-frame-with-option-to-reject.js +1 -5
  273. package/dist/render-frame.d.ts +8 -6
  274. package/dist/render-frames.d.ts +1 -40
  275. package/dist/render-has-audio.d.ts +3 -2
  276. package/dist/render-partitions.d.ts +7 -0
  277. package/dist/render-partitions.js +50 -0
  278. package/dist/replace-browser.d.ts +2 -1
  279. package/dist/repro.d.ts +1 -1
  280. package/dist/screenshot-task.d.ts +4 -3
  281. package/dist/seek-to-frame.d.ts +3 -2
  282. package/dist/select-composition.d.ts +1 -20
  283. package/dist/serve-handler/index.d.ts +1 -1
  284. package/dist/serve-handler/range-parser.d.ts +2 -2
  285. package/dist/serve-handler/range-parser.js +1 -1
  286. package/dist/serve-static.d.ts +2 -1
  287. package/dist/serve-static.js +4 -1
  288. package/dist/set-props-and-env.js +2 -6
  289. package/dist/stringify-ffmpeg-filter.d.ts +2 -1
  290. package/dist/stringify-ffmpeg-filter.js +20 -2
  291. package/dist/take-frame.d.ts +1 -1
  292. package/dist/test-gpu.d.ts +4 -2
  293. package/dist/validate-even-dimensions-with-codec.d.ts +4 -2
  294. package/dist/validate-ffmpeg-override.d.ts +1 -1
  295. package/dist/validate-number-of-gif-loops.d.ts +2 -1
  296. package/dist/validate-output-filename.d.ts +4 -2
  297. package/package.json +16 -16
package/dist/index.js CHANGED
@@ -91,44 +91,44 @@ const tmp_dir_1 = require("./tmp-dir");
91
91
  const validate_concurrency_1 = require("./validate-concurrency");
92
92
  const validate_even_dimensions_with_codec_1 = require("./validate-even-dimensions-with-codec");
93
93
  const validate_selected_frames_1 = require("./validate-selected-frames");
94
- const combine_chunks_1 = require("./combine-chunks");
94
+ var combine_chunks_1 = require("./combine-chunks");
95
95
  Object.defineProperty(exports, "combineChunks", { enumerable: true, get: function () { return combine_chunks_1.combineChunks; } });
96
- const ensure_browser_1 = require("./ensure-browser");
96
+ var ensure_browser_1 = require("./ensure-browser");
97
97
  Object.defineProperty(exports, "ensureBrowser", { enumerable: true, get: function () { return ensure_browser_1.ensureBrowser; } });
98
- const handle_javascript_exception_1 = require("./error-handling/handle-javascript-exception");
98
+ var handle_javascript_exception_1 = require("./error-handling/handle-javascript-exception");
99
99
  Object.defineProperty(exports, "ErrorWithStackFrame", { enumerable: true, get: function () { return handle_javascript_exception_1.ErrorWithStackFrame; } });
100
- const extract_audio_1 = require("./extract-audio");
100
+ var extract_audio_1 = require("./extract-audio");
101
101
  Object.defineProperty(exports, "extractAudio", { enumerable: true, get: function () { return extract_audio_1.extractAudio; } });
102
- const get_compositions_2 = require("./get-compositions");
102
+ var get_compositions_2 = require("./get-compositions");
103
103
  Object.defineProperty(exports, "getCompositions", { enumerable: true, get: function () { return get_compositions_2.getCompositions; } });
104
- const get_silent_parts_1 = require("./get-silent-parts");
104
+ var get_silent_parts_1 = require("./get-silent-parts");
105
105
  Object.defineProperty(exports, "getSilentParts", { enumerable: true, get: function () { return get_silent_parts_1.getSilentParts; } });
106
- const get_video_metadata_1 = require("./get-video-metadata");
106
+ var get_video_metadata_1 = require("./get-video-metadata");
107
107
  Object.defineProperty(exports, "getVideoMetadata", { enumerable: true, get: function () { return get_video_metadata_1.getVideoMetadata; } });
108
- const image_format_2 = require("./image-format");
108
+ var image_format_2 = require("./image-format");
109
109
  Object.defineProperty(exports, "validateSelectedPixelFormatAndImageFormatCombination", { enumerable: true, get: function () { return image_format_2.validateSelectedPixelFormatAndImageFormatCombination; } });
110
- const make_cancel_signal_1 = require("./make-cancel-signal");
110
+ var make_cancel_signal_1 = require("./make-cancel-signal");
111
111
  Object.defineProperty(exports, "makeCancelSignal", { enumerable: true, get: function () { return make_cancel_signal_1.makeCancelSignal; } });
112
- const open_browser_2 = require("./open-browser");
112
+ var open_browser_2 = require("./open-browser");
113
113
  Object.defineProperty(exports, "openBrowser", { enumerable: true, get: function () { return open_browser_2.openBrowser; } });
114
- const default_coding_agent_1 = require("./options/default-coding-agent");
114
+ var default_coding_agent_1 = require("./options/default-coding-agent");
115
115
  Object.defineProperty(exports, "defaultCodingAgentIds", { enumerable: true, get: function () { return default_coding_agent_1.defaultCodingAgentIds; } });
116
- const default_editor_1 = require("./options/default-editor");
116
+ var default_editor_1 = require("./options/default-editor");
117
117
  Object.defineProperty(exports, "customEditorColumnNumberPlaceholder", { enumerable: true, get: function () { return default_editor_1.customEditorColumnNumberPlaceholder; } });
118
118
  Object.defineProperty(exports, "customEditorLineNumberPlaceholder", { enumerable: true, get: function () { return default_editor_1.customEditorLineNumberPlaceholder; } });
119
119
  Object.defineProperty(exports, "customEditorTargetPathPlaceholder", { enumerable: true, get: function () { return default_editor_1.customEditorTargetPathPlaceholder; } });
120
120
  Object.defineProperty(exports, "defaultEditorIds", { enumerable: true, get: function () { return default_editor_1.defaultEditorIds; } });
121
- const render_frames_2 = require("./render-frames");
121
+ var render_frames_2 = require("./render-frames");
122
122
  Object.defineProperty(exports, "renderFrames", { enumerable: true, get: function () { return render_frames_2.renderFrames; } });
123
- const render_media_2 = require("./render-media");
123
+ var render_media_2 = require("./render-media");
124
124
  Object.defineProperty(exports, "renderMedia", { enumerable: true, get: function () { return render_media_2.renderMedia; } });
125
- const render_still_2 = require("./render-still");
125
+ var render_still_2 = require("./render-still");
126
126
  Object.defineProperty(exports, "renderStill", { enumerable: true, get: function () { return render_still_2.renderStill; } });
127
- const select_composition_2 = require("./select-composition");
127
+ var select_composition_2 = require("./select-composition");
128
128
  Object.defineProperty(exports, "selectComposition", { enumerable: true, get: function () { return select_composition_2.selectComposition; } });
129
- const stitch_frames_to_video_1 = require("./stitch-frames-to-video");
129
+ var stitch_frames_to_video_1 = require("./stitch-frames-to-video");
130
130
  Object.defineProperty(exports, "stitchFramesToVideo", { enumerable: true, get: function () { return stitch_frames_to_video_1.stitchFramesToVideo; } });
131
- const validate_output_filename_1 = require("./validate-output-filename");
131
+ var validate_output_filename_1 = require("./validate-output-filename");
132
132
  Object.defineProperty(exports, "validateOutputFilename", { enumerable: true, get: function () { return validate_output_filename_1.validateOutputFilename; } });
133
133
  const download_map_1 = require("./assets/download-map");
134
134
  const can_concat_seamlessly_1 = require("./can-concat-seamlessly");
@@ -1 +1,2 @@
1
- export declare const isAudioCodec: (codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null | undefined) => codec is "aac" | "mp3" | "wav";
1
+ import type { Codec } from './codec';
2
+ export declare const isAudioCodec: (codec: Codec | undefined | null) => codec is "aac" | "mp3" | "wav";
@@ -1,4 +1,4 @@
1
- export declare const logLevels: readonly ["trace", "verbose", "info", "warn", "error"];
1
+ export declare const logLevels: readonly ['trace', 'verbose', 'info', 'warn', 'error'];
2
2
  export type LogLevel = (typeof logLevels)[number];
3
3
  export declare const isValidLogLevel: (level: string) => boolean;
4
- export declare const isEqualOrBelowLogLevel: (currentLevel: "error" | "info" | "trace" | "verbose" | "warn", level: "error" | "info" | "trace" | "verbose" | "warn") => boolean;
4
+ export declare const isEqualOrBelowLogLevel: (currentLevel: LogLevel, level: LogLevel) => boolean;
package/dist/logger.d.ts CHANGED
@@ -10,11 +10,11 @@ type VerboseLogOptions = LogOptions & {
10
10
  export declare const verboseTag: (str: string) => string;
11
11
  export declare const secondverboseTag: (str: string) => string;
12
12
  export declare const Log: {
13
- formatLogs: (logLevel: "error" | "info" | "trace" | "verbose" | "warn", options: VerboseLogOptions, args: [message?: any, ...optionalParams: any[]]) => string[];
14
- trace: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
15
- verbose: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
16
- info: (options: LogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
17
- warn: (options: LogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
18
- error: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
13
+ formatLogs: (logLevel: LogLevel, options: VerboseLogOptions, args: Parameters<typeof console.log>) => string[];
14
+ trace: (options: VerboseLogOptions, ...args: Parameters<typeof console.log>) => void | boolean;
15
+ verbose: (options: VerboseLogOptions, ...args: Parameters<typeof console.log>) => void | boolean;
16
+ info: (options: LogOptions, ...args: Parameters<typeof console.log>) => void | boolean;
17
+ warn: (options: LogOptions, ...args: Parameters<typeof console.log>) => void | boolean;
18
+ error: (options: VerboseLogOptions, ...args: Parameters<typeof console.log>) => void | boolean;
19
19
  };
20
20
  export {};
@@ -2,25 +2,27 @@ import type { VideoConfig } from 'remotion/no-react';
2
2
  import type { BrowserLog } from './browser-log';
3
3
  import type { OnLog, Page } from './browser/BrowserPage';
4
4
  import type { SourceMapGetter } from './browser/source-map-getter';
5
+ import type { VideoImageFormat } from './image-format';
6
+ import type { LogLevel } from './log-level';
5
7
  import type { BrowserReplacer } from './replace-browser';
6
8
  export declare const makePage: ({ context, initialFrame, browserReplacer, logLevel, indent, pagesArray, onBrowserLog, scale, timeoutInMilliseconds, composition, proxyPort, serveUrl, muted, envVariables, serializedInputPropsWithCustomSchema, imageFormat, serializedResolvedPropsWithCustomSchema, pageIndex, isMainTab, mediaCacheSizeInBytes, onLog, darkMode, sampleRate, }: {
7
9
  context: SourceMapGetter;
8
10
  initialFrame: number;
9
11
  browserReplacer: BrowserReplacer;
10
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
12
+ logLevel: LogLevel;
11
13
  indent: boolean;
12
14
  pagesArray: Page[];
13
15
  onBrowserLog: ((log: BrowserLog) => void) | null;
14
16
  scale: number;
15
17
  timeoutInMilliseconds: number;
16
- composition: Omit<VideoConfig, "defaultProps" | "props">;
18
+ composition: Omit<VideoConfig, 'defaultProps' | 'props'>;
17
19
  proxyPort: number;
18
20
  serveUrl: string;
19
21
  muted: boolean;
20
22
  envVariables: Record<string, string>;
21
23
  serializedInputPropsWithCustomSchema: string;
22
24
  serializedResolvedPropsWithCustomSchema: string;
23
- imageFormat: "jpeg" | "none" | "png";
25
+ imageFormat: VideoImageFormat;
24
26
  pageIndex: number;
25
27
  isMainTab: boolean;
26
28
  mediaCacheSizeInBytes: number | null;
@@ -1 +1,2 @@
1
- export declare const getAvailableMemoryFromMacos: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => number | null;
1
+ import type { LogLevel } from '../log-level';
2
+ export declare const getAvailableMemoryFromMacos: (logLevel: LogLevel) => number | null;
@@ -1 +1,2 @@
1
- export declare const getAvailableMemoryFromProcMeminfo: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => number | null;
1
+ import type { LogLevel } from '../log-level';
2
+ export declare const getAvailableMemoryFromProcMeminfo: (logLevel: LogLevel) => number | null;
@@ -1 +1,2 @@
1
- export declare const getAvailableMemory: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => number;
1
+ import type { LogLevel } from '../log-level';
2
+ export declare const getAvailableMemory: (logLevel: LogLevel) => number;
@@ -16,5 +16,5 @@ type Options = {
16
16
  chunkLengthInSeconds: number;
17
17
  sampleRate: number;
18
18
  };
19
- export declare const mergeAudioTrack: (options: Options) => Promise<void>;
19
+ export declare const mergeAudioTrack: ({ outName, files, downloadMap, remotionRoot, indent, logLevel, binariesDirectory, cancelSignal, onProgress, fps, chunkLengthInSeconds, sampleRate, }: Options) => Promise<void>;
20
20
  export {};
@@ -16,10 +16,13 @@ const p_limit_1 = require("./p-limit");
16
16
  const parse_ffmpeg_progress_1 = require("./parse-ffmpeg-progress");
17
17
  const tmp_dir_1 = require("./tmp-dir");
18
18
  const truthy_1 = require("./truthy");
19
- const mergeAudioTrackUnlimited = async ({ outName, files, downloadMap, remotionRoot, indent, logLevel, binariesDirectory, cancelSignal, onProgress, fps, chunkLengthInSeconds, sampleRate, }) => {
20
- var _a;
19
+ // Limits how many FFmpeg processes mix audio at once. Only the FFmpeg calls
20
+ // take a slot: a merge that waits for its chunks to be merged first holds none,
21
+ // so concurrent renders with many audio tracks can't block each other.
22
+ const limit = (0, p_limit_1.pLimit)(3);
23
+ const mergeAudioTrack = async ({ outName, files, downloadMap, remotionRoot, indent, logLevel, binariesDirectory, cancelSignal, onProgress, fps, chunkLengthInSeconds, sampleRate, }) => {
21
24
  if (files.length === 0) {
22
- await (0, create_silent_audio_1.createSilentAudio)({
25
+ await limit(create_silent_audio_1.createSilentAudio, {
23
26
  outName,
24
27
  chunkLengthInSeconds,
25
28
  indent,
@@ -109,28 +112,26 @@ const mergeAudioTrackUnlimited = async ({ outName, files, downloadMap, remotionR
109
112
  .filter(truthy_1.truthy)
110
113
  .flat(2);
111
114
  logger_1.Log.verbose({ indent, logLevel }, `Merging audio tracks`, 'Command:', `ffmpeg ${args.join(' ')}`, 'Complex filter script:', complexFilter);
112
- const task = (0, call_ffmpeg_1.callFf)({
113
- bin: 'ffmpeg',
114
- args,
115
- indent,
116
- logLevel,
117
- binariesDirectory,
118
- cancelSignal,
119
- });
120
- (_a = task.stderr) === null || _a === void 0 ? void 0 : _a.on('data', (data) => {
121
- const utf8 = data.toString('utf8');
122
- const parsed = (0, parse_ffmpeg_progress_1.parseFfmpegProgress)(utf8, fps);
123
- if (parsed !== undefined) {
124
- onProgress(parsed / (chunkLengthInSeconds * fps));
125
- }
115
+ await limit(async () => {
116
+ var _a;
117
+ const task = (0, call_ffmpeg_1.callFf)({
118
+ bin: 'ffmpeg',
119
+ args,
120
+ indent,
121
+ logLevel,
122
+ binariesDirectory,
123
+ cancelSignal,
124
+ });
125
+ (_a = task.stderr) === null || _a === void 0 ? void 0 : _a.on('data', (data) => {
126
+ const utf8 = data.toString('utf8');
127
+ const parsed = (0, parse_ffmpeg_progress_1.parseFfmpegProgress)(utf8, fps);
128
+ if (parsed !== undefined) {
129
+ onProgress(parsed / (chunkLengthInSeconds * fps));
130
+ }
131
+ });
132
+ await task;
126
133
  });
127
- await task;
128
134
  onProgress(1);
129
135
  cleanup();
130
136
  };
131
- // Must be at least 3 because recursively called twice in mergeAudioTrack
132
- const limit = (0, p_limit_1.pLimit)(3);
133
- const mergeAudioTrack = (options) => {
134
- return limit(mergeAudioTrackUnlimited, options);
135
- };
136
137
  exports.mergeAudioTrack = mergeAudioTrack;
@@ -1,5 +1,6 @@
1
1
  import type { DownloadMap } from './assets/download-map';
2
2
  import type { InlineAudioTrack } from './assets/inline-audio-mixing';
3
+ import type { LogLevel } from './log-level';
3
4
  import type { CancelSignal } from './make-cancel-signal';
4
5
  import type { PreprocessedAudioTrack } from './preprocess-audio-track';
5
6
  export declare const inlineAudioTrackToPreprocessedAudioTrack: ({ track, relativeToInSamples, padToDurationInSamples, }: {
@@ -12,7 +13,7 @@ export declare const mergeInlineAudioTracks: ({ tracks, downloadMap, remotionRoo
12
13
  downloadMap: DownloadMap;
13
14
  remotionRoot: string;
14
15
  indent: boolean;
15
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
16
+ logLevel: LogLevel;
16
17
  binariesDirectory: string | null;
17
18
  cancelSignal: CancelSignal | undefined;
18
19
  fps: number;
@@ -1,16 +1,18 @@
1
+ import type { LogLevel } from './log-level';
1
2
  import type { CancelSignal } from './make-cancel-signal';
3
+ import type { AudioCodec } from './options/audio-codec';
2
4
  export declare const muxVideoAndAudio: ({ videoOutput, audioOutput, output, indent, logLevel, onProgress, binariesDirectory, fps, cancelSignal, metadata, numberOfGifLoops, audioCodec, sampleRate, }: {
3
5
  videoOutput: string | null;
4
6
  audioOutput: string | null;
5
7
  output: string;
6
8
  indent: boolean;
7
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
9
+ logLevel: LogLevel;
8
10
  binariesDirectory: string | null;
9
11
  fps: number;
10
12
  onProgress: (p: number) => void;
11
13
  cancelSignal: CancelSignal | undefined;
12
- metadata?: Record<string, string> | null | undefined;
14
+ metadata?: Record<string, string> | null;
13
15
  numberOfGifLoops: number | null;
14
- audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
16
+ audioCodec: AudioCodec | null;
15
17
  sampleRate: number;
16
18
  }) => Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import type { RequestListener } from 'node:http';
2
2
  import type { DownloadMap } from './assets/download-map';
3
3
  import type { Compositor } from './compositor/compositor';
4
+ import type { LogLevel } from './log-level';
4
5
  export declare const extractUrlAndSourceFromUrl: (url: string) => {
5
6
  src: string;
6
7
  time: number;
@@ -11,7 +12,7 @@ export declare const startOffthreadVideoServer: ({ downloadMap, logLevel, indent
11
12
  downloadMap: DownloadMap;
12
13
  offthreadVideoCacheSizeInBytes: number | null;
13
14
  offthreadVideoThreads: number;
14
- logLevel: "error" | "info" | "trace" | "verbose" | "warn";
15
+ logLevel: LogLevel;
15
16
  indent: boolean;
16
17
  binariesDirectory: string | null;
17
18
  }) => {
@@ -168,10 +168,12 @@ const startOffthreadVideoServer = ({ downloadMap, logLevel, indent, offthreadVid
168
168
  };
169
169
  exports.startOffthreadVideoServer = startOffthreadVideoServer;
170
170
  class OffthreadVideoServerEmitter {
171
- listeners = {
172
- progress: [],
173
- download: [],
174
- };
171
+ constructor() {
172
+ this.listeners = {
173
+ progress: [],
174
+ download: [],
175
+ };
176
+ }
175
177
  addEventListener(name, callback) {
176
178
  this.listeners[name].push(callback);
177
179
  return () => {
@@ -21,7 +21,7 @@ export type ChromiumOptions = {
21
21
  */
22
22
  headless?: boolean;
23
23
  };
24
- export declare const getOpenGlRenderer: (option: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null | undefined, enableV5BreakingChanges?: boolean) => string[];
24
+ export declare const getOpenGlRenderer: (option: OpenGlRenderer | null | undefined, enableV5BreakingChanges?: boolean) => string[];
25
25
  type InternalOpenBrowserOptions = {
26
26
  browserExecutable: string | null;
27
27
  chromiumOptions: ChromiumOptions;
@@ -46,5 +46,5 @@ export type OpenBrowserOptions = {
46
46
  forceDeviceScaleFactor?: number;
47
47
  } & LogOptions;
48
48
  export declare const internalOpenBrowser: ({ browser, browserExecutable, chromiumOptions, forceDeviceScaleFactor, indent, viewport, logLevel, onBrowserDownload, chromeMode, }: InternalOpenBrowserOptions) => Promise<HeadlessBrowser>;
49
- export declare const openBrowser: (browser: "chrome", options?: OpenBrowserOptions | undefined) => Promise<HeadlessBrowser>;
49
+ export declare const openBrowser: (browser: Browser, options?: OpenBrowserOptions) => Promise<HeadlessBrowser>;
50
50
  export {};
@@ -8,8 +8,7 @@ exports.allowHtmlInCanvasOption = {
8
8
  name: 'Allow HTML-in-canvas for client-side rendering',
9
9
  addedIn: '4.0.447',
10
10
  cliFlag,
11
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["When client-side rendering is enabled in the Studio, allow the experimental Chromium HTML-in-canvas API to be used for capturing frames. See", ' ', jsx_runtime_1.jsx("a", { href: "/docs/client-side-rendering/html-in-canvas", children: "HTML-in-canvas docs" }),
12
- "."] })),
11
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["When client-side rendering is enabled in the Studio, allow the experimental Chromium HTML-in-canvas API to be used for capturing frames. See", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/client-side-rendering/html-in-canvas", children: "HTML-in-canvas docs" }), "."] })),
13
12
  ssrName: null,
14
13
  docLink: 'https://www.remotion.dev/docs/options/allow-html-in-canvas',
15
14
  type: false,
@@ -3,7 +3,7 @@ export declare const apiKeyOption: {
3
3
  addedIn: string;
4
4
  cliFlag: "api-key";
5
5
  description: () => import("react/jsx-runtime").JSX.Element;
6
- ssrName: "apiKey";
6
+ ssrName: 'apiKey';
7
7
  docLink: string;
8
8
  type: string | null;
9
9
  getValue: ({ commandLine }: {
@@ -8,9 +8,7 @@ exports.apiKeyOption = {
8
8
  name: 'API key',
9
9
  addedIn: '4.0.253',
10
10
  cliFlag,
11
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["API key for sending a usage event using ",
12
- jsx_runtime_1.jsx("code", { children: "@remotion/licensing" }),
13
- "."] })),
11
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["API key for sending a usage event using ", (0, jsx_runtime_1.jsx)("code", { children: "@remotion/licensing" }), "."] })),
14
12
  ssrName: 'apiKey',
15
13
  docLink: 'https://www.remotion.dev/docs/options/api-key',
16
14
  type: null,
@@ -9,7 +9,7 @@ exports.askAIOption = {
9
9
  name: 'Disable or Enable the Ask AI option',
10
10
  addedIn: '4.0.407',
11
11
  cliFlag,
12
- description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "If the Cmd + I shortcut of the Ask AI modal conflicts with your Studio, you can disable it using this." })),
12
+ description: () => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "If the Cmd + I shortcut of the Ask AI modal conflicts with your Studio, you can disable it using this." })),
13
13
  ssrName: null,
14
14
  docLink: 'https://www.remotion.dev/docs/options/disable-ask-ai',
15
15
  type: false,
@@ -8,15 +8,7 @@ exports.audioBitrateOption = {
8
8
  name: 'Audio Bitrate',
9
9
  addedIn: '3.2.32',
10
10
  cliFlag,
11
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the target bitrate for the generated video. The syntax for FFmpeg", "'", "s ",
12
- jsx_runtime_1.jsx("code", { children: "-b:a" }),
13
- " parameter should be used. FFmpeg may encode the video in a way that will not result in the exact audio bitrate specified. Example values: ",
14
- jsx_runtime_1.jsx("code", { children: "512K" }),
15
- " for 512 kbps, ",
16
- jsx_runtime_1.jsx("code", { children: "1M" }),
17
- " for 1 Mbps. Default: ",
18
- jsx_runtime_1.jsx("code", { children: "320k" })
19
- ] })),
11
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Specify the target bitrate for the generated video. The syntax for FFmpeg", "'", "s ", (0, jsx_runtime_1.jsx)("code", { children: "-b:a" }), " parameter should be used. FFmpeg may encode the video in a way that will not result in the exact audio bitrate specified. Example values: ", (0, jsx_runtime_1.jsx)("code", { children: "512K" }), " for 512 kbps, ", (0, jsx_runtime_1.jsx)("code", { children: "1M" }), " for 1 Mbps. Default: ", (0, jsx_runtime_1.jsx)("code", { children: "320k" })] })),
20
12
  ssrName: 'audioBitrate',
21
13
  docLink: 'https://www.remotion.dev/docs/options/audio-bitrate',
22
14
  type: '0',
@@ -1,38 +1,40 @@
1
1
  import type { Codec } from '../codec';
2
- export declare const validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
2
+ export declare const validAudioCodecs: readonly ['pcm-16', 'aac', 'mp3', 'opus'];
3
3
  export type AudioCodec = (typeof validAudioCodecs)[number];
4
4
  export declare const supportedAudioCodecs: {
5
- readonly h264: readonly ["aac", "pcm-16", "mp3"];
6
- readonly 'h264-mkv': readonly ["pcm-16", "mp3"];
7
- readonly 'h264-ts': readonly ["pcm-16", "aac"];
8
- readonly aac: readonly ["aac", "pcm-16"];
5
+ readonly h264: readonly ['aac', 'pcm-16', 'mp3'];
6
+ readonly 'h264-mkv': readonly ['pcm-16', 'mp3'];
7
+ readonly 'h264-ts': readonly ['pcm-16', 'aac'];
8
+ readonly aac: readonly ['aac', 'pcm-16'];
9
9
  readonly avi: readonly [];
10
10
  readonly gif: readonly [];
11
- readonly h265: readonly ["aac", "pcm-16"];
12
- readonly av1: readonly ["aac", "opus", "pcm-16"];
13
- readonly mp3: readonly ["mp3", "pcm-16"];
14
- readonly prores: readonly ["aac", "pcm-16"];
15
- readonly vp8: readonly ["opus", "pcm-16"];
16
- readonly vp9: readonly ["opus", "pcm-16"];
17
- readonly wav: readonly ["pcm-16"];
11
+ readonly h265: readonly ['aac', 'pcm-16'];
12
+ readonly av1: readonly ['aac', 'opus', 'pcm-16'];
13
+ readonly mp3: readonly ['mp3', 'pcm-16'];
14
+ readonly prores: readonly ['aac', 'pcm-16'];
15
+ readonly vp8: readonly ['opus', 'pcm-16'];
16
+ readonly vp9: readonly ['opus', 'pcm-16'];
17
+ readonly wav: readonly ['pcm-16'];
18
18
  };
19
- export declare const mapAudioCodecToFfmpegAudioCodecName: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16") => "libfdk_aac" | "libmp3lame" | "libopus" | "pcm_s16le";
19
+ declare const audioCodecNames: readonly ['pcm_s16le', 'libfdk_aac', 'libmp3lame', 'libopus'];
20
+ type FfmpegAudioCodecName = (typeof audioCodecNames)[number];
21
+ export declare const mapAudioCodecToFfmpegAudioCodecName: (audioCodec: AudioCodec) => FfmpegAudioCodecName;
20
22
  export declare const defaultAudioCodecs: {
21
23
  [key in Codec]: {
22
24
  [_ in 'compressed' | 'lossless']: (typeof supportedAudioCodecs)[key][number] | null;
23
25
  };
24
26
  };
25
- export declare const getExtensionFromAudioCodec: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16") => "aac" | "mp3" | "opus" | "wav";
27
+ export declare const getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "aac" | "mp3" | "opus" | "wav";
26
28
  export declare const resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
27
- setting: "aac" | "mp3" | "opus" | "pcm-16" | null;
28
- codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
29
+ setting: AudioCodec | null;
30
+ codec: Codec;
29
31
  preferLossless: boolean;
30
32
  separateAudioTo: string | null;
31
33
  }) => "aac" | "mp3" | "opus" | "pcm-16" | null;
32
34
  export declare const getDefaultAudioCodec: ({ codec, preferLossless, }: {
33
- codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
35
+ codec: Codec;
34
36
  preferLossless: boolean;
35
- }) => "aac" | "mp3" | "opus" | "pcm-16" | null;
37
+ }) => AudioCodec | null;
36
38
  export declare const audioCodecOption: {
37
39
  cliFlag: "audio-codec";
38
40
  setConfig: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => void;
@@ -40,7 +42,7 @@ export declare const audioCodecOption: {
40
42
  commandLine: Record<string, unknown>;
41
43
  }) => {
42
44
  source: string;
43
- value: "aac" | "mp3" | "opus" | "pcm-16";
45
+ value: AudioCodec;
44
46
  } | {
45
47
  source: string;
46
48
  value: null;
@@ -50,6 +52,7 @@ export declare const audioCodecOption: {
50
52
  name: string;
51
53
  addedIn: string;
52
54
  ssrName: "audioCodec";
53
- type: "aac" | "mp3" | "opus" | "pcm-16";
55
+ type: AudioCodec;
54
56
  id: "audio-codec";
55
57
  };
58
+ export {};
@@ -9,7 +9,7 @@ exports.beepOnFinishOption = {
9
9
  name: 'Beep on finish',
10
10
  addedIn: '4.0.84',
11
11
  cliFlag,
12
- description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Whether the Remotion Studio tab should beep when the render is finished." })),
12
+ description: () => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Whether the Remotion Studio tab should beep when the render is finished." })),
13
13
  ssrName: null,
14
14
  docLink: 'https://www.remotion.dev/docs/options/beep-on-finish',
15
15
  type: false,
@@ -8,8 +8,7 @@ exports.benchmarkConcurrenciesOption = {
8
8
  name: 'Benchmark concurrencies',
9
9
  addedIn: '3.2.28',
10
10
  cliFlag,
11
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify which concurrency values should be used while benchmarking. Multiple values can be passed separated by comma. Learn more about", ' ', jsx_runtime_1.jsx("a", { href: "https://remotion.dev/docs/terminology/concurrency", children: "concurrency" }),
12
- "."] })),
11
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Specify which concurrency values should be used while benchmarking. Multiple values can be passed separated by comma. Learn more about", ' ', (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/terminology/concurrency", children: "concurrency" }), "."] })),
13
12
  ssrName: null,
14
13
  docLink: 'https://www.remotion.dev/docs/options/concurrencies',
15
14
  type: null,
@@ -3,7 +3,7 @@ export declare const binariesDirectoryOption: {
3
3
  addedIn: string;
4
4
  cliFlag: "binaries-directory";
5
5
  description: () => import("react/jsx-runtime").JSX.Element;
6
- ssrName: "binariesDirectory";
6
+ ssrName: 'binariesDirectory';
7
7
  docLink: string;
8
8
  type: string | null;
9
9
  getValue: ({ commandLine }: {
@@ -8,15 +8,7 @@ exports.binariesDirectoryOption = {
8
8
  name: 'Binaries Directory',
9
9
  addedIn: '4.0.120',
10
10
  cliFlag,
11
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ",
12
- jsx_runtime_1.jsx("code", { children: "ffmpeg" }),
13
- " and", ' ', jsx_runtime_1.jsx("code", { children: "ffprobe" }),
14
- " binary, a Rust binary for various tasks, and various shared libraries. If the value is set to ",
15
- jsx_runtime_1.jsx("code", { children: "null" }),
16
- ", which is the default, then the path of a platform-specific package located at", ' ', jsx_runtime_1.jsx("code", { children: "node_modules/@remotion/compositor-*" }),
17
- " is selected.",
18
- jsx_runtime_1.jsx("br", {}),
19
- "This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron."] })),
11
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ", (0, jsx_runtime_1.jsx)("code", { children: "ffmpeg" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "ffprobe" }), " binary, a Rust binary for various tasks, and various shared libraries. If the value is set to ", (0, jsx_runtime_1.jsx)("code", { children: "null" }), ", which is the default, then the path of a platform-specific package located at", ' ', (0, jsx_runtime_1.jsx)("code", { children: "node_modules/@remotion/compositor-*" }), " is selected.", (0, jsx_runtime_1.jsx)("br", {}), "This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron."] })),
20
12
  ssrName: 'binariesDirectory',
21
13
  docLink: 'https://www.remotion.dev/docs/options/binaries-directory',
22
14
  type: '',
@@ -4,7 +4,7 @@ export declare const browserExecutableOption: {
4
4
  addedIn: string;
5
5
  cliFlag: "browser-executable";
6
6
  description: () => import("react/jsx-runtime").JSX.Element;
7
- ssrName: "browserExecutable";
7
+ ssrName: 'browserExecutable';
8
8
  docLink: string;
9
9
  type: BrowserExecutable;
10
10
  getValue: ({ commandLine }: {
@@ -8,7 +8,7 @@ exports.browserExecutableOption = {
8
8
  name: 'Browser executable',
9
9
  addedIn: '1.5.0',
10
10
  cliFlag,
11
- description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Set a custom Chrome or Chromium executable path. By default Remotion will try to find an existing version of Chrome on your system and if not found, it will download one. This flag is useful if you don't have Chrome installed in a standard location and you want to prevent downloading an additional browser or need support for the H264 codec." })),
11
+ description: () => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Set a custom Chrome or Chromium executable path. By default Remotion will try to find an existing version of Chrome on your system and if not found, it will download one. This flag is useful if you don't have Chrome installed in a standard location and you want to prevent downloading an additional browser or need support for the H264 codec." })),
12
12
  ssrName: 'browserExecutable',
13
13
  docLink: 'https://www.remotion.dev/docs/options/browser-executable',
14
14
  type: null,
@@ -7,8 +7,7 @@ exports.browserOption = {
7
7
  name: 'Browser',
8
8
  addedIn: '3.3.79',
9
9
  cliFlag,
10
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the browser which should be used for opening a tab. The default browser will be used by default. Pass an absolute path or", ' ', jsx_runtime_1.jsx("code", { children: "\"chrome\"" }),
11
- " to use Chrome. If Chrome is selected as the browser and you are on macOS, Remotion will try to reuse an existing tab."] })),
10
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Specify the browser which should be used for opening a tab. The default browser will be used by default. Pass an absolute path or", ' ', (0, jsx_runtime_1.jsx)("code", { children: "\"chrome\"" }), " to use Chrome. If Chrome is selected as the browser and you are on macOS, Remotion will try to reuse an existing tab."] })),
12
11
  ssrName: null,
13
12
  docLink: 'https://www.remotion.dev/docs/options/browser',
14
13
  getValue: ({ commandLine }) => {
@@ -8,8 +8,7 @@ exports.bundleCacheOption = {
8
8
  name: 'Webpack Bundle Caching',
9
9
  addedIn: '2.0.0',
10
10
  cliFlag,
11
- description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Enable or disable Webpack caching. This flag is enabled by default, use", ' ', jsx_runtime_1.jsx("code", { children: "--bundle-cache=false" }),
12
- " to disable caching."] })),
11
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Enable or disable Webpack caching. This flag is enabled by default, use", ' ', (0, jsx_runtime_1.jsx)("code", { children: "--bundle-cache=false" }), " to disable caching."] })),
13
12
  ssrName: null,
14
13
  docLink: 'https://www.remotion.dev/docs/options/bundle-cache',
15
14
  getValue: ({ commandLine }) => {
@@ -9,7 +9,7 @@ exports.canvasTabsOption = {
9
9
  name: 'Disable or enable Studio canvas tabs',
10
10
  addedIn: '4.0.530',
11
11
  cliFlag,
12
- description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Enable or disable the tabs above the Studio canvas." }),
12
+ description: () => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Enable or disable the tabs above the Studio canvas." }),
13
13
  ssrName: null,
14
14
  docLink: 'https://www.remotion.dev/docs/options/disable-canvas-tabs',
15
15
  type: false,
@@ -1,4 +1,4 @@
1
- export declare const validChromeModeOptions: readonly ["headless-shell", "chrome-for-testing"];
1
+ export declare const validChromeModeOptions: readonly ['headless-shell', 'chrome-for-testing'];
2
2
  export type ChromeMode = (typeof validChromeModeOptions)[number];
3
3
  export declare const chromeModeOption: {
4
4
  cliFlag: "chrome-mode";
@@ -10,10 +10,10 @@ export declare const chromeModeOption: {
10
10
  getValue: ({ commandLine }: {
11
11
  commandLine: Record<string, unknown>;
12
12
  }) => {
13
- value: "chrome-for-testing" | "headless-shell";
13
+ value: ChromeMode;
14
14
  source: string;
15
15
  };
16
- setConfig: (newChromeMode: "chrome-for-testing" | "headless-shell") => void;
17
- type: "chrome-for-testing" | "headless-shell";
16
+ setConfig: (newChromeMode: ChromeMode) => void;
17
+ type: ChromeMode;
18
18
  id: "chrome-mode";
19
19
  };
@@ -14,12 +14,7 @@ exports.chromeModeOption = {
14
14
  addedIn: '4.0.248',
15
15
  ssrName: 'chromeMode',
16
16
  description: () => {
17
- return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["One of", ' ', exports.validChromeModeOptions.map((option, i) => (jsx_runtime_1.jsxs("code", { children: [option, i === exports.validChromeModeOptions.length - 1 ? '' : ', '] }, option))), ". Default ",
18
- jsx_runtime_1.jsx("code", { children: "headless-shell" }),
19
- ".", ' ', jsx_runtime_1.jsxs("a", { href: "https://remotion.dev/docs/miscellaneous/chrome-headless-shell", children: ["Use ",
20
- jsx_runtime_1.jsx("code", { children: "chrome-for-testing" }),
21
- " to take advantage of GPU drivers on Linux."] })
22
- ] }));
17
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["One of", ' ', exports.validChromeModeOptions.map((option, i) => ((0, jsx_runtime_1.jsxs)("code", { children: [option, i === exports.validChromeModeOptions.length - 1 ? '' : ', '] }, option))), ". Default ", (0, jsx_runtime_1.jsx)("code", { children: "headless-shell" }), ".", ' ', (0, jsx_runtime_1.jsxs)("a", { href: "https://remotion.dev/docs/miscellaneous/chrome-headless-shell", children: ["Use ", (0, jsx_runtime_1.jsx)("code", { children: "chrome-for-testing" }), " to take advantage of GPU drivers on Linux."] })] }));
23
18
  },
24
19
  docLink: 'https://www.remotion.dev/docs/options/chrome-mode',
25
20
  getValue: ({ commandLine }) => {