@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.
- package/dist/render-frames.js +1 -1
- package/dist/test/actual-concurrency.test.d.ts +1 -0
- package/dist/test/artifacts.test.d.ts +1 -0
- package/dist/test/asset-calculation.test.d.ts +1 -0
- package/dist/test/asset-compression.test.d.ts +1 -0
- package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +1 -0
- package/dist/test/browser-log-message.test.d.ts +1 -0
- package/dist/test/calculate-atempo.test.d.ts +1 -0
- package/dist/test/compositor-rust.test.d.ts +1 -0
- package/dist/test/crf.test.d.ts +1 -0
- package/dist/test/derive-codec-from-file-extension.test.d.ts +1 -0
- package/dist/test/dont-skip-assets.test.d.ts +1 -0
- package/dist/test/download-file.test.d.ts +1 -0
- package/dist/test/even-dimensions.test.d.ts +1 -0
- package/dist/test/extra-frames-to-capture.test.d.ts +1 -0
- package/dist/test/extract-audio.test.d.ts +1 -0
- package/dist/test/extract-frame-rust.test.d.ts +1 -0
- package/dist/test/ffmpeg-filters.test.d.ts +1 -0
- package/dist/test/ffmpeg-merge-filter.test.d.ts +1 -0
- package/dist/test/ffmpeg-volume-expression.test.d.ts +1 -0
- package/dist/test/file-extension.test.d.ts +1 -0
- package/dist/test/find-closest-package-json.test.d.ts +1 -0
- package/dist/test/flatten-volume-array.test.d.ts +1 -0
- package/dist/test/format-logs.test.d.ts +1 -0
- package/dist/test/frame-padded-index.test.d.ts +1 -0
- package/dist/test/frame.test.d.ts +1 -0
- package/dist/test/get-assets-for-markup.d.ts +8 -0
- package/dist/test/get-audio-channels.test.d.ts +1 -0
- package/dist/test/get-bundle-url-from-serve-url.test.d.ts +1 -0
- package/dist/test/get-silent-parts.test.d.ts +1 -0
- package/dist/test/guess-extension-for-media.test.d.ts +1 -0
- package/dist/test/handle-weird-file-names.test.d.ts +1 -0
- package/dist/test/log-level.test.d.ts +1 -0
- package/dist/test/mime-types.test.d.ts +1 -0
- package/dist/test/offthread-extract-url.test.d.ts +1 -0
- package/dist/test/parse-ffmpeg-progress.test.d.ts +1 -0
- package/dist/test/partitions.test.d.ts +1 -0
- package/dist/test/pixel-format.test.d.ts +1 -0
- package/dist/test/port-config.test.d.ts +1 -0
- package/dist/test/port-selection.test.d.ts +1 -0
- package/dist/test/prores-profile.test.d.ts +1 -0
- package/dist/test/render-still.test.d.ts +1 -0
- package/dist/test/rust-errors.test.d.ts +1 -0
- package/dist/test/rust-get-video-metadata.test.d.ts +1 -0
- package/dist/test/rust-memory-usage.test.d.ts +1 -0
- package/dist/test/sanitize-file-path.test.d.ts +1 -0
- package/dist/test/serve-url.test.d.ts +1 -0
- package/dist/test/symbolicate-remote-stack.test.d.ts +1 -0
- package/dist/test/validate-concurrency.test.d.ts +1 -0
- package/dist/test/validate-config-stitcher.test.d.ts +1 -0
- package/dist/test/validate-config.test.d.ts +1 -0
- package/dist/test/validate-even-dimensions-with-codec.test.d.ts +1 -0
- package/dist/test/validate-image-format.test.d.ts +1 -0
- package/dist/test/webpack-to-serve-url.test.d.ts +1 -0
- package/package/dist/assets/apply-tone-frequency.d.ts +11 -0
- package/package/dist/assets/apply-tone-frequency.js +34 -0
- package/package/dist/assets/calculate-asset-positions.d.ts +3 -0
- package/package/dist/assets/calculate-asset-positions.js +72 -0
- package/package/dist/assets/calculate-atempo.d.ts +1 -0
- package/package/dist/assets/calculate-atempo.js +16 -0
- package/package/dist/assets/convert-assets-to-file-urls.d.ts +13 -0
- package/package/dist/assets/convert-assets-to-file-urls.js +36 -0
- package/package/dist/assets/download-and-map-assets-to-file.d.ts +37 -0
- package/package/dist/assets/download-and-map-assets-to-file.js +312 -0
- package/package/dist/assets/download-file.d.ts +18 -0
- package/package/dist/assets/download-file.js +135 -0
- package/package/dist/assets/download-map.d.ts +55 -0
- package/package/dist/assets/download-map.js +63 -0
- package/package/dist/assets/ffmpeg-volume-expression.d.ts +12 -0
- package/package/dist/assets/ffmpeg-volume-expression.js +96 -0
- package/package/dist/assets/flatten-volume-array.d.ts +3 -0
- package/package/dist/assets/flatten-volume-array.js +26 -0
- package/package/dist/assets/get-audio-channels.d.ts +20 -0
- package/package/dist/assets/get-audio-channels.js +78 -0
- package/package/dist/assets/inline-audio-mixing.d.ts +22 -0
- package/package/dist/assets/inline-audio-mixing.js +189 -0
- package/package/dist/assets/read-file.d.ts +7 -0
- package/package/dist/assets/read-file.js +97 -0
- package/package/dist/assets/round-volume-to-avoid-stack-overflow.d.ts +1 -0
- package/package/dist/assets/round-volume-to-avoid-stack-overflow.js +17 -0
- package/package/dist/assets/sanitize-filename.d.ts +1 -0
- package/package/dist/assets/sanitize-filename.js +58 -0
- package/package/dist/assets/sanitize-filepath.d.ts +1 -0
- package/package/dist/assets/sanitize-filepath.js +16 -0
- package/package/dist/assets/truncate-utf8-bytes.d.ts +1 -0
- package/package/dist/assets/truncate-utf8-bytes.js +36 -0
- package/package/dist/assets/types.d.ts +18 -0
- package/package/dist/assets/types.js +21 -0
- package/package/dist/browser/Browser.d.ts +97 -0
- package/package/dist/browser/Browser.js +246 -0
- package/package/dist/browser/BrowserFetcher.d.ts +33 -0
- package/package/dist/browser/BrowserFetcher.js +215 -0
- package/package/dist/browser/BrowserPage.d.ts +104 -0
- package/package/dist/browser/BrowserPage.js +436 -0
- package/package/dist/browser/BrowserRunner.d.ts +33 -0
- package/package/dist/browser/BrowserRunner.js +303 -0
- package/package/dist/browser/Connection.d.ts +49 -0
- package/package/dist/browser/Connection.js +258 -0
- package/package/dist/browser/ConsoleMessage.d.ts +42 -0
- package/package/dist/browser/ConsoleMessage.js +47 -0
- package/package/dist/browser/DOMWorld.d.ts +56 -0
- package/package/dist/browser/DOMWorld.js +272 -0
- package/package/dist/browser/Errors.d.ts +25 -0
- package/package/dist/browser/Errors.js +35 -0
- package/package/dist/browser/EvalTypes.d.ts +27 -0
- package/package/dist/browser/EvalTypes.js +17 -0
- package/package/dist/browser/EventEmitter.d.ts +23 -0
- package/package/dist/browser/EventEmitter.js +53 -0
- package/package/dist/browser/ExecutionContext.d.ts +34 -0
- package/package/dist/browser/ExecutionContext.js +174 -0
- package/package/dist/browser/FrameManager.d.ts +89 -0
- package/package/dist/browser/FrameManager.js +487 -0
- package/package/dist/browser/HTTPRequest.d.ts +29 -0
- package/package/dist/browser/HTTPRequest.js +39 -0
- package/package/dist/browser/HTTPResponse.d.ts +21 -0
- package/package/dist/browser/HTTPResponse.js +41 -0
- package/package/dist/browser/JSHandle.d.ts +35 -0
- package/package/dist/browser/JSHandle.js +90 -0
- package/package/dist/browser/LaunchOptions.d.ts +26 -0
- package/package/dist/browser/LaunchOptions.js +17 -0
- package/package/dist/browser/Launcher.d.ts +18 -0
- package/package/dist/browser/Launcher.js +41 -0
- package/package/dist/browser/LifecycleWatcher.d.ts +29 -0
- package/package/dist/browser/LifecycleWatcher.js +180 -0
- package/package/dist/browser/NetworkEventManager.d.ts +34 -0
- package/package/dist/browser/NetworkEventManager.js +85 -0
- package/package/dist/browser/NetworkManager.d.ts +37 -0
- package/package/dist/browser/NetworkManager.js +246 -0
- package/package/dist/browser/NodeWebSocketTransport.d.ts +19 -0
- package/package/dist/browser/NodeWebSocketTransport.js +81 -0
- package/package/dist/browser/PuppeteerViewport.d.ts +5 -0
- package/package/dist/browser/PuppeteerViewport.js +2 -0
- package/package/dist/browser/ScreenshotOptions.d.ts +0 -0
- package/package/dist/browser/ScreenshotOptions.js +1 -0
- package/package/dist/browser/Target.d.ts +72 -0
- package/package/dist/browser/Target.js +161 -0
- package/package/dist/browser/TaskQueue.d.ts +20 -0
- package/package/dist/browser/TaskQueue.js +47 -0
- package/package/dist/browser/TimeoutSettings.d.ts +24 -0
- package/package/dist/browser/TimeoutSettings.js +62 -0
- package/package/dist/browser/assert.d.ts +1 -0
- package/package/dist/browser/assert.js +9 -0
- package/package/dist/browser/browser-download-progress-bar.d.ts +7 -0
- package/package/dist/browser/browser-download-progress-bar.js +31 -0
- package/package/dist/browser/devtools-commands.d.ts +274 -0
- package/package/dist/browser/devtools-commands.js +2 -0
- package/package/dist/browser/devtools-types.d.ts +1263 -0
- package/package/dist/browser/devtools-types.js +2 -0
- package/package/dist/browser/flaky-errors.d.ts +2 -0
- package/package/dist/browser/flaky-errors.js +20 -0
- package/package/dist/browser/get-download-destination.d.ts +1 -0
- package/package/dist/browser/get-download-destination.js +38 -0
- package/package/dist/browser/handle-failed-resource.d.ts +10 -0
- package/package/dist/browser/handle-failed-resource.js +21 -0
- package/package/dist/browser/mitt/index.d.ts +22 -0
- package/package/dist/browser/mitt/index.js +49 -0
- package/package/dist/browser/should-log-message.d.ts +24 -0
- package/package/dist/browser/should-log-message.js +104 -0
- package/package/dist/browser/source-map-getter.d.ts +2 -0
- package/package/dist/browser/source-map-getter.js +2 -0
- package/package/dist/browser/util.d.ts +37 -0
- package/package/dist/browser/util.js +169 -0
- package/package/dist/browser-executable.d.ts +1 -0
- package/package/dist/browser-executable.js +2 -0
- package/package/dist/browser-log.d.ts +6 -0
- package/package/dist/browser-log.js +2 -0
- package/package/dist/browser.d.ts +2 -0
- package/package/dist/browser.js +4 -0
- package/package/dist/call-ffmpeg.d.ts +22 -0
- package/package/dist/call-ffmpeg.js +53 -0
- package/package/dist/can-concat-seamlessly.d.ts +4 -0
- package/package/dist/can-concat-seamlessly.js +17 -0
- package/package/dist/can-use-parallel-encoding.d.ts +3 -0
- package/package/dist/can-use-parallel-encoding.js +19 -0
- package/package/dist/chalk/index.d.ts +55 -0
- package/package/dist/chalk/index.js +130 -0
- package/package/dist/chalk/is-color-supported.d.ts +1 -0
- package/package/dist/chalk/is-color-supported.js +55 -0
- package/package/dist/check-version-requirements.d.ts +3 -0
- package/package/dist/check-version-requirements.js +82 -0
- package/package/dist/chunk.d.ts +1 -0
- package/package/dist/chunk.js +11 -0
- package/package/dist/client.d.ts +3016 -0
- package/package/dist/client.js +57 -0
- package/package/dist/codec-supports-media.d.ts +9 -0
- package/package/dist/codec-supports-media.js +76 -0
- package/package/dist/codec.d.ts +4 -0
- package/package/dist/codec.js +17 -0
- package/package/dist/collect-assets.d.ts +7 -0
- package/package/dist/collect-assets.js +38 -0
- package/package/dist/combine-audio.d.ts +21 -0
- package/package/dist/combine-audio.js +183 -0
- package/package/dist/combine-chunks.d.ts +39 -0
- package/package/dist/combine-chunks.js +171 -0
- package/package/dist/combine-video-streams-seamlessly.d.ts +3 -0
- package/package/dist/combine-video-streams-seamlessly.js +8 -0
- package/package/dist/combine-video-streams.d.ts +17 -0
- package/package/dist/combine-video-streams.js +75 -0
- package/package/dist/compositor/compositor.d.ts +22 -0
- package/package/dist/compositor/compositor.js +182 -0
- package/package/dist/compositor/get-executable-path.d.ts +12 -0
- package/package/dist/compositor/get-executable-path.js +95 -0
- package/package/dist/compositor/get-explicit-env.d.ts +3 -0
- package/package/dist/compositor/get-explicit-env.js +13 -0
- package/package/dist/compositor/make-file-executable.d.ts +1 -0
- package/package/dist/compositor/make-file-executable.js +44 -0
- package/package/dist/compositor/make-nonce.d.ts +1 -0
- package/package/dist/compositor/make-nonce.js +8 -0
- package/package/dist/compositor/payloads.d.ts +73 -0
- package/package/dist/compositor/payloads.js +2 -0
- package/package/dist/compositor/serialize-command.d.ts +2 -0
- package/package/dist/compositor/serialize-command.js +14 -0
- package/package/dist/compress-assets.d.ts +7 -0
- package/package/dist/compress-assets.js +25 -0
- package/package/dist/compress-audio.d.ts +16 -0
- package/package/dist/compress-audio.js +44 -0
- package/package/dist/convert-number-of-gif-loops-to-ffmpeg.d.ts +1 -0
- package/package/dist/convert-number-of-gif-loops-to-ffmpeg.js +17 -0
- package/package/dist/convert-to-positive-frame-index.d.ts +4 -0
- package/package/dist/convert-to-positive-frame-index.js +8 -0
- package/package/dist/create-audio.d.ts +29 -0
- package/package/dist/create-audio.js +127 -0
- package/package/dist/create-ffmpeg-complex-filter.d.ts +10 -0
- package/package/dist/create-ffmpeg-complex-filter.js +24 -0
- package/package/dist/create-ffmpeg-merge-filter.d.ts +5 -0
- package/package/dist/create-ffmpeg-merge-filter.js +25 -0
- package/package/dist/create-silent-audio.d.ts +10 -0
- package/package/dist/create-silent-audio.js +28 -0
- package/package/dist/crf.d.ts +13 -0
- package/package/dist/crf.js +103 -0
- package/package/dist/cycle-browser-tabs.d.ts +10 -0
- package/package/dist/cycle-browser-tabs.js +50 -0
- package/package/dist/default-on-log.d.ts +2 -0
- package/package/dist/default-on-log.js +8 -0
- package/package/dist/delay-render-embedded-stack.d.ts +2 -0
- package/package/dist/delay-render-embedded-stack.js +17 -0
- package/package/dist/delete-directory.d.ts +1 -0
- package/package/dist/delete-directory.js +68 -0
- package/package/dist/ensure-browser.d.ts +24 -0
- package/package/dist/ensure-browser.js +58 -0
- package/package/dist/ensure-frames-in-order.d.ts +5 -0
- package/package/dist/ensure-frames-in-order.js +39 -0
- package/package/dist/ensure-output-directory.d.ts +1 -0
- package/package/dist/ensure-output-directory.js +17 -0
- package/package/dist/error-handling/handle-javascript-exception.d.ts +23 -0
- package/package/dist/error-handling/handle-javascript-exception.js +86 -0
- package/package/dist/error-handling/symbolicate-error.d.ts +3 -0
- package/package/dist/error-handling/symbolicate-error.js +26 -0
- package/package/dist/error-handling/symbolicateable-error.d.ts +18 -0
- package/package/dist/error-handling/symbolicateable-error.js +19 -0
- package/package/dist/error-handling.d.ts +1 -0
- package/package/dist/error-handling.js +5 -0
- package/package/dist/esm/client.mjs +3270 -0
- package/package/dist/esm/error-handling.mjs +363 -0
- package/package/dist/esm/index.mjs +23201 -0
- package/package/dist/esm/pure.mjs +526 -0
- package/package/dist/extract-audio.d.ts +7 -0
- package/package/dist/extract-audio.js +25 -0
- package/package/dist/ffmpeg-args.d.ts +21 -0
- package/package/dist/ffmpeg-args.js +96 -0
- package/package/dist/ffmpeg-filter-file.d.ts +13 -0
- package/package/dist/ffmpeg-filter-file.js +70 -0
- package/package/dist/ffmpeg-override.d.ts +4 -0
- package/package/dist/ffmpeg-override.js +2 -0
- package/package/dist/file-extensions.d.ts +14 -0
- package/package/dist/file-extensions.js +85 -0
- package/package/dist/filter-asset-types.d.ts +8 -0
- package/package/dist/filter-asset-types.js +44 -0
- package/package/dist/find-closest-package-json.d.ts +2 -0
- package/package/dist/find-closest-package-json.js +31 -0
- package/package/dist/format-logs.d.ts +3 -0
- package/package/dist/format-logs.js +214 -0
- package/package/dist/frame-range.d.ts +2 -0
- package/package/dist/frame-range.js +49 -0
- package/package/dist/get-browser-instance.d.ts +24 -0
- package/package/dist/get-browser-instance.js +63 -0
- package/package/dist/get-bundle-url-from-serve-url.d.ts +2 -0
- package/package/dist/get-bundle-url-from-serve-url.js +30 -0
- package/package/dist/get-codec-name.d.ts +21 -0
- package/package/dist/get-codec-name.js +87 -0
- package/package/dist/get-compositions.d.ts +34 -0
- package/package/dist/get-compositions.js +196 -0
- package/package/dist/get-concurrency.d.ts +1 -0
- package/package/dist/get-concurrency.js +27 -0
- package/package/dist/get-cpu-count.d.ts +2 -0
- package/package/dist/get-cpu-count.js +33 -0
- package/package/dist/get-duration-from-frame-range.d.ts +1 -0
- package/package/dist/get-duration-from-frame-range.js +17 -0
- package/package/dist/get-extension-from-codec.d.ts +6 -0
- package/package/dist/get-extension-from-codec.js +61 -0
- package/package/dist/get-extension-of-filename.d.ts +1 -0
- package/package/dist/get-extension-of-filename.js +15 -0
- package/package/dist/get-extra-frames-to-capture.d.ts +14 -0
- package/package/dist/get-extra-frames-to-capture.js +62 -0
- package/package/dist/get-frame-padded-index.d.ts +21 -0
- package/package/dist/get-frame-padded-index.js +43 -0
- package/package/dist/get-frame-to-render.d.ts +2 -0
- package/package/dist/get-frame-to-render.js +19 -0
- package/package/dist/get-local-browser-executable.d.ts +9 -0
- package/package/dist/get-local-browser-executable.js +36 -0
- package/package/dist/get-port.d.ts +15 -0
- package/package/dist/get-port.js +86 -0
- package/package/dist/get-prores-profile-name.d.ts +3 -0
- package/package/dist/get-prores-profile-name.js +25 -0
- package/package/dist/get-silent-parts.d.ts +10 -0
- package/package/dist/get-silent-parts.js +66 -0
- package/package/dist/get-video-metadata.d.ts +10 -0
- package/package/dist/get-video-metadata.js +25 -0
- package/package/dist/get-video-threads-flag.d.ts +2 -0
- package/package/dist/get-video-threads-flag.js +16 -0
- package/package/dist/goto-page-or-throw.d.ts +3 -0
- package/package/dist/goto-page-or-throw.js +16 -0
- package/package/dist/guess-extension-for-media.d.ts +9 -0
- package/package/dist/guess-extension-for-media.js +31 -0
- package/package/dist/image-format.d.ts +13 -0
- package/package/dist/image-format.js +37 -0
- package/package/dist/index.d.ts +1256 -0
- package/package/dist/index.js +227 -0
- package/package/dist/is-audio-codec.d.ts +2 -0
- package/package/dist/is-audio-codec.js +7 -0
- package/package/dist/is-delay-render-error-with-retry.d.ts +1 -0
- package/package/dist/is-delay-render-error-with-retry.js +28 -0
- package/package/dist/is-serve-url.d.ts +1 -0
- package/package/dist/is-serve-url.js +15 -0
- package/package/dist/jpeg-quality.d.ts +2 -0
- package/package/dist/jpeg-quality.js +22 -0
- package/package/dist/locks.d.ts +7 -0
- package/package/dist/locks.js +47 -0
- package/package/dist/log-level.d.ts +4 -0
- package/package/dist/log-level.js +15 -0
- package/package/dist/logger.d.ts +20 -0
- package/package/dist/logger.js +89 -0
- package/package/dist/make-cancel-signal.d.ts +14 -0
- package/package/dist/make-cancel-signal.js +48 -0
- package/package/dist/make-metadata-args.d.ts +2 -0
- package/package/dist/make-metadata-args.js +22 -0
- package/package/dist/make-page.d.ts +30 -0
- package/package/dist/make-page.js +70 -0
- package/package/dist/memory/from-docker-cgroup.d.ts +1 -0
- package/package/dist/memory/from-docker-cgroup.js +66 -0
- package/package/dist/memory/from-lambda-env.d.ts +1 -0
- package/package/dist/memory/from-lambda-env.js +10 -0
- package/package/dist/memory/from-proc-meminfo.d.ts +2 -0
- package/package/dist/memory/from-proc-meminfo.js +44 -0
- package/package/dist/memory/get-available-memory.d.ts +2 -0
- package/package/dist/memory/get-available-memory.js +44 -0
- package/package/dist/merge-audio-track.d.ts +19 -0
- package/package/dist/merge-audio-track.js +133 -0
- package/package/dist/mime-db.d.ts +6 -0
- package/package/dist/mime-db.js +8636 -0
- package/package/dist/mime-types.d.ts +3 -0
- package/package/dist/mime-types.js +94 -0
- package/package/dist/mux-video-and-audio.d.ts +15 -0
- package/package/dist/mux-video-and-audio.js +54 -0
- package/package/dist/next-frame-to-render.d.ts +11 -0
- package/package/dist/next-frame-to-render.js +41 -0
- package/package/dist/normalize-serve-url.d.ts +1 -0
- package/package/dist/normalize-serve-url.js +19 -0
- package/package/dist/offthread-video-server.d.ts +51 -0
- package/package/dist/offthread-video-server.js +217 -0
- package/package/dist/open-browser.d.ts +47 -0
- package/package/dist/open-browser.js +200 -0
- package/package/dist/options/api-key.d.ts +15 -0
- package/package/dist/options/api-key.js +29 -0
- package/package/dist/options/audio-bitrate.d.ts +18 -0
- package/package/dist/options/audio-bitrate.js +35 -0
- package/package/dist/options/audio-codec.d.ts +55 -0
- package/package/dist/options/audio-codec.js +188 -0
- package/package/dist/options/beep-on-finish.d.ts +15 -0
- package/package/dist/options/beep-on-finish.js +35 -0
- package/package/dist/options/binaries-directory.d.ts +15 -0
- package/package/dist/options/binaries-directory.js +35 -0
- package/package/dist/options/chrome-mode.d.ts +17 -0
- package/package/dist/options/chrome-mode.js +46 -0
- package/package/dist/options/color-space.d.ts +23 -0
- package/package/dist/options/color-space.js +49 -0
- package/package/dist/options/crf.d.ts +17 -0
- package/package/dist/options/crf.js +43 -0
- package/package/dist/options/cross-site-isolation.d.ts +15 -0
- package/package/dist/options/cross-site-isolation.js +29 -0
- package/package/dist/options/delete-after.d.ts +19 -0
- package/package/dist/options/delete-after.js +37 -0
- package/package/dist/options/disable-git-source.d.ts +15 -0
- package/package/dist/options/disable-git-source.js +28 -0
- package/package/dist/options/disallow-parallel-encoding.d.ts +15 -0
- package/package/dist/options/disallow-parallel-encoding.js +35 -0
- package/package/dist/options/enable-lambda-insights.d.ts +15 -0
- package/package/dist/options/enable-lambda-insights.js +35 -0
- package/package/dist/options/enable-multiprocess-on-linux.d.ts +15 -0
- package/package/dist/options/enable-multiprocess-on-linux.js +36 -0
- package/package/dist/options/encoding-buffer-size.d.ts +18 -0
- package/package/dist/options/encoding-buffer-size.js +39 -0
- package/package/dist/options/encoding-max-rate.d.ts +18 -0
- package/package/dist/options/encoding-max-rate.js +35 -0
- package/package/dist/options/enforce-audio.d.ts +18 -0
- package/package/dist/options/enforce-audio.js +36 -0
- package/package/dist/options/folder-expiry.d.ts +15 -0
- package/package/dist/options/folder-expiry.js +37 -0
- package/package/dist/options/for-seamless-aac-concatenation.d.ts +19 -0
- package/package/dist/options/for-seamless-aac-concatenation.js +40 -0
- package/package/dist/options/gl.d.ts +24 -0
- package/package/dist/options/gl.js +68 -0
- package/package/dist/options/hardware-acceleration.d.ts +18 -0
- package/package/dist/options/hardware-acceleration.js +56 -0
- package/package/dist/options/headless.d.ts +15 -0
- package/package/dist/options/headless.js +36 -0
- package/package/dist/options/image-sequence-pattern.d.ts +15 -0
- package/package/dist/options/image-sequence-pattern.js +30 -0
- package/package/dist/options/index.d.ts +747 -0
- package/package/dist/options/index.js +97 -0
- package/package/dist/options/jpeg-quality.d.ts +17 -0
- package/package/dist/options/jpeg-quality.js +47 -0
- package/package/dist/options/latency-hint.d.ts +18 -0
- package/package/dist/options/latency-hint.js +27 -0
- package/package/dist/options/log-level.d.ts +16 -0
- package/package/dist/options/log-level.js +32 -0
- package/package/dist/options/metadata.d.ts +18 -0
- package/package/dist/options/metadata.js +47 -0
- package/package/dist/options/mute.d.ts +15 -0
- package/package/dist/options/mute.js +37 -0
- package/package/dist/options/number-of-gif-loops.d.ts +19 -0
- package/package/dist/options/number-of-gif-loops.js +44 -0
- package/package/dist/options/offthreadvideo-cache-size.d.ts +20 -0
- package/package/dist/options/offthreadvideo-cache-size.js +60 -0
- package/package/dist/options/offthreadvideo-threads.d.ts +20 -0
- package/package/dist/options/offthreadvideo-threads.js +40 -0
- package/package/dist/options/on-browser-download.d.ts +22 -0
- package/package/dist/options/on-browser-download.js +19 -0
- package/package/dist/options/option.d.ts +20 -0
- package/package/dist/options/option.js +2 -0
- package/package/dist/options/options-map.d.ts +2040 -0
- package/package/dist/options/options-map.js +192 -0
- package/package/dist/options/overwrite.d.ts +15 -0
- package/package/dist/options/overwrite.js +42 -0
- package/package/dist/options/prefer-lossless.d.ts +18 -0
- package/package/dist/options/prefer-lossless.js +26 -0
- package/package/dist/options/public-dir.d.ts +18 -0
- package/package/dist/options/public-dir.js +37 -0
- package/package/dist/options/public-path.d.ts +18 -0
- package/package/dist/options/public-path.js +37 -0
- package/package/dist/options/repro.d.ts +15 -0
- package/package/dist/options/repro.js +36 -0
- package/package/dist/options/scale.d.ts +15 -0
- package/package/dist/options/scale.js +41 -0
- package/package/dist/options/separate-audio.d.ts +18 -0
- package/package/dist/options/separate-audio.js +28 -0
- package/package/dist/options/throw-if-site-exists.d.ts +15 -0
- package/package/dist/options/throw-if-site-exists.js +28 -0
- package/package/dist/options/timeout.d.ts +15 -0
- package/package/dist/options/timeout.js +44 -0
- package/package/dist/options/video-bitrate.d.ts +15 -0
- package/package/dist/options/video-bitrate.js +35 -0
- package/package/dist/options/video-cache-size.d.ts +19 -0
- package/package/dist/options/video-cache-size.js +39 -0
- package/package/dist/options/video-codec.d.ts +23 -0
- package/package/dist/options/video-codec.js +104 -0
- package/package/dist/options/webhook-custom-data.d.ts +10 -0
- package/package/dist/options/webhook-custom-data.js +21 -0
- package/package/dist/options/x264-preset.d.ts +25 -0
- package/package/dist/options/x264-preset.js +55 -0
- package/package/dist/overwrite.d.ts +1 -0
- package/package/dist/overwrite.js +4 -0
- package/package/dist/p-limit.d.ts +1 -0
- package/package/dist/p-limit.js +57 -0
- package/package/dist/parse-browser-error-stack.d.ts +7 -0
- package/package/dist/parse-browser-error-stack.js +87 -0
- package/package/dist/parse-ffmpeg-progress.d.ts +1 -0
- package/package/dist/parse-ffmpeg-progress.js +18 -0
- package/package/dist/path-normalize.d.ts +1 -0
- package/package/dist/path-normalize.js +132 -0
- package/package/dist/perf.d.ts +5 -0
- package/package/dist/perf.js +37 -0
- package/package/dist/pixel-format.d.ts +6 -0
- package/package/dist/pixel-format.js +37 -0
- package/package/dist/pool.d.ts +8 -0
- package/package/dist/pool.js +30 -0
- package/package/dist/port-config.d.ts +14 -0
- package/package/dist/port-config.js +79 -0
- package/package/dist/prepare-server.d.ts +32 -0
- package/package/dist/prepare-server.js +123 -0
- package/package/dist/preprocess-audio-track.d.ts +27 -0
- package/package/dist/preprocess-audio-track.js +82 -0
- package/package/dist/prespawn-ffmpeg.d.ts +49 -0
- package/package/dist/prespawn-ffmpeg.js +112 -0
- package/package/dist/prestitcher-memory-usage.d.ts +10 -0
- package/package/dist/prestitcher-memory-usage.js +26 -0
- package/package/dist/print-useful-error-message.d.ts +2 -0
- package/package/dist/print-useful-error-message.js +110 -0
- package/package/dist/prores-profile.d.ts +7 -0
- package/package/dist/prores-profile.js +23 -0
- package/package/dist/puppeteer-evaluate.d.ts +17 -0
- package/package/dist/puppeteer-evaluate.js +162 -0
- package/package/dist/puppeteer-screenshot.d.ts +12 -0
- package/package/dist/puppeteer-screenshot.js +58 -0
- package/package/dist/pure.d.ts +17 -0
- package/package/dist/pure.js +17 -0
- package/package/dist/redirect-status-codes.d.ts +1 -0
- package/package/dist/redirect-status-codes.js +6 -0
- package/package/dist/render-frame-and-retry-target-close.d.ts +54 -0
- package/package/dist/render-frame-and-retry-target-close.js +179 -0
- package/package/dist/render-frame-with-option-to-reject.d.ts +48 -0
- package/package/dist/render-frame-with-option-to-reject.js +156 -0
- package/package/dist/render-frame.d.ts +47 -0
- package/package/dist/render-frame.js +51 -0
- package/package/dist/render-frames.d.ts +97 -0
- package/package/dist/render-frames.js +413 -0
- package/package/dist/render-has-audio.d.ts +8 -0
- package/package/dist/render-has-audio.js +20 -0
- package/package/dist/render-media.d.ts +135 -0
- package/package/dist/render-media.js +621 -0
- package/package/dist/render-partitions.d.ts +7 -0
- package/package/dist/render-partitions.js +50 -0
- package/package/dist/render-still.d.ts +74 -0
- package/package/dist/render-still.js +356 -0
- package/package/dist/replace-browser.d.ts +7 -0
- package/package/dist/replace-browser.js +48 -0
- package/package/dist/repro.d.ts +25 -0
- package/package/dist/repro.js +184 -0
- package/package/dist/resolve-asset-src.d.ts +1 -0
- package/package/dist/resolve-asset-src.js +17 -0
- package/package/dist/sample-rate.d.ts +1 -0
- package/package/dist/sample-rate.js +4 -0
- package/package/dist/screenshot-task.d.ts +12 -0
- package/package/dist/screenshot-task.js +86 -0
- package/package/dist/seamless-aac-trim.d.ts +12 -0
- package/package/dist/seamless-aac-trim.js +24 -0
- package/package/dist/seek-to-frame.d.ts +18 -0
- package/package/dist/seek-to-frame.js +148 -0
- package/package/dist/select-composition.d.ts +45 -0
- package/package/dist/select-composition.js +219 -0
- package/package/dist/serialize-artifact.d.ts +7 -0
- package/package/dist/serialize-artifact.js +2 -0
- package/package/dist/serve-handler/index.d.ts +4 -0
- package/package/dist/serve-handler/index.js +208 -0
- package/package/dist/serve-handler/is-path-inside.d.ts +1 -0
- package/package/dist/serve-handler/is-path-inside.js +27 -0
- package/package/dist/serve-handler/range-parser.d.ts +13 -0
- package/package/dist/serve-handler/range-parser.js +57 -0
- package/package/dist/serve-static.d.ts +18 -0
- package/package/dist/serve-static.js +141 -0
- package/package/dist/set-props-and-env.d.ts +22 -0
- package/package/dist/set-props-and-env.js +219 -0
- package/package/dist/stitch-frames-to-video.d.ts +77 -0
- package/package/dist/stitch-frames-to-video.js +350 -0
- package/package/dist/stringify-ffmpeg-filter.d.ts +24 -0
- package/package/dist/stringify-ffmpeg-filter.js +140 -0
- package/package/dist/succeed-or-cancel.d.ts +6 -0
- package/package/dist/succeed-or-cancel.js +23 -0
- package/package/dist/symbolicate-stacktrace.d.ts +29 -0
- package/package/dist/symbolicate-stacktrace.js +155 -0
- package/package/dist/take-frame.d.ts +13 -0
- package/package/dist/take-frame.js +47 -0
- package/package/dist/test/actual-concurrency.test.d.ts +1 -0
- package/package/dist/test/artifacts.test.d.ts +1 -0
- package/package/dist/test/asset-calculation.test.d.ts +1 -0
- package/package/dist/test/asset-compression.test.d.ts +1 -0
- package/package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +1 -0
- package/package/dist/test/browser-log-message.test.d.ts +1 -0
- package/package/dist/test/calculate-atempo.test.d.ts +1 -0
- package/package/dist/test/compositor-rust.test.d.ts +1 -0
- package/package/dist/test/crf.test.d.ts +1 -0
- package/package/dist/test/derive-codec-from-file-extension.test.d.ts +1 -0
- package/package/dist/test/dont-skip-assets.test.d.ts +1 -0
- package/package/dist/test/download-file.test.d.ts +1 -0
- package/package/dist/test/even-dimensions.test.d.ts +1 -0
- package/package/dist/test/extra-frames-to-capture.test.d.ts +1 -0
- package/package/dist/test/extract-audio.test.d.ts +1 -0
- package/package/dist/test/extract-frame-rust.test.d.ts +1 -0
- package/package/dist/test/ffmpeg-filters.test.d.ts +1 -0
- package/package/dist/test/ffmpeg-merge-filter.test.d.ts +1 -0
- package/package/dist/test/ffmpeg-volume-expression.test.d.ts +1 -0
- package/package/dist/test/file-extension.test.d.ts +1 -0
- package/package/dist/test/find-closest-package-json.test.d.ts +1 -0
- package/package/dist/test/flatten-volume-array.test.d.ts +1 -0
- package/package/dist/test/format-logs.test.d.ts +1 -0
- package/package/dist/test/frame-padded-index.test.d.ts +1 -0
- package/package/dist/test/frame.test.d.ts +1 -0
- package/package/dist/test/get-assets-for-markup.d.ts +8 -0
- package/package/dist/test/get-audio-channels.test.d.ts +1 -0
- package/package/dist/test/get-bundle-url-from-serve-url.test.d.ts +1 -0
- package/package/dist/test/get-silent-parts.test.d.ts +1 -0
- package/package/dist/test/guess-extension-for-media.test.d.ts +1 -0
- package/package/dist/test/handle-weird-file-names.test.d.ts +1 -0
- package/package/dist/test/log-level.test.d.ts +1 -0
- package/package/dist/test/mime-types.test.d.ts +1 -0
- package/package/dist/test/offthread-extract-url.test.d.ts +1 -0
- package/package/dist/test/parse-ffmpeg-progress.test.d.ts +1 -0
- package/package/dist/test/partitions.test.d.ts +1 -0
- package/package/dist/test/pixel-format.test.d.ts +1 -0
- package/package/dist/test/port-config.test.d.ts +1 -0
- package/package/dist/test/port-selection.test.d.ts +1 -0
- package/package/dist/test/prores-profile.test.d.ts +1 -0
- package/package/dist/test/render-still.test.d.ts +1 -0
- package/package/dist/test/rust-errors.test.d.ts +1 -0
- package/package/dist/test/rust-get-video-metadata.test.d.ts +1 -0
- package/package/dist/test/rust-memory-usage.test.d.ts +1 -0
- package/package/dist/test/sanitize-file-path.test.d.ts +1 -0
- package/package/dist/test/serve-url.test.d.ts +1 -0
- package/package/dist/test/symbolicate-remote-stack.test.d.ts +1 -0
- package/package/dist/test/validate-concurrency.test.d.ts +1 -0
- package/package/dist/test/validate-config-stitcher.test.d.ts +1 -0
- package/package/dist/test/validate-config.test.d.ts +1 -0
- package/package/dist/test/validate-even-dimensions-with-codec.test.d.ts +1 -0
- package/package/dist/test/validate-image-format.test.d.ts +1 -0
- package/package/dist/test/webpack-to-serve-url.test.d.ts +1 -0
- package/package/dist/test-gpu.d.ts +21 -0
- package/package/dist/test-gpu.js +45 -0
- package/package/dist/tmp-dir.d.ts +1 -0
- package/package/dist/tmp-dir.js +63 -0
- package/package/dist/to-megabytes.d.ts +1 -0
- package/package/dist/to-megabytes.js +7 -0
- package/package/dist/truthy.d.ts +3 -0
- package/package/dist/truthy.js +6 -0
- package/package/dist/types.d.ts +10 -0
- package/package/dist/types.js +2 -0
- package/package/dist/v5-required-input-props.d.ts +6 -0
- package/package/dist/v5-required-input-props.js +2 -0
- package/package/dist/validate-concurrency.d.ts +7 -0
- package/package/dist/validate-concurrency.js +38 -0
- package/package/dist/validate-even-dimensions-with-codec.d.ts +14 -0
- package/package/dist/validate-even-dimensions-with-codec.js +40 -0
- package/package/dist/validate-every-nth-frame.d.ts +1 -0
- package/package/dist/validate-every-nth-frame.js +24 -0
- package/package/dist/validate-ffmpeg-override.d.ts +2 -0
- package/package/dist/validate-ffmpeg-override.js +12 -0
- package/package/dist/validate-number-of-gif-loops.d.ts +2 -0
- package/package/dist/validate-number-of-gif-loops.js +24 -0
- package/package/dist/validate-output-filename.d.ts +9 -0
- package/package/dist/validate-output-filename.js +32 -0
- package/package/dist/validate-puppeteer-timeout.d.ts +1 -0
- package/package/dist/validate-puppeteer-timeout.js +25 -0
- package/package/dist/validate-scale.d.ts +1 -0
- package/package/dist/validate-scale.js +26 -0
- package/package/dist/validate-videobitrate.d.ts +1 -0
- package/package/dist/validate-videobitrate.js +20 -0
- package/package/dist/validate.d.ts +4 -0
- package/package/dist/validate.js +8 -0
- package/package/dist/wait-for-symbolication-error-to-be-done.d.ts +3 -0
- package/package/dist/wait-for-symbolication-error-to-be-done.js +8 -0
- package/package/dist/wrap-with-error-handling.d.ts +8 -0
- package/package/dist/wrap-with-error-handling.js +18 -0
- package/package/dist/ws/ws-types.d.ts +15 -0
- package/package/dist/ws/ws-types.js +8 -0
- package/package/ensure-browser.mjs +3337 -0
- package/package.json +105 -104
- package/LICENSE.md +0 -49
- package/bunfig.toml +0 -2
- package/dist/assets/change-tempo.d.ts +0 -34
- package/dist/assets/change-tempo.js +0 -287
- package/dist/assets/change-tonefrequency.d.ts +0 -2
- package/dist/assets/change-tonefrequency.js +0 -28
- package/dist/assets/resample-audiodata.d.ts +0 -6
- package/dist/assets/resample-audiodata.js +0 -54
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allOptions = void 0;
|
|
4
|
+
const api_key_1 = require("./api-key");
|
|
5
|
+
const audio_bitrate_1 = require("./audio-bitrate");
|
|
6
|
+
const audio_codec_1 = require("./audio-codec");
|
|
7
|
+
const beep_on_finish_1 = require("./beep-on-finish");
|
|
8
|
+
const binaries_directory_1 = require("./binaries-directory");
|
|
9
|
+
const chrome_mode_1 = require("./chrome-mode");
|
|
10
|
+
const color_space_1 = require("./color-space");
|
|
11
|
+
const crf_1 = require("./crf");
|
|
12
|
+
const cross_site_isolation_1 = require("./cross-site-isolation");
|
|
13
|
+
const delete_after_1 = require("./delete-after");
|
|
14
|
+
const disable_git_source_1 = require("./disable-git-source");
|
|
15
|
+
const disallow_parallel_encoding_1 = require("./disallow-parallel-encoding");
|
|
16
|
+
const enable_lambda_insights_1 = require("./enable-lambda-insights");
|
|
17
|
+
const enable_multiprocess_on_linux_1 = require("./enable-multiprocess-on-linux");
|
|
18
|
+
const encoding_buffer_size_1 = require("./encoding-buffer-size");
|
|
19
|
+
const encoding_max_rate_1 = require("./encoding-max-rate");
|
|
20
|
+
const enforce_audio_1 = require("./enforce-audio");
|
|
21
|
+
const folder_expiry_1 = require("./folder-expiry");
|
|
22
|
+
const for_seamless_aac_concatenation_1 = require("./for-seamless-aac-concatenation");
|
|
23
|
+
const gl_1 = require("./gl");
|
|
24
|
+
const hardware_acceleration_1 = require("./hardware-acceleration");
|
|
25
|
+
const headless_1 = require("./headless");
|
|
26
|
+
const image_sequence_pattern_1 = require("./image-sequence-pattern");
|
|
27
|
+
const jpeg_quality_1 = require("./jpeg-quality");
|
|
28
|
+
const latency_hint_1 = require("./latency-hint");
|
|
29
|
+
const log_level_1 = require("./log-level");
|
|
30
|
+
const metadata_1 = require("./metadata");
|
|
31
|
+
const mute_1 = require("./mute");
|
|
32
|
+
const number_of_gif_loops_1 = require("./number-of-gif-loops");
|
|
33
|
+
const offthreadvideo_cache_size_1 = require("./offthreadvideo-cache-size");
|
|
34
|
+
const offthreadvideo_threads_1 = require("./offthreadvideo-threads");
|
|
35
|
+
const on_browser_download_1 = require("./on-browser-download");
|
|
36
|
+
const overwrite_1 = require("./overwrite");
|
|
37
|
+
const prefer_lossless_1 = require("./prefer-lossless");
|
|
38
|
+
const public_dir_1 = require("./public-dir");
|
|
39
|
+
const public_path_1 = require("./public-path");
|
|
40
|
+
const repro_1 = require("./repro");
|
|
41
|
+
const scale_1 = require("./scale");
|
|
42
|
+
const separate_audio_1 = require("./separate-audio");
|
|
43
|
+
const throw_if_site_exists_1 = require("./throw-if-site-exists");
|
|
44
|
+
const timeout_1 = require("./timeout");
|
|
45
|
+
const video_bitrate_1 = require("./video-bitrate");
|
|
46
|
+
const video_cache_size_1 = require("./video-cache-size");
|
|
47
|
+
const video_codec_1 = require("./video-codec");
|
|
48
|
+
const webhook_custom_data_1 = require("./webhook-custom-data");
|
|
49
|
+
const x264_preset_1 = require("./x264-preset");
|
|
50
|
+
exports.allOptions = {
|
|
51
|
+
audioCodecOption: audio_codec_1.audioCodecOption,
|
|
52
|
+
scaleOption: scale_1.scaleOption,
|
|
53
|
+
crfOption: crf_1.crfOption,
|
|
54
|
+
jpegQualityOption: jpeg_quality_1.jpegQualityOption,
|
|
55
|
+
videoBitrateOption: video_bitrate_1.videoBitrateOption,
|
|
56
|
+
audioBitrateOption: audio_bitrate_1.audioBitrateOption,
|
|
57
|
+
enforceAudioOption: enforce_audio_1.enforceAudioOption,
|
|
58
|
+
mutedOption: mute_1.mutedOption,
|
|
59
|
+
videoCodecOption: video_codec_1.videoCodecOption,
|
|
60
|
+
offthreadVideoCacheSizeInBytesOption: offthreadvideo_cache_size_1.offthreadVideoCacheSizeInBytesOption,
|
|
61
|
+
offthreadVideoThreadsOption: offthreadvideo_threads_1.offthreadVideoThreadsOption,
|
|
62
|
+
webhookCustomDataOption: webhook_custom_data_1.webhookCustomDataOption,
|
|
63
|
+
colorSpaceOption: color_space_1.colorSpaceOption,
|
|
64
|
+
deleteAfterOption: delete_after_1.deleteAfterOption,
|
|
65
|
+
disallowParallelEncodingOption: disallow_parallel_encoding_1.disallowParallelEncodingOption,
|
|
66
|
+
folderExpiryOption: folder_expiry_1.folderExpiryOption,
|
|
67
|
+
enableMultiprocessOnLinuxOption: enable_multiprocess_on_linux_1.enableMultiprocessOnLinuxOption,
|
|
68
|
+
glOption: gl_1.glOption,
|
|
69
|
+
enableLambdaInsights: enable_lambda_insights_1.enableLambdaInsights,
|
|
70
|
+
encodingMaxRateOption: encoding_max_rate_1.encodingMaxRateOption,
|
|
71
|
+
encodingBufferSizeOption: encoding_buffer_size_1.encodingBufferSizeOption,
|
|
72
|
+
beepOnFinishOption: beep_on_finish_1.beepOnFinishOption,
|
|
73
|
+
numberOfGifLoopsOption: number_of_gif_loops_1.numberOfGifLoopsOption,
|
|
74
|
+
reproOption: repro_1.reproOption,
|
|
75
|
+
preferLosslessOption: prefer_lossless_1.preferLosslessAudioOption,
|
|
76
|
+
x264Option: x264_preset_1.x264Option,
|
|
77
|
+
logLevelOption: log_level_1.logLevelOption,
|
|
78
|
+
delayRenderTimeoutInMillisecondsOption: timeout_1.delayRenderTimeoutInMillisecondsOption,
|
|
79
|
+
headlessOption: headless_1.headlessOption,
|
|
80
|
+
overwriteOption: overwrite_1.overwriteOption,
|
|
81
|
+
binariesDirectoryOption: binaries_directory_1.binariesDirectoryOption,
|
|
82
|
+
forSeamlessAacConcatenationOption: for_seamless_aac_concatenation_1.forSeamlessAacConcatenationOption,
|
|
83
|
+
separateAudioOption: separate_audio_1.separateAudioOption,
|
|
84
|
+
publicPathOption: public_path_1.publicPathOption,
|
|
85
|
+
publicDirOption: public_dir_1.publicDirOption,
|
|
86
|
+
onBrowserDownloadOption: on_browser_download_1.onBrowserDownloadOption,
|
|
87
|
+
throwIfSiteExistsOption: throw_if_site_exists_1.throwIfSiteExistsOption,
|
|
88
|
+
disableGitSourceOption: disable_git_source_1.disableGitSourceOption,
|
|
89
|
+
metadataOption: metadata_1.metadataOption,
|
|
90
|
+
hardwareAccelerationOption: hardware_acceleration_1.hardwareAccelerationOption,
|
|
91
|
+
chromeModeOption: chrome_mode_1.chromeModeOption,
|
|
92
|
+
apiKeyOption: api_key_1.apiKeyOption,
|
|
93
|
+
audioLatencyHintOption: latency_hint_1.audioLatencyHintOption,
|
|
94
|
+
enableCrossSiteIsolationOption: cross_site_isolation_1.enableCrossSiteIsolationOption,
|
|
95
|
+
imageSequencePatternOption: image_sequence_pattern_1.imageSequencePatternOption,
|
|
96
|
+
mediaCacheSizeInBytesOption: video_cache_size_1.mediaCacheSizeInBytesOption,
|
|
97
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const setJpegQuality: (q: number | undefined) => void;
|
|
2
|
+
export declare const getJpegQuality: () => number;
|
|
3
|
+
export declare const jpegQualityOption: {
|
|
4
|
+
name: string;
|
|
5
|
+
cliFlag: "jpeg-quality";
|
|
6
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
ssrName: string;
|
|
8
|
+
docLink: string;
|
|
9
|
+
type: number;
|
|
10
|
+
setConfig: (q: number | undefined) => void;
|
|
11
|
+
getValue: ({ commandLine }: {
|
|
12
|
+
commandLine: Record<string, unknown>;
|
|
13
|
+
}) => {
|
|
14
|
+
source: string;
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jpegQualityOption = exports.getJpegQuality = exports.setJpegQuality = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const jpeg_quality_1 = require("../jpeg-quality");
|
|
6
|
+
const defaultValue = jpeg_quality_1.DEFAULT_JPEG_QUALITY;
|
|
7
|
+
let quality = defaultValue;
|
|
8
|
+
const setJpegQuality = (q) => {
|
|
9
|
+
(0, jpeg_quality_1.validateJpegQuality)(q);
|
|
10
|
+
if (q === 0 || q === undefined) {
|
|
11
|
+
quality = defaultValue;
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
quality = q;
|
|
15
|
+
};
|
|
16
|
+
exports.setJpegQuality = setJpegQuality;
|
|
17
|
+
const getJpegQuality = () => quality;
|
|
18
|
+
exports.getJpegQuality = getJpegQuality;
|
|
19
|
+
const cliFlag = 'jpeg-quality';
|
|
20
|
+
exports.jpegQualityOption = {
|
|
21
|
+
name: 'JPEG Quality',
|
|
22
|
+
cliFlag,
|
|
23
|
+
description: () => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80." })),
|
|
24
|
+
ssrName: 'jpegQuality',
|
|
25
|
+
docLink: 'https://www.remotion.dev/docs/renderer/render-media#jpeg-quality',
|
|
26
|
+
type: 0,
|
|
27
|
+
setConfig: exports.setJpegQuality,
|
|
28
|
+
getValue: ({ commandLine }) => {
|
|
29
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
30
|
+
(0, jpeg_quality_1.validateJpegQuality)(commandLine[cliFlag]);
|
|
31
|
+
return {
|
|
32
|
+
source: 'cli',
|
|
33
|
+
value: commandLine[cliFlag],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
if (quality !== defaultValue) {
|
|
37
|
+
return {
|
|
38
|
+
source: 'config',
|
|
39
|
+
value: quality,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
source: 'default',
|
|
44
|
+
value: defaultValue,
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const audioLatencyHintOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "audio-latency-hint";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "audioLatencyHint";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: AudioContextLatencyCategory;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
value: AudioContextLatencyCategory;
|
|
12
|
+
source: string;
|
|
13
|
+
} | {
|
|
14
|
+
value: null;
|
|
15
|
+
source: string;
|
|
16
|
+
};
|
|
17
|
+
setConfig: (profile: AudioContextLatencyCategory | null) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.audioLatencyHintOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'audio-latency-hint';
|
|
6
|
+
let value = null;
|
|
7
|
+
exports.audioLatencyHintOption = {
|
|
8
|
+
name: 'Audio Latency Hint',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Sets the", ' ', (0, jsx_runtime_1.jsx)("a", { href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext", children: "audio latency" }), ' ', "hint for the global ", (0, jsx_runtime_1.jsx)("code", { children: "AudioContext" }), " context that Remotion uses to play audio.", (0, jsx_runtime_1.jsx)("br", {}), "Possible values: ", (0, jsx_runtime_1.jsx)("code", { children: "interactive" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "balanced" }), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "playback" })] })),
|
|
11
|
+
ssrName: 'audioLatencyHint',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/renderer/render-media',
|
|
13
|
+
type: 'interactive',
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
const val = commandLine[cliFlag];
|
|
16
|
+
if (typeof val !== 'undefined') {
|
|
17
|
+
return { value: val, source: 'cli' };
|
|
18
|
+
}
|
|
19
|
+
if (value !== null) {
|
|
20
|
+
return { value, source: 'config' };
|
|
21
|
+
}
|
|
22
|
+
return { value: null, source: 'default' };
|
|
23
|
+
},
|
|
24
|
+
setConfig: (profile) => {
|
|
25
|
+
value = profile;
|
|
26
|
+
},
|
|
27
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { LogLevel } from '../log-level';
|
|
2
|
+
export declare const logLevelOption: {
|
|
3
|
+
cliFlag: "log";
|
|
4
|
+
name: string;
|
|
5
|
+
ssrName: string;
|
|
6
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
docLink: string;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
value: LogLevel;
|
|
12
|
+
source: string;
|
|
13
|
+
};
|
|
14
|
+
setConfig: (newLogLevel: LogLevel) => void;
|
|
15
|
+
type: LogLevel;
|
|
16
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logLevelOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const log_level_1 = require("../log-level");
|
|
6
|
+
let logLevel = 'info';
|
|
7
|
+
const cliFlag = 'log';
|
|
8
|
+
exports.logLevelOption = {
|
|
9
|
+
cliFlag,
|
|
10
|
+
name: 'Log Level',
|
|
11
|
+
ssrName: 'logLevel',
|
|
12
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["One of ", (0, jsx_runtime_1.jsx)("code", { children: "trace" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "verbose" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "info" }), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "warn" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "error" }), ".", (0, jsx_runtime_1.jsx)("br", {}), " Determines how much info is being logged to the console.", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), " Default ", (0, jsx_runtime_1.jsx)("code", { children: "info" }), "."] })),
|
|
13
|
+
docLink: 'https://www.remotion.dev/docs/troubleshooting/debug-failed-render',
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag]) {
|
|
16
|
+
if (!(0, log_level_1.isValidLogLevel)(commandLine[cliFlag])) {
|
|
17
|
+
throw new Error(`Invalid \`--log\` value passed. Accepted values: ${log_level_1.logLevels
|
|
18
|
+
.map((l) => `'${l}'`)
|
|
19
|
+
.join(', ')}.`);
|
|
20
|
+
}
|
|
21
|
+
return { value: commandLine[cliFlag], source: 'cli' };
|
|
22
|
+
}
|
|
23
|
+
if (logLevel !== 'info') {
|
|
24
|
+
return { value: logLevel, source: 'config' };
|
|
25
|
+
}
|
|
26
|
+
return { value: 'info', source: 'default' };
|
|
27
|
+
},
|
|
28
|
+
setConfig: (newLogLevel) => {
|
|
29
|
+
logLevel = newLogLevel;
|
|
30
|
+
},
|
|
31
|
+
type: 'error',
|
|
32
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Metadata = Record<string, string>;
|
|
2
|
+
export declare const metadataOption: {
|
|
3
|
+
name: string;
|
|
4
|
+
cliFlag: "metadata";
|
|
5
|
+
description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: Metadata;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: {
|
|
13
|
+
[k: string]: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
setConfig: (newMetadata: Metadata) => void;
|
|
17
|
+
ssrName: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.metadataOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let metadata = {};
|
|
6
|
+
const cliFlag = 'metadata';
|
|
7
|
+
exports.metadataOption = {
|
|
8
|
+
name: 'Metadata',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: (mode) => {
|
|
11
|
+
if (mode === 'ssr') {
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["An object containing metadata to be embedded in the video. See", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/metadata", children: "here" }), " for which metadata is accepted."] }));
|
|
13
|
+
}
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Metadata to be embedded in the video. See", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/metadata", children: "here" }), " for which metadata is accepted.", (0, jsx_runtime_1.jsx)("br", {}), "The parameter must be in the format of ", (0, jsx_runtime_1.jsx)("code", { children: "--metadata key=value" }), ' ', "and can be passed multiple times."] }));
|
|
15
|
+
},
|
|
16
|
+
docLink: 'https://www.remotion.dev/docs/metadata',
|
|
17
|
+
type: {},
|
|
18
|
+
getValue: ({ commandLine }) => {
|
|
19
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
20
|
+
const val = commandLine[cliFlag];
|
|
21
|
+
const array = typeof val === 'string' ? [val] : val;
|
|
22
|
+
const keyValues = array.map((a) => {
|
|
23
|
+
if (!a.includes('=')) {
|
|
24
|
+
throw new Error(`"metadata" must be in the format of key=value, but got ${a}`);
|
|
25
|
+
}
|
|
26
|
+
const splitted = a.split('=');
|
|
27
|
+
if (splitted.length !== 2) {
|
|
28
|
+
throw new Error(`"metadata" must be in the format of key=value, but got ${a}`);
|
|
29
|
+
}
|
|
30
|
+
return [splitted[0], splitted[1]];
|
|
31
|
+
});
|
|
32
|
+
const value = Object.fromEntries(keyValues);
|
|
33
|
+
return {
|
|
34
|
+
source: 'config',
|
|
35
|
+
value,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
source: 'config',
|
|
40
|
+
value: metadata,
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
setConfig: (newMetadata) => {
|
|
44
|
+
metadata = newMetadata;
|
|
45
|
+
},
|
|
46
|
+
ssrName: 'metadata',
|
|
47
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const mutedOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "muted";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: string;
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: boolean;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: boolean;
|
|
13
|
+
};
|
|
14
|
+
setConfig: () => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mutedOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const DEFAULT_MUTED_STATE = false;
|
|
6
|
+
let mutedState = DEFAULT_MUTED_STATE;
|
|
7
|
+
const cliFlag = 'muted';
|
|
8
|
+
exports.mutedOption = {
|
|
9
|
+
name: 'Muted',
|
|
10
|
+
cliFlag,
|
|
11
|
+
description: () => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "The Audio of the video will be omitted." }),
|
|
12
|
+
ssrName: 'muted',
|
|
13
|
+
docLink: 'https://www.remotion.dev/docs/audio/muting',
|
|
14
|
+
type: false,
|
|
15
|
+
getValue: ({ commandLine }) => {
|
|
16
|
+
// we set in minimist `muted` default as null
|
|
17
|
+
if (commandLine[cliFlag] !== null) {
|
|
18
|
+
return {
|
|
19
|
+
source: 'cli',
|
|
20
|
+
value: commandLine[cliFlag],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (mutedState !== DEFAULT_MUTED_STATE) {
|
|
24
|
+
return {
|
|
25
|
+
source: 'config',
|
|
26
|
+
value: mutedState,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
source: 'config',
|
|
31
|
+
value: mutedState,
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
setConfig: () => {
|
|
35
|
+
mutedState = true;
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type NumberOfGifLoops = number | null;
|
|
2
|
+
export declare const numberOfGifLoopsOption: {
|
|
3
|
+
name: string;
|
|
4
|
+
cliFlag: "number-of-gif-loops";
|
|
5
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
ssrName: "numberOfGifLoops";
|
|
7
|
+
docLink: string;
|
|
8
|
+
type: number | null;
|
|
9
|
+
getValue: ({ commandLine }: {
|
|
10
|
+
commandLine: Record<string, unknown>;
|
|
11
|
+
}) => {
|
|
12
|
+
value: number;
|
|
13
|
+
source: string;
|
|
14
|
+
} | {
|
|
15
|
+
value: null;
|
|
16
|
+
source: string;
|
|
17
|
+
};
|
|
18
|
+
setConfig: (newLoop: NumberOfGifLoops) => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.numberOfGifLoopsOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let currentLoop = null;
|
|
6
|
+
const validate = (newLoop) => {
|
|
7
|
+
if (newLoop !== null && typeof newLoop !== 'number') {
|
|
8
|
+
throw new Error('--number-of-gif-loops flag must be a number.');
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const cliFlag = 'number-of-gif-loops';
|
|
12
|
+
exports.numberOfGifLoopsOption = {
|
|
13
|
+
name: 'Number of GIF loops',
|
|
14
|
+
cliFlag,
|
|
15
|
+
description: () => {
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Allows you to set the number of loops as follows:", (0, jsx_runtime_1.jsxs)("ul", { children: [(0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "null" }), " (or omitting in the CLI) plays the GIF indefinitely."] }), (0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "0" }), " disables looping"] }), (0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "1" }), " loops the GIF once (plays twice in total)"] }), (0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)("code", { children: "2" }), " loops the GIF twice (plays three times in total) and so on."] })] })] }));
|
|
17
|
+
},
|
|
18
|
+
ssrName: 'numberOfGifLoops',
|
|
19
|
+
docLink: 'https://www.remotion.dev/docs/render-as-gif#changing-the-number-of-loops',
|
|
20
|
+
type: 0,
|
|
21
|
+
getValue: ({ commandLine }) => {
|
|
22
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
23
|
+
validate(commandLine[cliFlag]);
|
|
24
|
+
return {
|
|
25
|
+
value: commandLine[cliFlag],
|
|
26
|
+
source: 'cli',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (currentLoop !== null) {
|
|
30
|
+
return {
|
|
31
|
+
value: currentLoop,
|
|
32
|
+
source: 'config',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
value: null,
|
|
37
|
+
source: 'default',
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
setConfig: (newLoop) => {
|
|
41
|
+
validate(newLoop);
|
|
42
|
+
currentLoop = newLoop;
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const getOffthreadVideoCacheSizeInBytes: () => number | null;
|
|
2
|
+
export declare const offthreadVideoCacheSizeInBytesOption: {
|
|
3
|
+
name: string;
|
|
4
|
+
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
5
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
ssrName: "offthreadVideoCacheSizeInBytes";
|
|
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
|
+
};
|
|
20
|
+
export declare const validateOffthreadVideoCacheSizeInBytes: (option: unknown) => void;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateOffthreadVideoCacheSizeInBytes = exports.offthreadVideoCacheSizeInBytesOption = exports.getOffthreadVideoCacheSizeInBytes = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let offthreadVideoCacheSizeInBytes = null;
|
|
6
|
+
const getOffthreadVideoCacheSizeInBytes = () => {
|
|
7
|
+
return offthreadVideoCacheSizeInBytes;
|
|
8
|
+
};
|
|
9
|
+
exports.getOffthreadVideoCacheSizeInBytes = getOffthreadVideoCacheSizeInBytes;
|
|
10
|
+
const cliFlag = 'offthreadvideo-cache-size-in-bytes';
|
|
11
|
+
exports.offthreadVideoCacheSizeInBytesOption = {
|
|
12
|
+
name: 'OffthreadVideo cache size',
|
|
13
|
+
cliFlag,
|
|
14
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["From v4.0, Remotion has a cache for", ' ', (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/offthreadvideo", children: (0, jsx_runtime_1.jsx)("code", { children: "<OffthreadVideo>" }) }), ' ', "frames. The default is ", (0, jsx_runtime_1.jsx)("code", { children: "null" }), ", corresponding to half of the system memory available when the render starts.", (0, jsx_runtime_1.jsx)("br", {}), " This option allows to override the size of the cache. The higher it is, the faster the render will be, but the more memory will be used.", (0, jsx_runtime_1.jsx)("br", {}), "The used value will be printed when running in verbose mode.", (0, jsx_runtime_1.jsx)("br", {}), "Default: ", (0, jsx_runtime_1.jsx)("code", { children: "null" })] })),
|
|
15
|
+
ssrName: 'offthreadVideoCacheSizeInBytes',
|
|
16
|
+
docLink: 'https://www.remotion.dev/docs/offthreadvideo',
|
|
17
|
+
type: 0,
|
|
18
|
+
getValue: ({ commandLine }) => {
|
|
19
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
20
|
+
return {
|
|
21
|
+
source: 'cli',
|
|
22
|
+
value: commandLine[cliFlag],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
if (offthreadVideoCacheSizeInBytes !== null) {
|
|
26
|
+
return {
|
|
27
|
+
source: 'config',
|
|
28
|
+
value: offthreadVideoCacheSizeInBytes,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
source: 'default',
|
|
33
|
+
value: null,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
setConfig: (size) => {
|
|
37
|
+
offthreadVideoCacheSizeInBytes = size !== null && size !== void 0 ? size : null;
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
const validateOffthreadVideoCacheSizeInBytes = (option) => {
|
|
41
|
+
if (option === undefined || option === null) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (typeof option !== 'number') {
|
|
45
|
+
throw new Error('Expected a number');
|
|
46
|
+
}
|
|
47
|
+
if (option < 0 || option === 0) {
|
|
48
|
+
throw new Error('Expected a positive number');
|
|
49
|
+
}
|
|
50
|
+
if (Number.isNaN(option)) {
|
|
51
|
+
throw new Error('Expected a number');
|
|
52
|
+
}
|
|
53
|
+
if (!Number.isFinite(option)) {
|
|
54
|
+
throw new Error('Expected a finite number');
|
|
55
|
+
}
|
|
56
|
+
if (option % 1 !== 0) {
|
|
57
|
+
throw new Error('Expected a whole number');
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.validateOffthreadVideoCacheSizeInBytes = validateOffthreadVideoCacheSizeInBytes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const getOffthreadVideoThreads: () => number | null;
|
|
2
|
+
export declare const offthreadVideoThreadsOption: {
|
|
3
|
+
name: string;
|
|
4
|
+
cliFlag: "offthreadvideo-video-threads";
|
|
5
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
ssrName: "offthreadVideoThreads";
|
|
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
|
+
};
|
|
20
|
+
export declare const DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = exports.offthreadVideoThreadsOption = exports.getOffthreadVideoThreads = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let value = null;
|
|
6
|
+
const getOffthreadVideoThreads = () => {
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
exports.getOffthreadVideoThreads = getOffthreadVideoThreads;
|
|
10
|
+
const cliFlag = 'offthreadvideo-video-threads';
|
|
11
|
+
exports.offthreadVideoThreadsOption = {
|
|
12
|
+
name: 'OffthreadVideo threads',
|
|
13
|
+
cliFlag,
|
|
14
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The number of threads that", (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/offthreadvideo", children: (0, jsx_runtime_1.jsx)("code", { children: "<OffthreadVideo>" }) }), ' ', "can start to extract frames. The default is", ' ', exports.DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS, ". Increase carefully, as too many threads may cause instability."] })),
|
|
15
|
+
ssrName: 'offthreadVideoThreads',
|
|
16
|
+
docLink: 'https://www.remotion.dev/docs/offthreadvideo',
|
|
17
|
+
type: 0,
|
|
18
|
+
getValue: ({ commandLine }) => {
|
|
19
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
20
|
+
return {
|
|
21
|
+
source: 'cli',
|
|
22
|
+
value: commandLine[cliFlag],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
if (value !== null) {
|
|
26
|
+
return {
|
|
27
|
+
source: 'config',
|
|
28
|
+
value,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
source: 'default',
|
|
33
|
+
value: null,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
setConfig: (size) => {
|
|
37
|
+
value = size !== null && size !== void 0 ? size : null;
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
exports.DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS = 2;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChromeMode } from './chrome-mode';
|
|
2
|
+
export type DownloadBrowserProgressFn = (progress: {
|
|
3
|
+
percent: number;
|
|
4
|
+
downloadedBytes: number;
|
|
5
|
+
totalSizeInBytes: number;
|
|
6
|
+
}) => void;
|
|
7
|
+
export type OnBrowserDownload = (options: {
|
|
8
|
+
chromeMode: ChromeMode;
|
|
9
|
+
}) => {
|
|
10
|
+
onProgress: DownloadBrowserProgressFn;
|
|
11
|
+
version: string | null;
|
|
12
|
+
};
|
|
13
|
+
export declare const onBrowserDownloadOption: {
|
|
14
|
+
name: string;
|
|
15
|
+
cliFlag: "on-browser-download";
|
|
16
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
ssrName: "onBrowserDownload";
|
|
18
|
+
docLink: string;
|
|
19
|
+
type: OnBrowserDownload;
|
|
20
|
+
getValue: () => never;
|
|
21
|
+
setConfig: () => never;
|
|
22
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.onBrowserDownloadOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'on-browser-download';
|
|
6
|
+
exports.onBrowserDownloadOption = {
|
|
7
|
+
name: 'Browser download callback function',
|
|
8
|
+
cliFlag,
|
|
9
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Gets called when no compatible local browser is detected on the system and this API needs to download a browser. Return a callback to observe progress.", ' ', (0, jsx_runtime_1.jsx)("a", { href: "/docs/renderer/ensure-browser#onbrowserdownload", children: "See here for how to use this option." })] })),
|
|
10
|
+
ssrName: 'onBrowserDownload',
|
|
11
|
+
docLink: 'https://www.remotion.dev/docs/renderer/ensure-browser',
|
|
12
|
+
type: undefined,
|
|
13
|
+
getValue: () => {
|
|
14
|
+
throw new Error('does not support config file');
|
|
15
|
+
},
|
|
16
|
+
setConfig: () => {
|
|
17
|
+
throw new Error('does not support config file');
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TypeOfOption } from '../client';
|
|
2
|
+
export type RemotionOption<SsrName extends string, Type> = {
|
|
3
|
+
name: string;
|
|
4
|
+
cliFlag: string;
|
|
5
|
+
ssrName: SsrName | null;
|
|
6
|
+
description: (mode: 'ssr' | 'cli') => React.ReactNode;
|
|
7
|
+
docLink: string | null;
|
|
8
|
+
type: Type;
|
|
9
|
+
getValue: (values: {
|
|
10
|
+
commandLine: Record<string, unknown>;
|
|
11
|
+
}, more?: any) => {
|
|
12
|
+
value: Type;
|
|
13
|
+
source: string;
|
|
14
|
+
};
|
|
15
|
+
setConfig: (value: Type) => void;
|
|
16
|
+
};
|
|
17
|
+
export type AnyRemotionOption<T> = RemotionOption<string, T>;
|
|
18
|
+
export type ToOptions<T extends Record<string, AnyRemotionOption<any>>> = {
|
|
19
|
+
[K in keyof T]: TypeOfOption<T[K]>;
|
|
20
|
+
};
|