@remotion/renderer 4.0.364 → 4.0.366
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/package.json +12 -12
- package/.prettierignore +0 -2
- package/dist/test/actual-concurrency.test.d.ts +0 -1
- package/dist/test/artifacts.test.d.ts +0 -1
- package/dist/test/asset-calculation.test.d.ts +0 -1
- package/dist/test/asset-compression.test.d.ts +0 -1
- package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +0 -1
- package/dist/test/browser-log-message.test.d.ts +0 -1
- package/dist/test/calculate-atempo.test.d.ts +0 -1
- package/dist/test/compositor-rust.test.d.ts +0 -1
- package/dist/test/crf.test.d.ts +0 -1
- package/dist/test/derive-codec-from-file-extension.test.d.ts +0 -1
- package/dist/test/dont-skip-assets.test.d.ts +0 -1
- package/dist/test/download-file.test.d.ts +0 -1
- package/dist/test/even-dimensions.test.d.ts +0 -1
- package/dist/test/extra-frames-to-capture.test.d.ts +0 -1
- package/dist/test/extract-audio.test.d.ts +0 -1
- package/dist/test/extract-frame-rust.test.d.ts +0 -1
- package/dist/test/ffmpeg-filters.test.d.ts +0 -1
- package/dist/test/ffmpeg-merge-filter.test.d.ts +0 -1
- package/dist/test/ffmpeg-volume-expression.test.d.ts +0 -1
- package/dist/test/file-extension.test.d.ts +0 -1
- package/dist/test/find-closest-package-json.test.d.ts +0 -1
- package/dist/test/flatten-volume-array.test.d.ts +0 -1
- package/dist/test/format-logs.test.d.ts +0 -1
- package/dist/test/frame-padded-index.test.d.ts +0 -1
- package/dist/test/frame.test.d.ts +0 -1
- package/dist/test/get-assets-for-markup.d.ts +0 -8
- package/dist/test/get-audio-channels.test.d.ts +0 -1
- package/dist/test/get-bundle-url-from-serve-url.test.d.ts +0 -1
- package/dist/test/get-silent-parts.test.d.ts +0 -1
- package/dist/test/guess-extension-for-media.test.d.ts +0 -1
- package/dist/test/handle-weird-file-names.test.d.ts +0 -1
- package/dist/test/log-level.test.d.ts +0 -1
- package/dist/test/mime-types.test.d.ts +0 -1
- package/dist/test/offthread-extract-url.test.d.ts +0 -1
- package/dist/test/parse-ffmpeg-progress.test.d.ts +0 -1
- package/dist/test/partitions.test.d.ts +0 -1
- package/dist/test/pixel-format.test.d.ts +0 -1
- package/dist/test/port-config.test.d.ts +0 -1
- package/dist/test/port-selection.test.d.ts +0 -1
- package/dist/test/prores-profile.test.d.ts +0 -1
- package/dist/test/render-still.test.d.ts +0 -1
- package/dist/test/rust-errors.test.d.ts +0 -1
- package/dist/test/rust-get-video-metadata.test.d.ts +0 -1
- package/dist/test/rust-memory-usage.test.d.ts +0 -1
- package/dist/test/sanitize-file-path.test.d.ts +0 -1
- package/dist/test/serve-url.test.d.ts +0 -1
- package/dist/test/symbolicate-remote-stack.test.d.ts +0 -1
- package/dist/test/validate-concurrency.test.d.ts +0 -1
- package/dist/test/validate-config-stitcher.test.d.ts +0 -1
- package/dist/test/validate-config.test.d.ts +0 -1
- package/dist/test/validate-even-dimensions-with-codec.test.d.ts +0 -1
- package/dist/test/validate-image-format.test.d.ts +0 -1
- package/dist/test/webpack-to-serve-url.test.d.ts +0 -1
- package/ensure-browser.mjs +0 -3337
- package/package/dist/assets/apply-tone-frequency.d.ts +0 -11
- package/package/dist/assets/apply-tone-frequency.js +0 -34
- package/package/dist/assets/calculate-asset-positions.d.ts +0 -3
- package/package/dist/assets/calculate-asset-positions.js +0 -72
- package/package/dist/assets/calculate-atempo.d.ts +0 -1
- package/package/dist/assets/calculate-atempo.js +0 -16
- package/package/dist/assets/convert-assets-to-file-urls.d.ts +0 -13
- package/package/dist/assets/convert-assets-to-file-urls.js +0 -36
- package/package/dist/assets/download-and-map-assets-to-file.d.ts +0 -37
- package/package/dist/assets/download-and-map-assets-to-file.js +0 -312
- package/package/dist/assets/download-file.d.ts +0 -18
- package/package/dist/assets/download-file.js +0 -135
- package/package/dist/assets/download-map.d.ts +0 -55
- package/package/dist/assets/download-map.js +0 -63
- package/package/dist/assets/ffmpeg-volume-expression.d.ts +0 -12
- package/package/dist/assets/ffmpeg-volume-expression.js +0 -96
- package/package/dist/assets/flatten-volume-array.d.ts +0 -3
- package/package/dist/assets/flatten-volume-array.js +0 -26
- package/package/dist/assets/get-audio-channels.d.ts +0 -20
- package/package/dist/assets/get-audio-channels.js +0 -78
- package/package/dist/assets/inline-audio-mixing.d.ts +0 -22
- package/package/dist/assets/inline-audio-mixing.js +0 -189
- package/package/dist/assets/read-file.d.ts +0 -7
- package/package/dist/assets/read-file.js +0 -97
- package/package/dist/assets/round-volume-to-avoid-stack-overflow.d.ts +0 -1
- package/package/dist/assets/round-volume-to-avoid-stack-overflow.js +0 -17
- package/package/dist/assets/sanitize-filename.d.ts +0 -1
- package/package/dist/assets/sanitize-filename.js +0 -58
- package/package/dist/assets/sanitize-filepath.d.ts +0 -1
- package/package/dist/assets/sanitize-filepath.js +0 -16
- package/package/dist/assets/truncate-utf8-bytes.d.ts +0 -1
- package/package/dist/assets/truncate-utf8-bytes.js +0 -36
- package/package/dist/assets/types.d.ts +0 -18
- package/package/dist/assets/types.js +0 -21
- package/package/dist/browser/Browser.d.ts +0 -97
- package/package/dist/browser/Browser.js +0 -246
- package/package/dist/browser/BrowserFetcher.d.ts +0 -33
- package/package/dist/browser/BrowserFetcher.js +0 -215
- package/package/dist/browser/BrowserPage.d.ts +0 -104
- package/package/dist/browser/BrowserPage.js +0 -436
- package/package/dist/browser/BrowserRunner.d.ts +0 -33
- package/package/dist/browser/BrowserRunner.js +0 -303
- package/package/dist/browser/Connection.d.ts +0 -49
- package/package/dist/browser/Connection.js +0 -258
- package/package/dist/browser/ConsoleMessage.d.ts +0 -42
- package/package/dist/browser/ConsoleMessage.js +0 -47
- package/package/dist/browser/DOMWorld.d.ts +0 -56
- package/package/dist/browser/DOMWorld.js +0 -272
- package/package/dist/browser/Errors.d.ts +0 -25
- package/package/dist/browser/Errors.js +0 -35
- package/package/dist/browser/EvalTypes.d.ts +0 -27
- package/package/dist/browser/EvalTypes.js +0 -17
- package/package/dist/browser/EventEmitter.d.ts +0 -23
- package/package/dist/browser/EventEmitter.js +0 -53
- package/package/dist/browser/ExecutionContext.d.ts +0 -34
- package/package/dist/browser/ExecutionContext.js +0 -174
- package/package/dist/browser/FrameManager.d.ts +0 -89
- package/package/dist/browser/FrameManager.js +0 -487
- package/package/dist/browser/HTTPRequest.d.ts +0 -29
- package/package/dist/browser/HTTPRequest.js +0 -39
- package/package/dist/browser/HTTPResponse.d.ts +0 -21
- package/package/dist/browser/HTTPResponse.js +0 -41
- package/package/dist/browser/JSHandle.d.ts +0 -35
- package/package/dist/browser/JSHandle.js +0 -90
- package/package/dist/browser/LaunchOptions.d.ts +0 -26
- package/package/dist/browser/LaunchOptions.js +0 -17
- package/package/dist/browser/Launcher.d.ts +0 -18
- package/package/dist/browser/Launcher.js +0 -41
- package/package/dist/browser/LifecycleWatcher.d.ts +0 -29
- package/package/dist/browser/LifecycleWatcher.js +0 -180
- package/package/dist/browser/NetworkEventManager.d.ts +0 -34
- package/package/dist/browser/NetworkEventManager.js +0 -85
- package/package/dist/browser/NetworkManager.d.ts +0 -37
- package/package/dist/browser/NetworkManager.js +0 -246
- package/package/dist/browser/NodeWebSocketTransport.d.ts +0 -19
- package/package/dist/browser/NodeWebSocketTransport.js +0 -81
- package/package/dist/browser/PuppeteerViewport.d.ts +0 -5
- package/package/dist/browser/PuppeteerViewport.js +0 -2
- package/package/dist/browser/ScreenshotOptions.d.ts +0 -0
- package/package/dist/browser/ScreenshotOptions.js +0 -1
- package/package/dist/browser/Target.d.ts +0 -72
- package/package/dist/browser/Target.js +0 -161
- package/package/dist/browser/TaskQueue.d.ts +0 -20
- package/package/dist/browser/TaskQueue.js +0 -47
- package/package/dist/browser/TimeoutSettings.d.ts +0 -24
- package/package/dist/browser/TimeoutSettings.js +0 -62
- package/package/dist/browser/assert.d.ts +0 -1
- package/package/dist/browser/assert.js +0 -9
- package/package/dist/browser/browser-download-progress-bar.d.ts +0 -7
- package/package/dist/browser/browser-download-progress-bar.js +0 -31
- package/package/dist/browser/devtools-commands.d.ts +0 -274
- package/package/dist/browser/devtools-commands.js +0 -2
- package/package/dist/browser/devtools-types.d.ts +0 -1263
- package/package/dist/browser/devtools-types.js +0 -2
- package/package/dist/browser/flaky-errors.d.ts +0 -2
- package/package/dist/browser/flaky-errors.js +0 -20
- package/package/dist/browser/get-download-destination.d.ts +0 -1
- package/package/dist/browser/get-download-destination.js +0 -38
- package/package/dist/browser/handle-failed-resource.d.ts +0 -10
- package/package/dist/browser/handle-failed-resource.js +0 -21
- package/package/dist/browser/mitt/index.d.ts +0 -22
- package/package/dist/browser/mitt/index.js +0 -49
- package/package/dist/browser/should-log-message.d.ts +0 -24
- package/package/dist/browser/should-log-message.js +0 -104
- package/package/dist/browser/source-map-getter.d.ts +0 -2
- package/package/dist/browser/source-map-getter.js +0 -2
- package/package/dist/browser/util.d.ts +0 -37
- package/package/dist/browser/util.js +0 -169
- package/package/dist/browser-executable.d.ts +0 -1
- package/package/dist/browser-executable.js +0 -2
- package/package/dist/browser-log.d.ts +0 -6
- package/package/dist/browser-log.js +0 -2
- package/package/dist/browser.d.ts +0 -2
- package/package/dist/browser.js +0 -4
- package/package/dist/call-ffmpeg.d.ts +0 -22
- package/package/dist/call-ffmpeg.js +0 -53
- package/package/dist/can-concat-seamlessly.d.ts +0 -4
- package/package/dist/can-concat-seamlessly.js +0 -17
- package/package/dist/can-use-parallel-encoding.d.ts +0 -3
- package/package/dist/can-use-parallel-encoding.js +0 -19
- package/package/dist/chalk/index.d.ts +0 -55
- package/package/dist/chalk/index.js +0 -130
- package/package/dist/chalk/is-color-supported.d.ts +0 -1
- package/package/dist/chalk/is-color-supported.js +0 -55
- package/package/dist/check-version-requirements.d.ts +0 -3
- package/package/dist/check-version-requirements.js +0 -82
- package/package/dist/chunk.d.ts +0 -1
- package/package/dist/chunk.js +0 -11
- package/package/dist/client.d.ts +0 -3016
- package/package/dist/client.js +0 -57
- package/package/dist/codec-supports-media.d.ts +0 -9
- package/package/dist/codec-supports-media.js +0 -76
- package/package/dist/codec.d.ts +0 -4
- package/package/dist/codec.js +0 -17
- package/package/dist/collect-assets.d.ts +0 -7
- package/package/dist/collect-assets.js +0 -38
- package/package/dist/combine-audio.d.ts +0 -21
- package/package/dist/combine-audio.js +0 -183
- package/package/dist/combine-chunks.d.ts +0 -39
- package/package/dist/combine-chunks.js +0 -171
- package/package/dist/combine-video-streams-seamlessly.d.ts +0 -3
- package/package/dist/combine-video-streams-seamlessly.js +0 -8
- package/package/dist/combine-video-streams.d.ts +0 -17
- package/package/dist/combine-video-streams.js +0 -75
- package/package/dist/compositor/compositor.d.ts +0 -22
- package/package/dist/compositor/compositor.js +0 -182
- package/package/dist/compositor/get-executable-path.d.ts +0 -12
- package/package/dist/compositor/get-executable-path.js +0 -95
- package/package/dist/compositor/get-explicit-env.d.ts +0 -3
- package/package/dist/compositor/get-explicit-env.js +0 -13
- package/package/dist/compositor/make-file-executable.d.ts +0 -1
- package/package/dist/compositor/make-file-executable.js +0 -44
- package/package/dist/compositor/make-nonce.d.ts +0 -1
- package/package/dist/compositor/make-nonce.js +0 -8
- package/package/dist/compositor/payloads.d.ts +0 -73
- package/package/dist/compositor/payloads.js +0 -2
- package/package/dist/compositor/serialize-command.d.ts +0 -2
- package/package/dist/compositor/serialize-command.js +0 -14
- package/package/dist/compress-assets.d.ts +0 -7
- package/package/dist/compress-assets.js +0 -25
- package/package/dist/compress-audio.d.ts +0 -16
- package/package/dist/compress-audio.js +0 -44
- package/package/dist/convert-number-of-gif-loops-to-ffmpeg.d.ts +0 -1
- package/package/dist/convert-number-of-gif-loops-to-ffmpeg.js +0 -17
- package/package/dist/convert-to-positive-frame-index.d.ts +0 -4
- package/package/dist/convert-to-positive-frame-index.js +0 -8
- package/package/dist/create-audio.d.ts +0 -29
- package/package/dist/create-audio.js +0 -127
- package/package/dist/create-ffmpeg-complex-filter.d.ts +0 -10
- package/package/dist/create-ffmpeg-complex-filter.js +0 -24
- package/package/dist/create-ffmpeg-merge-filter.d.ts +0 -5
- package/package/dist/create-ffmpeg-merge-filter.js +0 -25
- package/package/dist/create-silent-audio.d.ts +0 -10
- package/package/dist/create-silent-audio.js +0 -28
- package/package/dist/crf.d.ts +0 -13
- package/package/dist/crf.js +0 -103
- package/package/dist/cycle-browser-tabs.d.ts +0 -10
- package/package/dist/cycle-browser-tabs.js +0 -50
- package/package/dist/default-on-log.d.ts +0 -2
- package/package/dist/default-on-log.js +0 -8
- package/package/dist/delay-render-embedded-stack.d.ts +0 -2
- package/package/dist/delay-render-embedded-stack.js +0 -17
- package/package/dist/delete-directory.d.ts +0 -1
- package/package/dist/delete-directory.js +0 -68
- package/package/dist/ensure-browser.d.ts +0 -24
- package/package/dist/ensure-browser.js +0 -58
- package/package/dist/ensure-frames-in-order.d.ts +0 -5
- package/package/dist/ensure-frames-in-order.js +0 -39
- package/package/dist/ensure-output-directory.d.ts +0 -1
- package/package/dist/ensure-output-directory.js +0 -17
- package/package/dist/error-handling/handle-javascript-exception.d.ts +0 -23
- package/package/dist/error-handling/handle-javascript-exception.js +0 -86
- package/package/dist/error-handling/symbolicate-error.d.ts +0 -3
- package/package/dist/error-handling/symbolicate-error.js +0 -26
- package/package/dist/error-handling/symbolicateable-error.d.ts +0 -18
- package/package/dist/error-handling/symbolicateable-error.js +0 -19
- package/package/dist/error-handling.d.ts +0 -1
- package/package/dist/error-handling.js +0 -5
- package/package/dist/esm/client.mjs +0 -3270
- package/package/dist/esm/error-handling.mjs +0 -363
- package/package/dist/esm/index.mjs +0 -23201
- package/package/dist/esm/pure.mjs +0 -526
- package/package/dist/extract-audio.d.ts +0 -7
- package/package/dist/extract-audio.js +0 -25
- package/package/dist/ffmpeg-args.d.ts +0 -21
- package/package/dist/ffmpeg-args.js +0 -96
- package/package/dist/ffmpeg-filter-file.d.ts +0 -13
- package/package/dist/ffmpeg-filter-file.js +0 -70
- package/package/dist/ffmpeg-override.d.ts +0 -4
- package/package/dist/ffmpeg-override.js +0 -2
- package/package/dist/file-extensions.d.ts +0 -14
- package/package/dist/file-extensions.js +0 -85
- package/package/dist/filter-asset-types.d.ts +0 -8
- package/package/dist/filter-asset-types.js +0 -44
- package/package/dist/find-closest-package-json.d.ts +0 -2
- package/package/dist/find-closest-package-json.js +0 -31
- package/package/dist/format-logs.d.ts +0 -3
- package/package/dist/format-logs.js +0 -214
- package/package/dist/frame-range.d.ts +0 -2
- package/package/dist/frame-range.js +0 -49
- package/package/dist/get-browser-instance.d.ts +0 -24
- package/package/dist/get-browser-instance.js +0 -63
- package/package/dist/get-bundle-url-from-serve-url.d.ts +0 -2
- package/package/dist/get-bundle-url-from-serve-url.js +0 -30
- package/package/dist/get-codec-name.d.ts +0 -21
- package/package/dist/get-codec-name.js +0 -87
- package/package/dist/get-compositions.d.ts +0 -34
- package/package/dist/get-compositions.js +0 -196
- package/package/dist/get-concurrency.d.ts +0 -1
- package/package/dist/get-concurrency.js +0 -27
- package/package/dist/get-cpu-count.d.ts +0 -2
- package/package/dist/get-cpu-count.js +0 -33
- package/package/dist/get-duration-from-frame-range.d.ts +0 -1
- package/package/dist/get-duration-from-frame-range.js +0 -17
- package/package/dist/get-extension-from-codec.d.ts +0 -6
- package/package/dist/get-extension-from-codec.js +0 -61
- package/package/dist/get-extension-of-filename.d.ts +0 -1
- package/package/dist/get-extension-of-filename.js +0 -15
- package/package/dist/get-extra-frames-to-capture.d.ts +0 -14
- package/package/dist/get-extra-frames-to-capture.js +0 -62
- package/package/dist/get-frame-padded-index.d.ts +0 -21
- package/package/dist/get-frame-padded-index.js +0 -43
- package/package/dist/get-frame-to-render.d.ts +0 -2
- package/package/dist/get-frame-to-render.js +0 -19
- package/package/dist/get-local-browser-executable.d.ts +0 -9
- package/package/dist/get-local-browser-executable.js +0 -36
- package/package/dist/get-port.d.ts +0 -15
- package/package/dist/get-port.js +0 -86
- package/package/dist/get-prores-profile-name.d.ts +0 -3
- package/package/dist/get-prores-profile-name.js +0 -25
- package/package/dist/get-silent-parts.d.ts +0 -10
- package/package/dist/get-silent-parts.js +0 -66
- package/package/dist/get-video-metadata.d.ts +0 -10
- package/package/dist/get-video-metadata.js +0 -25
- package/package/dist/get-video-threads-flag.d.ts +0 -2
- package/package/dist/get-video-threads-flag.js +0 -16
- package/package/dist/goto-page-or-throw.d.ts +0 -3
- package/package/dist/goto-page-or-throw.js +0 -16
- package/package/dist/guess-extension-for-media.d.ts +0 -9
- package/package/dist/guess-extension-for-media.js +0 -31
- package/package/dist/image-format.d.ts +0 -13
- package/package/dist/image-format.js +0 -37
- package/package/dist/index.d.ts +0 -1256
- package/package/dist/index.js +0 -227
- package/package/dist/is-audio-codec.d.ts +0 -2
- package/package/dist/is-audio-codec.js +0 -7
- package/package/dist/is-delay-render-error-with-retry.d.ts +0 -1
- package/package/dist/is-delay-render-error-with-retry.js +0 -28
- package/package/dist/is-serve-url.d.ts +0 -1
- package/package/dist/is-serve-url.js +0 -15
- package/package/dist/jpeg-quality.d.ts +0 -2
- package/package/dist/jpeg-quality.js +0 -22
- package/package/dist/locks.d.ts +0 -7
- package/package/dist/locks.js +0 -47
- package/package/dist/log-level.d.ts +0 -4
- package/package/dist/log-level.js +0 -15
- package/package/dist/logger.d.ts +0 -20
- package/package/dist/logger.js +0 -89
- package/package/dist/make-cancel-signal.d.ts +0 -14
- package/package/dist/make-cancel-signal.js +0 -48
- package/package/dist/make-metadata-args.d.ts +0 -2
- package/package/dist/make-metadata-args.js +0 -22
- package/package/dist/make-page.d.ts +0 -30
- package/package/dist/make-page.js +0 -70
- package/package/dist/memory/from-docker-cgroup.d.ts +0 -1
- package/package/dist/memory/from-docker-cgroup.js +0 -66
- package/package/dist/memory/from-lambda-env.d.ts +0 -1
- package/package/dist/memory/from-lambda-env.js +0 -10
- package/package/dist/memory/from-proc-meminfo.d.ts +0 -2
- package/package/dist/memory/from-proc-meminfo.js +0 -44
- package/package/dist/memory/get-available-memory.d.ts +0 -2
- package/package/dist/memory/get-available-memory.js +0 -44
- package/package/dist/merge-audio-track.d.ts +0 -19
- package/package/dist/merge-audio-track.js +0 -133
- package/package/dist/mime-db.d.ts +0 -6
- package/package/dist/mime-db.js +0 -8636
- package/package/dist/mime-types.d.ts +0 -3
- package/package/dist/mime-types.js +0 -94
- package/package/dist/mux-video-and-audio.d.ts +0 -15
- package/package/dist/mux-video-and-audio.js +0 -54
- package/package/dist/next-frame-to-render.d.ts +0 -11
- package/package/dist/next-frame-to-render.js +0 -41
- package/package/dist/normalize-serve-url.d.ts +0 -1
- package/package/dist/normalize-serve-url.js +0 -19
- package/package/dist/offthread-video-server.d.ts +0 -51
- package/package/dist/offthread-video-server.js +0 -217
- package/package/dist/open-browser.d.ts +0 -47
- package/package/dist/open-browser.js +0 -200
- package/package/dist/options/api-key.d.ts +0 -15
- package/package/dist/options/api-key.js +0 -29
- package/package/dist/options/audio-bitrate.d.ts +0 -18
- package/package/dist/options/audio-bitrate.js +0 -35
- package/package/dist/options/audio-codec.d.ts +0 -55
- package/package/dist/options/audio-codec.js +0 -188
- package/package/dist/options/beep-on-finish.d.ts +0 -15
- package/package/dist/options/beep-on-finish.js +0 -35
- package/package/dist/options/binaries-directory.d.ts +0 -15
- package/package/dist/options/binaries-directory.js +0 -35
- package/package/dist/options/chrome-mode.d.ts +0 -17
- package/package/dist/options/chrome-mode.js +0 -46
- package/package/dist/options/color-space.d.ts +0 -23
- package/package/dist/options/color-space.js +0 -49
- package/package/dist/options/crf.d.ts +0 -17
- package/package/dist/options/crf.js +0 -43
- package/package/dist/options/cross-site-isolation.d.ts +0 -15
- package/package/dist/options/cross-site-isolation.js +0 -29
- package/package/dist/options/delete-after.d.ts +0 -19
- package/package/dist/options/delete-after.js +0 -37
- package/package/dist/options/disable-git-source.d.ts +0 -15
- package/package/dist/options/disable-git-source.js +0 -28
- package/package/dist/options/disallow-parallel-encoding.d.ts +0 -15
- package/package/dist/options/disallow-parallel-encoding.js +0 -35
- package/package/dist/options/enable-lambda-insights.d.ts +0 -15
- package/package/dist/options/enable-lambda-insights.js +0 -35
- package/package/dist/options/enable-multiprocess-on-linux.d.ts +0 -15
- package/package/dist/options/enable-multiprocess-on-linux.js +0 -36
- package/package/dist/options/encoding-buffer-size.d.ts +0 -18
- package/package/dist/options/encoding-buffer-size.js +0 -39
- package/package/dist/options/encoding-max-rate.d.ts +0 -18
- package/package/dist/options/encoding-max-rate.js +0 -35
- package/package/dist/options/enforce-audio.d.ts +0 -18
- package/package/dist/options/enforce-audio.js +0 -36
- package/package/dist/options/folder-expiry.d.ts +0 -15
- package/package/dist/options/folder-expiry.js +0 -37
- package/package/dist/options/for-seamless-aac-concatenation.d.ts +0 -19
- package/package/dist/options/for-seamless-aac-concatenation.js +0 -40
- package/package/dist/options/gl.d.ts +0 -24
- package/package/dist/options/gl.js +0 -68
- package/package/dist/options/hardware-acceleration.d.ts +0 -18
- package/package/dist/options/hardware-acceleration.js +0 -56
- package/package/dist/options/headless.d.ts +0 -15
- package/package/dist/options/headless.js +0 -36
- package/package/dist/options/image-sequence-pattern.d.ts +0 -15
- package/package/dist/options/image-sequence-pattern.js +0 -30
- package/package/dist/options/index.d.ts +0 -747
- package/package/dist/options/index.js +0 -97
- package/package/dist/options/jpeg-quality.d.ts +0 -17
- package/package/dist/options/jpeg-quality.js +0 -47
- package/package/dist/options/latency-hint.d.ts +0 -18
- package/package/dist/options/latency-hint.js +0 -27
- package/package/dist/options/log-level.d.ts +0 -16
- package/package/dist/options/log-level.js +0 -32
- package/package/dist/options/metadata.d.ts +0 -18
- package/package/dist/options/metadata.js +0 -47
- package/package/dist/options/mute.d.ts +0 -15
- package/package/dist/options/mute.js +0 -37
- package/package/dist/options/number-of-gif-loops.d.ts +0 -19
- package/package/dist/options/number-of-gif-loops.js +0 -44
- package/package/dist/options/offthreadvideo-cache-size.d.ts +0 -20
- package/package/dist/options/offthreadvideo-cache-size.js +0 -60
- package/package/dist/options/offthreadvideo-threads.d.ts +0 -20
- package/package/dist/options/offthreadvideo-threads.js +0 -40
- package/package/dist/options/on-browser-download.d.ts +0 -22
- package/package/dist/options/on-browser-download.js +0 -19
- package/package/dist/options/option.d.ts +0 -20
- package/package/dist/options/option.js +0 -2
- package/package/dist/options/options-map.d.ts +0 -2040
- package/package/dist/options/options-map.js +0 -192
- package/package/dist/options/overwrite.d.ts +0 -15
- package/package/dist/options/overwrite.js +0 -42
- package/package/dist/options/prefer-lossless.d.ts +0 -18
- package/package/dist/options/prefer-lossless.js +0 -26
- package/package/dist/options/public-dir.d.ts +0 -18
- package/package/dist/options/public-dir.js +0 -37
- package/package/dist/options/public-path.d.ts +0 -18
- package/package/dist/options/public-path.js +0 -37
- package/package/dist/options/repro.d.ts +0 -15
- package/package/dist/options/repro.js +0 -36
- package/package/dist/options/scale.d.ts +0 -15
- package/package/dist/options/scale.js +0 -41
- package/package/dist/options/separate-audio.d.ts +0 -18
- package/package/dist/options/separate-audio.js +0 -28
- package/package/dist/options/throw-if-site-exists.d.ts +0 -15
- package/package/dist/options/throw-if-site-exists.js +0 -28
- package/package/dist/options/timeout.d.ts +0 -15
- package/package/dist/options/timeout.js +0 -44
- package/package/dist/options/video-bitrate.d.ts +0 -15
- package/package/dist/options/video-bitrate.js +0 -35
- package/package/dist/options/video-cache-size.d.ts +0 -19
- package/package/dist/options/video-cache-size.js +0 -39
- package/package/dist/options/video-codec.d.ts +0 -23
- package/package/dist/options/video-codec.js +0 -104
- package/package/dist/options/webhook-custom-data.d.ts +0 -10
- package/package/dist/options/webhook-custom-data.js +0 -21
- package/package/dist/options/x264-preset.d.ts +0 -25
- package/package/dist/options/x264-preset.js +0 -55
- package/package/dist/overwrite.d.ts +0 -1
- package/package/dist/overwrite.js +0 -4
- package/package/dist/p-limit.d.ts +0 -1
- package/package/dist/p-limit.js +0 -57
- package/package/dist/parse-browser-error-stack.d.ts +0 -7
- package/package/dist/parse-browser-error-stack.js +0 -87
- package/package/dist/parse-ffmpeg-progress.d.ts +0 -1
- package/package/dist/parse-ffmpeg-progress.js +0 -18
- package/package/dist/path-normalize.d.ts +0 -1
- package/package/dist/path-normalize.js +0 -132
- package/package/dist/perf.d.ts +0 -5
- package/package/dist/perf.js +0 -37
- package/package/dist/pixel-format.d.ts +0 -6
- package/package/dist/pixel-format.js +0 -37
- package/package/dist/pool.d.ts +0 -8
- package/package/dist/pool.js +0 -30
- package/package/dist/port-config.d.ts +0 -14
- package/package/dist/port-config.js +0 -79
- package/package/dist/prepare-server.d.ts +0 -32
- package/package/dist/prepare-server.js +0 -123
- package/package/dist/preprocess-audio-track.d.ts +0 -27
- package/package/dist/preprocess-audio-track.js +0 -82
- package/package/dist/prespawn-ffmpeg.d.ts +0 -49
- package/package/dist/prespawn-ffmpeg.js +0 -112
- package/package/dist/prestitcher-memory-usage.d.ts +0 -10
- package/package/dist/prestitcher-memory-usage.js +0 -26
- package/package/dist/print-useful-error-message.d.ts +0 -2
- package/package/dist/print-useful-error-message.js +0 -110
- package/package/dist/prores-profile.d.ts +0 -7
- package/package/dist/prores-profile.js +0 -23
- package/package/dist/puppeteer-evaluate.d.ts +0 -17
- package/package/dist/puppeteer-evaluate.js +0 -162
- package/package/dist/puppeteer-screenshot.d.ts +0 -12
- package/package/dist/puppeteer-screenshot.js +0 -58
- package/package/dist/pure.d.ts +0 -17
- package/package/dist/pure.js +0 -17
- package/package/dist/redirect-status-codes.d.ts +0 -1
- package/package/dist/redirect-status-codes.js +0 -6
- package/package/dist/render-frame-and-retry-target-close.d.ts +0 -54
- package/package/dist/render-frame-and-retry-target-close.js +0 -179
- package/package/dist/render-frame-with-option-to-reject.d.ts +0 -48
- package/package/dist/render-frame-with-option-to-reject.js +0 -156
- package/package/dist/render-frame.d.ts +0 -47
- package/package/dist/render-frame.js +0 -51
- package/package/dist/render-frames.d.ts +0 -97
- package/package/dist/render-frames.js +0 -413
- package/package/dist/render-has-audio.d.ts +0 -8
- package/package/dist/render-has-audio.js +0 -20
- package/package/dist/render-media.d.ts +0 -135
- package/package/dist/render-media.js +0 -621
- package/package/dist/render-partitions.d.ts +0 -7
- package/package/dist/render-partitions.js +0 -50
- package/package/dist/render-still.d.ts +0 -74
- package/package/dist/render-still.js +0 -356
- package/package/dist/replace-browser.d.ts +0 -7
- package/package/dist/replace-browser.js +0 -48
- package/package/dist/repro.d.ts +0 -25
- package/package/dist/repro.js +0 -184
- package/package/dist/resolve-asset-src.d.ts +0 -1
- package/package/dist/resolve-asset-src.js +0 -17
- package/package/dist/sample-rate.d.ts +0 -1
- package/package/dist/sample-rate.js +0 -4
- package/package/dist/screenshot-task.d.ts +0 -12
- package/package/dist/screenshot-task.js +0 -86
- package/package/dist/seamless-aac-trim.d.ts +0 -12
- package/package/dist/seamless-aac-trim.js +0 -24
- package/package/dist/seek-to-frame.d.ts +0 -18
- package/package/dist/seek-to-frame.js +0 -148
- package/package/dist/select-composition.d.ts +0 -45
- package/package/dist/select-composition.js +0 -219
- package/package/dist/serialize-artifact.d.ts +0 -7
- package/package/dist/serialize-artifact.js +0 -2
- package/package/dist/serve-handler/index.d.ts +0 -4
- package/package/dist/serve-handler/index.js +0 -208
- package/package/dist/serve-handler/is-path-inside.d.ts +0 -1
- package/package/dist/serve-handler/is-path-inside.js +0 -27
- package/package/dist/serve-handler/range-parser.d.ts +0 -13
- package/package/dist/serve-handler/range-parser.js +0 -57
- package/package/dist/serve-static.d.ts +0 -18
- package/package/dist/serve-static.js +0 -141
- package/package/dist/set-props-and-env.d.ts +0 -22
- package/package/dist/set-props-and-env.js +0 -219
- package/package/dist/stitch-frames-to-video.d.ts +0 -77
- package/package/dist/stitch-frames-to-video.js +0 -350
- package/package/dist/stringify-ffmpeg-filter.d.ts +0 -24
- package/package/dist/stringify-ffmpeg-filter.js +0 -140
- package/package/dist/succeed-or-cancel.d.ts +0 -6
- package/package/dist/succeed-or-cancel.js +0 -23
- package/package/dist/symbolicate-stacktrace.d.ts +0 -29
- package/package/dist/symbolicate-stacktrace.js +0 -155
- package/package/dist/take-frame.d.ts +0 -13
- package/package/dist/take-frame.js +0 -47
- package/package/dist/test/actual-concurrency.test.d.ts +0 -1
- package/package/dist/test/artifacts.test.d.ts +0 -1
- package/package/dist/test/asset-calculation.test.d.ts +0 -1
- package/package/dist/test/asset-compression.test.d.ts +0 -1
- package/package/dist/test/avoid-ffmpeg-stackoverflow.test.d.ts +0 -1
- package/package/dist/test/browser-log-message.test.d.ts +0 -1
- package/package/dist/test/calculate-atempo.test.d.ts +0 -1
- package/package/dist/test/compositor-rust.test.d.ts +0 -1
- package/package/dist/test/crf.test.d.ts +0 -1
- package/package/dist/test/derive-codec-from-file-extension.test.d.ts +0 -1
- package/package/dist/test/dont-skip-assets.test.d.ts +0 -1
- package/package/dist/test/download-file.test.d.ts +0 -1
- package/package/dist/test/even-dimensions.test.d.ts +0 -1
- package/package/dist/test/extra-frames-to-capture.test.d.ts +0 -1
- package/package/dist/test/extract-audio.test.d.ts +0 -1
- package/package/dist/test/extract-frame-rust.test.d.ts +0 -1
- package/package/dist/test/ffmpeg-filters.test.d.ts +0 -1
- package/package/dist/test/ffmpeg-merge-filter.test.d.ts +0 -1
- package/package/dist/test/ffmpeg-volume-expression.test.d.ts +0 -1
- package/package/dist/test/file-extension.test.d.ts +0 -1
- package/package/dist/test/find-closest-package-json.test.d.ts +0 -1
- package/package/dist/test/flatten-volume-array.test.d.ts +0 -1
- package/package/dist/test/format-logs.test.d.ts +0 -1
- package/package/dist/test/frame-padded-index.test.d.ts +0 -1
- package/package/dist/test/frame.test.d.ts +0 -1
- package/package/dist/test/get-assets-for-markup.d.ts +0 -8
- package/package/dist/test/get-audio-channels.test.d.ts +0 -1
- package/package/dist/test/get-bundle-url-from-serve-url.test.d.ts +0 -1
- package/package/dist/test/get-silent-parts.test.d.ts +0 -1
- package/package/dist/test/guess-extension-for-media.test.d.ts +0 -1
- package/package/dist/test/handle-weird-file-names.test.d.ts +0 -1
- package/package/dist/test/log-level.test.d.ts +0 -1
- package/package/dist/test/mime-types.test.d.ts +0 -1
- package/package/dist/test/offthread-extract-url.test.d.ts +0 -1
- package/package/dist/test/parse-ffmpeg-progress.test.d.ts +0 -1
- package/package/dist/test/partitions.test.d.ts +0 -1
- package/package/dist/test/pixel-format.test.d.ts +0 -1
- package/package/dist/test/port-config.test.d.ts +0 -1
- package/package/dist/test/port-selection.test.d.ts +0 -1
- package/package/dist/test/prores-profile.test.d.ts +0 -1
- package/package/dist/test/render-still.test.d.ts +0 -1
- package/package/dist/test/rust-errors.test.d.ts +0 -1
- package/package/dist/test/rust-get-video-metadata.test.d.ts +0 -1
- package/package/dist/test/rust-memory-usage.test.d.ts +0 -1
- package/package/dist/test/sanitize-file-path.test.d.ts +0 -1
- package/package/dist/test/serve-url.test.d.ts +0 -1
- package/package/dist/test/symbolicate-remote-stack.test.d.ts +0 -1
- package/package/dist/test/validate-concurrency.test.d.ts +0 -1
- package/package/dist/test/validate-config-stitcher.test.d.ts +0 -1
- package/package/dist/test/validate-config.test.d.ts +0 -1
- package/package/dist/test/validate-even-dimensions-with-codec.test.d.ts +0 -1
- package/package/dist/test/validate-image-format.test.d.ts +0 -1
- package/package/dist/test/webpack-to-serve-url.test.d.ts +0 -1
- package/package/dist/test-gpu.d.ts +0 -21
- package/package/dist/test-gpu.js +0 -45
- package/package/dist/tmp-dir.d.ts +0 -1
- package/package/dist/tmp-dir.js +0 -63
- package/package/dist/to-megabytes.d.ts +0 -1
- package/package/dist/to-megabytes.js +0 -7
- package/package/dist/truthy.d.ts +0 -3
- package/package/dist/truthy.js +0 -6
- package/package/dist/types.d.ts +0 -10
- package/package/dist/types.js +0 -2
- package/package/dist/v5-required-input-props.d.ts +0 -6
- package/package/dist/v5-required-input-props.js +0 -2
- package/package/dist/validate-concurrency.d.ts +0 -7
- package/package/dist/validate-concurrency.js +0 -38
- package/package/dist/validate-even-dimensions-with-codec.d.ts +0 -14
- package/package/dist/validate-even-dimensions-with-codec.js +0 -40
- package/package/dist/validate-every-nth-frame.d.ts +0 -1
- package/package/dist/validate-every-nth-frame.js +0 -24
- package/package/dist/validate-ffmpeg-override.d.ts +0 -2
- package/package/dist/validate-ffmpeg-override.js +0 -12
- package/package/dist/validate-number-of-gif-loops.d.ts +0 -2
- package/package/dist/validate-number-of-gif-loops.js +0 -24
- package/package/dist/validate-output-filename.d.ts +0 -9
- package/package/dist/validate-output-filename.js +0 -32
- package/package/dist/validate-puppeteer-timeout.d.ts +0 -1
- package/package/dist/validate-puppeteer-timeout.js +0 -25
- package/package/dist/validate-scale.d.ts +0 -1
- package/package/dist/validate-scale.js +0 -26
- package/package/dist/validate-videobitrate.d.ts +0 -1
- package/package/dist/validate-videobitrate.js +0 -20
- package/package/dist/validate.d.ts +0 -4
- package/package/dist/validate.js +0 -8
- package/package/dist/wait-for-symbolication-error-to-be-done.d.ts +0 -3
- package/package/dist/wait-for-symbolication-error-to-be-done.js +0 -8
- package/package/dist/wrap-with-error-handling.d.ts +0 -8
- package/package/dist/wrap-with-error-handling.js +0 -18
- package/package/dist/ws/ws-types.d.ts +0 -15
- package/package/dist/ws/ws-types.js +0 -8
- package/package/ensure-browser.mjs +0 -3337
|
@@ -1,97 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,60 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,40 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|