@remotion/renderer 4.0.357 → 4.0.358

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 (653) hide show
  1. package/dist/render-frames.js +1 -1
  2. package/dist/test/actual-concurrency.test.d.ts +1 -0
  3. package/dist/test/artifacts.test.d.ts +1 -0
  4. package/dist/test/asset-calculation.test.d.ts +1 -0
  5. package/dist/test/asset-compression.test.d.ts +1 -0
  6. package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +1 -0
  7. package/dist/test/browser-log-message.test.d.ts +1 -0
  8. package/dist/test/calculate-atempo.test.d.ts +1 -0
  9. package/dist/test/compositor-rust.test.d.ts +1 -0
  10. package/dist/test/crf.test.d.ts +1 -0
  11. package/dist/test/derive-codec-from-file-extension.test.d.ts +1 -0
  12. package/dist/test/dont-skip-assets.test.d.ts +1 -0
  13. package/dist/test/download-file.test.d.ts +1 -0
  14. package/dist/test/even-dimensions.test.d.ts +1 -0
  15. package/dist/test/extra-frames-to-capture.test.d.ts +1 -0
  16. package/dist/test/extract-audio.test.d.ts +1 -0
  17. package/dist/test/extract-frame-rust.test.d.ts +1 -0
  18. package/dist/test/ffmpeg-filters.test.d.ts +1 -0
  19. package/dist/test/ffmpeg-merge-filter.test.d.ts +1 -0
  20. package/dist/test/ffmpeg-volume-expression.test.d.ts +1 -0
  21. package/dist/test/file-extension.test.d.ts +1 -0
  22. package/dist/test/find-closest-package-json.test.d.ts +1 -0
  23. package/dist/test/flatten-volume-array.test.d.ts +1 -0
  24. package/dist/test/format-logs.test.d.ts +1 -0
  25. package/dist/test/frame-padded-index.test.d.ts +1 -0
  26. package/dist/test/frame.test.d.ts +1 -0
  27. package/dist/test/get-assets-for-markup.d.ts +8 -0
  28. package/dist/test/get-audio-channels.test.d.ts +1 -0
  29. package/dist/test/get-bundle-url-from-serve-url.test.d.ts +1 -0
  30. package/dist/test/get-silent-parts.test.d.ts +1 -0
  31. package/dist/test/guess-extension-for-media.test.d.ts +1 -0
  32. package/dist/test/handle-weird-file-names.test.d.ts +1 -0
  33. package/dist/test/log-level.test.d.ts +1 -0
  34. package/dist/test/mime-types.test.d.ts +1 -0
  35. package/dist/test/offthread-extract-url.test.d.ts +1 -0
  36. package/dist/test/parse-ffmpeg-progress.test.d.ts +1 -0
  37. package/dist/test/partitions.test.d.ts +1 -0
  38. package/dist/test/pixel-format.test.d.ts +1 -0
  39. package/dist/test/port-config.test.d.ts +1 -0
  40. package/dist/test/port-selection.test.d.ts +1 -0
  41. package/dist/test/prores-profile.test.d.ts +1 -0
  42. package/dist/test/render-still.test.d.ts +1 -0
  43. package/dist/test/rust-errors.test.d.ts +1 -0
  44. package/dist/test/rust-get-video-metadata.test.d.ts +1 -0
  45. package/dist/test/rust-memory-usage.test.d.ts +1 -0
  46. package/dist/test/sanitize-file-path.test.d.ts +1 -0
  47. package/dist/test/serve-url.test.d.ts +1 -0
  48. package/dist/test/symbolicate-remote-stack.test.d.ts +1 -0
  49. package/dist/test/validate-concurrency.test.d.ts +1 -0
  50. package/dist/test/validate-config-stitcher.test.d.ts +1 -0
  51. package/dist/test/validate-config.test.d.ts +1 -0
  52. package/dist/test/validate-even-dimensions-with-codec.test.d.ts +1 -0
  53. package/dist/test/validate-image-format.test.d.ts +1 -0
  54. package/dist/test/webpack-to-serve-url.test.d.ts +1 -0
  55. package/package/dist/assets/apply-tone-frequency.d.ts +11 -0
  56. package/package/dist/assets/apply-tone-frequency.js +34 -0
  57. package/package/dist/assets/calculate-asset-positions.d.ts +3 -0
  58. package/package/dist/assets/calculate-asset-positions.js +72 -0
  59. package/package/dist/assets/calculate-atempo.d.ts +1 -0
  60. package/package/dist/assets/calculate-atempo.js +16 -0
  61. package/package/dist/assets/convert-assets-to-file-urls.d.ts +13 -0
  62. package/package/dist/assets/convert-assets-to-file-urls.js +36 -0
  63. package/package/dist/assets/download-and-map-assets-to-file.d.ts +37 -0
  64. package/package/dist/assets/download-and-map-assets-to-file.js +312 -0
  65. package/package/dist/assets/download-file.d.ts +18 -0
  66. package/package/dist/assets/download-file.js +135 -0
  67. package/package/dist/assets/download-map.d.ts +55 -0
  68. package/package/dist/assets/download-map.js +63 -0
  69. package/package/dist/assets/ffmpeg-volume-expression.d.ts +12 -0
  70. package/package/dist/assets/ffmpeg-volume-expression.js +96 -0
  71. package/package/dist/assets/flatten-volume-array.d.ts +3 -0
  72. package/package/dist/assets/flatten-volume-array.js +26 -0
  73. package/package/dist/assets/get-audio-channels.d.ts +20 -0
  74. package/package/dist/assets/get-audio-channels.js +78 -0
  75. package/package/dist/assets/inline-audio-mixing.d.ts +22 -0
  76. package/package/dist/assets/inline-audio-mixing.js +189 -0
  77. package/package/dist/assets/read-file.d.ts +7 -0
  78. package/package/dist/assets/read-file.js +97 -0
  79. package/package/dist/assets/round-volume-to-avoid-stack-overflow.d.ts +1 -0
  80. package/package/dist/assets/round-volume-to-avoid-stack-overflow.js +17 -0
  81. package/package/dist/assets/sanitize-filename.d.ts +1 -0
  82. package/package/dist/assets/sanitize-filename.js +58 -0
  83. package/package/dist/assets/sanitize-filepath.d.ts +1 -0
  84. package/package/dist/assets/sanitize-filepath.js +16 -0
  85. package/package/dist/assets/truncate-utf8-bytes.d.ts +1 -0
  86. package/package/dist/assets/truncate-utf8-bytes.js +36 -0
  87. package/package/dist/assets/types.d.ts +18 -0
  88. package/package/dist/assets/types.js +21 -0
  89. package/package/dist/browser/Browser.d.ts +97 -0
  90. package/package/dist/browser/Browser.js +246 -0
  91. package/package/dist/browser/BrowserFetcher.d.ts +33 -0
  92. package/package/dist/browser/BrowserFetcher.js +215 -0
  93. package/package/dist/browser/BrowserPage.d.ts +104 -0
  94. package/package/dist/browser/BrowserPage.js +436 -0
  95. package/package/dist/browser/BrowserRunner.d.ts +33 -0
  96. package/package/dist/browser/BrowserRunner.js +303 -0
  97. package/package/dist/browser/Connection.d.ts +49 -0
  98. package/package/dist/browser/Connection.js +258 -0
  99. package/package/dist/browser/ConsoleMessage.d.ts +42 -0
  100. package/package/dist/browser/ConsoleMessage.js +47 -0
  101. package/package/dist/browser/DOMWorld.d.ts +56 -0
  102. package/package/dist/browser/DOMWorld.js +272 -0
  103. package/package/dist/browser/Errors.d.ts +25 -0
  104. package/package/dist/browser/Errors.js +35 -0
  105. package/package/dist/browser/EvalTypes.d.ts +27 -0
  106. package/package/dist/browser/EvalTypes.js +17 -0
  107. package/package/dist/browser/EventEmitter.d.ts +23 -0
  108. package/package/dist/browser/EventEmitter.js +53 -0
  109. package/package/dist/browser/ExecutionContext.d.ts +34 -0
  110. package/package/dist/browser/ExecutionContext.js +174 -0
  111. package/package/dist/browser/FrameManager.d.ts +89 -0
  112. package/package/dist/browser/FrameManager.js +487 -0
  113. package/package/dist/browser/HTTPRequest.d.ts +29 -0
  114. package/package/dist/browser/HTTPRequest.js +39 -0
  115. package/package/dist/browser/HTTPResponse.d.ts +21 -0
  116. package/package/dist/browser/HTTPResponse.js +41 -0
  117. package/package/dist/browser/JSHandle.d.ts +35 -0
  118. package/package/dist/browser/JSHandle.js +90 -0
  119. package/package/dist/browser/LaunchOptions.d.ts +26 -0
  120. package/package/dist/browser/LaunchOptions.js +17 -0
  121. package/package/dist/browser/Launcher.d.ts +18 -0
  122. package/package/dist/browser/Launcher.js +41 -0
  123. package/package/dist/browser/LifecycleWatcher.d.ts +29 -0
  124. package/package/dist/browser/LifecycleWatcher.js +180 -0
  125. package/package/dist/browser/NetworkEventManager.d.ts +34 -0
  126. package/package/dist/browser/NetworkEventManager.js +85 -0
  127. package/package/dist/browser/NetworkManager.d.ts +37 -0
  128. package/package/dist/browser/NetworkManager.js +246 -0
  129. package/package/dist/browser/NodeWebSocketTransport.d.ts +19 -0
  130. package/package/dist/browser/NodeWebSocketTransport.js +81 -0
  131. package/package/dist/browser/PuppeteerViewport.d.ts +5 -0
  132. package/package/dist/browser/PuppeteerViewport.js +2 -0
  133. package/package/dist/browser/ScreenshotOptions.d.ts +0 -0
  134. package/package/dist/browser/ScreenshotOptions.js +1 -0
  135. package/package/dist/browser/Target.d.ts +72 -0
  136. package/package/dist/browser/Target.js +161 -0
  137. package/package/dist/browser/TaskQueue.d.ts +20 -0
  138. package/package/dist/browser/TaskQueue.js +47 -0
  139. package/package/dist/browser/TimeoutSettings.d.ts +24 -0
  140. package/package/dist/browser/TimeoutSettings.js +62 -0
  141. package/package/dist/browser/assert.d.ts +1 -0
  142. package/package/dist/browser/assert.js +9 -0
  143. package/package/dist/browser/browser-download-progress-bar.d.ts +7 -0
  144. package/package/dist/browser/browser-download-progress-bar.js +31 -0
  145. package/package/dist/browser/devtools-commands.d.ts +274 -0
  146. package/package/dist/browser/devtools-commands.js +2 -0
  147. package/package/dist/browser/devtools-types.d.ts +1263 -0
  148. package/package/dist/browser/devtools-types.js +2 -0
  149. package/package/dist/browser/flaky-errors.d.ts +2 -0
  150. package/package/dist/browser/flaky-errors.js +20 -0
  151. package/package/dist/browser/get-download-destination.d.ts +1 -0
  152. package/package/dist/browser/get-download-destination.js +38 -0
  153. package/package/dist/browser/handle-failed-resource.d.ts +10 -0
  154. package/package/dist/browser/handle-failed-resource.js +21 -0
  155. package/package/dist/browser/mitt/index.d.ts +22 -0
  156. package/package/dist/browser/mitt/index.js +49 -0
  157. package/package/dist/browser/should-log-message.d.ts +24 -0
  158. package/package/dist/browser/should-log-message.js +104 -0
  159. package/package/dist/browser/source-map-getter.d.ts +2 -0
  160. package/package/dist/browser/source-map-getter.js +2 -0
  161. package/package/dist/browser/util.d.ts +37 -0
  162. package/package/dist/browser/util.js +169 -0
  163. package/package/dist/browser-executable.d.ts +1 -0
  164. package/package/dist/browser-executable.js +2 -0
  165. package/package/dist/browser-log.d.ts +6 -0
  166. package/package/dist/browser-log.js +2 -0
  167. package/package/dist/browser.d.ts +2 -0
  168. package/package/dist/browser.js +4 -0
  169. package/package/dist/call-ffmpeg.d.ts +22 -0
  170. package/package/dist/call-ffmpeg.js +53 -0
  171. package/package/dist/can-concat-seamlessly.d.ts +4 -0
  172. package/package/dist/can-concat-seamlessly.js +17 -0
  173. package/package/dist/can-use-parallel-encoding.d.ts +3 -0
  174. package/package/dist/can-use-parallel-encoding.js +19 -0
  175. package/package/dist/chalk/index.d.ts +55 -0
  176. package/package/dist/chalk/index.js +130 -0
  177. package/package/dist/chalk/is-color-supported.d.ts +1 -0
  178. package/package/dist/chalk/is-color-supported.js +55 -0
  179. package/package/dist/check-version-requirements.d.ts +3 -0
  180. package/package/dist/check-version-requirements.js +82 -0
  181. package/package/dist/chunk.d.ts +1 -0
  182. package/package/dist/chunk.js +11 -0
  183. package/package/dist/client.d.ts +3016 -0
  184. package/package/dist/client.js +57 -0
  185. package/package/dist/codec-supports-media.d.ts +9 -0
  186. package/package/dist/codec-supports-media.js +76 -0
  187. package/package/dist/codec.d.ts +4 -0
  188. package/package/dist/codec.js +17 -0
  189. package/package/dist/collect-assets.d.ts +7 -0
  190. package/package/dist/collect-assets.js +38 -0
  191. package/package/dist/combine-audio.d.ts +21 -0
  192. package/package/dist/combine-audio.js +183 -0
  193. package/package/dist/combine-chunks.d.ts +39 -0
  194. package/package/dist/combine-chunks.js +171 -0
  195. package/package/dist/combine-video-streams-seamlessly.d.ts +3 -0
  196. package/package/dist/combine-video-streams-seamlessly.js +8 -0
  197. package/package/dist/combine-video-streams.d.ts +17 -0
  198. package/package/dist/combine-video-streams.js +75 -0
  199. package/package/dist/compositor/compositor.d.ts +22 -0
  200. package/package/dist/compositor/compositor.js +182 -0
  201. package/package/dist/compositor/get-executable-path.d.ts +12 -0
  202. package/package/dist/compositor/get-executable-path.js +95 -0
  203. package/package/dist/compositor/get-explicit-env.d.ts +3 -0
  204. package/package/dist/compositor/get-explicit-env.js +13 -0
  205. package/package/dist/compositor/make-file-executable.d.ts +1 -0
  206. package/package/dist/compositor/make-file-executable.js +44 -0
  207. package/package/dist/compositor/make-nonce.d.ts +1 -0
  208. package/package/dist/compositor/make-nonce.js +8 -0
  209. package/package/dist/compositor/payloads.d.ts +73 -0
  210. package/package/dist/compositor/payloads.js +2 -0
  211. package/package/dist/compositor/serialize-command.d.ts +2 -0
  212. package/package/dist/compositor/serialize-command.js +14 -0
  213. package/package/dist/compress-assets.d.ts +7 -0
  214. package/package/dist/compress-assets.js +25 -0
  215. package/package/dist/compress-audio.d.ts +16 -0
  216. package/package/dist/compress-audio.js +44 -0
  217. package/package/dist/convert-number-of-gif-loops-to-ffmpeg.d.ts +1 -0
  218. package/package/dist/convert-number-of-gif-loops-to-ffmpeg.js +17 -0
  219. package/package/dist/convert-to-positive-frame-index.d.ts +4 -0
  220. package/package/dist/convert-to-positive-frame-index.js +8 -0
  221. package/package/dist/create-audio.d.ts +29 -0
  222. package/package/dist/create-audio.js +127 -0
  223. package/package/dist/create-ffmpeg-complex-filter.d.ts +10 -0
  224. package/package/dist/create-ffmpeg-complex-filter.js +24 -0
  225. package/package/dist/create-ffmpeg-merge-filter.d.ts +5 -0
  226. package/package/dist/create-ffmpeg-merge-filter.js +25 -0
  227. package/package/dist/create-silent-audio.d.ts +10 -0
  228. package/package/dist/create-silent-audio.js +28 -0
  229. package/package/dist/crf.d.ts +13 -0
  230. package/package/dist/crf.js +103 -0
  231. package/package/dist/cycle-browser-tabs.d.ts +10 -0
  232. package/package/dist/cycle-browser-tabs.js +50 -0
  233. package/package/dist/default-on-log.d.ts +2 -0
  234. package/package/dist/default-on-log.js +8 -0
  235. package/package/dist/delay-render-embedded-stack.d.ts +2 -0
  236. package/package/dist/delay-render-embedded-stack.js +17 -0
  237. package/package/dist/delete-directory.d.ts +1 -0
  238. package/package/dist/delete-directory.js +68 -0
  239. package/package/dist/ensure-browser.d.ts +24 -0
  240. package/package/dist/ensure-browser.js +58 -0
  241. package/package/dist/ensure-frames-in-order.d.ts +5 -0
  242. package/package/dist/ensure-frames-in-order.js +39 -0
  243. package/package/dist/ensure-output-directory.d.ts +1 -0
  244. package/package/dist/ensure-output-directory.js +17 -0
  245. package/package/dist/error-handling/handle-javascript-exception.d.ts +23 -0
  246. package/package/dist/error-handling/handle-javascript-exception.js +86 -0
  247. package/package/dist/error-handling/symbolicate-error.d.ts +3 -0
  248. package/package/dist/error-handling/symbolicate-error.js +26 -0
  249. package/package/dist/error-handling/symbolicateable-error.d.ts +18 -0
  250. package/package/dist/error-handling/symbolicateable-error.js +19 -0
  251. package/package/dist/error-handling.d.ts +1 -0
  252. package/package/dist/error-handling.js +5 -0
  253. package/package/dist/esm/client.mjs +3270 -0
  254. package/package/dist/esm/error-handling.mjs +363 -0
  255. package/package/dist/esm/index.mjs +23201 -0
  256. package/package/dist/esm/pure.mjs +526 -0
  257. package/package/dist/extract-audio.d.ts +7 -0
  258. package/package/dist/extract-audio.js +25 -0
  259. package/package/dist/ffmpeg-args.d.ts +21 -0
  260. package/package/dist/ffmpeg-args.js +96 -0
  261. package/package/dist/ffmpeg-filter-file.d.ts +13 -0
  262. package/package/dist/ffmpeg-filter-file.js +70 -0
  263. package/package/dist/ffmpeg-override.d.ts +4 -0
  264. package/package/dist/ffmpeg-override.js +2 -0
  265. package/package/dist/file-extensions.d.ts +14 -0
  266. package/package/dist/file-extensions.js +85 -0
  267. package/package/dist/filter-asset-types.d.ts +8 -0
  268. package/package/dist/filter-asset-types.js +44 -0
  269. package/package/dist/find-closest-package-json.d.ts +2 -0
  270. package/package/dist/find-closest-package-json.js +31 -0
  271. package/package/dist/format-logs.d.ts +3 -0
  272. package/package/dist/format-logs.js +214 -0
  273. package/package/dist/frame-range.d.ts +2 -0
  274. package/package/dist/frame-range.js +49 -0
  275. package/package/dist/get-browser-instance.d.ts +24 -0
  276. package/package/dist/get-browser-instance.js +63 -0
  277. package/package/dist/get-bundle-url-from-serve-url.d.ts +2 -0
  278. package/package/dist/get-bundle-url-from-serve-url.js +30 -0
  279. package/package/dist/get-codec-name.d.ts +21 -0
  280. package/package/dist/get-codec-name.js +87 -0
  281. package/package/dist/get-compositions.d.ts +34 -0
  282. package/package/dist/get-compositions.js +196 -0
  283. package/package/dist/get-concurrency.d.ts +1 -0
  284. package/package/dist/get-concurrency.js +27 -0
  285. package/package/dist/get-cpu-count.d.ts +2 -0
  286. package/package/dist/get-cpu-count.js +33 -0
  287. package/package/dist/get-duration-from-frame-range.d.ts +1 -0
  288. package/package/dist/get-duration-from-frame-range.js +17 -0
  289. package/package/dist/get-extension-from-codec.d.ts +6 -0
  290. package/package/dist/get-extension-from-codec.js +61 -0
  291. package/package/dist/get-extension-of-filename.d.ts +1 -0
  292. package/package/dist/get-extension-of-filename.js +15 -0
  293. package/package/dist/get-extra-frames-to-capture.d.ts +14 -0
  294. package/package/dist/get-extra-frames-to-capture.js +62 -0
  295. package/package/dist/get-frame-padded-index.d.ts +21 -0
  296. package/package/dist/get-frame-padded-index.js +43 -0
  297. package/package/dist/get-frame-to-render.d.ts +2 -0
  298. package/package/dist/get-frame-to-render.js +19 -0
  299. package/package/dist/get-local-browser-executable.d.ts +9 -0
  300. package/package/dist/get-local-browser-executable.js +36 -0
  301. package/package/dist/get-port.d.ts +15 -0
  302. package/package/dist/get-port.js +86 -0
  303. package/package/dist/get-prores-profile-name.d.ts +3 -0
  304. package/package/dist/get-prores-profile-name.js +25 -0
  305. package/package/dist/get-silent-parts.d.ts +10 -0
  306. package/package/dist/get-silent-parts.js +66 -0
  307. package/package/dist/get-video-metadata.d.ts +10 -0
  308. package/package/dist/get-video-metadata.js +25 -0
  309. package/package/dist/get-video-threads-flag.d.ts +2 -0
  310. package/package/dist/get-video-threads-flag.js +16 -0
  311. package/package/dist/goto-page-or-throw.d.ts +3 -0
  312. package/package/dist/goto-page-or-throw.js +16 -0
  313. package/package/dist/guess-extension-for-media.d.ts +9 -0
  314. package/package/dist/guess-extension-for-media.js +31 -0
  315. package/package/dist/image-format.d.ts +13 -0
  316. package/package/dist/image-format.js +37 -0
  317. package/package/dist/index.d.ts +1256 -0
  318. package/package/dist/index.js +227 -0
  319. package/package/dist/is-audio-codec.d.ts +2 -0
  320. package/package/dist/is-audio-codec.js +7 -0
  321. package/package/dist/is-delay-render-error-with-retry.d.ts +1 -0
  322. package/package/dist/is-delay-render-error-with-retry.js +28 -0
  323. package/package/dist/is-serve-url.d.ts +1 -0
  324. package/package/dist/is-serve-url.js +15 -0
  325. package/package/dist/jpeg-quality.d.ts +2 -0
  326. package/package/dist/jpeg-quality.js +22 -0
  327. package/package/dist/locks.d.ts +7 -0
  328. package/package/dist/locks.js +47 -0
  329. package/package/dist/log-level.d.ts +4 -0
  330. package/package/dist/log-level.js +15 -0
  331. package/package/dist/logger.d.ts +20 -0
  332. package/package/dist/logger.js +89 -0
  333. package/package/dist/make-cancel-signal.d.ts +14 -0
  334. package/package/dist/make-cancel-signal.js +48 -0
  335. package/package/dist/make-metadata-args.d.ts +2 -0
  336. package/package/dist/make-metadata-args.js +22 -0
  337. package/package/dist/make-page.d.ts +30 -0
  338. package/package/dist/make-page.js +70 -0
  339. package/package/dist/memory/from-docker-cgroup.d.ts +1 -0
  340. package/package/dist/memory/from-docker-cgroup.js +66 -0
  341. package/package/dist/memory/from-lambda-env.d.ts +1 -0
  342. package/package/dist/memory/from-lambda-env.js +10 -0
  343. package/package/dist/memory/from-proc-meminfo.d.ts +2 -0
  344. package/package/dist/memory/from-proc-meminfo.js +44 -0
  345. package/package/dist/memory/get-available-memory.d.ts +2 -0
  346. package/package/dist/memory/get-available-memory.js +44 -0
  347. package/package/dist/merge-audio-track.d.ts +19 -0
  348. package/package/dist/merge-audio-track.js +133 -0
  349. package/package/dist/mime-db.d.ts +6 -0
  350. package/package/dist/mime-db.js +8636 -0
  351. package/package/dist/mime-types.d.ts +3 -0
  352. package/package/dist/mime-types.js +94 -0
  353. package/package/dist/mux-video-and-audio.d.ts +15 -0
  354. package/package/dist/mux-video-and-audio.js +54 -0
  355. package/package/dist/next-frame-to-render.d.ts +11 -0
  356. package/package/dist/next-frame-to-render.js +41 -0
  357. package/package/dist/normalize-serve-url.d.ts +1 -0
  358. package/package/dist/normalize-serve-url.js +19 -0
  359. package/package/dist/offthread-video-server.d.ts +51 -0
  360. package/package/dist/offthread-video-server.js +217 -0
  361. package/package/dist/open-browser.d.ts +47 -0
  362. package/package/dist/open-browser.js +200 -0
  363. package/package/dist/options/api-key.d.ts +15 -0
  364. package/package/dist/options/api-key.js +29 -0
  365. package/package/dist/options/audio-bitrate.d.ts +18 -0
  366. package/package/dist/options/audio-bitrate.js +35 -0
  367. package/package/dist/options/audio-codec.d.ts +55 -0
  368. package/package/dist/options/audio-codec.js +188 -0
  369. package/package/dist/options/beep-on-finish.d.ts +15 -0
  370. package/package/dist/options/beep-on-finish.js +35 -0
  371. package/package/dist/options/binaries-directory.d.ts +15 -0
  372. package/package/dist/options/binaries-directory.js +35 -0
  373. package/package/dist/options/chrome-mode.d.ts +17 -0
  374. package/package/dist/options/chrome-mode.js +46 -0
  375. package/package/dist/options/color-space.d.ts +23 -0
  376. package/package/dist/options/color-space.js +49 -0
  377. package/package/dist/options/crf.d.ts +17 -0
  378. package/package/dist/options/crf.js +43 -0
  379. package/package/dist/options/cross-site-isolation.d.ts +15 -0
  380. package/package/dist/options/cross-site-isolation.js +29 -0
  381. package/package/dist/options/delete-after.d.ts +19 -0
  382. package/package/dist/options/delete-after.js +37 -0
  383. package/package/dist/options/disable-git-source.d.ts +15 -0
  384. package/package/dist/options/disable-git-source.js +28 -0
  385. package/package/dist/options/disallow-parallel-encoding.d.ts +15 -0
  386. package/package/dist/options/disallow-parallel-encoding.js +35 -0
  387. package/package/dist/options/enable-lambda-insights.d.ts +15 -0
  388. package/package/dist/options/enable-lambda-insights.js +35 -0
  389. package/package/dist/options/enable-multiprocess-on-linux.d.ts +15 -0
  390. package/package/dist/options/enable-multiprocess-on-linux.js +36 -0
  391. package/package/dist/options/encoding-buffer-size.d.ts +18 -0
  392. package/package/dist/options/encoding-buffer-size.js +39 -0
  393. package/package/dist/options/encoding-max-rate.d.ts +18 -0
  394. package/package/dist/options/encoding-max-rate.js +35 -0
  395. package/package/dist/options/enforce-audio.d.ts +18 -0
  396. package/package/dist/options/enforce-audio.js +36 -0
  397. package/package/dist/options/folder-expiry.d.ts +15 -0
  398. package/package/dist/options/folder-expiry.js +37 -0
  399. package/package/dist/options/for-seamless-aac-concatenation.d.ts +19 -0
  400. package/package/dist/options/for-seamless-aac-concatenation.js +40 -0
  401. package/package/dist/options/gl.d.ts +24 -0
  402. package/package/dist/options/gl.js +68 -0
  403. package/package/dist/options/hardware-acceleration.d.ts +18 -0
  404. package/package/dist/options/hardware-acceleration.js +56 -0
  405. package/package/dist/options/headless.d.ts +15 -0
  406. package/package/dist/options/headless.js +36 -0
  407. package/package/dist/options/image-sequence-pattern.d.ts +15 -0
  408. package/package/dist/options/image-sequence-pattern.js +30 -0
  409. package/package/dist/options/index.d.ts +747 -0
  410. package/package/dist/options/index.js +97 -0
  411. package/package/dist/options/jpeg-quality.d.ts +17 -0
  412. package/package/dist/options/jpeg-quality.js +47 -0
  413. package/package/dist/options/latency-hint.d.ts +18 -0
  414. package/package/dist/options/latency-hint.js +27 -0
  415. package/package/dist/options/log-level.d.ts +16 -0
  416. package/package/dist/options/log-level.js +32 -0
  417. package/package/dist/options/metadata.d.ts +18 -0
  418. package/package/dist/options/metadata.js +47 -0
  419. package/package/dist/options/mute.d.ts +15 -0
  420. package/package/dist/options/mute.js +37 -0
  421. package/package/dist/options/number-of-gif-loops.d.ts +19 -0
  422. package/package/dist/options/number-of-gif-loops.js +44 -0
  423. package/package/dist/options/offthreadvideo-cache-size.d.ts +20 -0
  424. package/package/dist/options/offthreadvideo-cache-size.js +60 -0
  425. package/package/dist/options/offthreadvideo-threads.d.ts +20 -0
  426. package/package/dist/options/offthreadvideo-threads.js +40 -0
  427. package/package/dist/options/on-browser-download.d.ts +22 -0
  428. package/package/dist/options/on-browser-download.js +19 -0
  429. package/package/dist/options/option.d.ts +20 -0
  430. package/package/dist/options/option.js +2 -0
  431. package/package/dist/options/options-map.d.ts +2040 -0
  432. package/package/dist/options/options-map.js +192 -0
  433. package/package/dist/options/overwrite.d.ts +15 -0
  434. package/package/dist/options/overwrite.js +42 -0
  435. package/package/dist/options/prefer-lossless.d.ts +18 -0
  436. package/package/dist/options/prefer-lossless.js +26 -0
  437. package/package/dist/options/public-dir.d.ts +18 -0
  438. package/package/dist/options/public-dir.js +37 -0
  439. package/package/dist/options/public-path.d.ts +18 -0
  440. package/package/dist/options/public-path.js +37 -0
  441. package/package/dist/options/repro.d.ts +15 -0
  442. package/package/dist/options/repro.js +36 -0
  443. package/package/dist/options/scale.d.ts +15 -0
  444. package/package/dist/options/scale.js +41 -0
  445. package/package/dist/options/separate-audio.d.ts +18 -0
  446. package/package/dist/options/separate-audio.js +28 -0
  447. package/package/dist/options/throw-if-site-exists.d.ts +15 -0
  448. package/package/dist/options/throw-if-site-exists.js +28 -0
  449. package/package/dist/options/timeout.d.ts +15 -0
  450. package/package/dist/options/timeout.js +44 -0
  451. package/package/dist/options/video-bitrate.d.ts +15 -0
  452. package/package/dist/options/video-bitrate.js +35 -0
  453. package/package/dist/options/video-cache-size.d.ts +19 -0
  454. package/package/dist/options/video-cache-size.js +39 -0
  455. package/package/dist/options/video-codec.d.ts +23 -0
  456. package/package/dist/options/video-codec.js +104 -0
  457. package/package/dist/options/webhook-custom-data.d.ts +10 -0
  458. package/package/dist/options/webhook-custom-data.js +21 -0
  459. package/package/dist/options/x264-preset.d.ts +25 -0
  460. package/package/dist/options/x264-preset.js +55 -0
  461. package/package/dist/overwrite.d.ts +1 -0
  462. package/package/dist/overwrite.js +4 -0
  463. package/package/dist/p-limit.d.ts +1 -0
  464. package/package/dist/p-limit.js +57 -0
  465. package/package/dist/parse-browser-error-stack.d.ts +7 -0
  466. package/package/dist/parse-browser-error-stack.js +87 -0
  467. package/package/dist/parse-ffmpeg-progress.d.ts +1 -0
  468. package/package/dist/parse-ffmpeg-progress.js +18 -0
  469. package/package/dist/path-normalize.d.ts +1 -0
  470. package/package/dist/path-normalize.js +132 -0
  471. package/package/dist/perf.d.ts +5 -0
  472. package/package/dist/perf.js +37 -0
  473. package/package/dist/pixel-format.d.ts +6 -0
  474. package/package/dist/pixel-format.js +37 -0
  475. package/package/dist/pool.d.ts +8 -0
  476. package/package/dist/pool.js +30 -0
  477. package/package/dist/port-config.d.ts +14 -0
  478. package/package/dist/port-config.js +79 -0
  479. package/package/dist/prepare-server.d.ts +32 -0
  480. package/package/dist/prepare-server.js +123 -0
  481. package/package/dist/preprocess-audio-track.d.ts +27 -0
  482. package/package/dist/preprocess-audio-track.js +82 -0
  483. package/package/dist/prespawn-ffmpeg.d.ts +49 -0
  484. package/package/dist/prespawn-ffmpeg.js +112 -0
  485. package/package/dist/prestitcher-memory-usage.d.ts +10 -0
  486. package/package/dist/prestitcher-memory-usage.js +26 -0
  487. package/package/dist/print-useful-error-message.d.ts +2 -0
  488. package/package/dist/print-useful-error-message.js +110 -0
  489. package/package/dist/prores-profile.d.ts +7 -0
  490. package/package/dist/prores-profile.js +23 -0
  491. package/package/dist/puppeteer-evaluate.d.ts +17 -0
  492. package/package/dist/puppeteer-evaluate.js +162 -0
  493. package/package/dist/puppeteer-screenshot.d.ts +12 -0
  494. package/package/dist/puppeteer-screenshot.js +58 -0
  495. package/package/dist/pure.d.ts +17 -0
  496. package/package/dist/pure.js +17 -0
  497. package/package/dist/redirect-status-codes.d.ts +1 -0
  498. package/package/dist/redirect-status-codes.js +6 -0
  499. package/package/dist/render-frame-and-retry-target-close.d.ts +54 -0
  500. package/package/dist/render-frame-and-retry-target-close.js +179 -0
  501. package/package/dist/render-frame-with-option-to-reject.d.ts +48 -0
  502. package/package/dist/render-frame-with-option-to-reject.js +156 -0
  503. package/package/dist/render-frame.d.ts +47 -0
  504. package/package/dist/render-frame.js +51 -0
  505. package/package/dist/render-frames.d.ts +97 -0
  506. package/package/dist/render-frames.js +413 -0
  507. package/package/dist/render-has-audio.d.ts +8 -0
  508. package/package/dist/render-has-audio.js +20 -0
  509. package/package/dist/render-media.d.ts +135 -0
  510. package/package/dist/render-media.js +621 -0
  511. package/package/dist/render-partitions.d.ts +7 -0
  512. package/package/dist/render-partitions.js +50 -0
  513. package/package/dist/render-still.d.ts +74 -0
  514. package/package/dist/render-still.js +356 -0
  515. package/package/dist/replace-browser.d.ts +7 -0
  516. package/package/dist/replace-browser.js +48 -0
  517. package/package/dist/repro.d.ts +25 -0
  518. package/package/dist/repro.js +184 -0
  519. package/package/dist/resolve-asset-src.d.ts +1 -0
  520. package/package/dist/resolve-asset-src.js +17 -0
  521. package/package/dist/sample-rate.d.ts +1 -0
  522. package/package/dist/sample-rate.js +4 -0
  523. package/package/dist/screenshot-task.d.ts +12 -0
  524. package/package/dist/screenshot-task.js +86 -0
  525. package/package/dist/seamless-aac-trim.d.ts +12 -0
  526. package/package/dist/seamless-aac-trim.js +24 -0
  527. package/package/dist/seek-to-frame.d.ts +18 -0
  528. package/package/dist/seek-to-frame.js +148 -0
  529. package/package/dist/select-composition.d.ts +45 -0
  530. package/package/dist/select-composition.js +219 -0
  531. package/package/dist/serialize-artifact.d.ts +7 -0
  532. package/package/dist/serialize-artifact.js +2 -0
  533. package/package/dist/serve-handler/index.d.ts +4 -0
  534. package/package/dist/serve-handler/index.js +208 -0
  535. package/package/dist/serve-handler/is-path-inside.d.ts +1 -0
  536. package/package/dist/serve-handler/is-path-inside.js +27 -0
  537. package/package/dist/serve-handler/range-parser.d.ts +13 -0
  538. package/package/dist/serve-handler/range-parser.js +57 -0
  539. package/package/dist/serve-static.d.ts +18 -0
  540. package/package/dist/serve-static.js +141 -0
  541. package/package/dist/set-props-and-env.d.ts +22 -0
  542. package/package/dist/set-props-and-env.js +219 -0
  543. package/package/dist/stitch-frames-to-video.d.ts +77 -0
  544. package/package/dist/stitch-frames-to-video.js +350 -0
  545. package/package/dist/stringify-ffmpeg-filter.d.ts +24 -0
  546. package/package/dist/stringify-ffmpeg-filter.js +140 -0
  547. package/package/dist/succeed-or-cancel.d.ts +6 -0
  548. package/package/dist/succeed-or-cancel.js +23 -0
  549. package/package/dist/symbolicate-stacktrace.d.ts +29 -0
  550. package/package/dist/symbolicate-stacktrace.js +155 -0
  551. package/package/dist/take-frame.d.ts +13 -0
  552. package/package/dist/take-frame.js +47 -0
  553. package/package/dist/test/actual-concurrency.test.d.ts +1 -0
  554. package/package/dist/test/artifacts.test.d.ts +1 -0
  555. package/package/dist/test/asset-calculation.test.d.ts +1 -0
  556. package/package/dist/test/asset-compression.test.d.ts +1 -0
  557. package/package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +1 -0
  558. package/package/dist/test/browser-log-message.test.d.ts +1 -0
  559. package/package/dist/test/calculate-atempo.test.d.ts +1 -0
  560. package/package/dist/test/compositor-rust.test.d.ts +1 -0
  561. package/package/dist/test/crf.test.d.ts +1 -0
  562. package/package/dist/test/derive-codec-from-file-extension.test.d.ts +1 -0
  563. package/package/dist/test/dont-skip-assets.test.d.ts +1 -0
  564. package/package/dist/test/download-file.test.d.ts +1 -0
  565. package/package/dist/test/even-dimensions.test.d.ts +1 -0
  566. package/package/dist/test/extra-frames-to-capture.test.d.ts +1 -0
  567. package/package/dist/test/extract-audio.test.d.ts +1 -0
  568. package/package/dist/test/extract-frame-rust.test.d.ts +1 -0
  569. package/package/dist/test/ffmpeg-filters.test.d.ts +1 -0
  570. package/package/dist/test/ffmpeg-merge-filter.test.d.ts +1 -0
  571. package/package/dist/test/ffmpeg-volume-expression.test.d.ts +1 -0
  572. package/package/dist/test/file-extension.test.d.ts +1 -0
  573. package/package/dist/test/find-closest-package-json.test.d.ts +1 -0
  574. package/package/dist/test/flatten-volume-array.test.d.ts +1 -0
  575. package/package/dist/test/format-logs.test.d.ts +1 -0
  576. package/package/dist/test/frame-padded-index.test.d.ts +1 -0
  577. package/package/dist/test/frame.test.d.ts +1 -0
  578. package/package/dist/test/get-assets-for-markup.d.ts +8 -0
  579. package/package/dist/test/get-audio-channels.test.d.ts +1 -0
  580. package/package/dist/test/get-bundle-url-from-serve-url.test.d.ts +1 -0
  581. package/package/dist/test/get-silent-parts.test.d.ts +1 -0
  582. package/package/dist/test/guess-extension-for-media.test.d.ts +1 -0
  583. package/package/dist/test/handle-weird-file-names.test.d.ts +1 -0
  584. package/package/dist/test/log-level.test.d.ts +1 -0
  585. package/package/dist/test/mime-types.test.d.ts +1 -0
  586. package/package/dist/test/offthread-extract-url.test.d.ts +1 -0
  587. package/package/dist/test/parse-ffmpeg-progress.test.d.ts +1 -0
  588. package/package/dist/test/partitions.test.d.ts +1 -0
  589. package/package/dist/test/pixel-format.test.d.ts +1 -0
  590. package/package/dist/test/port-config.test.d.ts +1 -0
  591. package/package/dist/test/port-selection.test.d.ts +1 -0
  592. package/package/dist/test/prores-profile.test.d.ts +1 -0
  593. package/package/dist/test/render-still.test.d.ts +1 -0
  594. package/package/dist/test/rust-errors.test.d.ts +1 -0
  595. package/package/dist/test/rust-get-video-metadata.test.d.ts +1 -0
  596. package/package/dist/test/rust-memory-usage.test.d.ts +1 -0
  597. package/package/dist/test/sanitize-file-path.test.d.ts +1 -0
  598. package/package/dist/test/serve-url.test.d.ts +1 -0
  599. package/package/dist/test/symbolicate-remote-stack.test.d.ts +1 -0
  600. package/package/dist/test/validate-concurrency.test.d.ts +1 -0
  601. package/package/dist/test/validate-config-stitcher.test.d.ts +1 -0
  602. package/package/dist/test/validate-config.test.d.ts +1 -0
  603. package/package/dist/test/validate-even-dimensions-with-codec.test.d.ts +1 -0
  604. package/package/dist/test/validate-image-format.test.d.ts +1 -0
  605. package/package/dist/test/webpack-to-serve-url.test.d.ts +1 -0
  606. package/package/dist/test-gpu.d.ts +21 -0
  607. package/package/dist/test-gpu.js +45 -0
  608. package/package/dist/tmp-dir.d.ts +1 -0
  609. package/package/dist/tmp-dir.js +63 -0
  610. package/package/dist/to-megabytes.d.ts +1 -0
  611. package/package/dist/to-megabytes.js +7 -0
  612. package/package/dist/truthy.d.ts +3 -0
  613. package/package/dist/truthy.js +6 -0
  614. package/package/dist/types.d.ts +10 -0
  615. package/package/dist/types.js +2 -0
  616. package/package/dist/v5-required-input-props.d.ts +6 -0
  617. package/package/dist/v5-required-input-props.js +2 -0
  618. package/package/dist/validate-concurrency.d.ts +7 -0
  619. package/package/dist/validate-concurrency.js +38 -0
  620. package/package/dist/validate-even-dimensions-with-codec.d.ts +14 -0
  621. package/package/dist/validate-even-dimensions-with-codec.js +40 -0
  622. package/package/dist/validate-every-nth-frame.d.ts +1 -0
  623. package/package/dist/validate-every-nth-frame.js +24 -0
  624. package/package/dist/validate-ffmpeg-override.d.ts +2 -0
  625. package/package/dist/validate-ffmpeg-override.js +12 -0
  626. package/package/dist/validate-number-of-gif-loops.d.ts +2 -0
  627. package/package/dist/validate-number-of-gif-loops.js +24 -0
  628. package/package/dist/validate-output-filename.d.ts +9 -0
  629. package/package/dist/validate-output-filename.js +32 -0
  630. package/package/dist/validate-puppeteer-timeout.d.ts +1 -0
  631. package/package/dist/validate-puppeteer-timeout.js +25 -0
  632. package/package/dist/validate-scale.d.ts +1 -0
  633. package/package/dist/validate-scale.js +26 -0
  634. package/package/dist/validate-videobitrate.d.ts +1 -0
  635. package/package/dist/validate-videobitrate.js +20 -0
  636. package/package/dist/validate.d.ts +4 -0
  637. package/package/dist/validate.js +8 -0
  638. package/package/dist/wait-for-symbolication-error-to-be-done.d.ts +3 -0
  639. package/package/dist/wait-for-symbolication-error-to-be-done.js +8 -0
  640. package/package/dist/wrap-with-error-handling.d.ts +8 -0
  641. package/package/dist/wrap-with-error-handling.js +18 -0
  642. package/package/dist/ws/ws-types.d.ts +15 -0
  643. package/package/dist/ws/ws-types.js +8 -0
  644. package/package/ensure-browser.mjs +3337 -0
  645. package/package.json +105 -104
  646. package/LICENSE.md +0 -49
  647. package/bunfig.toml +0 -2
  648. package/dist/assets/change-tempo.d.ts +0 -34
  649. package/dist/assets/change-tempo.js +0 -287
  650. package/dist/assets/change-tonefrequency.d.ts +0 -2
  651. package/dist/assets/change-tonefrequency.js +0 -28
  652. package/dist/assets/resample-audiodata.d.ts +0 -6
  653. package/dist/assets/resample-audiodata.js +0 -54
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.delayRenderTimeoutInMillisecondsOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const TimeoutSettings_1 = require("../browser/TimeoutSettings");
6
+ let currentTimeout = TimeoutSettings_1.DEFAULT_TIMEOUT;
7
+ const validate = (value) => {
8
+ if (typeof value !== 'number') {
9
+ throw new Error('--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got ' +
10
+ JSON.stringify(value));
11
+ }
12
+ };
13
+ const cliFlag = 'timeout';
14
+ exports.delayRenderTimeoutInMillisecondsOption = {
15
+ name: 'delayRender() timeout',
16
+ cliFlag,
17
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["A number describing how long the render may take to resolve all", ' ', (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/delay-render", children: (0, jsx_runtime_1.jsx)("code", { children: "delayRender()" }) }), ' ', "calls ", (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/timeout", children: "before it times out" }), ". Default: ", (0, jsx_runtime_1.jsx)("code", { children: "30000" })] })),
18
+ ssrName: 'timeoutInMilliseconds',
19
+ docLink: 'https://www.remotion.dev/docs/timeout',
20
+ type: 0,
21
+ getValue: ({ commandLine }) => {
22
+ if (commandLine[cliFlag] !== undefined) {
23
+ return {
24
+ source: 'cli',
25
+ value: commandLine[cliFlag],
26
+ };
27
+ }
28
+ if (currentTimeout !== null) {
29
+ validate(currentTimeout);
30
+ return {
31
+ source: 'config',
32
+ value: currentTimeout,
33
+ };
34
+ }
35
+ return {
36
+ source: 'default',
37
+ value: TimeoutSettings_1.DEFAULT_TIMEOUT,
38
+ };
39
+ },
40
+ setConfig: (value) => {
41
+ validate(value);
42
+ currentTimeout = value;
43
+ },
44
+ };
@@ -0,0 +1,15 @@
1
+ export declare const videoBitrateOption: {
2
+ name: string;
3
+ cliFlag: "video-bitrate";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: string;
6
+ docLink: string;
7
+ type: string | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ source: string;
12
+ value: string | null;
13
+ };
14
+ setConfig: (bitrate: string | null) => void;
15
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.videoBitrateOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let videoBitrate = null;
6
+ const cliFlag = 'video-bitrate';
7
+ exports.videoBitrateOption = {
8
+ name: 'Video Bitrate',
9
+ cliFlag,
10
+ 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:v" }), " parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video 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."] })),
11
+ ssrName: 'videoBitrate',
12
+ docLink: 'https://www.remotion.dev/docs/renderer/render-media#videobitrate',
13
+ type: '',
14
+ getValue: ({ commandLine }) => {
15
+ if (commandLine[cliFlag] !== undefined) {
16
+ return {
17
+ source: 'cli',
18
+ value: commandLine[cliFlag],
19
+ };
20
+ }
21
+ if (videoBitrate !== null) {
22
+ return {
23
+ source: 'config',
24
+ value: videoBitrate,
25
+ };
26
+ }
27
+ return {
28
+ source: 'default',
29
+ value: null,
30
+ };
31
+ },
32
+ setConfig: (bitrate) => {
33
+ videoBitrate = bitrate;
34
+ },
35
+ };
@@ -0,0 +1,19 @@
1
+ export declare const getMediaCacheSizeInBytes: () => number | null;
2
+ export declare const mediaCacheSizeInBytesOption: {
3
+ name: string;
4
+ cliFlag: "media-cache-size-in-bytes";
5
+ description: () => import("react/jsx-runtime").JSX.Element;
6
+ ssrName: "mediaCacheSizeInBytes";
7
+ docLink: string;
8
+ type: number | null;
9
+ getValue: ({ commandLine }: {
10
+ commandLine: Record<string, unknown>;
11
+ }) => {
12
+ source: string;
13
+ value: number;
14
+ } | {
15
+ source: string;
16
+ value: null;
17
+ };
18
+ setConfig: (size: number | null) => void;
19
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mediaCacheSizeInBytesOption = exports.getMediaCacheSizeInBytes = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let mediaCacheSizeInBytes = null;
6
+ const getMediaCacheSizeInBytes = () => {
7
+ return mediaCacheSizeInBytes;
8
+ };
9
+ exports.getMediaCacheSizeInBytes = getMediaCacheSizeInBytes;
10
+ const cliFlag = 'media-cache-size-in-bytes';
11
+ exports.mediaCacheSizeInBytesOption = {
12
+ name: '@remotion/media cache size',
13
+ cliFlag,
14
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Specify the maximum size of the cache that ", (0, jsx_runtime_1.jsx)("code", { children: "<Video>" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "<Audio>" }), " from ", (0, jsx_runtime_1.jsx)("code", { children: "@remotion/media" }), " may use combined, in bytes. ", (0, jsx_runtime_1.jsx)("br", {}), "The default is half of the available system memory when the render starts."] })),
15
+ ssrName: 'mediaCacheSizeInBytes',
16
+ docLink: 'https://www.remotion.dev/docs/media/video#setting-the-cache-size',
17
+ type: 0,
18
+ getValue: ({ commandLine }) => {
19
+ if (commandLine[cliFlag] !== undefined) {
20
+ return {
21
+ source: 'cli',
22
+ value: commandLine[cliFlag],
23
+ };
24
+ }
25
+ if (mediaCacheSizeInBytes !== null) {
26
+ return {
27
+ source: 'config',
28
+ value: mediaCacheSizeInBytes,
29
+ };
30
+ }
31
+ return {
32
+ source: 'default',
33
+ value: null,
34
+ };
35
+ },
36
+ setConfig: (size) => {
37
+ mediaCacheSizeInBytes = size !== null && size !== void 0 ? size : null;
38
+ },
39
+ };
@@ -0,0 +1,23 @@
1
+ import type { Codec, CodecOrUndefined } from '../codec';
2
+ export declare const getOutputCodecOrUndefined: () => CodecOrUndefined;
3
+ export declare const videoCodecOption: {
4
+ name: string;
5
+ cliFlag: "codec";
6
+ description: () => import("react/jsx-runtime").JSX.Element;
7
+ ssrName: string;
8
+ docLink: string;
9
+ type: Codec;
10
+ getValue: ({ commandLine }: {
11
+ commandLine: Record<string, unknown>;
12
+ }, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
13
+ outName: string | null;
14
+ downloadName: string | null;
15
+ configFile: Codec | null;
16
+ uiCodec: Codec | null;
17
+ compositionCodec: Codec | null;
18
+ }) => {
19
+ value: Codec;
20
+ source: string;
21
+ };
22
+ setConfig: (newCodec: CodecOrUndefined) => void;
23
+ };
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.videoCodecOption = exports.getOutputCodecOrUndefined = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const codec_1 = require("../codec");
6
+ const get_extension_from_codec_1 = require("../get-extension-from-codec");
7
+ const get_extension_of_filename_1 = require("../get-extension-of-filename");
8
+ let codec;
9
+ const setCodec = (newCodec) => {
10
+ if (newCodec === undefined) {
11
+ codec = undefined;
12
+ return;
13
+ }
14
+ if (!codec_1.validCodecs.includes(newCodec)) {
15
+ throw new Error(`Codec must be one of the following: ${codec_1.validCodecs.join(', ')}, but got ${newCodec}`);
16
+ }
17
+ codec = newCodec;
18
+ };
19
+ const getOutputCodecOrUndefined = () => {
20
+ return codec;
21
+ };
22
+ exports.getOutputCodecOrUndefined = getOutputCodecOrUndefined;
23
+ const deriveCodecsFromFilename = (extension) => {
24
+ var _a, _b;
25
+ if (extension === null) {
26
+ return { possible: [], default: null };
27
+ }
28
+ return {
29
+ default: (_a = get_extension_from_codec_1.defaultCodecsForFileExtension[extension]) !== null && _a !== void 0 ? _a : null,
30
+ possible: (_b = (0, get_extension_from_codec_1.makeFileExtensionMap)()[extension]) !== null && _b !== void 0 ? _b : [],
31
+ };
32
+ };
33
+ const cliFlag = 'codec';
34
+ exports.videoCodecOption = {
35
+ name: 'Codec',
36
+ cliFlag,
37
+ description: () => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "H264 works well in most cases, but sometimes it's worth going for a different codec. WebM achieves higher compression but is slower to render. WebM, GIF and ProRes support transparency." })),
38
+ ssrName: 'codec',
39
+ docLink: 'https://www.remotion.dev/docs/encoding/#choosing-a-codec',
40
+ type: '',
41
+ getValue: ({ commandLine }, { compositionCodec, configFile, downloadName, outName, uiCodec, }) => {
42
+ if (uiCodec) {
43
+ return { value: uiCodec, source: 'via UI' };
44
+ }
45
+ const downloadNameExtension = (0, get_extension_of_filename_1.getExtensionOfFilename)(downloadName);
46
+ const outNameExtension = (0, get_extension_of_filename_1.getExtensionOfFilename)(outName);
47
+ const derivedDownloadCodecs = deriveCodecsFromFilename(downloadNameExtension);
48
+ const derivedOutNameCodecs = deriveCodecsFromFilename(outNameExtension);
49
+ if (derivedDownloadCodecs.possible.length > 0 &&
50
+ derivedOutNameCodecs.possible.length > 0 &&
51
+ derivedDownloadCodecs.possible.join('') !==
52
+ derivedOutNameCodecs.possible.join('')) {
53
+ throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
54
+ }
55
+ const cliArgument = commandLine[cliFlag];
56
+ if (cliArgument) {
57
+ if (derivedDownloadCodecs.possible.length > 0 &&
58
+ derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
59
+ throw new TypeError(`The download name is ${downloadName} but --codec=${cliArgument} was passed. The download name implies a codec of ${derivedDownloadCodecs.possible.join(' or ')} which does not align with the --codec flag.`);
60
+ }
61
+ if (derivedOutNameCodecs.possible.length > 0 &&
62
+ derivedOutNameCodecs.possible.indexOf(cliArgument) === -1) {
63
+ throw new TypeError(`The out name is ${outName} but --codec=${cliArgument} was passed. The out name implies a codec of ${derivedOutNameCodecs.possible.join(' or ')} which does not align with the --codec flag.`);
64
+ }
65
+ return { value: cliArgument, source: 'from --codec flag' };
66
+ }
67
+ if (derivedDownloadCodecs.possible.length > 0) {
68
+ return {
69
+ value: derivedDownloadCodecs.default,
70
+ source: 'derived from download name',
71
+ };
72
+ }
73
+ if (derivedOutNameCodecs.possible.length > 0) {
74
+ if (compositionCodec &&
75
+ derivedOutNameCodecs.possible.includes(compositionCodec)) {
76
+ return {
77
+ value: compositionCodec,
78
+ source: 'derived from out name + compositionCodec from calculateMetadata',
79
+ };
80
+ }
81
+ if (configFile && derivedOutNameCodecs.possible.includes(configFile)) {
82
+ return {
83
+ value: configFile,
84
+ source: 'derived from out name + config file',
85
+ };
86
+ }
87
+ return {
88
+ value: derivedOutNameCodecs.default,
89
+ source: 'derived from out name',
90
+ };
91
+ }
92
+ if (compositionCodec) {
93
+ return { value: compositionCodec, source: 'via calculateMetadata' };
94
+ }
95
+ if (configFile) {
96
+ return {
97
+ value: configFile,
98
+ source: 'Config file',
99
+ };
100
+ }
101
+ return { value: codec_1.DEFAULT_CODEC, source: 'default' };
102
+ },
103
+ setConfig: setCodec,
104
+ };
@@ -0,0 +1,10 @@
1
+ export declare const webhookCustomDataOption: {
2
+ name: string;
3
+ cliFlag: "webhook-custom-data";
4
+ description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "customData";
6
+ docLink: string;
7
+ type: Record<string, unknown> | null;
8
+ getValue: () => never;
9
+ setConfig: () => never;
10
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webhookCustomDataOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'webhook-custom-data';
6
+ exports.webhookCustomDataOption = {
7
+ name: 'Webhook custom data',
8
+ cliFlag,
9
+ description: (type) => ((0, 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
+ ? 'Alternatively, pass a file path pointing to a JSON file'
11
+ : null] })),
12
+ ssrName: 'customData',
13
+ docLink: 'https://www.remotion.dev/docs/lambda/webhooks',
14
+ type: {},
15
+ getValue: () => {
16
+ throw new Error('Option resolution not implemented');
17
+ },
18
+ setConfig: () => {
19
+ throw new Error('Not implemented');
20
+ },
21
+ };
@@ -0,0 +1,25 @@
1
+ import type { Codec } from '../codec';
2
+ export declare const x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
3
+ export type X264Preset = (typeof x264PresetOptions)[number];
4
+ export declare const validateSelectedCodecAndPresetCombination: ({ codec, x264Preset, }: {
5
+ codec: Codec;
6
+ x264Preset: X264Preset | null;
7
+ }) => void;
8
+ export declare const x264Option: {
9
+ name: string;
10
+ cliFlag: "x264-preset";
11
+ description: () => import("react/jsx-runtime").JSX.Element;
12
+ ssrName: "x264Preset";
13
+ docLink: string;
14
+ type: X264Preset | null;
15
+ getValue: ({ commandLine }: {
16
+ commandLine: Record<string, unknown>;
17
+ }) => {
18
+ value: X264Preset;
19
+ source: string;
20
+ } | {
21
+ value: null;
22
+ source: string;
23
+ };
24
+ setConfig: (profile: X264Preset | null) => void;
25
+ };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.x264Option = exports.validateSelectedCodecAndPresetCombination = exports.x264PresetOptions = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ exports.x264PresetOptions = [
6
+ 'ultrafast',
7
+ 'superfast',
8
+ 'veryfast',
9
+ 'faster',
10
+ 'fast',
11
+ 'medium',
12
+ 'slow',
13
+ 'slower',
14
+ 'veryslow',
15
+ 'placebo',
16
+ ];
17
+ let preset = null;
18
+ const validateSelectedCodecAndPresetCombination = ({ codec, x264Preset, }) => {
19
+ if (x264Preset !== null &&
20
+ codec !== 'h264' &&
21
+ codec !== 'h264-mkv' &&
22
+ codec !== 'h264-ts') {
23
+ throw new TypeError(`You have set a x264 preset but the codec is "${codec}". Set the codec to "h264" or remove the Preset profile.`);
24
+ }
25
+ if (x264Preset !== null &&
26
+ !exports.x264PresetOptions.includes(x264Preset)) {
27
+ throw new TypeError(`The Preset profile "${x264Preset}" is not valid. Valid options are ${exports.x264PresetOptions
28
+ .map((p) => `"${p}"`)
29
+ .join(', ')}`);
30
+ }
31
+ };
32
+ exports.validateSelectedCodecAndPresetCombination = validateSelectedCodecAndPresetCombination;
33
+ const cliFlag = 'x264-preset';
34
+ const DEFAULT_PRESET = 'medium';
35
+ exports.x264Option = {
36
+ name: 'x264 Preset',
37
+ cliFlag,
38
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Sets a x264 preset profile. Only applies to videos rendered with", ' ', (0, jsx_runtime_1.jsx)("code", { children: "h264" }), " codec.", (0, jsx_runtime_1.jsx)("br", {}), "Possible values: ", (0, jsx_runtime_1.jsx)("code", { children: "superfast" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "veryfast" }), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "faster" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "fast" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "medium" }), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "slow" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "slower" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "veryslow" }), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "placebo" }), ".", (0, jsx_runtime_1.jsx)("br", {}), "Default: ", (0, jsx_runtime_1.jsx)("code", { children: DEFAULT_PRESET })] })),
39
+ ssrName: 'x264Preset',
40
+ docLink: 'https://www.remotion.dev/docs/renderer/render-media',
41
+ type: 'fast',
42
+ getValue: ({ commandLine }) => {
43
+ const value = commandLine[cliFlag];
44
+ if (typeof value !== 'undefined') {
45
+ return { value: value, source: 'cli' };
46
+ }
47
+ if (preset !== null) {
48
+ return { value: preset, source: 'config' };
49
+ }
50
+ return { value: null, source: 'default' };
51
+ },
52
+ setConfig: (profile) => {
53
+ preset = profile;
54
+ },
55
+ };
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_OVERWRITE = true;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_OVERWRITE = void 0;
4
+ exports.DEFAULT_OVERWRITE = true;
@@ -0,0 +1 @@
1
+ export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType>(fn: (..._arguments: Arguments) => PromiseLike<ReturnType> | ReturnType, ...args: Arguments) => Promise<ReturnType>;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pLimit = void 0;
4
+ const pLimit = (concurrency) => {
5
+ const queue = [];
6
+ let activeCount = 0;
7
+ const next = () => {
8
+ var _a;
9
+ activeCount--;
10
+ if (queue.length > 0) {
11
+ (_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
12
+ }
13
+ };
14
+ const run = async (fn, resolve, ...args) => {
15
+ activeCount++;
16
+ // eslint-disable-next-line require-await
17
+ const result = (async () => fn(...args))();
18
+ resolve(result);
19
+ try {
20
+ await result;
21
+ }
22
+ catch (_a) { }
23
+ next();
24
+ };
25
+ const enqueue = (fn, resolve, ...args) => {
26
+ queue.push(() => run(fn, resolve, ...args));
27
+ (async () => {
28
+ var _a;
29
+ // This function needs to wait until the next microtask before comparing
30
+ // `activeCount` to `concurrency`, because `activeCount` is updated asynchronously
31
+ // when the run function is dequeued and called. The comparison in the if-statement
32
+ // needs to happen asynchronously as well to get an up-to-date value for `activeCount`.
33
+ await Promise.resolve();
34
+ if (activeCount < concurrency && queue.length > 0) {
35
+ (_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
36
+ }
37
+ })();
38
+ };
39
+ const generator = (fn, ...args) => new Promise((resolve) => {
40
+ enqueue(fn, resolve, ...args);
41
+ });
42
+ Object.defineProperties(generator, {
43
+ activeCount: {
44
+ get: () => activeCount,
45
+ },
46
+ pendingCount: {
47
+ get: () => queue.length,
48
+ },
49
+ clearQueue: {
50
+ value: () => {
51
+ queue.length = 0;
52
+ },
53
+ },
54
+ });
55
+ return generator;
56
+ };
57
+ exports.pLimit = pLimit;
@@ -0,0 +1,7 @@
1
+ export type UnsymbolicatedStackFrame = {
2
+ functionName: string | null;
3
+ fileName: string;
4
+ lineNumber: number;
5
+ columnNumber: number;
6
+ };
7
+ export declare const parseStack: (stack: string[]) => UnsymbolicatedStackFrame[];
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseStack = void 0;
4
+ const regexValidFrame_Chrome = /^\s*(at|in)\s.+(:\d+)/;
5
+ const regexValidFrame_FireFox = /(^|@)\S+:\d+|.+line\s+\d+\s+>\s+(eval|Function).+/;
6
+ const regexExtractLocation = /\(?(.+?)(?::(\d+))?(?::(\d+))?\)?$/;
7
+ function extractLocation(token) {
8
+ const execed = regexExtractLocation.exec(token);
9
+ if (!execed) {
10
+ throw new Error('Could not match in extractLocation');
11
+ }
12
+ return execed.slice(1).map((v) => {
13
+ const p = Number(v);
14
+ if (!isNaN(p)) {
15
+ return p;
16
+ }
17
+ return v;
18
+ });
19
+ }
20
+ const makeStackFrame = ({ functionName, fileName, lineNumber, columnNumber, }) => {
21
+ if (functionName && functionName.indexOf('Object.') === 0) {
22
+ functionName = functionName.slice('Object.'.length);
23
+ }
24
+ if (
25
+ // Chrome has a bug with inferring function.name:
26
+ // https://github.com/facebook/create-react-app/issues/2097
27
+ // Let's ignore a meaningless name we get for top-level modules.
28
+ functionName === 'friendlySyntaxErrorLabel' ||
29
+ functionName === 'exports.__esModule' ||
30
+ functionName === '<anonymous>' ||
31
+ !functionName) {
32
+ functionName = null;
33
+ }
34
+ return {
35
+ columnNumber,
36
+ fileName,
37
+ functionName,
38
+ lineNumber,
39
+ };
40
+ };
41
+ const parseStack = (stack) => {
42
+ const frames = stack
43
+ .filter((e) => regexValidFrame_Chrome.test(e) || regexValidFrame_FireFox.test(e))
44
+ .map((e) => {
45
+ if (regexValidFrame_FireFox.test(e)) {
46
+ // Strip eval, we don't care about it
47
+ let isEval = false;
48
+ if (/ > (eval|Function)/.test(e)) {
49
+ e = e.replace(/ line (\d+)(?: > eval line \d+)* > (eval|Function):\d+:\d+/g, ':$1');
50
+ isEval = true;
51
+ }
52
+ const _data = e.split(/[@]/g);
53
+ const _last = _data.pop();
54
+ if (!_last) {
55
+ throw new Error('could not get last');
56
+ }
57
+ const [_fileName, _lineNumber, _columnNumber] = extractLocation(_last);
58
+ return makeStackFrame({
59
+ functionName: _data.join('@') || (isEval ? 'eval' : null),
60
+ fileName: _fileName,
61
+ lineNumber: _lineNumber,
62
+ columnNumber: _columnNumber,
63
+ });
64
+ }
65
+ // Strip eval, we don't care about it
66
+ if (e.indexOf('(eval ') !== -1) {
67
+ e = e.replace(/(\(eval at [^()]*)|(\),.*$)/g, '');
68
+ }
69
+ if (e.indexOf('(at ') !== -1) {
70
+ e = e.replace(/\(at /, '(');
71
+ }
72
+ const data = e.trim().split(/\s+/g).slice(1);
73
+ const last = data.pop();
74
+ if (!last) {
75
+ throw new Error('could not get last');
76
+ }
77
+ const [fileName, lineNumber, columnNumber] = extractLocation(last);
78
+ return makeStackFrame({
79
+ functionName: data.join(' ') || null,
80
+ fileName,
81
+ lineNumber,
82
+ columnNumber,
83
+ });
84
+ });
85
+ return frames;
86
+ };
87
+ exports.parseStack = parseStack;
@@ -0,0 +1 @@
1
+ export declare const parseFfmpegProgress: (input: string, fps: number) => number | undefined;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseFfmpegProgress = void 0;
4
+ const parseFfmpegProgress = (input, fps) => {
5
+ const match = input.match(/frame=(\s+)?([0-9]+)\s/);
6
+ if (match) {
7
+ return Number(match[2]);
8
+ }
9
+ const match2 = input.match(/time=(\d+):(\d+):(\d+).(\d+)\s/);
10
+ if (match2) {
11
+ const [, hours, minutes, seconds, hundreds] = match2;
12
+ return ((Number(hundreds) / 100) * fps +
13
+ Number(seconds) * fps +
14
+ Number(minutes) * fps * 60 +
15
+ Number(hours) * fps * 60 * 60);
16
+ }
17
+ };
18
+ exports.parseFfmpegProgress = parseFfmpegProgress;
@@ -0,0 +1 @@
1
+ export declare const pathNormalize: (p: string) => string;