@remotion/renderer 4.0.537 → 4.0.538
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/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 +306 -238
- package/dist/esm/index.mjs +42 -22
- 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-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-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/{experimental-tracks.d.ts → preserve-pitch-on-playback.d.ts} +3 -3
- 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/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/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-static.d.ts +2 -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/options/experimental-sequence-activity-limit.d.ts +0 -19
- package/dist/options/experimental-sequence-activity-limit.js +0 -40
- package/dist/options/experimental-sequence-activity.d.ts +0 -19
- package/dist/options/experimental-sequence-activity.js +0 -38
- package/dist/options/experimental-tracks.js +0 -43
package/dist/esm/client.mjs
CHANGED
|
@@ -4542,18 +4542,85 @@ var preferLosslessAudioOption = {
|
|
|
4542
4542
|
id: cliFlag74
|
|
4543
4543
|
};
|
|
4544
4544
|
|
|
4545
|
-
// src/options/
|
|
4545
|
+
// src/options/preserve-pitch-on-playback.tsx
|
|
4546
4546
|
import { jsx as jsx71, jsxs as jsxs50, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4547
|
-
var
|
|
4547
|
+
var configuredPreservePitchOnPlayback = null;
|
|
4548
|
+
var cliFlag75 = "preserve-pitch-on-playback";
|
|
4549
|
+
var preservePitchOnPlaybackOption = {
|
|
4550
|
+
name: "Preserve pitch on playback",
|
|
4551
|
+
addedIn: "4.0.538",
|
|
4552
|
+
cliFlag: cliFlag75,
|
|
4553
|
+
id: cliFlag75,
|
|
4554
|
+
description: () => /* @__PURE__ */ jsxs50(Fragment71, {
|
|
4555
|
+
children: [
|
|
4556
|
+
"Preserve audio pitch when changing the Studio playback speed. Defaults to",
|
|
4557
|
+
" ",
|
|
4558
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4559
|
+
children: "true"
|
|
4560
|
+
}),
|
|
4561
|
+
". Applies to ",
|
|
4562
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4563
|
+
children: "Audio"
|
|
4564
|
+
}),
|
|
4565
|
+
" and ",
|
|
4566
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4567
|
+
children: "Video"
|
|
4568
|
+
}),
|
|
4569
|
+
" ",
|
|
4570
|
+
"from ",
|
|
4571
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4572
|
+
children: "@remotion/media"
|
|
4573
|
+
}),
|
|
4574
|
+
", independently of their clip-level",
|
|
4575
|
+
" ",
|
|
4576
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4577
|
+
children: "preservePitch"
|
|
4578
|
+
}),
|
|
4579
|
+
" props. Does not affect rendered output or native media components, including native fallbacks. Set",
|
|
4580
|
+
" ",
|
|
4581
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4582
|
+
children: "--preserve-pitch-on-playback=false"
|
|
4583
|
+
}),
|
|
4584
|
+
" to disable."
|
|
4585
|
+
]
|
|
4586
|
+
}),
|
|
4587
|
+
ssrName: null,
|
|
4588
|
+
docLink: "https://www.remotion.dev/docs/options/preserve-pitch-on-playback",
|
|
4589
|
+
type: false,
|
|
4590
|
+
getValue: ({ commandLine }) => {
|
|
4591
|
+
const value = commandLine[cliFlag75];
|
|
4592
|
+
if (value !== undefined && value !== null) {
|
|
4593
|
+
if (typeof value !== "boolean") {
|
|
4594
|
+
throw new Error("--preserve-pitch-on-playback expects a boolean");
|
|
4595
|
+
}
|
|
4596
|
+
return { value, source: "cli" };
|
|
4597
|
+
}
|
|
4598
|
+
return { value: configuredPreservePitchOnPlayback ?? true, source: "config" };
|
|
4599
|
+
},
|
|
4600
|
+
setConfig(value) {
|
|
4601
|
+
if (typeof value !== "boolean") {
|
|
4602
|
+
throw new Error("Config.setPreservePitchOnPlayback() expects a boolean");
|
|
4603
|
+
}
|
|
4604
|
+
configuredPreservePitchOnPlayback = value;
|
|
4605
|
+
},
|
|
4606
|
+
getConfigValue: () => configuredPreservePitchOnPlayback,
|
|
4607
|
+
reset: () => {
|
|
4608
|
+
configuredPreservePitchOnPlayback = null;
|
|
4609
|
+
}
|
|
4610
|
+
};
|
|
4611
|
+
|
|
4612
|
+
// src/options/preview-sample-rate.tsx
|
|
4613
|
+
import { jsx as jsx72, jsxs as jsxs51, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4614
|
+
var cliFlag76 = "preview-sample-rate";
|
|
4548
4615
|
var currentPreviewSampleRate = null;
|
|
4549
4616
|
var previewSampleRateOption = {
|
|
4550
4617
|
name: "Preview Sample Rate",
|
|
4551
4618
|
addedIn: "4.0.470",
|
|
4552
|
-
cliFlag:
|
|
4553
|
-
description: () => /* @__PURE__ */
|
|
4619
|
+
cliFlag: cliFlag76,
|
|
4620
|
+
description: () => /* @__PURE__ */ jsxs51(Fragment72, {
|
|
4554
4621
|
children: [
|
|
4555
4622
|
"Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
|
|
4556
|
-
/* @__PURE__ */
|
|
4623
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4557
4624
|
children: "48000"
|
|
4558
4625
|
}),
|
|
4559
4626
|
" Hz."
|
|
@@ -4563,8 +4630,8 @@ var previewSampleRateOption = {
|
|
|
4563
4630
|
docLink: "https://www.remotion.dev/docs/options/preview-sample-rate",
|
|
4564
4631
|
type: null,
|
|
4565
4632
|
getValue: ({ commandLine }) => {
|
|
4566
|
-
if (commandLine[
|
|
4567
|
-
return { value: commandLine[
|
|
4633
|
+
if (commandLine[cliFlag76] !== undefined) {
|
|
4634
|
+
return { value: commandLine[cliFlag76], source: "cli" };
|
|
4568
4635
|
}
|
|
4569
4636
|
if (currentPreviewSampleRate !== null) {
|
|
4570
4637
|
return { value: currentPreviewSampleRate, source: "config file" };
|
|
@@ -4574,20 +4641,20 @@ var previewSampleRateOption = {
|
|
|
4574
4641
|
setConfig: (value) => {
|
|
4575
4642
|
currentPreviewSampleRate = value;
|
|
4576
4643
|
},
|
|
4577
|
-
id:
|
|
4644
|
+
id: cliFlag76
|
|
4578
4645
|
};
|
|
4579
4646
|
|
|
4580
4647
|
// src/options/props.tsx
|
|
4581
|
-
import { jsx as
|
|
4582
|
-
var
|
|
4648
|
+
import { jsx as jsx73, jsxs as jsxs52, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4649
|
+
var cliFlag77 = "props";
|
|
4583
4650
|
var propsOption = {
|
|
4584
4651
|
name: "Input Props",
|
|
4585
4652
|
addedIn: "1.0.0",
|
|
4586
|
-
cliFlag:
|
|
4587
|
-
description: () => /* @__PURE__ */
|
|
4653
|
+
cliFlag: cliFlag77,
|
|
4654
|
+
description: () => /* @__PURE__ */ jsxs52(Fragment73, {
|
|
4588
4655
|
children: [
|
|
4589
4656
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
4590
|
-
/* @__PURE__ */
|
|
4657
|
+
/* @__PURE__ */ jsxs52("code", {
|
|
4591
4658
|
children: [
|
|
4592
4659
|
"--props='",
|
|
4593
4660
|
"{",
|
|
@@ -4597,7 +4664,7 @@ var propsOption = {
|
|
|
4597
4664
|
]
|
|
4598
4665
|
}),
|
|
4599
4666
|
") or a path to a JSON file (",
|
|
4600
|
-
/* @__PURE__ */
|
|
4667
|
+
/* @__PURE__ */ jsx73("code", {
|
|
4601
4668
|
children: "./path/to/props.json"
|
|
4602
4669
|
}),
|
|
4603
4670
|
")."
|
|
@@ -4606,10 +4673,10 @@ var propsOption = {
|
|
|
4606
4673
|
ssrName: null,
|
|
4607
4674
|
docLink: "https://www.remotion.dev/docs/options/props",
|
|
4608
4675
|
getValue: ({ commandLine }) => {
|
|
4609
|
-
if (commandLine[
|
|
4676
|
+
if (commandLine[cliFlag77] !== undefined) {
|
|
4610
4677
|
return {
|
|
4611
4678
|
source: "cli",
|
|
4612
|
-
value: commandLine[
|
|
4679
|
+
value: commandLine[cliFlag77]
|
|
4613
4680
|
};
|
|
4614
4681
|
}
|
|
4615
4682
|
return {
|
|
@@ -4621,11 +4688,11 @@ var propsOption = {
|
|
|
4621
4688
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
4622
4689
|
},
|
|
4623
4690
|
type: "",
|
|
4624
|
-
id:
|
|
4691
|
+
id: cliFlag77
|
|
4625
4692
|
};
|
|
4626
4693
|
|
|
4627
4694
|
// src/options/prores-profile.tsx
|
|
4628
|
-
import { jsx as
|
|
4695
|
+
import { jsx as jsx74, jsxs as jsxs53, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4629
4696
|
var validProResProfiles = [
|
|
4630
4697
|
"4444-xq",
|
|
4631
4698
|
"4444",
|
|
@@ -4635,15 +4702,15 @@ var validProResProfiles = [
|
|
|
4635
4702
|
"proxy"
|
|
4636
4703
|
];
|
|
4637
4704
|
var proResProfile;
|
|
4638
|
-
var
|
|
4705
|
+
var cliFlag78 = "prores-profile";
|
|
4639
4706
|
var proResProfileOption = {
|
|
4640
4707
|
name: "ProRes profile",
|
|
4641
4708
|
addedIn: "2.1.6",
|
|
4642
|
-
cliFlag:
|
|
4643
|
-
description: () => /* @__PURE__ */
|
|
4709
|
+
cliFlag: cliFlag78,
|
|
4710
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment74, {
|
|
4644
4711
|
children: [
|
|
4645
4712
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
4646
|
-
/* @__PURE__ */
|
|
4713
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4647
4714
|
children: "prores"
|
|
4648
4715
|
}),
|
|
4649
4716
|
". Possible values:",
|
|
@@ -4651,12 +4718,12 @@ var proResProfileOption = {
|
|
|
4651
4718
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
4652
4719
|
". Default:",
|
|
4653
4720
|
" ",
|
|
4654
|
-
/* @__PURE__ */
|
|
4721
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4655
4722
|
children: '"hq"'
|
|
4656
4723
|
}),
|
|
4657
4724
|
". See",
|
|
4658
4725
|
" ",
|
|
4659
|
-
/* @__PURE__ */
|
|
4726
|
+
/* @__PURE__ */ jsx74("a", {
|
|
4660
4727
|
href: "https://video.stackexchange.com/a/14715",
|
|
4661
4728
|
children: "here"
|
|
4662
4729
|
}),
|
|
@@ -4673,10 +4740,10 @@ var proResProfileOption = {
|
|
|
4673
4740
|
value: options.uiProResProfile
|
|
4674
4741
|
};
|
|
4675
4742
|
}
|
|
4676
|
-
if (commandLine[
|
|
4743
|
+
if (commandLine[cliFlag78] !== undefined) {
|
|
4677
4744
|
return {
|
|
4678
4745
|
source: "from --prores-profile flag",
|
|
4679
|
-
value: String(commandLine[
|
|
4746
|
+
value: String(commandLine[cliFlag78])
|
|
4680
4747
|
};
|
|
4681
4748
|
}
|
|
4682
4749
|
if (options && options.compositionDefaultProResProfile !== null) {
|
|
@@ -4699,25 +4766,25 @@ var proResProfileOption = {
|
|
|
4699
4766
|
setConfig: (value) => {
|
|
4700
4767
|
proResProfile = value;
|
|
4701
4768
|
},
|
|
4702
|
-
id:
|
|
4769
|
+
id: cliFlag78
|
|
4703
4770
|
};
|
|
4704
4771
|
|
|
4705
4772
|
// src/options/public-dir.tsx
|
|
4706
|
-
import { jsx as
|
|
4707
|
-
var
|
|
4773
|
+
import { jsx as jsx75, jsxs as jsxs54, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4774
|
+
var cliFlag79 = "public-dir";
|
|
4708
4775
|
var currentPublicDir = null;
|
|
4709
4776
|
var publicDirOption = {
|
|
4710
4777
|
name: "Public Directory",
|
|
4711
4778
|
addedIn: "3.2.13",
|
|
4712
|
-
cliFlag:
|
|
4779
|
+
cliFlag: cliFlag79,
|
|
4713
4780
|
description: () => {
|
|
4714
|
-
return /* @__PURE__ */
|
|
4781
|
+
return /* @__PURE__ */ jsxs54(Fragment75, {
|
|
4715
4782
|
children: [
|
|
4716
4783
|
"Define the location of the",
|
|
4717
4784
|
" ",
|
|
4718
|
-
/* @__PURE__ */
|
|
4785
|
+
/* @__PURE__ */ jsx75("a", {
|
|
4719
4786
|
href: "/docs/terminology/public-dir",
|
|
4720
|
-
children: /* @__PURE__ */
|
|
4787
|
+
children: /* @__PURE__ */ jsx75("code", {
|
|
4721
4788
|
children: "public/ directory"
|
|
4722
4789
|
})
|
|
4723
4790
|
}),
|
|
@@ -4728,10 +4795,10 @@ var publicDirOption = {
|
|
|
4728
4795
|
ssrName: "publicDir",
|
|
4729
4796
|
docLink: "https://www.remotion.dev/docs/options/public-dir",
|
|
4730
4797
|
getValue: ({ commandLine }) => {
|
|
4731
|
-
if (commandLine[
|
|
4798
|
+
if (commandLine[cliFlag79] !== undefined) {
|
|
4732
4799
|
return {
|
|
4733
4800
|
source: "cli",
|
|
4734
|
-
value: commandLine[
|
|
4801
|
+
value: commandLine[cliFlag79]
|
|
4735
4802
|
};
|
|
4736
4803
|
}
|
|
4737
4804
|
if (currentPublicDir !== null) {
|
|
@@ -4749,21 +4816,21 @@ var publicDirOption = {
|
|
|
4749
4816
|
currentPublicDir = value;
|
|
4750
4817
|
},
|
|
4751
4818
|
type: "",
|
|
4752
|
-
id:
|
|
4819
|
+
id: cliFlag79
|
|
4753
4820
|
};
|
|
4754
4821
|
|
|
4755
4822
|
// src/options/public-license-key.tsx
|
|
4756
|
-
import { jsx as
|
|
4757
|
-
var
|
|
4823
|
+
import { jsx as jsx76, jsxs as jsxs55, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4824
|
+
var cliFlag80 = "public-license-key";
|
|
4758
4825
|
var currentPublicLicenseKey = null;
|
|
4759
4826
|
var publicLicenseKeyOption = {
|
|
4760
4827
|
name: "Public License Key",
|
|
4761
4828
|
addedIn: "4.0.398",
|
|
4762
|
-
cliFlag:
|
|
4763
|
-
description: () => /* @__PURE__ */
|
|
4829
|
+
cliFlag: cliFlag80,
|
|
4830
|
+
description: () => /* @__PURE__ */ jsxs55(Fragment76, {
|
|
4764
4831
|
children: [
|
|
4765
4832
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
4766
|
-
/* @__PURE__ */
|
|
4833
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4767
4834
|
href: "https://remotion.pro/dashboard",
|
|
4768
4835
|
children: "remotion.pro"
|
|
4769
4836
|
}),
|
|
@@ -4773,10 +4840,10 @@ var publicLicenseKeyOption = {
|
|
|
4773
4840
|
ssrName: "publicLicenseKey",
|
|
4774
4841
|
docLink: "https://www.remotion.dev/docs/options/public-license-key",
|
|
4775
4842
|
getValue: ({ commandLine }) => {
|
|
4776
|
-
if (commandLine[
|
|
4843
|
+
if (commandLine[cliFlag80] !== undefined) {
|
|
4777
4844
|
return {
|
|
4778
4845
|
source: "cli",
|
|
4779
|
-
value: commandLine[
|
|
4846
|
+
value: commandLine[cliFlag80]
|
|
4780
4847
|
};
|
|
4781
4848
|
}
|
|
4782
4849
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -4797,26 +4864,26 @@ var publicLicenseKeyOption = {
|
|
|
4797
4864
|
currentPublicLicenseKey = value;
|
|
4798
4865
|
},
|
|
4799
4866
|
type: null,
|
|
4800
|
-
id:
|
|
4867
|
+
id: cliFlag80
|
|
4801
4868
|
};
|
|
4802
4869
|
|
|
4803
4870
|
// src/options/public-path.tsx
|
|
4804
|
-
import { jsx as
|
|
4805
|
-
var
|
|
4871
|
+
import { jsx as jsx77, jsxs as jsxs56, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4872
|
+
var cliFlag81 = "public-path";
|
|
4806
4873
|
var currentPublicPath = null;
|
|
4807
4874
|
var publicPathOption = {
|
|
4808
4875
|
name: "Public Path",
|
|
4809
4876
|
addedIn: "4.0.127",
|
|
4810
|
-
cliFlag:
|
|
4877
|
+
cliFlag: cliFlag81,
|
|
4811
4878
|
description: () => {
|
|
4812
|
-
return /* @__PURE__ */
|
|
4879
|
+
return /* @__PURE__ */ jsxs56(Fragment77, {
|
|
4813
4880
|
children: [
|
|
4814
4881
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
4815
|
-
/* @__PURE__ */
|
|
4882
|
+
/* @__PURE__ */ jsx77("code", {
|
|
4816
4883
|
children: "./"
|
|
4817
4884
|
}),
|
|
4818
4885
|
", making the bundle relocatable. Set an absolute path such as ",
|
|
4819
|
-
/* @__PURE__ */
|
|
4886
|
+
/* @__PURE__ */ jsx77("code", {
|
|
4820
4887
|
children: "/sites/my-site/"
|
|
4821
4888
|
}),
|
|
4822
4889
|
" to host the bundle at a fixed location."
|
|
@@ -4826,10 +4893,10 @@ var publicPathOption = {
|
|
|
4826
4893
|
ssrName: "publicPath",
|
|
4827
4894
|
docLink: "https://www.remotion.dev/docs/options/public-path",
|
|
4828
4895
|
getValue: ({ commandLine }) => {
|
|
4829
|
-
if (commandLine[
|
|
4896
|
+
if (commandLine[cliFlag81] !== undefined) {
|
|
4830
4897
|
return {
|
|
4831
4898
|
source: "cli",
|
|
4832
|
-
value: commandLine[
|
|
4899
|
+
value: commandLine[cliFlag81]
|
|
4833
4900
|
};
|
|
4834
4901
|
}
|
|
4835
4902
|
if (currentPublicPath !== null) {
|
|
@@ -4847,30 +4914,30 @@ var publicPathOption = {
|
|
|
4847
4914
|
currentPublicPath = value;
|
|
4848
4915
|
},
|
|
4849
4916
|
type: "",
|
|
4850
|
-
id:
|
|
4917
|
+
id: cliFlag81
|
|
4851
4918
|
};
|
|
4852
4919
|
|
|
4853
4920
|
// src/options/repro.tsx
|
|
4854
|
-
import { jsx as
|
|
4921
|
+
import { jsx as jsx78, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4855
4922
|
var enableRepro = false;
|
|
4856
4923
|
var setRepro = (should) => {
|
|
4857
4924
|
enableRepro = should;
|
|
4858
4925
|
};
|
|
4859
|
-
var
|
|
4926
|
+
var cliFlag82 = "repro";
|
|
4860
4927
|
var reproOption = {
|
|
4861
4928
|
name: "Create reproduction",
|
|
4862
4929
|
addedIn: "4.0.88",
|
|
4863
|
-
cliFlag:
|
|
4864
|
-
description: () => /* @__PURE__ */
|
|
4930
|
+
cliFlag: cliFlag82,
|
|
4931
|
+
description: () => /* @__PURE__ */ jsx78(Fragment78, {
|
|
4865
4932
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
4866
4933
|
}),
|
|
4867
4934
|
ssrName: "repro",
|
|
4868
4935
|
docLink: "https://www.remotion.dev/docs/options/repro",
|
|
4869
4936
|
type: false,
|
|
4870
4937
|
getValue: ({ commandLine }) => {
|
|
4871
|
-
if (commandLine[
|
|
4938
|
+
if (commandLine[cliFlag82] !== undefined && commandLine[cliFlag82] !== null) {
|
|
4872
4939
|
return {
|
|
4873
|
-
value: commandLine[
|
|
4940
|
+
value: commandLine[cliFlag82],
|
|
4874
4941
|
source: "cli"
|
|
4875
4942
|
};
|
|
4876
4943
|
}
|
|
@@ -4886,28 +4953,28 @@ var reproOption = {
|
|
|
4886
4953
|
};
|
|
4887
4954
|
},
|
|
4888
4955
|
setConfig: setRepro,
|
|
4889
|
-
id:
|
|
4956
|
+
id: cliFlag82
|
|
4890
4957
|
};
|
|
4891
4958
|
|
|
4892
4959
|
// src/options/rspack.tsx
|
|
4893
|
-
import { jsx as
|
|
4960
|
+
import { jsx as jsx79, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4894
4961
|
var rspackEnabled = false;
|
|
4895
4962
|
var configuredRspackEnabled = null;
|
|
4896
|
-
var
|
|
4963
|
+
var cliFlag83 = "rspack";
|
|
4897
4964
|
var rspackOption = {
|
|
4898
4965
|
name: "Rspack",
|
|
4899
4966
|
addedIn: "4.0.502",
|
|
4900
|
-
cliFlag:
|
|
4901
|
-
description: () => /* @__PURE__ */
|
|
4967
|
+
cliFlag: cliFlag83,
|
|
4968
|
+
description: () => /* @__PURE__ */ jsx79(Fragment79, {
|
|
4902
4969
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4903
4970
|
}),
|
|
4904
4971
|
ssrName: null,
|
|
4905
4972
|
docLink: "https://www.remotion.dev/docs/options/rspack",
|
|
4906
4973
|
type: false,
|
|
4907
4974
|
getValue: ({ commandLine }) => {
|
|
4908
|
-
if (commandLine[
|
|
4975
|
+
if (commandLine[cliFlag83] !== undefined && commandLine[cliFlag83] !== null) {
|
|
4909
4976
|
return {
|
|
4910
|
-
value: commandLine[
|
|
4977
|
+
value: commandLine[cliFlag83],
|
|
4911
4978
|
source: "cli"
|
|
4912
4979
|
};
|
|
4913
4980
|
}
|
|
@@ -4925,22 +4992,22 @@ var rspackOption = {
|
|
|
4925
4992
|
rspackEnabled = false;
|
|
4926
4993
|
configuredRspackEnabled = null;
|
|
4927
4994
|
},
|
|
4928
|
-
id:
|
|
4995
|
+
id: cliFlag83
|
|
4929
4996
|
};
|
|
4930
4997
|
|
|
4931
4998
|
// src/options/runs.tsx
|
|
4932
|
-
import { jsx as
|
|
4999
|
+
import { jsx as jsx80, jsxs as jsxs57, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4933
5000
|
var DEFAULT_RUNS = 3;
|
|
4934
5001
|
var currentRuns = DEFAULT_RUNS;
|
|
4935
|
-
var
|
|
5002
|
+
var cliFlag84 = "runs";
|
|
4936
5003
|
var runsOption = {
|
|
4937
5004
|
name: "Benchmark runs",
|
|
4938
5005
|
addedIn: "3.2.28",
|
|
4939
|
-
cliFlag:
|
|
4940
|
-
description: () => /* @__PURE__ */
|
|
5006
|
+
cliFlag: cliFlag84,
|
|
5007
|
+
description: () => /* @__PURE__ */ jsxs57(Fragment80, {
|
|
4941
5008
|
children: [
|
|
4942
5009
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
4943
|
-
/* @__PURE__ */
|
|
5010
|
+
/* @__PURE__ */ jsx80("code", {
|
|
4944
5011
|
children: DEFAULT_RUNS
|
|
4945
5012
|
}),
|
|
4946
5013
|
"."
|
|
@@ -4950,10 +5017,10 @@ var runsOption = {
|
|
|
4950
5017
|
docLink: "https://www.remotion.dev/docs/options/runs",
|
|
4951
5018
|
type: DEFAULT_RUNS,
|
|
4952
5019
|
getValue: ({ commandLine }) => {
|
|
4953
|
-
if (commandLine[
|
|
4954
|
-
const value = Number(commandLine[
|
|
5020
|
+
if (commandLine[cliFlag84] !== undefined) {
|
|
5021
|
+
const value = Number(commandLine[cliFlag84]);
|
|
4955
5022
|
if (isNaN(value) || value < 1) {
|
|
4956
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
5023
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag84]}`);
|
|
4957
5024
|
}
|
|
4958
5025
|
return { value, source: "cli" };
|
|
4959
5026
|
}
|
|
@@ -4968,22 +5035,22 @@ var runsOption = {
|
|
|
4968
5035
|
}
|
|
4969
5036
|
currentRuns = value;
|
|
4970
5037
|
},
|
|
4971
|
-
id:
|
|
5038
|
+
id: cliFlag84
|
|
4972
5039
|
};
|
|
4973
5040
|
|
|
4974
5041
|
// src/options/sample-rate.tsx
|
|
4975
|
-
import { jsx as
|
|
4976
|
-
var
|
|
5042
|
+
import { jsx as jsx81, jsxs as jsxs58, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
5043
|
+
var cliFlag85 = "sample-rate";
|
|
4977
5044
|
var currentSampleRate = 48000;
|
|
4978
5045
|
var sampleRateOption = {
|
|
4979
5046
|
name: "Sample Rate",
|
|
4980
5047
|
addedIn: "4.0.448",
|
|
4981
|
-
cliFlag:
|
|
4982
|
-
description: () => /* @__PURE__ */
|
|
5048
|
+
cliFlag: cliFlag85,
|
|
5049
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment81, {
|
|
4983
5050
|
children: [
|
|
4984
5051
|
"Controls the sample rate of the output audio. The default is",
|
|
4985
5052
|
" ",
|
|
4986
|
-
/* @__PURE__ */
|
|
5053
|
+
/* @__PURE__ */ jsx81("code", {
|
|
4987
5054
|
children: "48000"
|
|
4988
5055
|
}),
|
|
4989
5056
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -4993,8 +5060,8 @@ var sampleRateOption = {
|
|
|
4993
5060
|
docLink: "https://www.remotion.dev/docs/options/sample-rate",
|
|
4994
5061
|
type: 48000,
|
|
4995
5062
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
4996
|
-
if (commandLine[
|
|
4997
|
-
return { value: commandLine[
|
|
5063
|
+
if (commandLine[cliFlag85] !== undefined) {
|
|
5064
|
+
return { value: commandLine[cliFlag85], source: "cli" };
|
|
4998
5065
|
}
|
|
4999
5066
|
if (currentSampleRate !== 48000) {
|
|
5000
5067
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -5010,13 +5077,13 @@ var sampleRateOption = {
|
|
|
5010
5077
|
setConfig: (value) => {
|
|
5011
5078
|
currentSampleRate = value;
|
|
5012
5079
|
},
|
|
5013
|
-
id:
|
|
5080
|
+
id: cliFlag85
|
|
5014
5081
|
};
|
|
5015
5082
|
|
|
5016
5083
|
// src/options/scale.tsx
|
|
5017
|
-
import { jsx as
|
|
5084
|
+
import { jsx as jsx82, jsxs as jsxs59, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
5018
5085
|
var currentScale = 1;
|
|
5019
|
-
var
|
|
5086
|
+
var cliFlag86 = "scale";
|
|
5020
5087
|
var validateScale = (value) => {
|
|
5021
5088
|
if (typeof value !== "number") {
|
|
5022
5089
|
throw new Error("scale must be a number.");
|
|
@@ -5025,15 +5092,15 @@ var validateScale = (value) => {
|
|
|
5025
5092
|
var scaleOption = {
|
|
5026
5093
|
name: "Scale",
|
|
5027
5094
|
addedIn: "2.6.7",
|
|
5028
|
-
cliFlag:
|
|
5029
|
-
description: () => /* @__PURE__ */
|
|
5095
|
+
cliFlag: cliFlag86,
|
|
5096
|
+
description: () => /* @__PURE__ */ jsxs59(Fragment82, {
|
|
5030
5097
|
children: [
|
|
5031
5098
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
5032
|
-
/* @__PURE__ */
|
|
5099
|
+
/* @__PURE__ */ jsx82("code", {
|
|
5033
5100
|
children: "1.5"
|
|
5034
5101
|
}),
|
|
5035
5102
|
". See ",
|
|
5036
|
-
/* @__PURE__ */
|
|
5103
|
+
/* @__PURE__ */ jsx82("a", {
|
|
5037
5104
|
href: "https://www.remotion.dev/docs/scaling",
|
|
5038
5105
|
children: "Scaling"
|
|
5039
5106
|
}),
|
|
@@ -5044,11 +5111,11 @@ var scaleOption = {
|
|
|
5044
5111
|
docLink: "https://www.remotion.dev/docs/options/scale",
|
|
5045
5112
|
type: 0,
|
|
5046
5113
|
getValue: ({ commandLine }) => {
|
|
5047
|
-
if (commandLine[
|
|
5048
|
-
validateScale(commandLine[
|
|
5114
|
+
if (commandLine[cliFlag86] !== undefined) {
|
|
5115
|
+
validateScale(commandLine[cliFlag86]);
|
|
5049
5116
|
return {
|
|
5050
5117
|
source: "cli",
|
|
5051
|
-
value: commandLine[
|
|
5118
|
+
value: commandLine[cliFlag86]
|
|
5052
5119
|
};
|
|
5053
5120
|
}
|
|
5054
5121
|
if (currentScale !== null) {
|
|
@@ -5065,28 +5132,28 @@ var scaleOption = {
|
|
|
5065
5132
|
setConfig: (scale) => {
|
|
5066
5133
|
currentScale = scale;
|
|
5067
5134
|
},
|
|
5068
|
-
id:
|
|
5135
|
+
id: cliFlag86
|
|
5069
5136
|
};
|
|
5070
5137
|
|
|
5071
5138
|
// src/options/sequence-activity-limit.tsx
|
|
5072
5139
|
import { NoReactInternals as NoReactInternals6 } from "remotion/no-react";
|
|
5073
|
-
import { jsx as
|
|
5140
|
+
import { jsx as jsx83, jsxs as jsxs60, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
5074
5141
|
var configuredLimit = null;
|
|
5075
|
-
var
|
|
5142
|
+
var cliFlag87 = "sequence-activity-limit";
|
|
5076
5143
|
var sequenceActivityLimitOption = {
|
|
5077
5144
|
name: "Sequence Activity limit",
|
|
5078
5145
|
addedIn: "4.0.536",
|
|
5079
|
-
cliFlag:
|
|
5080
|
-
id:
|
|
5081
|
-
description: () => /* @__PURE__ */
|
|
5146
|
+
cliFlag: cliFlag87,
|
|
5147
|
+
id: cliFlag87,
|
|
5148
|
+
description: () => /* @__PURE__ */ jsxs60(Fragment83, {
|
|
5082
5149
|
children: [
|
|
5083
5150
|
"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
5151
|
" ",
|
|
5085
|
-
/* @__PURE__ */
|
|
5152
|
+
/* @__PURE__ */ jsx83("code", {
|
|
5086
5153
|
children: "Infinity"
|
|
5087
5154
|
}),
|
|
5088
5155
|
" for unlimited discovery without admission delays. Must be a non-negative safe integer or ",
|
|
5089
|
-
/* @__PURE__ */
|
|
5156
|
+
/* @__PURE__ */ jsx83("code", {
|
|
5090
5157
|
children: "Infinity"
|
|
5091
5158
|
}),
|
|
5092
5159
|
". Set to 0 to disable Sequence Activity. Finite limits prioritize nearby scenes. Does not affect rendering."
|
|
@@ -5096,8 +5163,8 @@ var sequenceActivityLimitOption = {
|
|
|
5096
5163
|
docLink: "https://www.remotion.dev/docs/options/sequence-activity-limit",
|
|
5097
5164
|
type: 0,
|
|
5098
5165
|
getValue: ({ commandLine }) => {
|
|
5099
|
-
if (commandLine[
|
|
5100
|
-
const value = commandLine[
|
|
5166
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
5167
|
+
const value = commandLine[cliFlag87] === "Infinity" ? Infinity : commandLine[cliFlag87];
|
|
5101
5168
|
if (value !== Infinity && (!Number.isSafeInteger(value) || value < 0)) {
|
|
5102
5169
|
throw new Error("Sequence Activity limit must be a non-negative safe integer or Infinity.");
|
|
5103
5170
|
}
|
|
@@ -5121,18 +5188,18 @@ var sequenceActivityLimitOption = {
|
|
|
5121
5188
|
};
|
|
5122
5189
|
|
|
5123
5190
|
// src/options/show-layer-frame-numbers.tsx
|
|
5124
|
-
import { jsx as
|
|
5191
|
+
import { jsx as jsx84, jsxs as jsxs61, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
5125
5192
|
var configuredShowLayerFrameNumbers = null;
|
|
5126
|
-
var
|
|
5193
|
+
var cliFlag88 = "show-layer-frame-numbers";
|
|
5127
5194
|
var showLayerFrameNumbersOption = {
|
|
5128
5195
|
name: "Show frame numbers of layer",
|
|
5129
5196
|
addedIn: "4.0.535",
|
|
5130
|
-
cliFlag:
|
|
5131
|
-
id:
|
|
5132
|
-
description: () => /* @__PURE__ */
|
|
5197
|
+
cliFlag: cliFlag88,
|
|
5198
|
+
id: cliFlag88,
|
|
5199
|
+
description: () => /* @__PURE__ */ jsxs61(Fragment84, {
|
|
5133
5200
|
children: [
|
|
5134
5201
|
"Show the current frame number inside sequence layers in the Studio timeline. Defaults to ",
|
|
5135
|
-
/* @__PURE__ */
|
|
5202
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5136
5203
|
children: "false"
|
|
5137
5204
|
}),
|
|
5138
5205
|
"."
|
|
@@ -5142,8 +5209,8 @@ var showLayerFrameNumbersOption = {
|
|
|
5142
5209
|
docLink: "https://www.remotion.dev/docs/options/show-layer-frame-numbers",
|
|
5143
5210
|
type: false,
|
|
5144
5211
|
getValue: ({ commandLine }) => {
|
|
5145
|
-
if (commandLine[
|
|
5146
|
-
return { value: commandLine[
|
|
5212
|
+
if (commandLine[cliFlag88] !== undefined && commandLine[cliFlag88] !== null) {
|
|
5213
|
+
return { value: commandLine[cliFlag88], source: "cli" };
|
|
5147
5214
|
}
|
|
5148
5215
|
return { value: configuredShowLayerFrameNumbers ?? false, source: "config" };
|
|
5149
5216
|
},
|
|
@@ -5160,19 +5227,19 @@ var showLayerFrameNumbersOption = {
|
|
|
5160
5227
|
};
|
|
5161
5228
|
|
|
5162
5229
|
// src/options/show-premounting.tsx
|
|
5163
|
-
import { jsx as
|
|
5230
|
+
import { jsx as jsx85, jsxs as jsxs62, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
5164
5231
|
var configuredShowPremounting = null;
|
|
5165
|
-
var
|
|
5232
|
+
var cliFlag89 = "show-premounting";
|
|
5166
5233
|
var showPremountingOption = {
|
|
5167
5234
|
name: "Show premounting in the Studio timeline",
|
|
5168
5235
|
addedIn: "4.0.535",
|
|
5169
|
-
cliFlag:
|
|
5170
|
-
id:
|
|
5171
|
-
description: () => /* @__PURE__ */
|
|
5236
|
+
cliFlag: cliFlag89,
|
|
5237
|
+
id: cliFlag89,
|
|
5238
|
+
description: () => /* @__PURE__ */ jsxs62(Fragment85, {
|
|
5172
5239
|
children: [
|
|
5173
5240
|
"Show premounting indicators in the Studio timeline. Defaults to",
|
|
5174
5241
|
" ",
|
|
5175
|
-
/* @__PURE__ */
|
|
5242
|
+
/* @__PURE__ */ jsx85("code", {
|
|
5176
5243
|
children: "false"
|
|
5177
5244
|
}),
|
|
5178
5245
|
"."
|
|
@@ -5182,8 +5249,8 @@ var showPremountingOption = {
|
|
|
5182
5249
|
docLink: "https://www.remotion.dev/docs/options/show-premounting",
|
|
5183
5250
|
type: true,
|
|
5184
5251
|
getValue: ({ commandLine }) => {
|
|
5185
|
-
if (commandLine[
|
|
5186
|
-
return { value: commandLine[
|
|
5252
|
+
if (commandLine[cliFlag89] !== undefined && commandLine[cliFlag89] !== null) {
|
|
5253
|
+
return { value: commandLine[cliFlag89], source: "cli" };
|
|
5187
5254
|
}
|
|
5188
5255
|
return { value: configuredShowPremounting ?? false, source: "config" };
|
|
5189
5256
|
},
|
|
@@ -5200,19 +5267,19 @@ var showPremountingOption = {
|
|
|
5200
5267
|
};
|
|
5201
5268
|
|
|
5202
5269
|
// src/options/skip-skills.tsx
|
|
5203
|
-
import { jsx as
|
|
5204
|
-
var
|
|
5270
|
+
import { jsx as jsx86, Fragment as Fragment86 } from "react/jsx-runtime";
|
|
5271
|
+
var cliFlag90 = "skip-skills";
|
|
5205
5272
|
var skipSkillsOption = {
|
|
5206
5273
|
name: "Skip Skills",
|
|
5207
5274
|
addedIn: "4.0.503",
|
|
5208
|
-
cliFlag:
|
|
5209
|
-
description: () => /* @__PURE__ */
|
|
5275
|
+
cliFlag: cliFlag90,
|
|
5276
|
+
description: () => /* @__PURE__ */ jsx86(Fragment86, {
|
|
5210
5277
|
children: "Do not update installed Remotion Agent Skills while upgrading Remotion."
|
|
5211
5278
|
}),
|
|
5212
5279
|
ssrName: null,
|
|
5213
5280
|
docLink: "https://www.remotion.dev/docs/options/skip-skills",
|
|
5214
5281
|
getValue: ({ commandLine }) => {
|
|
5215
|
-
if (commandLine[
|
|
5282
|
+
if (commandLine[cliFlag90]) {
|
|
5216
5283
|
return {
|
|
5217
5284
|
source: "cli",
|
|
5218
5285
|
value: true
|
|
@@ -5227,13 +5294,13 @@ var skipSkillsOption = {
|
|
|
5227
5294
|
throw new Error("Cannot skip updating skills via config file");
|
|
5228
5295
|
},
|
|
5229
5296
|
type: false,
|
|
5230
|
-
id:
|
|
5297
|
+
id: cliFlag90
|
|
5231
5298
|
};
|
|
5232
5299
|
|
|
5233
5300
|
// src/options/still-frame.tsx
|
|
5234
5301
|
import { NoReactInternals as NoReactInternals7 } from "remotion/no-react";
|
|
5235
|
-
import { jsx as
|
|
5236
|
-
var
|
|
5302
|
+
import { jsx as jsx87, jsxs as jsxs63, Fragment as Fragment87 } from "react/jsx-runtime";
|
|
5303
|
+
var cliFlag91 = "frame";
|
|
5237
5304
|
var currentFrame = null;
|
|
5238
5305
|
var validate3 = (frame) => {
|
|
5239
5306
|
NoReactInternals7.validateFrame({
|
|
@@ -5245,17 +5312,17 @@ var validate3 = (frame) => {
|
|
|
5245
5312
|
var stillFrameOption = {
|
|
5246
5313
|
name: "Frame",
|
|
5247
5314
|
addedIn: "2.3.0",
|
|
5248
|
-
cliFlag:
|
|
5249
|
-
description: () => /* @__PURE__ */
|
|
5315
|
+
cliFlag: cliFlag91,
|
|
5316
|
+
description: () => /* @__PURE__ */ jsxs63(Fragment87, {
|
|
5250
5317
|
children: [
|
|
5251
5318
|
"Which frame should be rendered when rendering a still. Default",
|
|
5252
5319
|
" ",
|
|
5253
|
-
/* @__PURE__ */
|
|
5320
|
+
/* @__PURE__ */ jsx87("code", {
|
|
5254
5321
|
children: "0"
|
|
5255
5322
|
}),
|
|
5256
5323
|
". From v3.2.27, negative values are allowed, with",
|
|
5257
5324
|
" ",
|
|
5258
|
-
/* @__PURE__ */
|
|
5325
|
+
/* @__PURE__ */ jsx87("code", {
|
|
5259
5326
|
children: "-1"
|
|
5260
5327
|
}),
|
|
5261
5328
|
" being the last frame."
|
|
@@ -5264,8 +5331,8 @@ var stillFrameOption = {
|
|
|
5264
5331
|
ssrName: "frame",
|
|
5265
5332
|
docLink: "https://www.remotion.dev/docs/options/frame",
|
|
5266
5333
|
getValue: ({ commandLine }) => {
|
|
5267
|
-
if (commandLine[
|
|
5268
|
-
const frame = Number(commandLine[
|
|
5334
|
+
if (commandLine[cliFlag91] !== undefined) {
|
|
5335
|
+
const frame = Number(commandLine[cliFlag91]);
|
|
5269
5336
|
validate3(frame);
|
|
5270
5337
|
return {
|
|
5271
5338
|
source: "cli",
|
|
@@ -5290,25 +5357,25 @@ var stillFrameOption = {
|
|
|
5290
5357
|
currentFrame = value;
|
|
5291
5358
|
},
|
|
5292
5359
|
type: 0,
|
|
5293
|
-
id:
|
|
5360
|
+
id: cliFlag91
|
|
5294
5361
|
};
|
|
5295
5362
|
|
|
5296
5363
|
// src/options/still-image-format.tsx
|
|
5297
|
-
import { jsx as
|
|
5364
|
+
import { jsx as jsx88, jsxs as jsxs64, Fragment as Fragment88 } from "react/jsx-runtime";
|
|
5298
5365
|
var currentStillImageFormat = null;
|
|
5299
|
-
var
|
|
5366
|
+
var cliFlag92 = "image-format";
|
|
5300
5367
|
var stillImageFormatOption = {
|
|
5301
5368
|
name: "Still Image Format",
|
|
5302
5369
|
addedIn: "2.3.0",
|
|
5303
|
-
cliFlag:
|
|
5304
|
-
description: () => /* @__PURE__ */
|
|
5370
|
+
cliFlag: cliFlag92,
|
|
5371
|
+
description: () => /* @__PURE__ */ jsxs64(Fragment88, {
|
|
5305
5372
|
children: [
|
|
5306
5373
|
"The image format to use when rendering a still. Must be one of",
|
|
5307
5374
|
" ",
|
|
5308
5375
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5309
5376
|
". Default:",
|
|
5310
5377
|
" ",
|
|
5311
|
-
/* @__PURE__ */
|
|
5378
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5312
5379
|
children: '"png"'
|
|
5313
5380
|
}),
|
|
5314
5381
|
"."
|
|
@@ -5318,8 +5385,8 @@ var stillImageFormatOption = {
|
|
|
5318
5385
|
docLink: "https://www.remotion.dev/docs/options/still-image-format",
|
|
5319
5386
|
type: null,
|
|
5320
5387
|
getValue: ({ commandLine }) => {
|
|
5321
|
-
if (commandLine[
|
|
5322
|
-
const value = commandLine[
|
|
5388
|
+
if (commandLine[cliFlag92] !== undefined) {
|
|
5389
|
+
const value = commandLine[cliFlag92];
|
|
5323
5390
|
if (!validStillImageFormats.includes(value)) {
|
|
5324
5391
|
throw new Error(`Invalid still image format: ${value}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
5325
5392
|
}
|
|
@@ -5357,16 +5424,16 @@ var stillImageFormatOption = {
|
|
|
5357
5424
|
|
|
5358
5425
|
// src/options/throw-if-site-exists.tsx
|
|
5359
5426
|
var DEFAULT5 = false;
|
|
5360
|
-
var
|
|
5427
|
+
var cliFlag93 = "throw-if-site-exists";
|
|
5361
5428
|
var throwIfSiteExistsOption = {
|
|
5362
|
-
cliFlag:
|
|
5429
|
+
cliFlag: cliFlag93,
|
|
5363
5430
|
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
5431
|
docLink: "https://www.remotion.dev/docs/options/throw-if-site-exists",
|
|
5365
5432
|
getValue: ({ commandLine }) => {
|
|
5366
|
-
if (commandLine[
|
|
5433
|
+
if (commandLine[cliFlag93]) {
|
|
5367
5434
|
return {
|
|
5368
5435
|
source: "cli",
|
|
5369
|
-
value: commandLine[
|
|
5436
|
+
value: commandLine[cliFlag93]
|
|
5370
5437
|
};
|
|
5371
5438
|
}
|
|
5372
5439
|
return {
|
|
@@ -5381,42 +5448,42 @@ var throwIfSiteExistsOption = {
|
|
|
5381
5448
|
},
|
|
5382
5449
|
ssrName: "throwIfSiteExists",
|
|
5383
5450
|
type: false,
|
|
5384
|
-
id:
|
|
5451
|
+
id: cliFlag93
|
|
5385
5452
|
};
|
|
5386
5453
|
|
|
5387
5454
|
// src/options/timeout.tsx
|
|
5388
|
-
import { jsx as
|
|
5455
|
+
import { jsx as jsx89, jsxs as jsxs65, Fragment as Fragment89 } from "react/jsx-runtime";
|
|
5389
5456
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
5390
5457
|
var validate4 = (value) => {
|
|
5391
5458
|
if (typeof value !== "number") {
|
|
5392
5459
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value));
|
|
5393
5460
|
}
|
|
5394
5461
|
};
|
|
5395
|
-
var
|
|
5462
|
+
var cliFlag94 = "timeout";
|
|
5396
5463
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
5397
5464
|
name: "delayRender() timeout",
|
|
5398
5465
|
addedIn: "2.6.3",
|
|
5399
|
-
cliFlag:
|
|
5400
|
-
description: () => /* @__PURE__ */
|
|
5466
|
+
cliFlag: cliFlag94,
|
|
5467
|
+
description: () => /* @__PURE__ */ jsxs65(Fragment89, {
|
|
5401
5468
|
children: [
|
|
5402
5469
|
"A number describing how long the render may take to resolve all",
|
|
5403
5470
|
" ",
|
|
5404
|
-
/* @__PURE__ */
|
|
5471
|
+
/* @__PURE__ */ jsx89("a", {
|
|
5405
5472
|
href: "https://remotion.dev/docs/delay-render",
|
|
5406
|
-
children: /* @__PURE__ */
|
|
5473
|
+
children: /* @__PURE__ */ jsx89("code", {
|
|
5407
5474
|
children: "delayRender()"
|
|
5408
5475
|
})
|
|
5409
5476
|
}),
|
|
5410
5477
|
" ",
|
|
5411
5478
|
"calls",
|
|
5412
5479
|
" ",
|
|
5413
|
-
/* @__PURE__ */
|
|
5480
|
+
/* @__PURE__ */ jsx89("a", {
|
|
5414
5481
|
style: { fontSize: "inherit" },
|
|
5415
5482
|
href: "https://remotion.dev/docs/timeout",
|
|
5416
5483
|
children: "before it times out"
|
|
5417
5484
|
}),
|
|
5418
5485
|
". Default: ",
|
|
5419
|
-
/* @__PURE__ */
|
|
5486
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5420
5487
|
children: "30000"
|
|
5421
5488
|
})
|
|
5422
5489
|
]
|
|
@@ -5425,10 +5492,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
5425
5492
|
docLink: "https://www.remotion.dev/docs/options/timeout",
|
|
5426
5493
|
type: 0,
|
|
5427
5494
|
getValue: ({ commandLine }) => {
|
|
5428
|
-
if (commandLine[
|
|
5495
|
+
if (commandLine[cliFlag94] !== undefined) {
|
|
5429
5496
|
return {
|
|
5430
5497
|
source: "cli",
|
|
5431
|
-
value: commandLine[
|
|
5498
|
+
value: commandLine[cliFlag94]
|
|
5432
5499
|
};
|
|
5433
5500
|
}
|
|
5434
5501
|
if (currentTimeout !== null) {
|
|
@@ -5447,28 +5514,28 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
5447
5514
|
validate4(value);
|
|
5448
5515
|
currentTimeout = value;
|
|
5449
5516
|
},
|
|
5450
|
-
id:
|
|
5517
|
+
id: cliFlag94
|
|
5451
5518
|
};
|
|
5452
5519
|
|
|
5453
5520
|
// src/options/user-agent.tsx
|
|
5454
|
-
import { jsx as
|
|
5521
|
+
import { jsx as jsx90, Fragment as Fragment90 } from "react/jsx-runtime";
|
|
5455
5522
|
var userAgent = null;
|
|
5456
|
-
var
|
|
5523
|
+
var cliFlag95 = "user-agent";
|
|
5457
5524
|
var userAgentOption = {
|
|
5458
5525
|
name: "User agent",
|
|
5459
5526
|
addedIn: "3.3.83",
|
|
5460
|
-
cliFlag:
|
|
5461
|
-
description: () => /* @__PURE__ */
|
|
5527
|
+
cliFlag: cliFlag95,
|
|
5528
|
+
description: () => /* @__PURE__ */ jsx90(Fragment90, {
|
|
5462
5529
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
5463
5530
|
}),
|
|
5464
5531
|
ssrName: "userAgent",
|
|
5465
5532
|
docLink: "https://www.remotion.dev/docs/options/user-agent",
|
|
5466
5533
|
type: null,
|
|
5467
5534
|
getValue: ({ commandLine }) => {
|
|
5468
|
-
if (commandLine[
|
|
5535
|
+
if (commandLine[cliFlag95] !== undefined) {
|
|
5469
5536
|
return {
|
|
5470
5537
|
source: "cli",
|
|
5471
|
-
value: commandLine[
|
|
5538
|
+
value: commandLine[cliFlag95]
|
|
5472
5539
|
};
|
|
5473
5540
|
}
|
|
5474
5541
|
if (userAgent !== null) {
|
|
@@ -5485,26 +5552,26 @@ var userAgentOption = {
|
|
|
5485
5552
|
setConfig: (value) => {
|
|
5486
5553
|
userAgent = value;
|
|
5487
5554
|
},
|
|
5488
|
-
id:
|
|
5555
|
+
id: cliFlag95
|
|
5489
5556
|
};
|
|
5490
5557
|
|
|
5491
5558
|
// src/options/version-flag.tsx
|
|
5492
|
-
import { jsx as
|
|
5493
|
-
var
|
|
5559
|
+
import { jsx as jsx91, Fragment as Fragment91 } from "react/jsx-runtime";
|
|
5560
|
+
var cliFlag96 = "version";
|
|
5494
5561
|
var versionFlagOption = {
|
|
5495
5562
|
name: "Version",
|
|
5496
5563
|
addedIn: "4.0.15",
|
|
5497
|
-
cliFlag:
|
|
5498
|
-
description: () => /* @__PURE__ */
|
|
5564
|
+
cliFlag: cliFlag96,
|
|
5565
|
+
description: () => /* @__PURE__ */ jsx91(Fragment91, {
|
|
5499
5566
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
5500
5567
|
}),
|
|
5501
5568
|
ssrName: null,
|
|
5502
5569
|
docLink: "https://www.remotion.dev/docs/options/version",
|
|
5503
5570
|
getValue: ({ commandLine }) => {
|
|
5504
|
-
if (commandLine[
|
|
5571
|
+
if (commandLine[cliFlag96] !== undefined) {
|
|
5505
5572
|
return {
|
|
5506
5573
|
source: "cli",
|
|
5507
|
-
value: String(commandLine[
|
|
5574
|
+
value: String(commandLine[cliFlag96])
|
|
5508
5575
|
};
|
|
5509
5576
|
}
|
|
5510
5577
|
return {
|
|
@@ -5516,31 +5583,31 @@ var versionFlagOption = {
|
|
|
5516
5583
|
throw new Error("Cannot set version via config file");
|
|
5517
5584
|
},
|
|
5518
5585
|
type: "",
|
|
5519
|
-
id:
|
|
5586
|
+
id: cliFlag96
|
|
5520
5587
|
};
|
|
5521
5588
|
|
|
5522
5589
|
// src/options/video-bitrate.tsx
|
|
5523
|
-
import { jsx as
|
|
5590
|
+
import { jsx as jsx92, jsxs as jsxs66, Fragment as Fragment92 } from "react/jsx-runtime";
|
|
5524
5591
|
var videoBitrate = null;
|
|
5525
|
-
var
|
|
5592
|
+
var cliFlag97 = "video-bitrate";
|
|
5526
5593
|
var videoBitrateOption = {
|
|
5527
5594
|
name: "Video Bitrate",
|
|
5528
5595
|
addedIn: "3.2.32",
|
|
5529
|
-
cliFlag:
|
|
5530
|
-
description: () => /* @__PURE__ */
|
|
5596
|
+
cliFlag: cliFlag97,
|
|
5597
|
+
description: () => /* @__PURE__ */ jsxs66(Fragment92, {
|
|
5531
5598
|
children: [
|
|
5532
5599
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
5533
5600
|
"'",
|
|
5534
5601
|
"s",
|
|
5535
|
-
/* @__PURE__ */
|
|
5602
|
+
/* @__PURE__ */ jsx92("code", {
|
|
5536
5603
|
children: "-b:v"
|
|
5537
5604
|
}),
|
|
5538
5605
|
" 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__ */
|
|
5606
|
+
/* @__PURE__ */ jsx92("code", {
|
|
5540
5607
|
children: "512K"
|
|
5541
5608
|
}),
|
|
5542
5609
|
" for 512 kbps, ",
|
|
5543
|
-
/* @__PURE__ */
|
|
5610
|
+
/* @__PURE__ */ jsx92("code", {
|
|
5544
5611
|
children: "1M"
|
|
5545
5612
|
}),
|
|
5546
5613
|
" for 1 Mbps."
|
|
@@ -5550,10 +5617,10 @@ var videoBitrateOption = {
|
|
|
5550
5617
|
docLink: "https://www.remotion.dev/docs/options/video-bitrate",
|
|
5551
5618
|
type: "",
|
|
5552
5619
|
getValue: ({ commandLine }) => {
|
|
5553
|
-
if (commandLine[
|
|
5620
|
+
if (commandLine[cliFlag97] !== undefined) {
|
|
5554
5621
|
return {
|
|
5555
5622
|
source: "cli",
|
|
5556
|
-
value: commandLine[
|
|
5623
|
+
value: commandLine[cliFlag97]
|
|
5557
5624
|
};
|
|
5558
5625
|
}
|
|
5559
5626
|
if (videoBitrate !== null) {
|
|
@@ -5570,35 +5637,35 @@ var videoBitrateOption = {
|
|
|
5570
5637
|
setConfig: (bitrate) => {
|
|
5571
5638
|
videoBitrate = bitrate;
|
|
5572
5639
|
},
|
|
5573
|
-
id:
|
|
5640
|
+
id: cliFlag97
|
|
5574
5641
|
};
|
|
5575
5642
|
|
|
5576
5643
|
// src/options/video-cache-size.tsx
|
|
5577
|
-
import { jsx as
|
|
5644
|
+
import { jsx as jsx93, jsxs as jsxs67, Fragment as Fragment93 } from "react/jsx-runtime";
|
|
5578
5645
|
var mediaCacheSizeInBytes = null;
|
|
5579
|
-
var
|
|
5646
|
+
var cliFlag98 = "media-cache-size-in-bytes";
|
|
5580
5647
|
var mediaCacheSizeInBytesOption = {
|
|
5581
5648
|
name: "@remotion/media cache size",
|
|
5582
5649
|
addedIn: "4.0.352",
|
|
5583
|
-
cliFlag:
|
|
5584
|
-
description: () => /* @__PURE__ */
|
|
5650
|
+
cliFlag: cliFlag98,
|
|
5651
|
+
description: () => /* @__PURE__ */ jsxs67(Fragment93, {
|
|
5585
5652
|
children: [
|
|
5586
5653
|
"Specify the memory budget for decoded media cached by",
|
|
5587
5654
|
" ",
|
|
5588
|
-
/* @__PURE__ */
|
|
5655
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5589
5656
|
children: "<Video>"
|
|
5590
5657
|
}),
|
|
5591
5658
|
" and ",
|
|
5592
|
-
/* @__PURE__ */
|
|
5659
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5593
5660
|
children: "<Audio>"
|
|
5594
5661
|
}),
|
|
5595
5662
|
" from",
|
|
5596
5663
|
" ",
|
|
5597
|
-
/* @__PURE__ */
|
|
5664
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5598
5665
|
children: "@remotion/media"
|
|
5599
5666
|
}),
|
|
5600
5667
|
", 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__ */
|
|
5668
|
+
/* @__PURE__ */ jsx93("br", {}),
|
|
5602
5669
|
"The default is half of the available system memory when the render starts."
|
|
5603
5670
|
]
|
|
5604
5671
|
}),
|
|
@@ -5606,10 +5673,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5606
5673
|
docLink: "https://www.remotion.dev/docs/options/media-cache-size-in-bytes",
|
|
5607
5674
|
type: 0,
|
|
5608
5675
|
getValue: ({ commandLine }) => {
|
|
5609
|
-
if (commandLine[
|
|
5676
|
+
if (commandLine[cliFlag98] !== undefined) {
|
|
5610
5677
|
return {
|
|
5611
5678
|
source: "cli",
|
|
5612
|
-
value: commandLine[
|
|
5679
|
+
value: commandLine[cliFlag98]
|
|
5613
5680
|
};
|
|
5614
5681
|
}
|
|
5615
5682
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -5626,11 +5693,11 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5626
5693
|
setConfig: (size) => {
|
|
5627
5694
|
mediaCacheSizeInBytes = size ?? null;
|
|
5628
5695
|
},
|
|
5629
|
-
id:
|
|
5696
|
+
id: cliFlag98
|
|
5630
5697
|
};
|
|
5631
5698
|
|
|
5632
5699
|
// src/options/video-codec.tsx
|
|
5633
|
-
import { jsx as
|
|
5700
|
+
import { jsx as jsx94, Fragment as Fragment94 } from "react/jsx-runtime";
|
|
5634
5701
|
var codec;
|
|
5635
5702
|
var setCodec = (newCodec) => {
|
|
5636
5703
|
if (newCodec === undefined) {
|
|
@@ -5655,12 +5722,12 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
5655
5722
|
possible: makeFileExtensionMap()[normalizedExtension] ?? []
|
|
5656
5723
|
};
|
|
5657
5724
|
};
|
|
5658
|
-
var
|
|
5725
|
+
var cliFlag99 = "codec";
|
|
5659
5726
|
var videoCodecOption = {
|
|
5660
5727
|
name: "Codec",
|
|
5661
5728
|
addedIn: "1.4.0",
|
|
5662
|
-
cliFlag:
|
|
5663
|
-
description: () => /* @__PURE__ */
|
|
5729
|
+
cliFlag: cliFlag99,
|
|
5730
|
+
description: () => /* @__PURE__ */ jsx94(Fragment94, {
|
|
5664
5731
|
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
5732
|
}),
|
|
5666
5733
|
ssrName: "codec",
|
|
@@ -5683,7 +5750,7 @@ var videoCodecOption = {
|
|
|
5683
5750
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
5684
5751
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
5685
5752
|
}
|
|
5686
|
-
const cliArgument = commandLine[
|
|
5753
|
+
const cliArgument = commandLine[cliFlag99];
|
|
5687
5754
|
if (cliArgument) {
|
|
5688
5755
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
5689
5756
|
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 +5799,31 @@ var videoCodecOption = {
|
|
|
5732
5799
|
reset: () => {
|
|
5733
5800
|
codec = undefined;
|
|
5734
5801
|
},
|
|
5735
|
-
id:
|
|
5802
|
+
id: cliFlag99
|
|
5736
5803
|
};
|
|
5737
5804
|
|
|
5738
5805
|
// src/options/video-image-format.tsx
|
|
5739
|
-
import { jsx as
|
|
5806
|
+
import { jsx as jsx95, jsxs as jsxs68, Fragment as Fragment95 } from "react/jsx-runtime";
|
|
5740
5807
|
var currentVideoImageFormat = null;
|
|
5741
|
-
var
|
|
5808
|
+
var cliFlag100 = "image-format";
|
|
5742
5809
|
var videoImageFormatOption = {
|
|
5743
5810
|
name: "Video Image Format",
|
|
5744
5811
|
addedIn: "1.4.0",
|
|
5745
|
-
cliFlag:
|
|
5746
|
-
description: () => /* @__PURE__ */
|
|
5812
|
+
cliFlag: cliFlag100,
|
|
5813
|
+
description: () => /* @__PURE__ */ jsxs68(Fragment95, {
|
|
5747
5814
|
children: [
|
|
5748
5815
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
5749
5816
|
" ",
|
|
5750
5817
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5751
5818
|
". Default:",
|
|
5752
5819
|
" ",
|
|
5753
|
-
/* @__PURE__ */
|
|
5820
|
+
/* @__PURE__ */ jsx95("code", {
|
|
5754
5821
|
children: '"jpeg"'
|
|
5755
5822
|
}),
|
|
5756
5823
|
". JPEG is faster, but does not support transparency.",
|
|
5757
|
-
/* @__PURE__ */
|
|
5824
|
+
/* @__PURE__ */ jsx95("br", {}),
|
|
5758
5825
|
"When ",
|
|
5759
|
-
/* @__PURE__ */
|
|
5826
|
+
/* @__PURE__ */ jsx95("a", {
|
|
5760
5827
|
href: "/docs/shared-memory-capture",
|
|
5761
5828
|
children: "shared-memory capture"
|
|
5762
5829
|
}),
|
|
@@ -5773,8 +5840,8 @@ var videoImageFormatOption = {
|
|
|
5773
5840
|
value: options.uiVideoImageFormat
|
|
5774
5841
|
};
|
|
5775
5842
|
}
|
|
5776
|
-
if (commandLine[
|
|
5777
|
-
const value = commandLine[
|
|
5843
|
+
if (commandLine[cliFlag100] !== undefined) {
|
|
5844
|
+
const value = commandLine[cliFlag100];
|
|
5778
5845
|
if (!validVideoImageFormats.includes(value)) {
|
|
5779
5846
|
throw new Error(`Invalid video image format: ${value}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
5780
5847
|
}
|
|
@@ -5838,13 +5905,13 @@ var videoImageFormatOption = {
|
|
|
5838
5905
|
};
|
|
5839
5906
|
|
|
5840
5907
|
// src/options/webhook-custom-data.tsx
|
|
5841
|
-
import { jsxs as
|
|
5842
|
-
var
|
|
5908
|
+
import { jsxs as jsxs69, Fragment as Fragment96 } from "react/jsx-runtime";
|
|
5909
|
+
var cliFlag101 = "webhook-custom-data";
|
|
5843
5910
|
var webhookCustomDataOption = {
|
|
5844
5911
|
name: "Webhook custom data",
|
|
5845
5912
|
addedIn: "4.0.25",
|
|
5846
|
-
cliFlag:
|
|
5847
|
-
description: (type) => /* @__PURE__ */
|
|
5913
|
+
cliFlag: cliFlag101,
|
|
5914
|
+
description: (type) => /* @__PURE__ */ jsxs69(Fragment96, {
|
|
5848
5915
|
children: [
|
|
5849
5916
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
5850
5917
|
" ",
|
|
@@ -5860,25 +5927,25 @@ var webhookCustomDataOption = {
|
|
|
5860
5927
|
setConfig: () => {
|
|
5861
5928
|
throw new Error("Not implemented");
|
|
5862
5929
|
},
|
|
5863
|
-
id:
|
|
5930
|
+
id: cliFlag101
|
|
5864
5931
|
};
|
|
5865
5932
|
|
|
5866
5933
|
// src/options/webpack-poll.tsx
|
|
5867
|
-
import { jsx as
|
|
5868
|
-
var
|
|
5934
|
+
import { jsx as jsx96, Fragment as Fragment97 } from "react/jsx-runtime";
|
|
5935
|
+
var cliFlag102 = "webpack-poll";
|
|
5869
5936
|
var webpackPolling = null;
|
|
5870
5937
|
var webpackPollOption = {
|
|
5871
5938
|
name: "Webpack Polling",
|
|
5872
5939
|
addedIn: "3.3.11",
|
|
5873
|
-
cliFlag:
|
|
5874
|
-
description: () => /* @__PURE__ */
|
|
5940
|
+
cliFlag: cliFlag102,
|
|
5941
|
+
description: () => /* @__PURE__ */ jsx96(Fragment97, {
|
|
5875
5942
|
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
5943
|
}),
|
|
5877
5944
|
ssrName: null,
|
|
5878
5945
|
docLink: "https://www.remotion.dev/docs/options/webpack-poll",
|
|
5879
5946
|
getValue: ({ commandLine }) => {
|
|
5880
|
-
if (commandLine[
|
|
5881
|
-
const val = commandLine[
|
|
5947
|
+
if (commandLine[cliFlag102] !== undefined) {
|
|
5948
|
+
const val = commandLine[cliFlag102];
|
|
5882
5949
|
if (typeof val !== "number") {
|
|
5883
5950
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
5884
5951
|
}
|
|
@@ -5905,11 +5972,11 @@ var webpackPollOption = {
|
|
|
5905
5972
|
webpackPolling = value;
|
|
5906
5973
|
},
|
|
5907
5974
|
type: 0,
|
|
5908
|
-
id:
|
|
5975
|
+
id: cliFlag102
|
|
5909
5976
|
};
|
|
5910
5977
|
|
|
5911
5978
|
// src/options/x264-preset.tsx
|
|
5912
|
-
import { jsx as
|
|
5979
|
+
import { jsx as jsx97, jsxs as jsxs70, Fragment as Fragment98 } from "react/jsx-runtime";
|
|
5913
5980
|
var x264PresetOptions = [
|
|
5914
5981
|
"ultrafast",
|
|
5915
5982
|
"superfast",
|
|
@@ -5923,64 +5990,64 @@ var x264PresetOptions = [
|
|
|
5923
5990
|
"placebo"
|
|
5924
5991
|
];
|
|
5925
5992
|
var preset = null;
|
|
5926
|
-
var
|
|
5993
|
+
var cliFlag103 = "x264-preset";
|
|
5927
5994
|
var DEFAULT_PRESET = "medium";
|
|
5928
5995
|
var x264Option = {
|
|
5929
5996
|
name: "x264 Preset",
|
|
5930
5997
|
addedIn: "4.0.22",
|
|
5931
|
-
cliFlag:
|
|
5932
|
-
description: () => /* @__PURE__ */
|
|
5998
|
+
cliFlag: cliFlag103,
|
|
5999
|
+
description: () => /* @__PURE__ */ jsxs70(Fragment98, {
|
|
5933
6000
|
children: [
|
|
5934
6001
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
5935
6002
|
" ",
|
|
5936
|
-
/* @__PURE__ */
|
|
6003
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5937
6004
|
children: "h264"
|
|
5938
6005
|
}),
|
|
5939
6006
|
" codec.",
|
|
5940
|
-
/* @__PURE__ */
|
|
6007
|
+
/* @__PURE__ */ jsx97("br", {}),
|
|
5941
6008
|
"Possible values: ",
|
|
5942
|
-
/* @__PURE__ */
|
|
6009
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5943
6010
|
children: "superfast"
|
|
5944
6011
|
}),
|
|
5945
6012
|
", ",
|
|
5946
|
-
/* @__PURE__ */
|
|
6013
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5947
6014
|
children: "veryfast"
|
|
5948
6015
|
}),
|
|
5949
6016
|
",",
|
|
5950
6017
|
" ",
|
|
5951
|
-
/* @__PURE__ */
|
|
6018
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5952
6019
|
children: "faster"
|
|
5953
6020
|
}),
|
|
5954
6021
|
", ",
|
|
5955
|
-
/* @__PURE__ */
|
|
6022
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5956
6023
|
children: "fast"
|
|
5957
6024
|
}),
|
|
5958
6025
|
", ",
|
|
5959
|
-
/* @__PURE__ */
|
|
6026
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5960
6027
|
children: "medium"
|
|
5961
6028
|
}),
|
|
5962
6029
|
",",
|
|
5963
6030
|
" ",
|
|
5964
|
-
/* @__PURE__ */
|
|
6031
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5965
6032
|
children: "slow"
|
|
5966
6033
|
}),
|
|
5967
6034
|
", ",
|
|
5968
|
-
/* @__PURE__ */
|
|
6035
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5969
6036
|
children: "slower"
|
|
5970
6037
|
}),
|
|
5971
6038
|
", ",
|
|
5972
|
-
/* @__PURE__ */
|
|
6039
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5973
6040
|
children: "veryslow"
|
|
5974
6041
|
}),
|
|
5975
6042
|
",",
|
|
5976
6043
|
" ",
|
|
5977
|
-
/* @__PURE__ */
|
|
6044
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5978
6045
|
children: "placebo"
|
|
5979
6046
|
}),
|
|
5980
6047
|
".",
|
|
5981
|
-
/* @__PURE__ */
|
|
6048
|
+
/* @__PURE__ */ jsx97("br", {}),
|
|
5982
6049
|
"Default: ",
|
|
5983
|
-
/* @__PURE__ */
|
|
6050
|
+
/* @__PURE__ */ jsx97("code", {
|
|
5984
6051
|
children: DEFAULT_PRESET
|
|
5985
6052
|
})
|
|
5986
6053
|
]
|
|
@@ -5989,7 +6056,7 @@ var x264Option = {
|
|
|
5989
6056
|
docLink: "https://www.remotion.dev/docs/options/x264-preset",
|
|
5990
6057
|
type: "fast",
|
|
5991
6058
|
getValue: ({ commandLine }) => {
|
|
5992
|
-
const value = commandLine[
|
|
6059
|
+
const value = commandLine[cliFlag103];
|
|
5993
6060
|
if (typeof value !== "undefined") {
|
|
5994
6061
|
return { value, source: "cli" };
|
|
5995
6062
|
}
|
|
@@ -6001,11 +6068,12 @@ var x264Option = {
|
|
|
6001
6068
|
setConfig: (profile) => {
|
|
6002
6069
|
preset = profile;
|
|
6003
6070
|
},
|
|
6004
|
-
id:
|
|
6071
|
+
id: cliFlag103
|
|
6005
6072
|
};
|
|
6006
6073
|
|
|
6007
6074
|
// src/options/index.tsx
|
|
6008
6075
|
var allOptions = {
|
|
6076
|
+
preservePitchOnPlaybackOption,
|
|
6009
6077
|
showLayerFrameNumbersOption,
|
|
6010
6078
|
showPremountingOption,
|
|
6011
6079
|
allowHtmlInCanvasOption,
|