@remotion/renderer 4.0.537 → 4.0.539
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aac-priming.d.ts +2 -1
- package/dist/assets/apply-tone-frequency.d.ts +2 -1
- package/dist/assets/apply-tone-frequency.js +8 -1
- package/dist/assets/calculate-asset-positions.js +2 -0
- package/dist/assets/convert-assets-to-file-urls.d.ts +2 -1
- package/dist/assets/download-and-map-assets-to-file.d.ts +3 -2
- package/dist/assets/get-audio-channels.d.ts +3 -2
- package/dist/assets/inline-audio-mixing.d.ts +2 -1
- package/dist/assets/read-file.js +1 -2
- package/dist/assets/types.d.ts +2 -1
- package/dist/browser/Browser.d.ts +5 -5
- package/dist/browser/Browser.js +74 -65
- package/dist/browser/BrowserFetcher.d.ts +7 -5
- package/dist/browser/BrowserPage.d.ts +4 -4
- package/dist/browser/BrowserPage.js +222 -226
- package/dist/browser/BrowserRunner.d.ts +2 -1
- package/dist/browser/Connection.js +109 -96
- package/dist/browser/ConsoleMessage.d.ts +1 -1
- package/dist/browser/ConsoleMessage.js +16 -9
- package/dist/browser/DOMWorld.d.ts +1 -1
- package/dist/browser/DOMWorld.js +91 -77
- package/dist/browser/Errors.js +4 -2
- package/dist/browser/EventEmitter.js +1 -2
- package/dist/browser/ExecutionContext.js +120 -117
- package/dist/browser/FrameManager.js +244 -249
- package/dist/browser/HTTPRequest.js +22 -11
- package/dist/browser/HTTPResponse.js +16 -3
- package/dist/browser/JSHandle.js +30 -17
- package/dist/browser/LifecycleWatcher.js +128 -122
- package/dist/browser/NetworkEventManager.js +40 -31
- package/dist/browser/NetworkManager.js +203 -210
- package/dist/browser/NodeWebSocketTransport.js +0 -3
- package/dist/browser/Target.d.ts +1 -1
- package/dist/browser/Target.js +39 -32
- package/dist/browser/TaskQueue.js +18 -5
- package/dist/browser/TimeoutSettings.js +25 -12
- package/dist/browser/browser-download-progress-bar.d.ts +2 -1
- package/dist/browser/get-chrome-download-url.d.ts +3 -2
- package/dist/browser/handle-failed-resource.d.ts +2 -1
- package/dist/call-ffmpeg.d.ts +7 -6
- package/dist/can-concat-seamlessly.d.ts +4 -2
- package/dist/can-use-parallel-encoding.d.ts +2 -1
- package/dist/check-version-requirements.d.ts +2 -1
- package/dist/client.d.ts +302 -280
- package/dist/client.js +2 -2
- package/dist/codec-supports-media.d.ts +4 -3
- package/dist/codec.d.ts +1 -1
- package/dist/collect-assets.d.ts +1 -1
- package/dist/combine-audio.d.ts +4 -2
- package/dist/combine-chunks.d.ts +2 -1
- package/dist/combine-video-streams.d.ts +4 -2
- package/dist/compositor/compositor.d.ts +4 -3
- package/dist/compositor/get-executable-path.d.ts +4 -4
- package/dist/compress-audio.d.ts +4 -2
- package/dist/create-audio.d.ts +4 -2
- package/dist/create-silent-audio.d.ts +2 -1
- package/dist/crf.d.ts +6 -4
- package/dist/cycle-browser-tabs.d.ts +2 -1
- package/dist/ensure-browser.d.ts +1 -52
- package/dist/error-handling/handle-javascript-exception.d.ts +1 -1
- package/dist/error-handling/handle-javascript-exception.js +0 -5
- package/dist/error-handling/symbolicateable-error.d.ts +1 -1
- package/dist/error-handling/symbolicateable-error.js +0 -4
- package/dist/error-handling.js +1 -1
- package/dist/esm/client.mjs +329 -242
- package/dist/esm/index.mjs +129 -110
- package/dist/extract-audio.d.ts +3 -2
- package/dist/ffmpeg-args.d.ts +12 -6
- package/dist/finalize-fast-start.d.ts +2 -1
- package/dist/get-browser-instance.d.ts +6 -4
- package/dist/get-codec-name.d.ts +6 -3
- package/dist/get-compositions.d.ts +2 -1
- package/dist/get-concurrency.d.ts +1 -1
- package/dist/get-concurrency.js +1 -1
- package/dist/get-duration-from-frame-range.d.ts +1 -1
- package/dist/get-extension-from-codec.d.ts +2 -1
- package/dist/get-frame-padded-index.d.ts +2 -1
- package/dist/get-local-browser-executable.d.ts +4 -2
- package/dist/get-port.d.ts +1 -1
- package/dist/get-prores-profile-name.d.ts +3 -1
- package/dist/get-silent-parts.d.ts +5 -4
- package/dist/get-video-metadata.d.ts +4 -3
- package/dist/get-video-threads-flag.d.ts +2 -1
- package/dist/goto-page-or-throw.d.ts +1 -1
- package/dist/guess-extension-for-media.d.ts +2 -1
- package/dist/image-format.d.ts +6 -5
- package/dist/index.d.ts +213 -440
- package/dist/index.js +18 -18
- package/dist/is-audio-codec.d.ts +2 -1
- package/dist/log-level.d.ts +2 -2
- package/dist/logger.d.ts +6 -6
- package/dist/make-page.d.ts +5 -3
- package/dist/memory/from-macos-sysctl.d.ts +2 -1
- package/dist/memory/from-proc-meminfo.d.ts +2 -1
- package/dist/memory/get-available-memory.d.ts +2 -1
- package/dist/merge-audio-track.d.ts +1 -1
- package/dist/merge-audio-track.js +24 -23
- package/dist/merge-inline-audio-tracks.d.ts +2 -1
- package/dist/mux-video-and-audio.d.ts +5 -3
- package/dist/offthread-video-server.d.ts +2 -1
- package/dist/offthread-video-server.js +6 -4
- package/dist/open-browser.d.ts +2 -2
- package/dist/options/allow-html-in-canvas.js +1 -2
- package/dist/options/api-key.d.ts +1 -1
- package/dist/options/api-key.js +1 -3
- package/dist/options/ask-ai.js +1 -1
- package/dist/options/audio-bitrate.js +1 -9
- package/dist/options/audio-codec.d.ts +23 -20
- package/dist/options/beep-on-finish.js +1 -1
- package/dist/options/benchmark-concurrencies.js +1 -2
- package/dist/options/binaries-directory.d.ts +1 -1
- package/dist/options/binaries-directory.js +1 -9
- package/dist/options/browser-executable.d.ts +1 -1
- package/dist/options/browser-executable.js +1 -1
- package/dist/options/browser.js +1 -2
- package/dist/options/bundle-cache.js +1 -2
- package/dist/options/canvas-tabs.js +1 -1
- package/dist/options/chrome-mode.d.ts +4 -4
- package/dist/options/chrome-mode.js +1 -6
- package/dist/options/color-space.d.ts +9 -5
- package/dist/options/color-space.js +1 -8
- package/dist/options/concurrency.d.ts +1 -1
- package/dist/options/concurrency.js +1 -5
- package/dist/options/config.js +1 -1
- package/dist/options/crf.js +1 -1
- package/dist/options/cross-site-isolation.js +1 -2
- package/dist/options/dark-mode.js +1 -2
- package/dist/options/default-coding-agent.d.ts +2 -2
- package/dist/options/default-coding-agent.js +1 -2
- package/dist/options/default-editor.d.ts +4 -4
- package/dist/options/default-editor.js +1 -3
- package/dist/options/default-premount-in-seconds.js +1 -1
- package/dist/options/delete-after.d.ts +1 -1
- package/dist/options/delete-after.js +1 -11
- package/dist/options/disable-shared-memory-capture.js +1 -3
- package/dist/options/disable-web-security.d.ts +1 -1
- package/dist/options/disable-web-security.js +1 -1
- package/dist/options/disallow-parallel-encoding.js +1 -1
- package/dist/options/enable-cancellation.js +1 -2
- package/dist/options/enable-lambda-insights.js +1 -2
- package/dist/options/enable-multiprocess-on-linux.js +1 -13
- package/dist/options/encoding-buffer-size.d.ts +4 -2
- package/dist/options/encoding-buffer-size.js +1 -3
- package/dist/options/encoding-max-rate.d.ts +1 -1
- package/dist/options/encoding-max-rate.js +1 -3
- package/dist/options/enforce-audio.js +1 -15
- package/dist/options/env-file.js +1 -3
- package/dist/options/every-nth-frame.d.ts +1 -1
- package/dist/options/every-nth-frame.js +1 -6
- package/dist/options/experimental-client-side-rendering.d.ts +16 -0
- package/dist/options/experimental-client-side-rendering.js +30 -0
- package/dist/options/experimental-keep-audio-context-alive.js +1 -3
- package/dist/options/folder-expiry.d.ts +1 -1
- package/dist/options/folder-expiry.js +1 -4
- package/dist/options/for-seamless-aac-concatenation.js +1 -3
- package/dist/options/force-new-studio.js +1 -1
- package/dist/options/frames.d.ts +1 -1
- package/dist/options/frames.js +1 -4
- package/dist/options/gl.d.ts +6 -6
- package/dist/options/gl.js +3 -28
- package/dist/options/gop-size.js +1 -3
- package/dist/options/hardware-acceleration.d.ts +3 -3
- package/dist/options/headless.js +1 -1
- package/dist/options/ignore-certificate-errors.d.ts +1 -1
- package/dist/options/ignore-certificate-errors.js +1 -1
- package/dist/options/image-sequence-pattern.js +1 -5
- package/dist/options/image-sequence.js +1 -1
- package/dist/options/index.d.ts +91 -72
- package/dist/options/index.js +2 -0
- package/dist/options/interactivity.js +1 -1
- package/dist/options/ipv4.js +1 -1
- package/dist/options/is-production.d.ts +1 -1
- package/dist/options/is-production.js +1 -4
- package/dist/options/jpeg-quality.d.ts +1 -1
- package/dist/options/jpeg-quality.js +1 -4
- package/dist/options/keyboard-shortcuts.js +1 -1
- package/dist/options/latency-hint.d.ts +1 -1
- package/dist/options/latency-hint.js +1 -10
- package/dist/options/license-key.d.ts +1 -1
- package/dist/options/license-key.js +1 -2
- package/dist/options/log-level.d.ts +4 -3
- package/dist/options/log-level.js +1 -16
- package/dist/options/metadata.js +2 -7
- package/dist/options/mute.js +1 -1
- package/dist/options/no-open.js +1 -1
- package/dist/options/number-of-gif-loops.d.ts +1 -1
- package/dist/options/number-of-gif-loops.js +1 -13
- package/dist/options/number-of-shared-audio-tags.js +1 -1
- package/dist/options/offthreadvideo-cache-size.d.ts +1 -1
- package/dist/options/offthreadvideo-cache-size.js +1 -11
- package/dist/options/offthreadvideo-threads.d.ts +1 -1
- package/dist/options/offthreadvideo-threads.js +1 -2
- package/dist/options/on-browser-download.d.ts +1 -1
- package/dist/options/on-browser-download.js +1 -2
- package/dist/options/options-map.d.ts +180 -180
- package/dist/options/out-dir.d.ts +1 -1
- package/dist/options/out-dir.js +1 -4
- package/dist/options/override-duration.js +1 -1
- package/dist/options/override-fps.js +1 -1
- package/dist/options/override-height.js +1 -1
- package/dist/options/override-width.js +1 -1
- package/dist/options/overwrite.js +1 -5
- package/dist/options/package-manager.d.ts +1 -1
- package/dist/options/package-manager.js +1 -12
- package/dist/options/pixel-format.d.ts +6 -5
- package/dist/options/pixel-format.js +1 -2
- package/dist/options/port.js +1 -1
- package/dist/options/prefer-lossless.d.ts +1 -1
- package/dist/options/prefer-lossless.js +1 -4
- package/dist/options/preserve-pitch-on-playback.d.ts +19 -0
- package/dist/options/preserve-pitch-on-playback.js +36 -0
- package/dist/options/preview-sample-rate.js +1 -3
- package/dist/options/props.js +1 -5
- package/dist/options/prores-profile.d.ts +2 -2
- package/dist/options/prores-profile.js +1 -5
- package/dist/options/public-dir.d.ts +1 -1
- package/dist/options/public-dir.js +1 -2
- package/dist/options/public-license-key.d.ts +1 -1
- package/dist/options/public-license-key.js +1 -3
- package/dist/options/public-path.d.ts +1 -1
- package/dist/options/public-path.js +1 -5
- package/dist/options/repro.d.ts +3 -1
- package/dist/options/repro.js +1 -1
- package/dist/options/rspack.js +1 -1
- package/dist/options/runs.js +1 -3
- package/dist/options/sample-rate.d.ts +2 -2
- package/dist/options/sample-rate.js +1 -2
- package/dist/options/scale.js +1 -5
- package/dist/options/sequence-activity-limit.js +1 -4
- package/dist/options/show-layer-frame-numbers.js +1 -3
- package/dist/options/show-premounting.js +1 -2
- package/dist/options/skip-skills.js +1 -1
- package/dist/options/still-frame.d.ts +1 -1
- package/dist/options/still-frame.js +1 -3
- package/dist/options/still-image-format.d.ts +3 -2
- package/dist/options/still-image-format.js +1 -2
- package/dist/options/timeout.d.ts +1 -1
- package/dist/options/timeout.js +1 -4
- package/dist/options/user-agent.d.ts +1 -1
- package/dist/options/user-agent.js +1 -1
- package/dist/options/version-flag.js +1 -1
- package/dist/options/video-bitrate.js +1 -7
- package/dist/options/video-cache-size.d.ts +1 -1
- package/dist/options/video-cache-size.js +1 -7
- package/dist/options/video-codec.d.ts +9 -7
- package/dist/options/video-codec.js +1 -1
- package/dist/options/video-image-format.d.ts +6 -5
- package/dist/options/video-image-format.js +1 -6
- package/dist/options/webhook-custom-data.d.ts +1 -1
- package/dist/options/webhook-custom-data.js +1 -1
- package/dist/options/webpack-poll.js +1 -1
- package/dist/options/x264-preset.d.ts +8 -7
- package/dist/options/x264-preset.js +1 -23
- package/dist/p-limit.d.ts +1 -1
- package/dist/pixel-format.d.ts +4 -3
- package/dist/pool.js +0 -2
- package/dist/port-config.d.ts +6 -5
- package/dist/prespawn-ffmpeg.d.ts +1 -1
- package/dist/prestitcher-memory-usage.d.ts +13 -0
- package/dist/prestitcher-memory-usage.js +33 -0
- package/dist/print-useful-error-message.d.ts +2 -1
- package/dist/probe-encoder.d.ts +8 -5
- package/dist/probe-shared-memory-capture.d.ts +4 -2
- package/dist/prores-profile.d.ts +4 -2
- package/dist/puppeteer-evaluate.d.ts +2 -2
- package/dist/puppeteer-screenshot.d.ts +4 -3
- package/dist/pure.d.ts +12 -15
- package/dist/remotion-shared-memory.d.ts +1 -1
- package/dist/remotion-shared-memory.js +199 -187
- package/dist/render-frame-and-retry-target-close.d.ts +10 -10
- package/dist/render-frame-with-option-to-reject.d.ts +7 -5
- package/dist/render-frame-with-option-to-reject.js +1 -5
- package/dist/render-frame.d.ts +8 -6
- package/dist/render-frames.d.ts +1 -40
- package/dist/render-has-audio.d.ts +3 -2
- package/dist/render-partitions.d.ts +7 -0
- package/dist/render-partitions.js +50 -0
- package/dist/replace-browser.d.ts +2 -1
- package/dist/repro.d.ts +1 -1
- package/dist/screenshot-task.d.ts +4 -3
- package/dist/seek-to-frame.d.ts +3 -2
- package/dist/select-composition.d.ts +1 -20
- package/dist/serve-handler/index.d.ts +1 -1
- package/dist/serve-handler/range-parser.d.ts +2 -2
- package/dist/serve-handler/range-parser.js +1 -1
- package/dist/serve-static.d.ts +2 -1
- package/dist/serve-static.js +4 -1
- package/dist/set-props-and-env.js +2 -6
- package/dist/stringify-ffmpeg-filter.d.ts +2 -1
- package/dist/stringify-ffmpeg-filter.js +20 -2
- package/dist/take-frame.d.ts +1 -1
- package/dist/test-gpu.d.ts +4 -2
- package/dist/validate-even-dimensions-with-codec.d.ts +4 -2
- package/dist/validate-ffmpeg-override.d.ts +1 -1
- package/dist/validate-number-of-gif-loops.d.ts +2 -1
- package/dist/validate-output-filename.d.ts +4 -2
- package/package.json +16 -16
package/dist/esm/client.mjs
CHANGED
|
@@ -3291,12 +3291,11 @@ var isProductionOption = {
|
|
|
3291
3291
|
/* @__PURE__ */ jsx47("code", {
|
|
3292
3292
|
children: "false"
|
|
3293
3293
|
}),
|
|
3294
|
-
"
|
|
3295
|
-
" ",
|
|
3294
|
+
" for a development render so it is not counted as a billable render on remotion.pro. Defaults to ",
|
|
3296
3295
|
/* @__PURE__ */ jsx47("code", {
|
|
3297
|
-
children: "
|
|
3296
|
+
children: "true"
|
|
3298
3297
|
}),
|
|
3299
|
-
"."
|
|
3298
|
+
". Only has an effect when a license key is provided."
|
|
3300
3299
|
]
|
|
3301
3300
|
}),
|
|
3302
3301
|
ssrName: "isProduction",
|
|
@@ -3498,6 +3497,26 @@ var licenseKeyOption = {
|
|
|
3498
3497
|
/* @__PURE__ */ jsx51("code", {
|
|
3499
3498
|
children: "@remotion/licensing"
|
|
3500
3499
|
}),
|
|
3500
|
+
". For ",
|
|
3501
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3502
|
+
children: "npx remotion render"
|
|
3503
|
+
}),
|
|
3504
|
+
" and",
|
|
3505
|
+
" ",
|
|
3506
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3507
|
+
children: "npx remotion still"
|
|
3508
|
+
}),
|
|
3509
|
+
", pass a private API key starting with",
|
|
3510
|
+
" ",
|
|
3511
|
+
/* @__PURE__ */ jsx51("code", {
|
|
3512
|
+
children: "rm_sec_"
|
|
3513
|
+
}),
|
|
3514
|
+
" from the License keys page on",
|
|
3515
|
+
" ",
|
|
3516
|
+
/* @__PURE__ */ jsx51("a", {
|
|
3517
|
+
href: "https://www.remotion.pro/dashboard",
|
|
3518
|
+
children: "remotion.pro"
|
|
3519
|
+
}),
|
|
3501
3520
|
"."
|
|
3502
3521
|
]
|
|
3503
3522
|
}),
|
|
@@ -4542,18 +4561,85 @@ var preferLosslessAudioOption = {
|
|
|
4542
4561
|
id: cliFlag74
|
|
4543
4562
|
};
|
|
4544
4563
|
|
|
4545
|
-
// src/options/
|
|
4564
|
+
// src/options/preserve-pitch-on-playback.tsx
|
|
4546
4565
|
import { jsx as jsx71, jsxs as jsxs50, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4547
|
-
var
|
|
4566
|
+
var configuredPreservePitchOnPlayback = null;
|
|
4567
|
+
var cliFlag75 = "preserve-pitch-on-playback";
|
|
4568
|
+
var preservePitchOnPlaybackOption = {
|
|
4569
|
+
name: "Preserve pitch on playback",
|
|
4570
|
+
addedIn: "4.0.538",
|
|
4571
|
+
cliFlag: cliFlag75,
|
|
4572
|
+
id: cliFlag75,
|
|
4573
|
+
description: () => /* @__PURE__ */ jsxs50(Fragment71, {
|
|
4574
|
+
children: [
|
|
4575
|
+
"Preserve audio pitch when changing the Studio playback speed. Defaults to",
|
|
4576
|
+
" ",
|
|
4577
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4578
|
+
children: "true"
|
|
4579
|
+
}),
|
|
4580
|
+
". Applies to ",
|
|
4581
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4582
|
+
children: "Audio"
|
|
4583
|
+
}),
|
|
4584
|
+
" and ",
|
|
4585
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4586
|
+
children: "Video"
|
|
4587
|
+
}),
|
|
4588
|
+
" ",
|
|
4589
|
+
"from ",
|
|
4590
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4591
|
+
children: "@remotion/media"
|
|
4592
|
+
}),
|
|
4593
|
+
", independently of their clip-level",
|
|
4594
|
+
" ",
|
|
4595
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4596
|
+
children: "preservePitch"
|
|
4597
|
+
}),
|
|
4598
|
+
" props. Does not affect rendered output or native media components, including native fallbacks. Set",
|
|
4599
|
+
" ",
|
|
4600
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4601
|
+
children: "--preserve-pitch-on-playback=false"
|
|
4602
|
+
}),
|
|
4603
|
+
" to disable."
|
|
4604
|
+
]
|
|
4605
|
+
}),
|
|
4606
|
+
ssrName: null,
|
|
4607
|
+
docLink: "https://www.remotion.dev/docs/options/preserve-pitch-on-playback",
|
|
4608
|
+
type: false,
|
|
4609
|
+
getValue: ({ commandLine }) => {
|
|
4610
|
+
const value = commandLine[cliFlag75];
|
|
4611
|
+
if (value !== undefined && value !== null) {
|
|
4612
|
+
if (typeof value !== "boolean") {
|
|
4613
|
+
throw new Error("--preserve-pitch-on-playback expects a boolean");
|
|
4614
|
+
}
|
|
4615
|
+
return { value, source: "cli" };
|
|
4616
|
+
}
|
|
4617
|
+
return { value: configuredPreservePitchOnPlayback ?? true, source: "config" };
|
|
4618
|
+
},
|
|
4619
|
+
setConfig(value) {
|
|
4620
|
+
if (typeof value !== "boolean") {
|
|
4621
|
+
throw new Error("Config.setPreservePitchOnPlayback() expects a boolean");
|
|
4622
|
+
}
|
|
4623
|
+
configuredPreservePitchOnPlayback = value;
|
|
4624
|
+
},
|
|
4625
|
+
getConfigValue: () => configuredPreservePitchOnPlayback,
|
|
4626
|
+
reset: () => {
|
|
4627
|
+
configuredPreservePitchOnPlayback = null;
|
|
4628
|
+
}
|
|
4629
|
+
};
|
|
4630
|
+
|
|
4631
|
+
// src/options/preview-sample-rate.tsx
|
|
4632
|
+
import { jsx as jsx72, jsxs as jsxs51, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4633
|
+
var cliFlag76 = "preview-sample-rate";
|
|
4548
4634
|
var currentPreviewSampleRate = null;
|
|
4549
4635
|
var previewSampleRateOption = {
|
|
4550
4636
|
name: "Preview Sample Rate",
|
|
4551
4637
|
addedIn: "4.0.470",
|
|
4552
|
-
cliFlag:
|
|
4553
|
-
description: () => /* @__PURE__ */
|
|
4638
|
+
cliFlag: cliFlag76,
|
|
4639
|
+
description: () => /* @__PURE__ */ jsxs51(Fragment72, {
|
|
4554
4640
|
children: [
|
|
4555
4641
|
"Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
|
|
4556
|
-
/* @__PURE__ */
|
|
4642
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4557
4643
|
children: "48000"
|
|
4558
4644
|
}),
|
|
4559
4645
|
" Hz."
|
|
@@ -4563,8 +4649,8 @@ var previewSampleRateOption = {
|
|
|
4563
4649
|
docLink: "https://www.remotion.dev/docs/options/preview-sample-rate",
|
|
4564
4650
|
type: null,
|
|
4565
4651
|
getValue: ({ commandLine }) => {
|
|
4566
|
-
if (commandLine[
|
|
4567
|
-
return { value: commandLine[
|
|
4652
|
+
if (commandLine[cliFlag76] !== undefined) {
|
|
4653
|
+
return { value: commandLine[cliFlag76], source: "cli" };
|
|
4568
4654
|
}
|
|
4569
4655
|
if (currentPreviewSampleRate !== null) {
|
|
4570
4656
|
return { value: currentPreviewSampleRate, source: "config file" };
|
|
@@ -4574,20 +4660,20 @@ var previewSampleRateOption = {
|
|
|
4574
4660
|
setConfig: (value) => {
|
|
4575
4661
|
currentPreviewSampleRate = value;
|
|
4576
4662
|
},
|
|
4577
|
-
id:
|
|
4663
|
+
id: cliFlag76
|
|
4578
4664
|
};
|
|
4579
4665
|
|
|
4580
4666
|
// src/options/props.tsx
|
|
4581
|
-
import { jsx as
|
|
4582
|
-
var
|
|
4667
|
+
import { jsx as jsx73, jsxs as jsxs52, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4668
|
+
var cliFlag77 = "props";
|
|
4583
4669
|
var propsOption = {
|
|
4584
4670
|
name: "Input Props",
|
|
4585
4671
|
addedIn: "1.0.0",
|
|
4586
|
-
cliFlag:
|
|
4587
|
-
description: () => /* @__PURE__ */
|
|
4672
|
+
cliFlag: cliFlag77,
|
|
4673
|
+
description: () => /* @__PURE__ */ jsxs52(Fragment73, {
|
|
4588
4674
|
children: [
|
|
4589
4675
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
4590
|
-
/* @__PURE__ */
|
|
4676
|
+
/* @__PURE__ */ jsxs52("code", {
|
|
4591
4677
|
children: [
|
|
4592
4678
|
"--props='",
|
|
4593
4679
|
"{",
|
|
@@ -4597,7 +4683,7 @@ var propsOption = {
|
|
|
4597
4683
|
]
|
|
4598
4684
|
}),
|
|
4599
4685
|
") or a path to a JSON file (",
|
|
4600
|
-
/* @__PURE__ */
|
|
4686
|
+
/* @__PURE__ */ jsx73("code", {
|
|
4601
4687
|
children: "./path/to/props.json"
|
|
4602
4688
|
}),
|
|
4603
4689
|
")."
|
|
@@ -4606,10 +4692,10 @@ var propsOption = {
|
|
|
4606
4692
|
ssrName: null,
|
|
4607
4693
|
docLink: "https://www.remotion.dev/docs/options/props",
|
|
4608
4694
|
getValue: ({ commandLine }) => {
|
|
4609
|
-
if (commandLine[
|
|
4695
|
+
if (commandLine[cliFlag77] !== undefined) {
|
|
4610
4696
|
return {
|
|
4611
4697
|
source: "cli",
|
|
4612
|
-
value: commandLine[
|
|
4698
|
+
value: commandLine[cliFlag77]
|
|
4613
4699
|
};
|
|
4614
4700
|
}
|
|
4615
4701
|
return {
|
|
@@ -4621,11 +4707,11 @@ var propsOption = {
|
|
|
4621
4707
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
4622
4708
|
},
|
|
4623
4709
|
type: "",
|
|
4624
|
-
id:
|
|
4710
|
+
id: cliFlag77
|
|
4625
4711
|
};
|
|
4626
4712
|
|
|
4627
4713
|
// src/options/prores-profile.tsx
|
|
4628
|
-
import { jsx as
|
|
4714
|
+
import { jsx as jsx74, jsxs as jsxs53, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4629
4715
|
var validProResProfiles = [
|
|
4630
4716
|
"4444-xq",
|
|
4631
4717
|
"4444",
|
|
@@ -4635,15 +4721,15 @@ var validProResProfiles = [
|
|
|
4635
4721
|
"proxy"
|
|
4636
4722
|
];
|
|
4637
4723
|
var proResProfile;
|
|
4638
|
-
var
|
|
4724
|
+
var cliFlag78 = "prores-profile";
|
|
4639
4725
|
var proResProfileOption = {
|
|
4640
4726
|
name: "ProRes profile",
|
|
4641
4727
|
addedIn: "2.1.6",
|
|
4642
|
-
cliFlag:
|
|
4643
|
-
description: () => /* @__PURE__ */
|
|
4728
|
+
cliFlag: cliFlag78,
|
|
4729
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment74, {
|
|
4644
4730
|
children: [
|
|
4645
4731
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
4646
|
-
/* @__PURE__ */
|
|
4732
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4647
4733
|
children: "prores"
|
|
4648
4734
|
}),
|
|
4649
4735
|
". Possible values:",
|
|
@@ -4651,12 +4737,12 @@ var proResProfileOption = {
|
|
|
4651
4737
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
4652
4738
|
". Default:",
|
|
4653
4739
|
" ",
|
|
4654
|
-
/* @__PURE__ */
|
|
4740
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4655
4741
|
children: '"hq"'
|
|
4656
4742
|
}),
|
|
4657
4743
|
". See",
|
|
4658
4744
|
" ",
|
|
4659
|
-
/* @__PURE__ */
|
|
4745
|
+
/* @__PURE__ */ jsx74("a", {
|
|
4660
4746
|
href: "https://video.stackexchange.com/a/14715",
|
|
4661
4747
|
children: "here"
|
|
4662
4748
|
}),
|
|
@@ -4673,10 +4759,10 @@ var proResProfileOption = {
|
|
|
4673
4759
|
value: options.uiProResProfile
|
|
4674
4760
|
};
|
|
4675
4761
|
}
|
|
4676
|
-
if (commandLine[
|
|
4762
|
+
if (commandLine[cliFlag78] !== undefined) {
|
|
4677
4763
|
return {
|
|
4678
4764
|
source: "from --prores-profile flag",
|
|
4679
|
-
value: String(commandLine[
|
|
4765
|
+
value: String(commandLine[cliFlag78])
|
|
4680
4766
|
};
|
|
4681
4767
|
}
|
|
4682
4768
|
if (options && options.compositionDefaultProResProfile !== null) {
|
|
@@ -4699,25 +4785,25 @@ var proResProfileOption = {
|
|
|
4699
4785
|
setConfig: (value) => {
|
|
4700
4786
|
proResProfile = value;
|
|
4701
4787
|
},
|
|
4702
|
-
id:
|
|
4788
|
+
id: cliFlag78
|
|
4703
4789
|
};
|
|
4704
4790
|
|
|
4705
4791
|
// src/options/public-dir.tsx
|
|
4706
|
-
import { jsx as
|
|
4707
|
-
var
|
|
4792
|
+
import { jsx as jsx75, jsxs as jsxs54, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4793
|
+
var cliFlag79 = "public-dir";
|
|
4708
4794
|
var currentPublicDir = null;
|
|
4709
4795
|
var publicDirOption = {
|
|
4710
4796
|
name: "Public Directory",
|
|
4711
4797
|
addedIn: "3.2.13",
|
|
4712
|
-
cliFlag:
|
|
4798
|
+
cliFlag: cliFlag79,
|
|
4713
4799
|
description: () => {
|
|
4714
|
-
return /* @__PURE__ */
|
|
4800
|
+
return /* @__PURE__ */ jsxs54(Fragment75, {
|
|
4715
4801
|
children: [
|
|
4716
4802
|
"Define the location of the",
|
|
4717
4803
|
" ",
|
|
4718
|
-
/* @__PURE__ */
|
|
4804
|
+
/* @__PURE__ */ jsx75("a", {
|
|
4719
4805
|
href: "/docs/terminology/public-dir",
|
|
4720
|
-
children: /* @__PURE__ */
|
|
4806
|
+
children: /* @__PURE__ */ jsx75("code", {
|
|
4721
4807
|
children: "public/ directory"
|
|
4722
4808
|
})
|
|
4723
4809
|
}),
|
|
@@ -4728,10 +4814,10 @@ var publicDirOption = {
|
|
|
4728
4814
|
ssrName: "publicDir",
|
|
4729
4815
|
docLink: "https://www.remotion.dev/docs/options/public-dir",
|
|
4730
4816
|
getValue: ({ commandLine }) => {
|
|
4731
|
-
if (commandLine[
|
|
4817
|
+
if (commandLine[cliFlag79] !== undefined) {
|
|
4732
4818
|
return {
|
|
4733
4819
|
source: "cli",
|
|
4734
|
-
value: commandLine[
|
|
4820
|
+
value: commandLine[cliFlag79]
|
|
4735
4821
|
};
|
|
4736
4822
|
}
|
|
4737
4823
|
if (currentPublicDir !== null) {
|
|
@@ -4749,21 +4835,21 @@ var publicDirOption = {
|
|
|
4749
4835
|
currentPublicDir = value;
|
|
4750
4836
|
},
|
|
4751
4837
|
type: "",
|
|
4752
|
-
id:
|
|
4838
|
+
id: cliFlag79
|
|
4753
4839
|
};
|
|
4754
4840
|
|
|
4755
4841
|
// src/options/public-license-key.tsx
|
|
4756
|
-
import { jsx as
|
|
4757
|
-
var
|
|
4842
|
+
import { jsx as jsx76, jsxs as jsxs55, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4843
|
+
var cliFlag80 = "public-license-key";
|
|
4758
4844
|
var currentPublicLicenseKey = null;
|
|
4759
4845
|
var publicLicenseKeyOption = {
|
|
4760
4846
|
name: "Public License Key",
|
|
4761
4847
|
addedIn: "4.0.398",
|
|
4762
|
-
cliFlag:
|
|
4763
|
-
description: () => /* @__PURE__ */
|
|
4848
|
+
cliFlag: cliFlag80,
|
|
4849
|
+
description: () => /* @__PURE__ */ jsxs55(Fragment76, {
|
|
4764
4850
|
children: [
|
|
4765
4851
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
4766
|
-
/* @__PURE__ */
|
|
4852
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4767
4853
|
href: "https://remotion.pro/dashboard",
|
|
4768
4854
|
children: "remotion.pro"
|
|
4769
4855
|
}),
|
|
@@ -4773,10 +4859,10 @@ var publicLicenseKeyOption = {
|
|
|
4773
4859
|
ssrName: "publicLicenseKey",
|
|
4774
4860
|
docLink: "https://www.remotion.dev/docs/options/public-license-key",
|
|
4775
4861
|
getValue: ({ commandLine }) => {
|
|
4776
|
-
if (commandLine[
|
|
4862
|
+
if (commandLine[cliFlag80] !== undefined) {
|
|
4777
4863
|
return {
|
|
4778
4864
|
source: "cli",
|
|
4779
|
-
value: commandLine[
|
|
4865
|
+
value: commandLine[cliFlag80]
|
|
4780
4866
|
};
|
|
4781
4867
|
}
|
|
4782
4868
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -4797,26 +4883,26 @@ var publicLicenseKeyOption = {
|
|
|
4797
4883
|
currentPublicLicenseKey = value;
|
|
4798
4884
|
},
|
|
4799
4885
|
type: null,
|
|
4800
|
-
id:
|
|
4886
|
+
id: cliFlag80
|
|
4801
4887
|
};
|
|
4802
4888
|
|
|
4803
4889
|
// src/options/public-path.tsx
|
|
4804
|
-
import { jsx as
|
|
4805
|
-
var
|
|
4890
|
+
import { jsx as jsx77, jsxs as jsxs56, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4891
|
+
var cliFlag81 = "public-path";
|
|
4806
4892
|
var currentPublicPath = null;
|
|
4807
4893
|
var publicPathOption = {
|
|
4808
4894
|
name: "Public Path",
|
|
4809
4895
|
addedIn: "4.0.127",
|
|
4810
|
-
cliFlag:
|
|
4896
|
+
cliFlag: cliFlag81,
|
|
4811
4897
|
description: () => {
|
|
4812
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ jsxs56(Fragment77, {
|
|
4813
4899
|
children: [
|
|
4814
4900
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
4815
|
-
/* @__PURE__ */
|
|
4901
|
+
/* @__PURE__ */ jsx77("code", {
|
|
4816
4902
|
children: "./"
|
|
4817
4903
|
}),
|
|
4818
4904
|
", making the bundle relocatable. Set an absolute path such as ",
|
|
4819
|
-
/* @__PURE__ */
|
|
4905
|
+
/* @__PURE__ */ jsx77("code", {
|
|
4820
4906
|
children: "/sites/my-site/"
|
|
4821
4907
|
}),
|
|
4822
4908
|
" to host the bundle at a fixed location."
|
|
@@ -4826,10 +4912,10 @@ var publicPathOption = {
|
|
|
4826
4912
|
ssrName: "publicPath",
|
|
4827
4913
|
docLink: "https://www.remotion.dev/docs/options/public-path",
|
|
4828
4914
|
getValue: ({ commandLine }) => {
|
|
4829
|
-
if (commandLine[
|
|
4915
|
+
if (commandLine[cliFlag81] !== undefined) {
|
|
4830
4916
|
return {
|
|
4831
4917
|
source: "cli",
|
|
4832
|
-
value: commandLine[
|
|
4918
|
+
value: commandLine[cliFlag81]
|
|
4833
4919
|
};
|
|
4834
4920
|
}
|
|
4835
4921
|
if (currentPublicPath !== null) {
|
|
@@ -4847,30 +4933,30 @@ var publicPathOption = {
|
|
|
4847
4933
|
currentPublicPath = value;
|
|
4848
4934
|
},
|
|
4849
4935
|
type: "",
|
|
4850
|
-
id:
|
|
4936
|
+
id: cliFlag81
|
|
4851
4937
|
};
|
|
4852
4938
|
|
|
4853
4939
|
// src/options/repro.tsx
|
|
4854
|
-
import { jsx as
|
|
4940
|
+
import { jsx as jsx78, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4855
4941
|
var enableRepro = false;
|
|
4856
4942
|
var setRepro = (should) => {
|
|
4857
4943
|
enableRepro = should;
|
|
4858
4944
|
};
|
|
4859
|
-
var
|
|
4945
|
+
var cliFlag82 = "repro";
|
|
4860
4946
|
var reproOption = {
|
|
4861
4947
|
name: "Create reproduction",
|
|
4862
4948
|
addedIn: "4.0.88",
|
|
4863
|
-
cliFlag:
|
|
4864
|
-
description: () => /* @__PURE__ */
|
|
4949
|
+
cliFlag: cliFlag82,
|
|
4950
|
+
description: () => /* @__PURE__ */ jsx78(Fragment78, {
|
|
4865
4951
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
4866
4952
|
}),
|
|
4867
4953
|
ssrName: "repro",
|
|
4868
4954
|
docLink: "https://www.remotion.dev/docs/options/repro",
|
|
4869
4955
|
type: false,
|
|
4870
4956
|
getValue: ({ commandLine }) => {
|
|
4871
|
-
if (commandLine[
|
|
4957
|
+
if (commandLine[cliFlag82] !== undefined && commandLine[cliFlag82] !== null) {
|
|
4872
4958
|
return {
|
|
4873
|
-
value: commandLine[
|
|
4959
|
+
value: commandLine[cliFlag82],
|
|
4874
4960
|
source: "cli"
|
|
4875
4961
|
};
|
|
4876
4962
|
}
|
|
@@ -4886,28 +4972,28 @@ var reproOption = {
|
|
|
4886
4972
|
};
|
|
4887
4973
|
},
|
|
4888
4974
|
setConfig: setRepro,
|
|
4889
|
-
id:
|
|
4975
|
+
id: cliFlag82
|
|
4890
4976
|
};
|
|
4891
4977
|
|
|
4892
4978
|
// src/options/rspack.tsx
|
|
4893
|
-
import { jsx as
|
|
4979
|
+
import { jsx as jsx79, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4894
4980
|
var rspackEnabled = false;
|
|
4895
4981
|
var configuredRspackEnabled = null;
|
|
4896
|
-
var
|
|
4982
|
+
var cliFlag83 = "rspack";
|
|
4897
4983
|
var rspackOption = {
|
|
4898
4984
|
name: "Rspack",
|
|
4899
4985
|
addedIn: "4.0.502",
|
|
4900
|
-
cliFlag:
|
|
4901
|
-
description: () => /* @__PURE__ */
|
|
4986
|
+
cliFlag: cliFlag83,
|
|
4987
|
+
description: () => /* @__PURE__ */ jsx79(Fragment79, {
|
|
4902
4988
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4903
4989
|
}),
|
|
4904
4990
|
ssrName: null,
|
|
4905
4991
|
docLink: "https://www.remotion.dev/docs/options/rspack",
|
|
4906
4992
|
type: false,
|
|
4907
4993
|
getValue: ({ commandLine }) => {
|
|
4908
|
-
if (commandLine[
|
|
4994
|
+
if (commandLine[cliFlag83] !== undefined && commandLine[cliFlag83] !== null) {
|
|
4909
4995
|
return {
|
|
4910
|
-
value: commandLine[
|
|
4996
|
+
value: commandLine[cliFlag83],
|
|
4911
4997
|
source: "cli"
|
|
4912
4998
|
};
|
|
4913
4999
|
}
|
|
@@ -4925,22 +5011,22 @@ var rspackOption = {
|
|
|
4925
5011
|
rspackEnabled = false;
|
|
4926
5012
|
configuredRspackEnabled = null;
|
|
4927
5013
|
},
|
|
4928
|
-
id:
|
|
5014
|
+
id: cliFlag83
|
|
4929
5015
|
};
|
|
4930
5016
|
|
|
4931
5017
|
// src/options/runs.tsx
|
|
4932
|
-
import { jsx as
|
|
5018
|
+
import { jsx as jsx80, jsxs as jsxs57, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4933
5019
|
var DEFAULT_RUNS = 3;
|
|
4934
5020
|
var currentRuns = DEFAULT_RUNS;
|
|
4935
|
-
var
|
|
5021
|
+
var cliFlag84 = "runs";
|
|
4936
5022
|
var runsOption = {
|
|
4937
5023
|
name: "Benchmark runs",
|
|
4938
5024
|
addedIn: "3.2.28",
|
|
4939
|
-
cliFlag:
|
|
4940
|
-
description: () => /* @__PURE__ */
|
|
5025
|
+
cliFlag: cliFlag84,
|
|
5026
|
+
description: () => /* @__PURE__ */ jsxs57(Fragment80, {
|
|
4941
5027
|
children: [
|
|
4942
5028
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
4943
|
-
/* @__PURE__ */
|
|
5029
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4944
5030
|
children: DEFAULT_RUNS
|
|
4945
5031
|
}),
|
|
4946
5032
|
"."
|
|
@@ -4950,10 +5036,10 @@ var runsOption = {
|
|
|
4950
5036
|
docLink: "https://www.remotion.dev/docs/options/runs",
|
|
4951
5037
|
type: DEFAULT_RUNS,
|
|
4952
5038
|
getValue: ({ commandLine }) => {
|
|
4953
|
-
if (commandLine[
|
|
4954
|
-
const value = Number(commandLine[
|
|
5039
|
+
if (commandLine[cliFlag84] !== undefined) {
|
|
5040
|
+
const value = Number(commandLine[cliFlag84]);
|
|
4955
5041
|
if (isNaN(value) || value < 1) {
|
|
4956
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
5042
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag84]}`);
|
|
4957
5043
|
}
|
|
4958
5044
|
return { value, source: "cli" };
|
|
4959
5045
|
}
|
|
@@ -4968,22 +5054,22 @@ var runsOption = {
|
|
|
4968
5054
|
}
|
|
4969
5055
|
currentRuns = value;
|
|
4970
5056
|
},
|
|
4971
|
-
id:
|
|
5057
|
+
id: cliFlag84
|
|
4972
5058
|
};
|
|
4973
5059
|
|
|
4974
5060
|
// src/options/sample-rate.tsx
|
|
4975
|
-
import { jsx as
|
|
4976
|
-
var
|
|
5061
|
+
import { jsx as jsx81, jsxs as jsxs58, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
5062
|
+
var cliFlag85 = "sample-rate";
|
|
4977
5063
|
var currentSampleRate = 48000;
|
|
4978
5064
|
var sampleRateOption = {
|
|
4979
5065
|
name: "Sample Rate",
|
|
4980
5066
|
addedIn: "4.0.448",
|
|
4981
|
-
cliFlag:
|
|
4982
|
-
description: () => /* @__PURE__ */
|
|
5067
|
+
cliFlag: cliFlag85,
|
|
5068
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment81, {
|
|
4983
5069
|
children: [
|
|
4984
5070
|
"Controls the sample rate of the output audio. The default is",
|
|
4985
5071
|
" ",
|
|
4986
|
-
/* @__PURE__ */
|
|
5072
|
+
/* @__PURE__ */ jsx81("code", {
|
|
4987
5073
|
children: "48000"
|
|
4988
5074
|
}),
|
|
4989
5075
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -4993,8 +5079,8 @@ var sampleRateOption = {
|
|
|
4993
5079
|
docLink: "https://www.remotion.dev/docs/options/sample-rate",
|
|
4994
5080
|
type: 48000,
|
|
4995
5081
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
4996
|
-
if (commandLine[
|
|
4997
|
-
return { value: commandLine[
|
|
5082
|
+
if (commandLine[cliFlag85] !== undefined) {
|
|
5083
|
+
return { value: commandLine[cliFlag85], source: "cli" };
|
|
4998
5084
|
}
|
|
4999
5085
|
if (currentSampleRate !== 48000) {
|
|
5000
5086
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -5010,13 +5096,13 @@ var sampleRateOption = {
|
|
|
5010
5096
|
setConfig: (value) => {
|
|
5011
5097
|
currentSampleRate = value;
|
|
5012
5098
|
},
|
|
5013
|
-
id:
|
|
5099
|
+
id: cliFlag85
|
|
5014
5100
|
};
|
|
5015
5101
|
|
|
5016
5102
|
// src/options/scale.tsx
|
|
5017
|
-
import { jsx as
|
|
5103
|
+
import { jsx as jsx82, jsxs as jsxs59, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
5018
5104
|
var currentScale = 1;
|
|
5019
|
-
var
|
|
5105
|
+
var cliFlag86 = "scale";
|
|
5020
5106
|
var validateScale = (value) => {
|
|
5021
5107
|
if (typeof value !== "number") {
|
|
5022
5108
|
throw new Error("scale must be a number.");
|
|
@@ -5025,15 +5111,15 @@ var validateScale = (value) => {
|
|
|
5025
5111
|
var scaleOption = {
|
|
5026
5112
|
name: "Scale",
|
|
5027
5113
|
addedIn: "2.6.7",
|
|
5028
|
-
cliFlag:
|
|
5029
|
-
description: () => /* @__PURE__ */
|
|
5114
|
+
cliFlag: cliFlag86,
|
|
5115
|
+
description: () => /* @__PURE__ */ jsxs59(Fragment82, {
|
|
5030
5116
|
children: [
|
|
5031
5117
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
5032
|
-
/* @__PURE__ */
|
|
5118
|
+
/* @__PURE__ */ jsx82("code", {
|
|
5033
5119
|
children: "1.5"
|
|
5034
5120
|
}),
|
|
5035
5121
|
". See ",
|
|
5036
|
-
/* @__PURE__ */
|
|
5122
|
+
/* @__PURE__ */ jsx82("a", {
|
|
5037
5123
|
href: "https://www.remotion.dev/docs/scaling",
|
|
5038
5124
|
children: "Scaling"
|
|
5039
5125
|
}),
|
|
@@ -5044,11 +5130,11 @@ var scaleOption = {
|
|
|
5044
5130
|
docLink: "https://www.remotion.dev/docs/options/scale",
|
|
5045
5131
|
type: 0,
|
|
5046
5132
|
getValue: ({ commandLine }) => {
|
|
5047
|
-
if (commandLine[
|
|
5048
|
-
validateScale(commandLine[
|
|
5133
|
+
if (commandLine[cliFlag86] !== undefined) {
|
|
5134
|
+
validateScale(commandLine[cliFlag86]);
|
|
5049
5135
|
return {
|
|
5050
5136
|
source: "cli",
|
|
5051
|
-
value: commandLine[
|
|
5137
|
+
value: commandLine[cliFlag86]
|
|
5052
5138
|
};
|
|
5053
5139
|
}
|
|
5054
5140
|
if (currentScale !== null) {
|
|
@@ -5065,28 +5151,28 @@ var scaleOption = {
|
|
|
5065
5151
|
setConfig: (scale) => {
|
|
5066
5152
|
currentScale = scale;
|
|
5067
5153
|
},
|
|
5068
|
-
id:
|
|
5154
|
+
id: cliFlag86
|
|
5069
5155
|
};
|
|
5070
5156
|
|
|
5071
5157
|
// src/options/sequence-activity-limit.tsx
|
|
5072
5158
|
import { NoReactInternals as NoReactInternals6 } from "remotion/no-react";
|
|
5073
|
-
import { jsx as
|
|
5159
|
+
import { jsx as jsx83, jsxs as jsxs60, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
5074
5160
|
var configuredLimit = null;
|
|
5075
|
-
var
|
|
5161
|
+
var cliFlag87 = "sequence-activity-limit";
|
|
5076
5162
|
var sequenceActivityLimitOption = {
|
|
5077
5163
|
name: "Sequence Activity limit",
|
|
5078
5164
|
addedIn: "4.0.536",
|
|
5079
|
-
cliFlag:
|
|
5080
|
-
id:
|
|
5081
|
-
description: () => /* @__PURE__ */
|
|
5165
|
+
cliFlag: cliFlag87,
|
|
5166
|
+
id: cliFlag87,
|
|
5167
|
+
description: () => /* @__PURE__ */ jsxs60(Fragment83, {
|
|
5082
5168
|
children: [
|
|
5083
5169
|
"Limit hidden scenes discovered by Sequence Activity in the Remotion Studio, including nested sequences and their ancestors. Visible, premounted, and postmounted scenes always render. Defaults to",
|
|
5084
5170
|
" ",
|
|
5085
|
-
/* @__PURE__ */
|
|
5171
|
+
/* @__PURE__ */ jsx83("code", {
|
|
5086
5172
|
children: "Infinity"
|
|
5087
5173
|
}),
|
|
5088
5174
|
" for unlimited discovery without admission delays. Must be a non-negative safe integer or ",
|
|
5089
|
-
/* @__PURE__ */
|
|
5175
|
+
/* @__PURE__ */ jsx83("code", {
|
|
5090
5176
|
children: "Infinity"
|
|
5091
5177
|
}),
|
|
5092
5178
|
". Set to 0 to disable Sequence Activity. Finite limits prioritize nearby scenes. Does not affect rendering."
|
|
@@ -5096,8 +5182,8 @@ var sequenceActivityLimitOption = {
|
|
|
5096
5182
|
docLink: "https://www.remotion.dev/docs/options/sequence-activity-limit",
|
|
5097
5183
|
type: 0,
|
|
5098
5184
|
getValue: ({ commandLine }) => {
|
|
5099
|
-
if (commandLine[
|
|
5100
|
-
const value = commandLine[
|
|
5185
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
5186
|
+
const value = commandLine[cliFlag87] === "Infinity" ? Infinity : commandLine[cliFlag87];
|
|
5101
5187
|
if (value !== Infinity && (!Number.isSafeInteger(value) || value < 0)) {
|
|
5102
5188
|
throw new Error("Sequence Activity limit must be a non-negative safe integer or Infinity.");
|
|
5103
5189
|
}
|
|
@@ -5121,18 +5207,18 @@ var sequenceActivityLimitOption = {
|
|
|
5121
5207
|
};
|
|
5122
5208
|
|
|
5123
5209
|
// src/options/show-layer-frame-numbers.tsx
|
|
5124
|
-
import { jsx as
|
|
5210
|
+
import { jsx as jsx84, jsxs as jsxs61, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
5125
5211
|
var configuredShowLayerFrameNumbers = null;
|
|
5126
|
-
var
|
|
5212
|
+
var cliFlag88 = "show-layer-frame-numbers";
|
|
5127
5213
|
var showLayerFrameNumbersOption = {
|
|
5128
5214
|
name: "Show frame numbers of layer",
|
|
5129
5215
|
addedIn: "4.0.535",
|
|
5130
|
-
cliFlag:
|
|
5131
|
-
id:
|
|
5132
|
-
description: () => /* @__PURE__ */
|
|
5216
|
+
cliFlag: cliFlag88,
|
|
5217
|
+
id: cliFlag88,
|
|
5218
|
+
description: () => /* @__PURE__ */ jsxs61(Fragment84, {
|
|
5133
5219
|
children: [
|
|
5134
5220
|
"Show the current frame number inside sequence layers in the Studio timeline. Defaults to ",
|
|
5135
|
-
/* @__PURE__ */
|
|
5221
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5136
5222
|
children: "false"
|
|
5137
5223
|
}),
|
|
5138
5224
|
"."
|
|
@@ -5142,8 +5228,8 @@ var showLayerFrameNumbersOption = {
|
|
|
5142
5228
|
docLink: "https://www.remotion.dev/docs/options/show-layer-frame-numbers",
|
|
5143
5229
|
type: false,
|
|
5144
5230
|
getValue: ({ commandLine }) => {
|
|
5145
|
-
if (commandLine[
|
|
5146
|
-
return { value: commandLine[
|
|
5231
|
+
if (commandLine[cliFlag88] !== undefined && commandLine[cliFlag88] !== null) {
|
|
5232
|
+
return { value: commandLine[cliFlag88], source: "cli" };
|
|
5147
5233
|
}
|
|
5148
5234
|
return { value: configuredShowLayerFrameNumbers ?? false, source: "config" };
|
|
5149
5235
|
},
|
|
@@ -5160,19 +5246,19 @@ var showLayerFrameNumbersOption = {
|
|
|
5160
5246
|
};
|
|
5161
5247
|
|
|
5162
5248
|
// src/options/show-premounting.tsx
|
|
5163
|
-
import { jsx as
|
|
5249
|
+
import { jsx as jsx85, jsxs as jsxs62, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
5164
5250
|
var configuredShowPremounting = null;
|
|
5165
|
-
var
|
|
5251
|
+
var cliFlag89 = "show-premounting";
|
|
5166
5252
|
var showPremountingOption = {
|
|
5167
5253
|
name: "Show premounting in the Studio timeline",
|
|
5168
5254
|
addedIn: "4.0.535",
|
|
5169
|
-
cliFlag:
|
|
5170
|
-
id:
|
|
5171
|
-
description: () => /* @__PURE__ */
|
|
5255
|
+
cliFlag: cliFlag89,
|
|
5256
|
+
id: cliFlag89,
|
|
5257
|
+
description: () => /* @__PURE__ */ jsxs62(Fragment85, {
|
|
5172
5258
|
children: [
|
|
5173
5259
|
"Show premounting indicators in the Studio timeline. Defaults to",
|
|
5174
5260
|
" ",
|
|
5175
|
-
/* @__PURE__ */
|
|
5261
|
+
/* @__PURE__ */ jsx85("code", {
|
|
5176
5262
|
children: "false"
|
|
5177
5263
|
}),
|
|
5178
5264
|
"."
|
|
@@ -5182,8 +5268,8 @@ var showPremountingOption = {
|
|
|
5182
5268
|
docLink: "https://www.remotion.dev/docs/options/show-premounting",
|
|
5183
5269
|
type: true,
|
|
5184
5270
|
getValue: ({ commandLine }) => {
|
|
5185
|
-
if (commandLine[
|
|
5186
|
-
return { value: commandLine[
|
|
5271
|
+
if (commandLine[cliFlag89] !== undefined && commandLine[cliFlag89] !== null) {
|
|
5272
|
+
return { value: commandLine[cliFlag89], source: "cli" };
|
|
5187
5273
|
}
|
|
5188
5274
|
return { value: configuredShowPremounting ?? false, source: "config" };
|
|
5189
5275
|
},
|
|
@@ -5200,19 +5286,19 @@ var showPremountingOption = {
|
|
|
5200
5286
|
};
|
|
5201
5287
|
|
|
5202
5288
|
// src/options/skip-skills.tsx
|
|
5203
|
-
import { jsx as
|
|
5204
|
-
var
|
|
5289
|
+
import { jsx as jsx86, Fragment as Fragment86 } from "react/jsx-runtime";
|
|
5290
|
+
var cliFlag90 = "skip-skills";
|
|
5205
5291
|
var skipSkillsOption = {
|
|
5206
5292
|
name: "Skip Skills",
|
|
5207
5293
|
addedIn: "4.0.503",
|
|
5208
|
-
cliFlag:
|
|
5209
|
-
description: () => /* @__PURE__ */
|
|
5294
|
+
cliFlag: cliFlag90,
|
|
5295
|
+
description: () => /* @__PURE__ */ jsx86(Fragment86, {
|
|
5210
5296
|
children: "Do not update installed Remotion Agent Skills while upgrading Remotion."
|
|
5211
5297
|
}),
|
|
5212
5298
|
ssrName: null,
|
|
5213
5299
|
docLink: "https://www.remotion.dev/docs/options/skip-skills",
|
|
5214
5300
|
getValue: ({ commandLine }) => {
|
|
5215
|
-
if (commandLine[
|
|
5301
|
+
if (commandLine[cliFlag90]) {
|
|
5216
5302
|
return {
|
|
5217
5303
|
source: "cli",
|
|
5218
5304
|
value: true
|
|
@@ -5227,13 +5313,13 @@ var skipSkillsOption = {
|
|
|
5227
5313
|
throw new Error("Cannot skip updating skills via config file");
|
|
5228
5314
|
},
|
|
5229
5315
|
type: false,
|
|
5230
|
-
id:
|
|
5316
|
+
id: cliFlag90
|
|
5231
5317
|
};
|
|
5232
5318
|
|
|
5233
5319
|
// src/options/still-frame.tsx
|
|
5234
5320
|
import { NoReactInternals as NoReactInternals7 } from "remotion/no-react";
|
|
5235
|
-
import { jsx as
|
|
5236
|
-
var
|
|
5321
|
+
import { jsx as jsx87, jsxs as jsxs63, Fragment as Fragment87 } from "react/jsx-runtime";
|
|
5322
|
+
var cliFlag91 = "frame";
|
|
5237
5323
|
var currentFrame = null;
|
|
5238
5324
|
var validate3 = (frame) => {
|
|
5239
5325
|
NoReactInternals7.validateFrame({
|
|
@@ -5245,17 +5331,17 @@ var validate3 = (frame) => {
|
|
|
5245
5331
|
var stillFrameOption = {
|
|
5246
5332
|
name: "Frame",
|
|
5247
5333
|
addedIn: "2.3.0",
|
|
5248
|
-
cliFlag:
|
|
5249
|
-
description: () => /* @__PURE__ */
|
|
5334
|
+
cliFlag: cliFlag91,
|
|
5335
|
+
description: () => /* @__PURE__ */ jsxs63(Fragment87, {
|
|
5250
5336
|
children: [
|
|
5251
5337
|
"Which frame should be rendered when rendering a still. Default",
|
|
5252
5338
|
" ",
|
|
5253
|
-
/* @__PURE__ */
|
|
5339
|
+
/* @__PURE__ */ jsx87("code", {
|
|
5254
5340
|
children: "0"
|
|
5255
5341
|
}),
|
|
5256
5342
|
". From v3.2.27, negative values are allowed, with",
|
|
5257
5343
|
" ",
|
|
5258
|
-
/* @__PURE__ */
|
|
5344
|
+
/* @__PURE__ */ jsx87("code", {
|
|
5259
5345
|
children: "-1"
|
|
5260
5346
|
}),
|
|
5261
5347
|
" being the last frame."
|
|
@@ -5264,8 +5350,8 @@ var stillFrameOption = {
|
|
|
5264
5350
|
ssrName: "frame",
|
|
5265
5351
|
docLink: "https://www.remotion.dev/docs/options/frame",
|
|
5266
5352
|
getValue: ({ commandLine }) => {
|
|
5267
|
-
if (commandLine[
|
|
5268
|
-
const frame = Number(commandLine[
|
|
5353
|
+
if (commandLine[cliFlag91] !== undefined) {
|
|
5354
|
+
const frame = Number(commandLine[cliFlag91]);
|
|
5269
5355
|
validate3(frame);
|
|
5270
5356
|
return {
|
|
5271
5357
|
source: "cli",
|
|
@@ -5290,25 +5376,25 @@ var stillFrameOption = {
|
|
|
5290
5376
|
currentFrame = value;
|
|
5291
5377
|
},
|
|
5292
5378
|
type: 0,
|
|
5293
|
-
id:
|
|
5379
|
+
id: cliFlag91
|
|
5294
5380
|
};
|
|
5295
5381
|
|
|
5296
5382
|
// src/options/still-image-format.tsx
|
|
5297
|
-
import { jsx as
|
|
5383
|
+
import { jsx as jsx88, jsxs as jsxs64, Fragment as Fragment88 } from "react/jsx-runtime";
|
|
5298
5384
|
var currentStillImageFormat = null;
|
|
5299
|
-
var
|
|
5385
|
+
var cliFlag92 = "image-format";
|
|
5300
5386
|
var stillImageFormatOption = {
|
|
5301
5387
|
name: "Still Image Format",
|
|
5302
5388
|
addedIn: "2.3.0",
|
|
5303
|
-
cliFlag:
|
|
5304
|
-
description: () => /* @__PURE__ */
|
|
5389
|
+
cliFlag: cliFlag92,
|
|
5390
|
+
description: () => /* @__PURE__ */ jsxs64(Fragment88, {
|
|
5305
5391
|
children: [
|
|
5306
5392
|
"The image format to use when rendering a still. Must be one of",
|
|
5307
5393
|
" ",
|
|
5308
5394
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5309
5395
|
". Default:",
|
|
5310
5396
|
" ",
|
|
5311
|
-
/* @__PURE__ */
|
|
5397
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5312
5398
|
children: '"png"'
|
|
5313
5399
|
}),
|
|
5314
5400
|
"."
|
|
@@ -5318,8 +5404,8 @@ var stillImageFormatOption = {
|
|
|
5318
5404
|
docLink: "https://www.remotion.dev/docs/options/still-image-format",
|
|
5319
5405
|
type: null,
|
|
5320
5406
|
getValue: ({ commandLine }) => {
|
|
5321
|
-
if (commandLine[
|
|
5322
|
-
const value = commandLine[
|
|
5407
|
+
if (commandLine[cliFlag92] !== undefined) {
|
|
5408
|
+
const value = commandLine[cliFlag92];
|
|
5323
5409
|
if (!validStillImageFormats.includes(value)) {
|
|
5324
5410
|
throw new Error(`Invalid still image format: ${value}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
5325
5411
|
}
|
|
@@ -5357,16 +5443,16 @@ var stillImageFormatOption = {
|
|
|
5357
5443
|
|
|
5358
5444
|
// src/options/throw-if-site-exists.tsx
|
|
5359
5445
|
var DEFAULT5 = false;
|
|
5360
|
-
var
|
|
5446
|
+
var cliFlag93 = "throw-if-site-exists";
|
|
5361
5447
|
var throwIfSiteExistsOption = {
|
|
5362
|
-
cliFlag:
|
|
5448
|
+
cliFlag: cliFlag93,
|
|
5363
5449
|
description: () => `Prevents accidential update of an existing site. If there are any files in the subfolder where the site should be placed, the function will throw.`,
|
|
5364
5450
|
docLink: "https://www.remotion.dev/docs/options/throw-if-site-exists",
|
|
5365
5451
|
getValue: ({ commandLine }) => {
|
|
5366
|
-
if (commandLine[
|
|
5452
|
+
if (commandLine[cliFlag93]) {
|
|
5367
5453
|
return {
|
|
5368
5454
|
source: "cli",
|
|
5369
|
-
value: commandLine[
|
|
5455
|
+
value: commandLine[cliFlag93]
|
|
5370
5456
|
};
|
|
5371
5457
|
}
|
|
5372
5458
|
return {
|
|
@@ -5381,42 +5467,42 @@ var throwIfSiteExistsOption = {
|
|
|
5381
5467
|
},
|
|
5382
5468
|
ssrName: "throwIfSiteExists",
|
|
5383
5469
|
type: false,
|
|
5384
|
-
id:
|
|
5470
|
+
id: cliFlag93
|
|
5385
5471
|
};
|
|
5386
5472
|
|
|
5387
5473
|
// src/options/timeout.tsx
|
|
5388
|
-
import { jsx as
|
|
5474
|
+
import { jsx as jsx89, jsxs as jsxs65, Fragment as Fragment89 } from "react/jsx-runtime";
|
|
5389
5475
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
5390
5476
|
var validate4 = (value) => {
|
|
5391
5477
|
if (typeof value !== "number") {
|
|
5392
5478
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value));
|
|
5393
5479
|
}
|
|
5394
5480
|
};
|
|
5395
|
-
var
|
|
5481
|
+
var cliFlag94 = "timeout";
|
|
5396
5482
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
5397
5483
|
name: "delayRender() timeout",
|
|
5398
5484
|
addedIn: "2.6.3",
|
|
5399
|
-
cliFlag:
|
|
5400
|
-
description: () => /* @__PURE__ */
|
|
5485
|
+
cliFlag: cliFlag94,
|
|
5486
|
+
description: () => /* @__PURE__ */ jsxs65(Fragment89, {
|
|
5401
5487
|
children: [
|
|
5402
5488
|
"A number describing how long the render may take to resolve all",
|
|
5403
5489
|
" ",
|
|
5404
|
-
/* @__PURE__ */
|
|
5490
|
+
/* @__PURE__ */ jsx89("a", {
|
|
5405
5491
|
href: "https://remotion.dev/docs/delay-render",
|
|
5406
|
-
children: /* @__PURE__ */
|
|
5492
|
+
children: /* @__PURE__ */ jsx89("code", {
|
|
5407
5493
|
children: "delayRender()"
|
|
5408
5494
|
})
|
|
5409
5495
|
}),
|
|
5410
5496
|
" ",
|
|
5411
5497
|
"calls",
|
|
5412
5498
|
" ",
|
|
5413
|
-
/* @__PURE__ */
|
|
5499
|
+
/* @__PURE__ */ jsx89("a", {
|
|
5414
5500
|
style: { fontSize: "inherit" },
|
|
5415
5501
|
href: "https://remotion.dev/docs/timeout",
|
|
5416
5502
|
children: "before it times out"
|
|
5417
5503
|
}),
|
|
5418
5504
|
". Default: ",
|
|
5419
|
-
/* @__PURE__ */
|
|
5505
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5420
5506
|
children: "30000"
|
|
5421
5507
|
})
|
|
5422
5508
|
]
|
|
@@ -5425,10 +5511,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
5425
5511
|
docLink: "https://www.remotion.dev/docs/options/timeout",
|
|
5426
5512
|
type: 0,
|
|
5427
5513
|
getValue: ({ commandLine }) => {
|
|
5428
|
-
if (commandLine[
|
|
5514
|
+
if (commandLine[cliFlag94] !== undefined) {
|
|
5429
5515
|
return {
|
|
5430
5516
|
source: "cli",
|
|
5431
|
-
value: commandLine[
|
|
5517
|
+
value: commandLine[cliFlag94]
|
|
5432
5518
|
};
|
|
5433
5519
|
}
|
|
5434
5520
|
if (currentTimeout !== null) {
|
|
@@ -5447,28 +5533,28 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
5447
5533
|
validate4(value);
|
|
5448
5534
|
currentTimeout = value;
|
|
5449
5535
|
},
|
|
5450
|
-
id:
|
|
5536
|
+
id: cliFlag94
|
|
5451
5537
|
};
|
|
5452
5538
|
|
|
5453
5539
|
// src/options/user-agent.tsx
|
|
5454
|
-
import { jsx as
|
|
5540
|
+
import { jsx as jsx90, Fragment as Fragment90 } from "react/jsx-runtime";
|
|
5455
5541
|
var userAgent = null;
|
|
5456
|
-
var
|
|
5542
|
+
var cliFlag95 = "user-agent";
|
|
5457
5543
|
var userAgentOption = {
|
|
5458
5544
|
name: "User agent",
|
|
5459
5545
|
addedIn: "3.3.83",
|
|
5460
|
-
cliFlag:
|
|
5461
|
-
description: () => /* @__PURE__ */
|
|
5546
|
+
cliFlag: cliFlag95,
|
|
5547
|
+
description: () => /* @__PURE__ */ jsx90(Fragment90, {
|
|
5462
5548
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
5463
5549
|
}),
|
|
5464
5550
|
ssrName: "userAgent",
|
|
5465
5551
|
docLink: "https://www.remotion.dev/docs/options/user-agent",
|
|
5466
5552
|
type: null,
|
|
5467
5553
|
getValue: ({ commandLine }) => {
|
|
5468
|
-
if (commandLine[
|
|
5554
|
+
if (commandLine[cliFlag95] !== undefined) {
|
|
5469
5555
|
return {
|
|
5470
5556
|
source: "cli",
|
|
5471
|
-
value: commandLine[
|
|
5557
|
+
value: commandLine[cliFlag95]
|
|
5472
5558
|
};
|
|
5473
5559
|
}
|
|
5474
5560
|
if (userAgent !== null) {
|
|
@@ -5485,26 +5571,26 @@ var userAgentOption = {
|
|
|
5485
5571
|
setConfig: (value) => {
|
|
5486
5572
|
userAgent = value;
|
|
5487
5573
|
},
|
|
5488
|
-
id:
|
|
5574
|
+
id: cliFlag95
|
|
5489
5575
|
};
|
|
5490
5576
|
|
|
5491
5577
|
// src/options/version-flag.tsx
|
|
5492
|
-
import { jsx as
|
|
5493
|
-
var
|
|
5578
|
+
import { jsx as jsx91, Fragment as Fragment91 } from "react/jsx-runtime";
|
|
5579
|
+
var cliFlag96 = "version";
|
|
5494
5580
|
var versionFlagOption = {
|
|
5495
5581
|
name: "Version",
|
|
5496
5582
|
addedIn: "4.0.15",
|
|
5497
|
-
cliFlag:
|
|
5498
|
-
description: () => /* @__PURE__ */
|
|
5583
|
+
cliFlag: cliFlag96,
|
|
5584
|
+
description: () => /* @__PURE__ */ jsx91(Fragment91, {
|
|
5499
5585
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
5500
5586
|
}),
|
|
5501
5587
|
ssrName: null,
|
|
5502
5588
|
docLink: "https://www.remotion.dev/docs/options/version",
|
|
5503
5589
|
getValue: ({ commandLine }) => {
|
|
5504
|
-
if (commandLine[
|
|
5590
|
+
if (commandLine[cliFlag96] !== undefined) {
|
|
5505
5591
|
return {
|
|
5506
5592
|
source: "cli",
|
|
5507
|
-
value: String(commandLine[
|
|
5593
|
+
value: String(commandLine[cliFlag96])
|
|
5508
5594
|
};
|
|
5509
5595
|
}
|
|
5510
5596
|
return {
|
|
@@ -5516,31 +5602,31 @@ var versionFlagOption = {
|
|
|
5516
5602
|
throw new Error("Cannot set version via config file");
|
|
5517
5603
|
},
|
|
5518
5604
|
type: "",
|
|
5519
|
-
id:
|
|
5605
|
+
id: cliFlag96
|
|
5520
5606
|
};
|
|
5521
5607
|
|
|
5522
5608
|
// src/options/video-bitrate.tsx
|
|
5523
|
-
import { jsx as
|
|
5609
|
+
import { jsx as jsx92, jsxs as jsxs66, Fragment as Fragment92 } from "react/jsx-runtime";
|
|
5524
5610
|
var videoBitrate = null;
|
|
5525
|
-
var
|
|
5611
|
+
var cliFlag97 = "video-bitrate";
|
|
5526
5612
|
var videoBitrateOption = {
|
|
5527
5613
|
name: "Video Bitrate",
|
|
5528
5614
|
addedIn: "3.2.32",
|
|
5529
|
-
cliFlag:
|
|
5530
|
-
description: () => /* @__PURE__ */
|
|
5615
|
+
cliFlag: cliFlag97,
|
|
5616
|
+
description: () => /* @__PURE__ */ jsxs66(Fragment92, {
|
|
5531
5617
|
children: [
|
|
5532
5618
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
5533
5619
|
"'",
|
|
5534
5620
|
"s",
|
|
5535
|
-
/* @__PURE__ */
|
|
5621
|
+
/* @__PURE__ */ jsx92("code", {
|
|
5536
5622
|
children: "-b:v"
|
|
5537
5623
|
}),
|
|
5538
5624
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
5539
|
-
/* @__PURE__ */
|
|
5625
|
+
/* @__PURE__ */ jsx92("code", {
|
|
5540
5626
|
children: "512K"
|
|
5541
5627
|
}),
|
|
5542
5628
|
" for 512 kbps, ",
|
|
5543
|
-
/* @__PURE__ */
|
|
5629
|
+
/* @__PURE__ */ jsx92("code", {
|
|
5544
5630
|
children: "1M"
|
|
5545
5631
|
}),
|
|
5546
5632
|
" for 1 Mbps."
|
|
@@ -5550,10 +5636,10 @@ var videoBitrateOption = {
|
|
|
5550
5636
|
docLink: "https://www.remotion.dev/docs/options/video-bitrate",
|
|
5551
5637
|
type: "",
|
|
5552
5638
|
getValue: ({ commandLine }) => {
|
|
5553
|
-
if (commandLine[
|
|
5639
|
+
if (commandLine[cliFlag97] !== undefined) {
|
|
5554
5640
|
return {
|
|
5555
5641
|
source: "cli",
|
|
5556
|
-
value: commandLine[
|
|
5642
|
+
value: commandLine[cliFlag97]
|
|
5557
5643
|
};
|
|
5558
5644
|
}
|
|
5559
5645
|
if (videoBitrate !== null) {
|
|
@@ -5570,35 +5656,35 @@ var videoBitrateOption = {
|
|
|
5570
5656
|
setConfig: (bitrate) => {
|
|
5571
5657
|
videoBitrate = bitrate;
|
|
5572
5658
|
},
|
|
5573
|
-
id:
|
|
5659
|
+
id: cliFlag97
|
|
5574
5660
|
};
|
|
5575
5661
|
|
|
5576
5662
|
// src/options/video-cache-size.tsx
|
|
5577
|
-
import { jsx as
|
|
5663
|
+
import { jsx as jsx93, jsxs as jsxs67, Fragment as Fragment93 } from "react/jsx-runtime";
|
|
5578
5664
|
var mediaCacheSizeInBytes = null;
|
|
5579
|
-
var
|
|
5665
|
+
var cliFlag98 = "media-cache-size-in-bytes";
|
|
5580
5666
|
var mediaCacheSizeInBytesOption = {
|
|
5581
5667
|
name: "@remotion/media cache size",
|
|
5582
5668
|
addedIn: "4.0.352",
|
|
5583
|
-
cliFlag:
|
|
5584
|
-
description: () => /* @__PURE__ */
|
|
5669
|
+
cliFlag: cliFlag98,
|
|
5670
|
+
description: () => /* @__PURE__ */ jsxs67(Fragment93, {
|
|
5585
5671
|
children: [
|
|
5586
5672
|
"Specify the memory budget for decoded media cached by",
|
|
5587
5673
|
" ",
|
|
5588
|
-
/* @__PURE__ */
|
|
5674
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5589
5675
|
children: "<Video>"
|
|
5590
5676
|
}),
|
|
5591
5677
|
" and ",
|
|
5592
|
-
/* @__PURE__ */
|
|
5678
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5593
5679
|
children: "<Audio>"
|
|
5594
5680
|
}),
|
|
5595
5681
|
" from",
|
|
5596
5682
|
" ",
|
|
5597
|
-
/* @__PURE__ */
|
|
5683
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5598
5684
|
children: "@remotion/media"
|
|
5599
5685
|
}),
|
|
5600
5686
|
", in bytes. This value also determines the maximum read cache size for each distinct media source. It is not a limit on total memory usage. ",
|
|
5601
|
-
/* @__PURE__ */
|
|
5687
|
+
/* @__PURE__ */ jsx93("br", {}),
|
|
5602
5688
|
"The default is half of the available system memory when the render starts."
|
|
5603
5689
|
]
|
|
5604
5690
|
}),
|
|
@@ -5606,10 +5692,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5606
5692
|
docLink: "https://www.remotion.dev/docs/options/media-cache-size-in-bytes",
|
|
5607
5693
|
type: 0,
|
|
5608
5694
|
getValue: ({ commandLine }) => {
|
|
5609
|
-
if (commandLine[
|
|
5695
|
+
if (commandLine[cliFlag98] !== undefined) {
|
|
5610
5696
|
return {
|
|
5611
5697
|
source: "cli",
|
|
5612
|
-
value: commandLine[
|
|
5698
|
+
value: commandLine[cliFlag98]
|
|
5613
5699
|
};
|
|
5614
5700
|
}
|
|
5615
5701
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -5626,11 +5712,11 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5626
5712
|
setConfig: (size) => {
|
|
5627
5713
|
mediaCacheSizeInBytes = size ?? null;
|
|
5628
5714
|
},
|
|
5629
|
-
id:
|
|
5715
|
+
id: cliFlag98
|
|
5630
5716
|
};
|
|
5631
5717
|
|
|
5632
5718
|
// src/options/video-codec.tsx
|
|
5633
|
-
import { jsx as
|
|
5719
|
+
import { jsx as jsx94, Fragment as Fragment94 } from "react/jsx-runtime";
|
|
5634
5720
|
var codec;
|
|
5635
5721
|
var setCodec = (newCodec) => {
|
|
5636
5722
|
if (newCodec === undefined) {
|
|
@@ -5655,12 +5741,12 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
5655
5741
|
possible: makeFileExtensionMap()[normalizedExtension] ?? []
|
|
5656
5742
|
};
|
|
5657
5743
|
};
|
|
5658
|
-
var
|
|
5744
|
+
var cliFlag99 = "codec";
|
|
5659
5745
|
var videoCodecOption = {
|
|
5660
5746
|
name: "Codec",
|
|
5661
5747
|
addedIn: "1.4.0",
|
|
5662
|
-
cliFlag:
|
|
5663
|
-
description: () => /* @__PURE__ */
|
|
5748
|
+
cliFlag: cliFlag99,
|
|
5749
|
+
description: () => /* @__PURE__ */ jsx94(Fragment94, {
|
|
5664
5750
|
children: "H264 works well in most cases, but sometimes it's worth going for a different codec. WebM achieves higher compression but is slower to render. WebM, GIF and ProRes support transparency."
|
|
5665
5751
|
}),
|
|
5666
5752
|
ssrName: "codec",
|
|
@@ -5683,7 +5769,7 @@ var videoCodecOption = {
|
|
|
5683
5769
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
5684
5770
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
5685
5771
|
}
|
|
5686
|
-
const cliArgument = commandLine[
|
|
5772
|
+
const cliArgument = commandLine[cliFlag99];
|
|
5687
5773
|
if (cliArgument) {
|
|
5688
5774
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
5689
5775
|
throw new TypeError(`The download name is ${downloadName} but --codec=${cliArgument} was passed. The download name implies a codec of ${derivedDownloadCodecs.possible.join(" or ")} which does not align with the --codec flag.`);
|
|
@@ -5732,31 +5818,31 @@ var videoCodecOption = {
|
|
|
5732
5818
|
reset: () => {
|
|
5733
5819
|
codec = undefined;
|
|
5734
5820
|
},
|
|
5735
|
-
id:
|
|
5821
|
+
id: cliFlag99
|
|
5736
5822
|
};
|
|
5737
5823
|
|
|
5738
5824
|
// src/options/video-image-format.tsx
|
|
5739
|
-
import { jsx as
|
|
5825
|
+
import { jsx as jsx95, jsxs as jsxs68, Fragment as Fragment95 } from "react/jsx-runtime";
|
|
5740
5826
|
var currentVideoImageFormat = null;
|
|
5741
|
-
var
|
|
5827
|
+
var cliFlag100 = "image-format";
|
|
5742
5828
|
var videoImageFormatOption = {
|
|
5743
5829
|
name: "Video Image Format",
|
|
5744
5830
|
addedIn: "1.4.0",
|
|
5745
|
-
cliFlag:
|
|
5746
|
-
description: () => /* @__PURE__ */
|
|
5831
|
+
cliFlag: cliFlag100,
|
|
5832
|
+
description: () => /* @__PURE__ */ jsxs68(Fragment95, {
|
|
5747
5833
|
children: [
|
|
5748
5834
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
5749
5835
|
" ",
|
|
5750
5836
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5751
5837
|
". Default:",
|
|
5752
5838
|
" ",
|
|
5753
|
-
/* @__PURE__ */
|
|
5839
|
+
/* @__PURE__ */ jsx95("code", {
|
|
5754
5840
|
children: '"jpeg"'
|
|
5755
5841
|
}),
|
|
5756
5842
|
". JPEG is faster, but does not support transparency.",
|
|
5757
|
-
/* @__PURE__ */
|
|
5843
|
+
/* @__PURE__ */ jsx95("br", {}),
|
|
5758
5844
|
"When ",
|
|
5759
|
-
/* @__PURE__ */
|
|
5845
|
+
/* @__PURE__ */ jsx95("a", {
|
|
5760
5846
|
href: "/docs/shared-memory-capture",
|
|
5761
5847
|
children: "shared-memory capture"
|
|
5762
5848
|
}),
|
|
@@ -5773,8 +5859,8 @@ var videoImageFormatOption = {
|
|
|
5773
5859
|
value: options.uiVideoImageFormat
|
|
5774
5860
|
};
|
|
5775
5861
|
}
|
|
5776
|
-
if (commandLine[
|
|
5777
|
-
const value = commandLine[
|
|
5862
|
+
if (commandLine[cliFlag100] !== undefined) {
|
|
5863
|
+
const value = commandLine[cliFlag100];
|
|
5778
5864
|
if (!validVideoImageFormats.includes(value)) {
|
|
5779
5865
|
throw new Error(`Invalid video image format: ${value}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
5780
5866
|
}
|
|
@@ -5838,13 +5924,13 @@ var videoImageFormatOption = {
|
|
|
5838
5924
|
};
|
|
5839
5925
|
|
|
5840
5926
|
// src/options/webhook-custom-data.tsx
|
|
5841
|
-
import { jsxs as
|
|
5842
|
-
var
|
|
5927
|
+
import { jsxs as jsxs69, Fragment as Fragment96 } from "react/jsx-runtime";
|
|
5928
|
+
var cliFlag101 = "webhook-custom-data";
|
|
5843
5929
|
var webhookCustomDataOption = {
|
|
5844
5930
|
name: "Webhook custom data",
|
|
5845
5931
|
addedIn: "4.0.25",
|
|
5846
|
-
cliFlag:
|
|
5847
|
-
description: (type) => /* @__PURE__ */
|
|
5932
|
+
cliFlag: cliFlag101,
|
|
5933
|
+
description: (type) => /* @__PURE__ */ jsxs69(Fragment96, {
|
|
5848
5934
|
children: [
|
|
5849
5935
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
5850
5936
|
" ",
|
|
@@ -5860,25 +5946,25 @@ var webhookCustomDataOption = {
|
|
|
5860
5946
|
setConfig: () => {
|
|
5861
5947
|
throw new Error("Not implemented");
|
|
5862
5948
|
},
|
|
5863
|
-
id:
|
|
5949
|
+
id: cliFlag101
|
|
5864
5950
|
};
|
|
5865
5951
|
|
|
5866
5952
|
// src/options/webpack-poll.tsx
|
|
5867
|
-
import { jsx as
|
|
5868
|
-
var
|
|
5953
|
+
import { jsx as jsx96, Fragment as Fragment97 } from "react/jsx-runtime";
|
|
5954
|
+
var cliFlag102 = "webpack-poll";
|
|
5869
5955
|
var webpackPolling = null;
|
|
5870
5956
|
var webpackPollOption = {
|
|
5871
5957
|
name: "Webpack Polling",
|
|
5872
5958
|
addedIn: "3.3.11",
|
|
5873
|
-
cliFlag:
|
|
5874
|
-
description: () => /* @__PURE__ */
|
|
5959
|
+
cliFlag: cliFlag102,
|
|
5960
|
+
description: () => /* @__PURE__ */ jsx96(Fragment97, {
|
|
5875
5961
|
children: "Enables Webpack polling instead of the file system event listeners for hot reloading. This is useful if you are inside a virtual machine or have a remote file system. Pass a value in milliseconds."
|
|
5876
5962
|
}),
|
|
5877
5963
|
ssrName: null,
|
|
5878
5964
|
docLink: "https://www.remotion.dev/docs/options/webpack-poll",
|
|
5879
5965
|
getValue: ({ commandLine }) => {
|
|
5880
|
-
if (commandLine[
|
|
5881
|
-
const val = commandLine[
|
|
5966
|
+
if (commandLine[cliFlag102] !== undefined) {
|
|
5967
|
+
const val = commandLine[cliFlag102];
|
|
5882
5968
|
if (typeof val !== "number") {
|
|
5883
5969
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
5884
5970
|
}
|
|
@@ -5905,11 +5991,11 @@ var webpackPollOption = {
|
|
|
5905
5991
|
webpackPolling = value;
|
|
5906
5992
|
},
|
|
5907
5993
|
type: 0,
|
|
5908
|
-
id:
|
|
5994
|
+
id: cliFlag102
|
|
5909
5995
|
};
|
|
5910
5996
|
|
|
5911
5997
|
// src/options/x264-preset.tsx
|
|
5912
|
-
import { jsx as
|
|
5998
|
+
import { jsx as jsx97, jsxs as jsxs70, Fragment as Fragment98 } from "react/jsx-runtime";
|
|
5913
5999
|
var x264PresetOptions = [
|
|
5914
6000
|
"ultrafast",
|
|
5915
6001
|
"superfast",
|
|
@@ -5923,64 +6009,64 @@ var x264PresetOptions = [
|
|
|
5923
6009
|
"placebo"
|
|
5924
6010
|
];
|
|
5925
6011
|
var preset = null;
|
|
5926
|
-
var
|
|
6012
|
+
var cliFlag103 = "x264-preset";
|
|
5927
6013
|
var DEFAULT_PRESET = "medium";
|
|
5928
6014
|
var x264Option = {
|
|
5929
6015
|
name: "x264 Preset",
|
|
5930
6016
|
addedIn: "4.0.22",
|
|
5931
|
-
cliFlag:
|
|
5932
|
-
description: () => /* @__PURE__ */
|
|
6017
|
+
cliFlag: cliFlag103,
|
|
6018
|
+
description: () => /* @__PURE__ */ jsxs70(Fragment98, {
|
|
5933
6019
|
children: [
|
|
5934
6020
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
5935
6021
|
" ",
|
|
5936
|
-
/* @__PURE__ */
|
|
6022
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5937
6023
|
children: "h264"
|
|
5938
6024
|
}),
|
|
5939
6025
|
" codec.",
|
|
5940
|
-
/* @__PURE__ */
|
|
6026
|
+
/* @__PURE__ */ jsx97("br", {}),
|
|
5941
6027
|
"Possible values: ",
|
|
5942
|
-
/* @__PURE__ */
|
|
6028
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5943
6029
|
children: "superfast"
|
|
5944
6030
|
}),
|
|
5945
6031
|
", ",
|
|
5946
|
-
/* @__PURE__ */
|
|
6032
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5947
6033
|
children: "veryfast"
|
|
5948
6034
|
}),
|
|
5949
6035
|
",",
|
|
5950
6036
|
" ",
|
|
5951
|
-
/* @__PURE__ */
|
|
6037
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5952
6038
|
children: "faster"
|
|
5953
6039
|
}),
|
|
5954
6040
|
", ",
|
|
5955
|
-
/* @__PURE__ */
|
|
6041
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5956
6042
|
children: "fast"
|
|
5957
6043
|
}),
|
|
5958
6044
|
", ",
|
|
5959
|
-
/* @__PURE__ */
|
|
6045
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5960
6046
|
children: "medium"
|
|
5961
6047
|
}),
|
|
5962
6048
|
",",
|
|
5963
6049
|
" ",
|
|
5964
|
-
/* @__PURE__ */
|
|
6050
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5965
6051
|
children: "slow"
|
|
5966
6052
|
}),
|
|
5967
6053
|
", ",
|
|
5968
|
-
/* @__PURE__ */
|
|
6054
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5969
6055
|
children: "slower"
|
|
5970
6056
|
}),
|
|
5971
6057
|
", ",
|
|
5972
|
-
/* @__PURE__ */
|
|
6058
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5973
6059
|
children: "veryslow"
|
|
5974
6060
|
}),
|
|
5975
6061
|
",",
|
|
5976
6062
|
" ",
|
|
5977
|
-
/* @__PURE__ */
|
|
6063
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5978
6064
|
children: "placebo"
|
|
5979
6065
|
}),
|
|
5980
6066
|
".",
|
|
5981
|
-
/* @__PURE__ */
|
|
6067
|
+
/* @__PURE__ */ jsx97("br", {}),
|
|
5982
6068
|
"Default: ",
|
|
5983
|
-
/* @__PURE__ */
|
|
6069
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5984
6070
|
children: DEFAULT_PRESET
|
|
5985
6071
|
})
|
|
5986
6072
|
]
|
|
@@ -5989,7 +6075,7 @@ var x264Option = {
|
|
|
5989
6075
|
docLink: "https://www.remotion.dev/docs/options/x264-preset",
|
|
5990
6076
|
type: "fast",
|
|
5991
6077
|
getValue: ({ commandLine }) => {
|
|
5992
|
-
const value = commandLine[
|
|
6078
|
+
const value = commandLine[cliFlag103];
|
|
5993
6079
|
if (typeof value !== "undefined") {
|
|
5994
6080
|
return { value, source: "cli" };
|
|
5995
6081
|
}
|
|
@@ -6001,11 +6087,12 @@ var x264Option = {
|
|
|
6001
6087
|
setConfig: (profile) => {
|
|
6002
6088
|
preset = profile;
|
|
6003
6089
|
},
|
|
6004
|
-
id:
|
|
6090
|
+
id: cliFlag103
|
|
6005
6091
|
};
|
|
6006
6092
|
|
|
6007
6093
|
// src/options/index.tsx
|
|
6008
6094
|
var allOptions = {
|
|
6095
|
+
preservePitchOnPlaybackOption,
|
|
6009
6096
|
showLayerFrameNumbersOption,
|
|
6010
6097
|
showPremountingOption,
|
|
6011
6098
|
allowHtmlInCanvasOption,
|