@remotion/renderer 4.0.539 → 4.0.541
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/assets/download-and-map-assets-to-file.js +16 -3
- package/dist/assets/download-file.js +10 -6
- package/dist/assets/download-map.d.ts +1 -1
- package/dist/assets/read-file.d.ts +1 -1
- package/dist/assets/read-file.js +6 -5
- package/dist/browser/BrowserFetcher.js +4 -1
- package/dist/browser/BrowserPage.js +27 -8
- package/dist/browser/BrowserRunner.js +36 -10
- package/dist/browser/NetworkManager.js +6 -1
- package/dist/browser/devtools-commands.d.ts +6 -1
- package/dist/browser/get-chrome-download-url.d.ts +1 -1
- package/dist/browser/get-chrome-download-url.js +4 -1
- package/dist/check-version-requirements.js +6 -6
- package/dist/client.d.ts +459 -238
- package/dist/collect-assets.js +1 -1
- package/dist/esm/client.mjs +349 -310
- package/dist/esm/index.mjs +348 -272
- package/dist/get-compositions.js +6 -3
- package/dist/index.d.ts +113 -41
- package/dist/index.js +4 -2
- package/dist/make-page.d.ts +3 -1
- package/dist/make-page.js +2 -1
- package/dist/open-browser.js +2 -0
- package/dist/options/allow-html-in-canvas.d.ts +1 -1
- package/dist/options/api-key.d.ts +1 -1
- package/dist/options/ask-ai.d.ts +1 -1
- package/dist/options/ask-ai.js +1 -1
- package/dist/options/audio-bitrate.d.ts +1 -1
- package/dist/options/beep-on-finish.d.ts +1 -1
- package/dist/options/benchmark-concurrencies.d.ts +1 -1
- package/dist/options/binaries-directory.d.ts +1 -1
- package/dist/options/browser-executable.d.ts +1 -1
- package/dist/options/browser-executable.js +1 -1
- package/dist/options/browser.d.ts +1 -1
- package/dist/options/bundle-cache.d.ts +1 -1
- package/dist/options/canvas-tabs.d.ts +1 -1
- package/dist/options/chrome-mode.d.ts +1 -1
- package/dist/options/color-space.d.ts +1 -1
- package/dist/options/concurrency.d.ts +1 -1
- package/dist/options/config.d.ts +1 -1
- package/dist/options/crf.d.ts +1 -1
- package/dist/options/crf.js +1 -1
- package/dist/options/cross-site-isolation.d.ts +1 -1
- package/dist/options/cross-site-isolation.js +2 -2
- package/dist/options/dark-mode.d.ts +1 -1
- package/dist/options/default-coding-agent.d.ts +1 -1
- package/dist/options/default-editor.d.ts +1 -1
- package/dist/options/default-premount-in-seconds.d.ts +1 -1
- package/dist/options/delete-after.d.ts +1 -1
- package/dist/options/disable-git-source.d.ts +2 -2
- package/dist/options/disable-shared-memory-capture.d.ts +1 -1
- package/dist/options/disable-web-security.d.ts +1 -1
- package/dist/options/disallow-parallel-encoding.d.ts +1 -1
- package/dist/options/enable-cancellation.d.ts +1 -1
- package/dist/options/enable-lambda-insights.d.ts +1 -1
- package/dist/options/enable-lambda-insights.js +2 -2
- package/dist/options/enable-multiprocess-on-linux.d.ts +1 -1
- package/dist/options/enable-multiprocess-on-linux.js +2 -2
- package/dist/options/encoding-buffer-size.d.ts +1 -1
- package/dist/options/encoding-max-rate.d.ts +1 -1
- package/dist/options/enforce-audio.d.ts +1 -1
- package/dist/options/env-file.d.ts +1 -1
- package/dist/options/every-nth-frame.d.ts +1 -1
- package/dist/options/experimental-keep-audio-context-alive.d.ts +1 -1
- package/dist/options/folder-expiry.d.ts +1 -1
- package/dist/options/folder-expiry.js +1 -1
- package/dist/options/for-seamless-aac-concatenation.d.ts +1 -1
- package/dist/options/force-new-studio.d.ts +1 -1
- package/dist/options/frames.d.ts +1 -1
- package/dist/options/gl.d.ts +1 -1
- package/dist/options/gop-size.d.ts +1 -1
- package/dist/options/headless.d.ts +1 -1
- package/dist/options/ignore-certificate-errors.d.ts +1 -1
- package/dist/options/image-sequence-pattern.d.ts +1 -1
- package/dist/options/image-sequence.d.ts +1 -1
- package/dist/options/index.d.ts +119 -102
- package/dist/options/index.js +2 -0
- package/dist/options/interactivity.d.ts +1 -1
- package/dist/options/ipv4.d.ts +1 -1
- package/dist/options/is-production.d.ts +1 -1
- package/dist/options/jpeg-quality.d.ts +1 -1
- package/dist/options/keyboard-shortcuts.d.ts +1 -1
- package/dist/options/latency-hint.d.ts +1 -1
- package/dist/options/license-key.d.ts +1 -1
- package/dist/options/log-level.d.ts +1 -1
- package/dist/options/metadata.d.ts +1 -1
- package/dist/options/mute.d.ts +1 -1
- package/dist/options/no-open.d.ts +1 -1
- package/dist/options/number-of-gif-loops.d.ts +1 -1
- package/dist/options/number-of-shared-audio-tags.d.ts +1 -1
- package/dist/options/offthreadvideo-cache-size.d.ts +1 -1
- package/dist/options/offthreadvideo-threads.d.ts +1 -1
- package/dist/options/on-browser-download.d.ts +1 -1
- package/dist/options/options-map.d.ts +340 -136
- package/dist/options/options-map.js +13 -0
- package/dist/options/out-dir.d.ts +1 -1
- package/dist/options/override-duration.d.ts +1 -1
- package/dist/options/override-fps.d.ts +1 -1
- package/dist/options/override-height.d.ts +1 -1
- package/dist/options/override-width.d.ts +1 -1
- package/dist/options/overwrite.d.ts +1 -1
- package/dist/options/package-manager.d.ts +1 -1
- package/dist/options/pixel-format.d.ts +1 -1
- package/dist/options/port.d.ts +1 -1
- package/dist/options/prefer-lossless.d.ts +1 -1
- package/dist/options/preferred-effect-backend.d.ts +18 -0
- package/dist/options/preferred-effect-backend.js +28 -0
- package/dist/options/preserve-pitch-on-playback.d.ts +1 -1
- package/dist/options/preview-sample-rate.d.ts +1 -1
- package/dist/options/props.d.ts +1 -1
- package/dist/options/prores-profile.d.ts +1 -1
- package/dist/options/public-dir.d.ts +1 -1
- package/dist/options/public-license-key.d.ts +1 -1
- package/dist/options/public-path.d.ts +1 -1
- package/dist/options/repro.d.ts +1 -1
- package/dist/options/rspack.d.ts +1 -1
- package/dist/options/runs.d.ts +1 -1
- package/dist/options/sample-rate.d.ts +1 -1
- package/dist/options/scale.d.ts +1 -1
- package/dist/options/sequence-activity-limit.d.ts +1 -1
- package/dist/options/show-layer-frame-numbers.d.ts +1 -1
- package/dist/options/show-premounting.d.ts +1 -1
- package/dist/options/skip-skills.d.ts +1 -1
- package/dist/options/still-frame.d.ts +1 -1
- package/dist/options/still-image-format.d.ts +1 -1
- package/dist/options/throw-if-site-exists.d.ts +2 -2
- package/dist/options/timeout.d.ts +1 -1
- package/dist/options/user-agent.d.ts +1 -1
- package/dist/options/version-flag.d.ts +1 -1
- package/dist/options/video-bitrate.d.ts +1 -1
- package/dist/options/video-cache-size.d.ts +1 -1
- package/dist/options/video-codec.d.ts +1 -1
- package/dist/options/video-image-format.d.ts +1 -1
- package/dist/options/webhook-custom-data.d.ts +1 -1
- package/dist/options/webpack-poll.d.ts +1 -1
- package/dist/options/x264-preset.d.ts +1 -1
- package/dist/pool.js +3 -0
- package/dist/render-frame-and-retry-target-close.js +2 -1
- package/dist/render-frames.js +6 -3
- package/dist/render-media.d.ts +1 -1
- package/dist/render-media.js +4 -2
- package/dist/render-still.js +6 -2
- package/dist/select-composition.js +6 -3
- package/dist/set-props-and-env.d.ts +2 -0
- package/dist/set-props-and-env.js +8 -3
- package/dist/stringify-ffmpeg-filter.js +6 -2
- package/dist/symbolicate-stacktrace.js +1 -1
- package/dist/validate-selected-frames.d.ts +4 -4
- package/dist/validate-selected-frames.js +2 -31
- package/package.json +15 -15
- package/dist/options/experimental-client-side-rendering.d.ts +0 -16
- package/dist/options/experimental-client-side-rendering.js +0 -30
- 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.d.ts +0 -19
- package/dist/options/experimental-tracks.js +0 -43
- package/dist/prestitcher-memory-usage.d.ts +0 -13
- package/dist/prestitcher-memory-usage.js +0 -33
- package/dist/render-partitions.d.ts +0 -7
- package/dist/render-partitions.js +0 -50
package/dist/esm/client.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/client.ts
|
|
2
|
-
import { NoReactInternals as
|
|
2
|
+
import { NoReactInternals as NoReactInternals11 } from "remotion/no-react";
|
|
3
3
|
|
|
4
4
|
// src/browser/TimeoutSettings.ts
|
|
5
5
|
var DEFAULT_TIMEOUT = 30000;
|
|
@@ -493,7 +493,7 @@ var askAIOption = {
|
|
|
493
493
|
docLink: "https://www.remotion.dev/docs/options/disable-ask-ai",
|
|
494
494
|
type: false,
|
|
495
495
|
getValue: ({ commandLine }) => {
|
|
496
|
-
if (commandLine[cliFlag3] !== undefined) {
|
|
496
|
+
if (commandLine[cliFlag3] !== undefined && commandLine[cliFlag3] !== null) {
|
|
497
497
|
askAIEnabled = false;
|
|
498
498
|
return {
|
|
499
499
|
value: askAIEnabled,
|
|
@@ -977,7 +977,7 @@ var browserExecutableOption = {
|
|
|
977
977
|
addedIn: "1.5.0",
|
|
978
978
|
cliFlag: cliFlag11,
|
|
979
979
|
description: () => /* @__PURE__ */ jsx9(Fragment9, {
|
|
980
|
-
children: "Set a custom Chrome or Chromium executable path. By default Remotion
|
|
980
|
+
children: "Set a custom Chrome or Chromium executable path. By default, Remotion downloads and uses Chrome Headless Shell with Remotion's browser fixes. Leave this option unset for normal rendering."
|
|
981
981
|
}),
|
|
982
982
|
ssrName: "browserExecutable",
|
|
983
983
|
docLink: "https://www.remotion.dev/docs/options/browser-executable",
|
|
@@ -1412,7 +1412,7 @@ var crfOption = {
|
|
|
1412
1412
|
value: commandLine[cliFlag18]
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
|
-
if (currentCrf !==
|
|
1415
|
+
if (currentCrf !== undefined) {
|
|
1416
1416
|
return {
|
|
1417
1417
|
source: "config",
|
|
1418
1418
|
value: currentCrf
|
|
@@ -1453,9 +1453,9 @@ var enableCrossSiteIsolationOption = {
|
|
|
1453
1453
|
docLink: "https://www.remotion.dev/docs/options/cross-site-isolation",
|
|
1454
1454
|
type: false,
|
|
1455
1455
|
getValue: ({ commandLine }) => {
|
|
1456
|
-
if (commandLine[cliFlag19] !== undefined) {
|
|
1456
|
+
if (commandLine[cliFlag19] !== undefined && commandLine[cliFlag19] !== null) {
|
|
1457
1457
|
return {
|
|
1458
|
-
value: commandLine[cliFlag19],
|
|
1458
|
+
value: Boolean(commandLine[cliFlag19]),
|
|
1459
1459
|
source: "cli"
|
|
1460
1460
|
};
|
|
1461
1461
|
}
|
|
@@ -1971,9 +1971,9 @@ var enableLambdaInsights = {
|
|
|
1971
1971
|
option = value;
|
|
1972
1972
|
},
|
|
1973
1973
|
getValue: ({ commandLine }) => {
|
|
1974
|
-
if (commandLine[cliFlag30] !== undefined) {
|
|
1974
|
+
if (commandLine[cliFlag30] !== undefined && commandLine[cliFlag30] !== null) {
|
|
1975
1975
|
return {
|
|
1976
|
-
value: commandLine[cliFlag30],
|
|
1976
|
+
value: Boolean(commandLine[cliFlag30]),
|
|
1977
1977
|
source: "cli"
|
|
1978
1978
|
};
|
|
1979
1979
|
}
|
|
@@ -2031,10 +2031,10 @@ var enableMultiprocessOnLinuxOption = {
|
|
|
2031
2031
|
docLink: "https://www.remotion.dev/docs/options/enable-multiprocess-on-linux",
|
|
2032
2032
|
type: false,
|
|
2033
2033
|
getValue: ({ commandLine }) => {
|
|
2034
|
-
if (commandLine[cliFlag31] !== undefined) {
|
|
2034
|
+
if (commandLine[cliFlag31] !== undefined && commandLine[cliFlag31] !== null) {
|
|
2035
2035
|
return {
|
|
2036
2036
|
source: "cli",
|
|
2037
|
-
value: commandLine[cliFlag31]
|
|
2037
|
+
value: Boolean(commandLine[cliFlag31])
|
|
2038
2038
|
};
|
|
2039
2039
|
}
|
|
2040
2040
|
if (multiProcessOnLinux !== false) {
|
|
@@ -2403,7 +2403,7 @@ var folderExpiryOption = {
|
|
|
2403
2403
|
docLink: "https://www.remotion.dev/docs/options/enable-folder-expiry",
|
|
2404
2404
|
type: false,
|
|
2405
2405
|
getValue: ({ commandLine }) => {
|
|
2406
|
-
if (commandLine[cliFlag38] !== undefined) {
|
|
2406
|
+
if (commandLine[cliFlag38] !== undefined && commandLine[cliFlag38] !== null) {
|
|
2407
2407
|
return {
|
|
2408
2408
|
source: "cli",
|
|
2409
2409
|
value: commandLine[cliFlag38]
|
|
@@ -2583,39 +2583,10 @@ var validateFrameRange = (frameRange) => {
|
|
|
2583
2583
|
};
|
|
2584
2584
|
|
|
2585
2585
|
// src/validate-selected-frames.ts
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
}
|
|
2590
|
-
if (!Array.isArray(frames)) {
|
|
2591
|
-
throw new TypeError("The `frames` option must be an array of frame numbers.");
|
|
2592
|
-
}
|
|
2593
|
-
if (frames.length === 0) {
|
|
2594
|
-
throw new TypeError("The `frames` option must contain at least one frame.");
|
|
2595
|
-
}
|
|
2596
|
-
for (const frame of frames) {
|
|
2597
|
-
if (typeof frame !== "number") {
|
|
2598
|
-
throw new TypeError(`The \`frames\` option must contain only numbers, but got ${typeof frame}.`);
|
|
2599
|
-
}
|
|
2600
|
-
if (!Number.isFinite(frame)) {
|
|
2601
|
-
throw new TypeError(`The \`frames\` option must contain only finite numbers, but got ${frame}.`);
|
|
2602
|
-
}
|
|
2603
|
-
if (!Number.isInteger(frame)) {
|
|
2604
|
-
throw new TypeError(`The \`frames\` option must contain only integers, but got ${frame}.`);
|
|
2605
|
-
}
|
|
2606
|
-
if (frame < 0) {
|
|
2607
|
-
throw new TypeError(`The \`frames\` option must contain only non-negative numbers, but got ${frame}.`);
|
|
2608
|
-
}
|
|
2609
|
-
if (durationInFrames !== null && frame >= durationInFrames) {
|
|
2610
|
-
throw new RangeError(`Frame ${frame} is out of range, must be between 0 and ${durationInFrames - 1}.`);
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
const uniqueFrames = new Set(frames);
|
|
2614
|
-
if (uniqueFrames.size !== frames.length) {
|
|
2615
|
-
throw new TypeError("The `frames` option must not contain duplicate frames.");
|
|
2616
|
-
}
|
|
2617
|
-
return [...frames].sort((a, b) => a - b);
|
|
2618
|
-
};
|
|
2586
|
+
import { NoReactInternals as NoReactInternals4 } from "remotion/no-react";
|
|
2587
|
+
var {
|
|
2588
|
+
validateSelectedFrames
|
|
2589
|
+
} = NoReactInternals4;
|
|
2619
2590
|
|
|
2620
2591
|
// src/options/frames.tsx
|
|
2621
2592
|
import { jsx as jsx38, jsxs as jsxs28, Fragment as Fragment38 } from "react/jsx-runtime";
|
|
@@ -2748,7 +2719,7 @@ var framesOption = {
|
|
|
2748
2719
|
};
|
|
2749
2720
|
|
|
2750
2721
|
// src/options/gl.tsx
|
|
2751
|
-
import { NoReactInternals as
|
|
2722
|
+
import { NoReactInternals as NoReactInternals5 } from "remotion/no-react";
|
|
2752
2723
|
import { jsx as jsx39, jsxs as jsxs29, Fragment as Fragment39 } from "react/jsx-runtime";
|
|
2753
2724
|
var validOpenGlRenderers = [
|
|
2754
2725
|
"swangle",
|
|
@@ -2761,7 +2732,7 @@ var validOpenGlRenderers = [
|
|
|
2761
2732
|
var getDefaultOpenGlRenderer = (enableV5BreakingChanges) => {
|
|
2762
2733
|
return enableV5BreakingChanges ? "angle" : null;
|
|
2763
2734
|
};
|
|
2764
|
-
var DEFAULT_OPENGL_RENDERER = getDefaultOpenGlRenderer(
|
|
2735
|
+
var DEFAULT_OPENGL_RENDERER = getDefaultOpenGlRenderer(NoReactInternals5.ENABLE_V5_BREAKING_CHANGES);
|
|
2765
2736
|
var openGlRenderer = DEFAULT_OPENGL_RENDERER;
|
|
2766
2737
|
var AngleChangelog = () => {
|
|
2767
2738
|
return /* @__PURE__ */ jsxs29("details", {
|
|
@@ -2796,7 +2767,7 @@ var AngleChangelog = () => {
|
|
|
2796
2767
|
", however it turns out to have a small memory leak that could crash long Remotion renders."
|
|
2797
2768
|
]
|
|
2798
2769
|
}),
|
|
2799
|
-
|
|
2770
|
+
NoReactInternals5.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */ jsxs29("li", {
|
|
2800
2771
|
children: [
|
|
2801
2772
|
"From Remotion v5.0, the default is ",
|
|
2802
2773
|
/* @__PURE__ */ jsx39("code", {
|
|
@@ -4091,10 +4062,10 @@ var outDirOption = {
|
|
|
4091
4062
|
};
|
|
4092
4063
|
|
|
4093
4064
|
// src/validate.ts
|
|
4094
|
-
import { NoReactInternals as
|
|
4095
|
-
var validateFps =
|
|
4096
|
-
var validateDimension =
|
|
4097
|
-
var validateDurationInFrames =
|
|
4065
|
+
import { NoReactInternals as NoReactInternals6 } from "remotion/no-react";
|
|
4066
|
+
var validateFps = NoReactInternals6.validateFps;
|
|
4067
|
+
var validateDimension = NoReactInternals6.validateDimension;
|
|
4068
|
+
var validateDurationInFrames = NoReactInternals6.validateDurationInFrames;
|
|
4098
4069
|
|
|
4099
4070
|
// src/options/override-duration.tsx
|
|
4100
4071
|
import { jsx as jsx62, Fragment as Fragment62 } from "react/jsx-runtime";
|
|
@@ -4561,43 +4532,98 @@ var preferLosslessAudioOption = {
|
|
|
4561
4532
|
id: cliFlag74
|
|
4562
4533
|
};
|
|
4563
4534
|
|
|
4564
|
-
// src/options/
|
|
4535
|
+
// src/options/preferred-effect-backend.tsx
|
|
4536
|
+
import { NoReactInternals as NoReactInternals7 } from "remotion/no-react";
|
|
4565
4537
|
import { jsx as jsx71, jsxs as jsxs50, Fragment as Fragment71 } from "react/jsx-runtime";
|
|
4538
|
+
var cliFlag75 = "preferred-effect-backend";
|
|
4539
|
+
var configured = "auto";
|
|
4540
|
+
var preferredEffectBackendOption = {
|
|
4541
|
+
name: "Preferred effect backend",
|
|
4542
|
+
addedIn: "4.0.540",
|
|
4543
|
+
cliFlag: cliFlag75,
|
|
4544
|
+
id: cliFlag75,
|
|
4545
|
+
ssrName: "preferredEffectBackend",
|
|
4546
|
+
docLink: "https://www.remotion.dev/docs/options/preferred-effect-backend",
|
|
4547
|
+
type: "auto",
|
|
4548
|
+
description: () => /* @__PURE__ */ jsxs50(Fragment71, {
|
|
4549
|
+
children: [
|
|
4550
|
+
"Prefer ",
|
|
4551
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4552
|
+
children: "webgpu"
|
|
4553
|
+
}),
|
|
4554
|
+
", ",
|
|
4555
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4556
|
+
children: "webgl2"
|
|
4557
|
+
}),
|
|
4558
|
+
", or ",
|
|
4559
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4560
|
+
children: "2d"
|
|
4561
|
+
}),
|
|
4562
|
+
" ",
|
|
4563
|
+
"implementations of",
|
|
4564
|
+
" ",
|
|
4565
|
+
/* @__PURE__ */ jsx71("a", {
|
|
4566
|
+
href: "https://www.remotion.dev/docs/effects",
|
|
4567
|
+
children: "effects"
|
|
4568
|
+
}),
|
|
4569
|
+
". Default:",
|
|
4570
|
+
" ",
|
|
4571
|
+
/* @__PURE__ */ jsx71("code", {
|
|
4572
|
+
children: "auto"
|
|
4573
|
+
}),
|
|
4574
|
+
", which tries WebGPU, WebGL2, then 2D. Falls back when an implementation or backend is unavailable. Lambda selects WebGL2 or 2D implementations. Rendering fails if an effect has no supported implementation. This option also applies to Studio preview."
|
|
4575
|
+
]
|
|
4576
|
+
}),
|
|
4577
|
+
getValue: ({ commandLine }) => {
|
|
4578
|
+
if (commandLine[cliFlag75] !== undefined)
|
|
4579
|
+
return {
|
|
4580
|
+
value: NoReactInternals7.validatePreferredEffectBackend(commandLine[cliFlag75]),
|
|
4581
|
+
source: "cli"
|
|
4582
|
+
};
|
|
4583
|
+
return { value: configured, source: "config" };
|
|
4584
|
+
},
|
|
4585
|
+
setConfig: (value) => {
|
|
4586
|
+
configured = NoReactInternals7.validatePreferredEffectBackend(value);
|
|
4587
|
+
}
|
|
4588
|
+
};
|
|
4589
|
+
|
|
4590
|
+
// src/options/preserve-pitch-on-playback.tsx
|
|
4591
|
+
import { jsx as jsx72, jsxs as jsxs51, Fragment as Fragment72 } from "react/jsx-runtime";
|
|
4566
4592
|
var configuredPreservePitchOnPlayback = null;
|
|
4567
|
-
var
|
|
4593
|
+
var cliFlag76 = "preserve-pitch-on-playback";
|
|
4568
4594
|
var preservePitchOnPlaybackOption = {
|
|
4569
4595
|
name: "Preserve pitch on playback",
|
|
4570
4596
|
addedIn: "4.0.538",
|
|
4571
|
-
cliFlag:
|
|
4572
|
-
id:
|
|
4573
|
-
description: () => /* @__PURE__ */
|
|
4597
|
+
cliFlag: cliFlag76,
|
|
4598
|
+
id: cliFlag76,
|
|
4599
|
+
description: () => /* @__PURE__ */ jsxs51(Fragment72, {
|
|
4574
4600
|
children: [
|
|
4575
4601
|
"Preserve audio pitch when changing the Studio playback speed. Defaults to",
|
|
4576
4602
|
" ",
|
|
4577
|
-
/* @__PURE__ */
|
|
4603
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4578
4604
|
children: "true"
|
|
4579
4605
|
}),
|
|
4580
4606
|
". Applies to ",
|
|
4581
|
-
/* @__PURE__ */
|
|
4607
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4582
4608
|
children: "Audio"
|
|
4583
4609
|
}),
|
|
4584
4610
|
" and ",
|
|
4585
|
-
/* @__PURE__ */
|
|
4611
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4586
4612
|
children: "Video"
|
|
4587
4613
|
}),
|
|
4588
4614
|
" ",
|
|
4589
4615
|
"from ",
|
|
4590
|
-
/* @__PURE__ */
|
|
4616
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4591
4617
|
children: "@remotion/media"
|
|
4592
4618
|
}),
|
|
4593
4619
|
", independently of their clip-level",
|
|
4594
4620
|
" ",
|
|
4595
|
-
/* @__PURE__ */
|
|
4621
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4596
4622
|
children: "preservePitch"
|
|
4597
4623
|
}),
|
|
4598
4624
|
" props. Does not affect rendered output or native media components, including native fallbacks. Set",
|
|
4599
4625
|
" ",
|
|
4600
|
-
/* @__PURE__ */
|
|
4626
|
+
/* @__PURE__ */ jsx72("code", {
|
|
4601
4627
|
children: "--preserve-pitch-on-playback=false"
|
|
4602
4628
|
}),
|
|
4603
4629
|
" to disable."
|
|
@@ -4607,7 +4633,7 @@ var preservePitchOnPlaybackOption = {
|
|
|
4607
4633
|
docLink: "https://www.remotion.dev/docs/options/preserve-pitch-on-playback",
|
|
4608
4634
|
type: false,
|
|
4609
4635
|
getValue: ({ commandLine }) => {
|
|
4610
|
-
const value = commandLine[
|
|
4636
|
+
const value = commandLine[cliFlag76];
|
|
4611
4637
|
if (value !== undefined && value !== null) {
|
|
4612
4638
|
if (typeof value !== "boolean") {
|
|
4613
4639
|
throw new Error("--preserve-pitch-on-playback expects a boolean");
|
|
@@ -4629,17 +4655,17 @@ var preservePitchOnPlaybackOption = {
|
|
|
4629
4655
|
};
|
|
4630
4656
|
|
|
4631
4657
|
// src/options/preview-sample-rate.tsx
|
|
4632
|
-
import { jsx as
|
|
4633
|
-
var
|
|
4658
|
+
import { jsx as jsx73, jsxs as jsxs52, Fragment as Fragment73 } from "react/jsx-runtime";
|
|
4659
|
+
var cliFlag77 = "preview-sample-rate";
|
|
4634
4660
|
var currentPreviewSampleRate = null;
|
|
4635
4661
|
var previewSampleRateOption = {
|
|
4636
4662
|
name: "Preview Sample Rate",
|
|
4637
4663
|
addedIn: "4.0.470",
|
|
4638
|
-
cliFlag:
|
|
4639
|
-
description: () => /* @__PURE__ */
|
|
4664
|
+
cliFlag: cliFlag77,
|
|
4665
|
+
description: () => /* @__PURE__ */ jsxs52(Fragment73, {
|
|
4640
4666
|
children: [
|
|
4641
4667
|
"Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
|
|
4642
|
-
/* @__PURE__ */
|
|
4668
|
+
/* @__PURE__ */ jsx73("code", {
|
|
4643
4669
|
children: "48000"
|
|
4644
4670
|
}),
|
|
4645
4671
|
" Hz."
|
|
@@ -4649,8 +4675,8 @@ var previewSampleRateOption = {
|
|
|
4649
4675
|
docLink: "https://www.remotion.dev/docs/options/preview-sample-rate",
|
|
4650
4676
|
type: null,
|
|
4651
4677
|
getValue: ({ commandLine }) => {
|
|
4652
|
-
if (commandLine[
|
|
4653
|
-
return { value: commandLine[
|
|
4678
|
+
if (commandLine[cliFlag77] !== undefined) {
|
|
4679
|
+
return { value: commandLine[cliFlag77], source: "cli" };
|
|
4654
4680
|
}
|
|
4655
4681
|
if (currentPreviewSampleRate !== null) {
|
|
4656
4682
|
return { value: currentPreviewSampleRate, source: "config file" };
|
|
@@ -4660,20 +4686,20 @@ var previewSampleRateOption = {
|
|
|
4660
4686
|
setConfig: (value) => {
|
|
4661
4687
|
currentPreviewSampleRate = value;
|
|
4662
4688
|
},
|
|
4663
|
-
id:
|
|
4689
|
+
id: cliFlag77
|
|
4664
4690
|
};
|
|
4665
4691
|
|
|
4666
4692
|
// src/options/props.tsx
|
|
4667
|
-
import { jsx as
|
|
4668
|
-
var
|
|
4693
|
+
import { jsx as jsx74, jsxs as jsxs53, Fragment as Fragment74 } from "react/jsx-runtime";
|
|
4694
|
+
var cliFlag78 = "props";
|
|
4669
4695
|
var propsOption = {
|
|
4670
4696
|
name: "Input Props",
|
|
4671
4697
|
addedIn: "1.0.0",
|
|
4672
|
-
cliFlag:
|
|
4673
|
-
description: () => /* @__PURE__ */
|
|
4698
|
+
cliFlag: cliFlag78,
|
|
4699
|
+
description: () => /* @__PURE__ */ jsxs53(Fragment74, {
|
|
4674
4700
|
children: [
|
|
4675
4701
|
"Input Props to pass to the selected composition of your video. Must be a serialized JSON string (",
|
|
4676
|
-
/* @__PURE__ */
|
|
4702
|
+
/* @__PURE__ */ jsxs53("code", {
|
|
4677
4703
|
children: [
|
|
4678
4704
|
"--props='",
|
|
4679
4705
|
"{",
|
|
@@ -4683,7 +4709,7 @@ var propsOption = {
|
|
|
4683
4709
|
]
|
|
4684
4710
|
}),
|
|
4685
4711
|
") or a path to a JSON file (",
|
|
4686
|
-
/* @__PURE__ */
|
|
4712
|
+
/* @__PURE__ */ jsx74("code", {
|
|
4687
4713
|
children: "./path/to/props.json"
|
|
4688
4714
|
}),
|
|
4689
4715
|
")."
|
|
@@ -4692,10 +4718,10 @@ var propsOption = {
|
|
|
4692
4718
|
ssrName: null,
|
|
4693
4719
|
docLink: "https://www.remotion.dev/docs/options/props",
|
|
4694
4720
|
getValue: ({ commandLine }) => {
|
|
4695
|
-
if (commandLine[
|
|
4721
|
+
if (commandLine[cliFlag78] !== undefined) {
|
|
4696
4722
|
return {
|
|
4697
4723
|
source: "cli",
|
|
4698
|
-
value: commandLine[
|
|
4724
|
+
value: commandLine[cliFlag78]
|
|
4699
4725
|
};
|
|
4700
4726
|
}
|
|
4701
4727
|
return {
|
|
@@ -4707,11 +4733,11 @@ var propsOption = {
|
|
|
4707
4733
|
throw new Error("setProps is not supported. Pass --props via the CLI instead.");
|
|
4708
4734
|
},
|
|
4709
4735
|
type: "",
|
|
4710
|
-
id:
|
|
4736
|
+
id: cliFlag78
|
|
4711
4737
|
};
|
|
4712
4738
|
|
|
4713
4739
|
// src/options/prores-profile.tsx
|
|
4714
|
-
import { jsx as
|
|
4740
|
+
import { jsx as jsx75, jsxs as jsxs54, Fragment as Fragment75 } from "react/jsx-runtime";
|
|
4715
4741
|
var validProResProfiles = [
|
|
4716
4742
|
"4444-xq",
|
|
4717
4743
|
"4444",
|
|
@@ -4721,15 +4747,15 @@ var validProResProfiles = [
|
|
|
4721
4747
|
"proxy"
|
|
4722
4748
|
];
|
|
4723
4749
|
var proResProfile;
|
|
4724
|
-
var
|
|
4750
|
+
var cliFlag79 = "prores-profile";
|
|
4725
4751
|
var proResProfileOption = {
|
|
4726
4752
|
name: "ProRes profile",
|
|
4727
4753
|
addedIn: "2.1.6",
|
|
4728
|
-
cliFlag:
|
|
4729
|
-
description: () => /* @__PURE__ */
|
|
4754
|
+
cliFlag: cliFlag79,
|
|
4755
|
+
description: () => /* @__PURE__ */ jsxs54(Fragment75, {
|
|
4730
4756
|
children: [
|
|
4731
4757
|
"Set the ProRes profile. This option is only valid if the codec has been set to ",
|
|
4732
|
-
/* @__PURE__ */
|
|
4758
|
+
/* @__PURE__ */ jsx75("code", {
|
|
4733
4759
|
children: "prores"
|
|
4734
4760
|
}),
|
|
4735
4761
|
". Possible values:",
|
|
@@ -4737,12 +4763,12 @@ var proResProfileOption = {
|
|
|
4737
4763
|
validProResProfiles.map((p) => `"${p}"`).join(", "),
|
|
4738
4764
|
". Default:",
|
|
4739
4765
|
" ",
|
|
4740
|
-
/* @__PURE__ */
|
|
4766
|
+
/* @__PURE__ */ jsx75("code", {
|
|
4741
4767
|
children: '"hq"'
|
|
4742
4768
|
}),
|
|
4743
4769
|
". See",
|
|
4744
4770
|
" ",
|
|
4745
|
-
/* @__PURE__ */
|
|
4771
|
+
/* @__PURE__ */ jsx75("a", {
|
|
4746
4772
|
href: "https://video.stackexchange.com/a/14715",
|
|
4747
4773
|
children: "here"
|
|
4748
4774
|
}),
|
|
@@ -4759,10 +4785,10 @@ var proResProfileOption = {
|
|
|
4759
4785
|
value: options.uiProResProfile
|
|
4760
4786
|
};
|
|
4761
4787
|
}
|
|
4762
|
-
if (commandLine[
|
|
4788
|
+
if (commandLine[cliFlag79] !== undefined) {
|
|
4763
4789
|
return {
|
|
4764
4790
|
source: "from --prores-profile flag",
|
|
4765
|
-
value: String(commandLine[
|
|
4791
|
+
value: String(commandLine[cliFlag79])
|
|
4766
4792
|
};
|
|
4767
4793
|
}
|
|
4768
4794
|
if (options && options.compositionDefaultProResProfile !== null) {
|
|
@@ -4785,25 +4811,25 @@ var proResProfileOption = {
|
|
|
4785
4811
|
setConfig: (value) => {
|
|
4786
4812
|
proResProfile = value;
|
|
4787
4813
|
},
|
|
4788
|
-
id:
|
|
4814
|
+
id: cliFlag79
|
|
4789
4815
|
};
|
|
4790
4816
|
|
|
4791
4817
|
// src/options/public-dir.tsx
|
|
4792
|
-
import { jsx as
|
|
4793
|
-
var
|
|
4818
|
+
import { jsx as jsx76, jsxs as jsxs55, Fragment as Fragment76 } from "react/jsx-runtime";
|
|
4819
|
+
var cliFlag80 = "public-dir";
|
|
4794
4820
|
var currentPublicDir = null;
|
|
4795
4821
|
var publicDirOption = {
|
|
4796
4822
|
name: "Public Directory",
|
|
4797
4823
|
addedIn: "3.2.13",
|
|
4798
|
-
cliFlag:
|
|
4824
|
+
cliFlag: cliFlag80,
|
|
4799
4825
|
description: () => {
|
|
4800
|
-
return /* @__PURE__ */
|
|
4826
|
+
return /* @__PURE__ */ jsxs55(Fragment76, {
|
|
4801
4827
|
children: [
|
|
4802
4828
|
"Define the location of the",
|
|
4803
4829
|
" ",
|
|
4804
|
-
/* @__PURE__ */
|
|
4830
|
+
/* @__PURE__ */ jsx76("a", {
|
|
4805
4831
|
href: "/docs/terminology/public-dir",
|
|
4806
|
-
children: /* @__PURE__ */
|
|
4832
|
+
children: /* @__PURE__ */ jsx76("code", {
|
|
4807
4833
|
children: "public/ directory"
|
|
4808
4834
|
})
|
|
4809
4835
|
}),
|
|
@@ -4814,10 +4840,10 @@ var publicDirOption = {
|
|
|
4814
4840
|
ssrName: "publicDir",
|
|
4815
4841
|
docLink: "https://www.remotion.dev/docs/options/public-dir",
|
|
4816
4842
|
getValue: ({ commandLine }) => {
|
|
4817
|
-
if (commandLine[
|
|
4843
|
+
if (commandLine[cliFlag80] !== undefined) {
|
|
4818
4844
|
return {
|
|
4819
4845
|
source: "cli",
|
|
4820
|
-
value: commandLine[
|
|
4846
|
+
value: commandLine[cliFlag80]
|
|
4821
4847
|
};
|
|
4822
4848
|
}
|
|
4823
4849
|
if (currentPublicDir !== null) {
|
|
@@ -4835,21 +4861,21 @@ var publicDirOption = {
|
|
|
4835
4861
|
currentPublicDir = value;
|
|
4836
4862
|
},
|
|
4837
4863
|
type: "",
|
|
4838
|
-
id:
|
|
4864
|
+
id: cliFlag80
|
|
4839
4865
|
};
|
|
4840
4866
|
|
|
4841
4867
|
// src/options/public-license-key.tsx
|
|
4842
|
-
import { jsx as
|
|
4843
|
-
var
|
|
4868
|
+
import { jsx as jsx77, jsxs as jsxs56, Fragment as Fragment77 } from "react/jsx-runtime";
|
|
4869
|
+
var cliFlag81 = "public-license-key";
|
|
4844
4870
|
var currentPublicLicenseKey = null;
|
|
4845
4871
|
var publicLicenseKeyOption = {
|
|
4846
4872
|
name: "Public License Key",
|
|
4847
4873
|
addedIn: "4.0.398",
|
|
4848
|
-
cliFlag:
|
|
4849
|
-
description: () => /* @__PURE__ */
|
|
4874
|
+
cliFlag: cliFlag81,
|
|
4875
|
+
description: () => /* @__PURE__ */ jsxs56(Fragment77, {
|
|
4850
4876
|
children: [
|
|
4851
4877
|
"The public license key for your company license, obtained from the License keys page on ",
|
|
4852
|
-
/* @__PURE__ */
|
|
4878
|
+
/* @__PURE__ */ jsx77("a", {
|
|
4853
4879
|
href: "https://remotion.pro/dashboard",
|
|
4854
4880
|
children: "remotion.pro"
|
|
4855
4881
|
}),
|
|
@@ -4859,10 +4885,10 @@ var publicLicenseKeyOption = {
|
|
|
4859
4885
|
ssrName: "publicLicenseKey",
|
|
4860
4886
|
docLink: "https://www.remotion.dev/docs/options/public-license-key",
|
|
4861
4887
|
getValue: ({ commandLine }) => {
|
|
4862
|
-
if (commandLine[
|
|
4888
|
+
if (commandLine[cliFlag81] !== undefined) {
|
|
4863
4889
|
return {
|
|
4864
4890
|
source: "cli",
|
|
4865
|
-
value: commandLine[
|
|
4891
|
+
value: commandLine[cliFlag81]
|
|
4866
4892
|
};
|
|
4867
4893
|
}
|
|
4868
4894
|
if (currentPublicLicenseKey !== null) {
|
|
@@ -4883,26 +4909,26 @@ var publicLicenseKeyOption = {
|
|
|
4883
4909
|
currentPublicLicenseKey = value;
|
|
4884
4910
|
},
|
|
4885
4911
|
type: null,
|
|
4886
|
-
id:
|
|
4912
|
+
id: cliFlag81
|
|
4887
4913
|
};
|
|
4888
4914
|
|
|
4889
4915
|
// src/options/public-path.tsx
|
|
4890
|
-
import { jsx as
|
|
4891
|
-
var
|
|
4916
|
+
import { jsx as jsx78, jsxs as jsxs57, Fragment as Fragment78 } from "react/jsx-runtime";
|
|
4917
|
+
var cliFlag82 = "public-path";
|
|
4892
4918
|
var currentPublicPath = null;
|
|
4893
4919
|
var publicPathOption = {
|
|
4894
4920
|
name: "Public Path",
|
|
4895
4921
|
addedIn: "4.0.127",
|
|
4896
|
-
cliFlag:
|
|
4922
|
+
cliFlag: cliFlag82,
|
|
4897
4923
|
description: () => {
|
|
4898
|
-
return /* @__PURE__ */
|
|
4924
|
+
return /* @__PURE__ */ jsxs57(Fragment78, {
|
|
4899
4925
|
children: [
|
|
4900
4926
|
"The path of the URL where the bundle is going to be hosted. By default it is ",
|
|
4901
|
-
/* @__PURE__ */
|
|
4927
|
+
/* @__PURE__ */ jsx78("code", {
|
|
4902
4928
|
children: "./"
|
|
4903
4929
|
}),
|
|
4904
4930
|
", making the bundle relocatable. Set an absolute path such as ",
|
|
4905
|
-
/* @__PURE__ */
|
|
4931
|
+
/* @__PURE__ */ jsx78("code", {
|
|
4906
4932
|
children: "/sites/my-site/"
|
|
4907
4933
|
}),
|
|
4908
4934
|
" to host the bundle at a fixed location."
|
|
@@ -4912,10 +4938,10 @@ var publicPathOption = {
|
|
|
4912
4938
|
ssrName: "publicPath",
|
|
4913
4939
|
docLink: "https://www.remotion.dev/docs/options/public-path",
|
|
4914
4940
|
getValue: ({ commandLine }) => {
|
|
4915
|
-
if (commandLine[
|
|
4941
|
+
if (commandLine[cliFlag82] !== undefined) {
|
|
4916
4942
|
return {
|
|
4917
4943
|
source: "cli",
|
|
4918
|
-
value: commandLine[
|
|
4944
|
+
value: commandLine[cliFlag82]
|
|
4919
4945
|
};
|
|
4920
4946
|
}
|
|
4921
4947
|
if (currentPublicPath !== null) {
|
|
@@ -4933,30 +4959,30 @@ var publicPathOption = {
|
|
|
4933
4959
|
currentPublicPath = value;
|
|
4934
4960
|
},
|
|
4935
4961
|
type: "",
|
|
4936
|
-
id:
|
|
4962
|
+
id: cliFlag82
|
|
4937
4963
|
};
|
|
4938
4964
|
|
|
4939
4965
|
// src/options/repro.tsx
|
|
4940
|
-
import { jsx as
|
|
4966
|
+
import { jsx as jsx79, Fragment as Fragment79 } from "react/jsx-runtime";
|
|
4941
4967
|
var enableRepro = false;
|
|
4942
4968
|
var setRepro = (should) => {
|
|
4943
4969
|
enableRepro = should;
|
|
4944
4970
|
};
|
|
4945
|
-
var
|
|
4971
|
+
var cliFlag83 = "repro";
|
|
4946
4972
|
var reproOption = {
|
|
4947
4973
|
name: "Create reproduction",
|
|
4948
4974
|
addedIn: "4.0.88",
|
|
4949
|
-
cliFlag:
|
|
4950
|
-
description: () => /* @__PURE__ */
|
|
4975
|
+
cliFlag: cliFlag83,
|
|
4976
|
+
description: () => /* @__PURE__ */ jsx79(Fragment79, {
|
|
4951
4977
|
children: "Create a ZIP that you can submit to Remotion if asked for a reproduction."
|
|
4952
4978
|
}),
|
|
4953
4979
|
ssrName: "repro",
|
|
4954
4980
|
docLink: "https://www.remotion.dev/docs/options/repro",
|
|
4955
4981
|
type: false,
|
|
4956
4982
|
getValue: ({ commandLine }) => {
|
|
4957
|
-
if (commandLine[
|
|
4983
|
+
if (commandLine[cliFlag83] !== undefined && commandLine[cliFlag83] !== null) {
|
|
4958
4984
|
return {
|
|
4959
|
-
value: commandLine[
|
|
4985
|
+
value: commandLine[cliFlag83],
|
|
4960
4986
|
source: "cli"
|
|
4961
4987
|
};
|
|
4962
4988
|
}
|
|
@@ -4972,28 +4998,28 @@ var reproOption = {
|
|
|
4972
4998
|
};
|
|
4973
4999
|
},
|
|
4974
5000
|
setConfig: setRepro,
|
|
4975
|
-
id:
|
|
5001
|
+
id: cliFlag83
|
|
4976
5002
|
};
|
|
4977
5003
|
|
|
4978
5004
|
// src/options/rspack.tsx
|
|
4979
|
-
import { jsx as
|
|
5005
|
+
import { jsx as jsx80, Fragment as Fragment80 } from "react/jsx-runtime";
|
|
4980
5006
|
var rspackEnabled = false;
|
|
4981
5007
|
var configuredRspackEnabled = null;
|
|
4982
|
-
var
|
|
5008
|
+
var cliFlag84 = "rspack";
|
|
4983
5009
|
var rspackOption = {
|
|
4984
5010
|
name: "Rspack",
|
|
4985
5011
|
addedIn: "4.0.502",
|
|
4986
|
-
cliFlag:
|
|
4987
|
-
description: () => /* @__PURE__ */
|
|
5012
|
+
cliFlag: cliFlag84,
|
|
5013
|
+
description: () => /* @__PURE__ */ jsx80(Fragment80, {
|
|
4988
5014
|
children: "Uses Rspack instead of Webpack as the bundler for the Studio or bundle."
|
|
4989
5015
|
}),
|
|
4990
5016
|
ssrName: null,
|
|
4991
5017
|
docLink: "https://www.remotion.dev/docs/options/rspack",
|
|
4992
5018
|
type: false,
|
|
4993
5019
|
getValue: ({ commandLine }) => {
|
|
4994
|
-
if (commandLine[
|
|
5020
|
+
if (commandLine[cliFlag84] !== undefined && commandLine[cliFlag84] !== null) {
|
|
4995
5021
|
return {
|
|
4996
|
-
value: commandLine[
|
|
5022
|
+
value: commandLine[cliFlag84],
|
|
4997
5023
|
source: "cli"
|
|
4998
5024
|
};
|
|
4999
5025
|
}
|
|
@@ -5011,22 +5037,22 @@ var rspackOption = {
|
|
|
5011
5037
|
rspackEnabled = false;
|
|
5012
5038
|
configuredRspackEnabled = null;
|
|
5013
5039
|
},
|
|
5014
|
-
id:
|
|
5040
|
+
id: cliFlag84
|
|
5015
5041
|
};
|
|
5016
5042
|
|
|
5017
5043
|
// src/options/runs.tsx
|
|
5018
|
-
import { jsx as
|
|
5044
|
+
import { jsx as jsx81, jsxs as jsxs58, Fragment as Fragment81 } from "react/jsx-runtime";
|
|
5019
5045
|
var DEFAULT_RUNS = 3;
|
|
5020
5046
|
var currentRuns = DEFAULT_RUNS;
|
|
5021
|
-
var
|
|
5047
|
+
var cliFlag85 = "runs";
|
|
5022
5048
|
var runsOption = {
|
|
5023
5049
|
name: "Benchmark runs",
|
|
5024
5050
|
addedIn: "3.2.28",
|
|
5025
|
-
cliFlag:
|
|
5026
|
-
description: () => /* @__PURE__ */
|
|
5051
|
+
cliFlag: cliFlag85,
|
|
5052
|
+
description: () => /* @__PURE__ */ jsxs58(Fragment81, {
|
|
5027
5053
|
children: [
|
|
5028
5054
|
"Specify how many times the video should be rendered during a benchmark. Default ",
|
|
5029
|
-
/* @__PURE__ */
|
|
5055
|
+
/* @__PURE__ */ jsx81("code", {
|
|
5030
5056
|
children: DEFAULT_RUNS
|
|
5031
5057
|
}),
|
|
5032
5058
|
"."
|
|
@@ -5036,10 +5062,10 @@ var runsOption = {
|
|
|
5036
5062
|
docLink: "https://www.remotion.dev/docs/options/runs",
|
|
5037
5063
|
type: DEFAULT_RUNS,
|
|
5038
5064
|
getValue: ({ commandLine }) => {
|
|
5039
|
-
if (commandLine[
|
|
5040
|
-
const value = Number(commandLine[
|
|
5065
|
+
if (commandLine[cliFlag85] !== undefined) {
|
|
5066
|
+
const value = Number(commandLine[cliFlag85]);
|
|
5041
5067
|
if (isNaN(value) || value < 1) {
|
|
5042
|
-
throw new Error(`--runs must be a positive number, but got ${commandLine[
|
|
5068
|
+
throw new Error(`--runs must be a positive number, but got ${commandLine[cliFlag85]}`);
|
|
5043
5069
|
}
|
|
5044
5070
|
return { value, source: "cli" };
|
|
5045
5071
|
}
|
|
@@ -5054,22 +5080,22 @@ var runsOption = {
|
|
|
5054
5080
|
}
|
|
5055
5081
|
currentRuns = value;
|
|
5056
5082
|
},
|
|
5057
|
-
id:
|
|
5083
|
+
id: cliFlag85
|
|
5058
5084
|
};
|
|
5059
5085
|
|
|
5060
5086
|
// src/options/sample-rate.tsx
|
|
5061
|
-
import { jsx as
|
|
5062
|
-
var
|
|
5087
|
+
import { jsx as jsx82, jsxs as jsxs59, Fragment as Fragment82 } from "react/jsx-runtime";
|
|
5088
|
+
var cliFlag86 = "sample-rate";
|
|
5063
5089
|
var currentSampleRate = 48000;
|
|
5064
5090
|
var sampleRateOption = {
|
|
5065
5091
|
name: "Sample Rate",
|
|
5066
5092
|
addedIn: "4.0.448",
|
|
5067
|
-
cliFlag:
|
|
5068
|
-
description: () => /* @__PURE__ */
|
|
5093
|
+
cliFlag: cliFlag86,
|
|
5094
|
+
description: () => /* @__PURE__ */ jsxs59(Fragment82, {
|
|
5069
5095
|
children: [
|
|
5070
5096
|
"Controls the sample rate of the output audio. The default is",
|
|
5071
5097
|
" ",
|
|
5072
|
-
/* @__PURE__ */
|
|
5098
|
+
/* @__PURE__ */ jsx82("code", {
|
|
5073
5099
|
children: "48000"
|
|
5074
5100
|
}),
|
|
5075
5101
|
" Hz. Match this to your source audio to avoid resampling artifacts."
|
|
@@ -5079,8 +5105,8 @@ var sampleRateOption = {
|
|
|
5079
5105
|
docLink: "https://www.remotion.dev/docs/options/sample-rate",
|
|
5080
5106
|
type: 48000,
|
|
5081
5107
|
getValue: ({ commandLine }, compositionSampleRate) => {
|
|
5082
|
-
if (commandLine[
|
|
5083
|
-
return { value: commandLine[
|
|
5108
|
+
if (commandLine[cliFlag86] !== undefined) {
|
|
5109
|
+
return { value: commandLine[cliFlag86], source: "cli" };
|
|
5084
5110
|
}
|
|
5085
5111
|
if (currentSampleRate !== 48000) {
|
|
5086
5112
|
return { value: currentSampleRate, source: "config file" };
|
|
@@ -5096,13 +5122,13 @@ var sampleRateOption = {
|
|
|
5096
5122
|
setConfig: (value) => {
|
|
5097
5123
|
currentSampleRate = value;
|
|
5098
5124
|
},
|
|
5099
|
-
id:
|
|
5125
|
+
id: cliFlag86
|
|
5100
5126
|
};
|
|
5101
5127
|
|
|
5102
5128
|
// src/options/scale.tsx
|
|
5103
|
-
import { jsx as
|
|
5129
|
+
import { jsx as jsx83, jsxs as jsxs60, Fragment as Fragment83 } from "react/jsx-runtime";
|
|
5104
5130
|
var currentScale = 1;
|
|
5105
|
-
var
|
|
5131
|
+
var cliFlag87 = "scale";
|
|
5106
5132
|
var validateScale = (value) => {
|
|
5107
5133
|
if (typeof value !== "number") {
|
|
5108
5134
|
throw new Error("scale must be a number.");
|
|
@@ -5111,15 +5137,15 @@ var validateScale = (value) => {
|
|
|
5111
5137
|
var scaleOption = {
|
|
5112
5138
|
name: "Scale",
|
|
5113
5139
|
addedIn: "2.6.7",
|
|
5114
|
-
cliFlag:
|
|
5115
|
-
description: () => /* @__PURE__ */
|
|
5140
|
+
cliFlag: cliFlag87,
|
|
5141
|
+
description: () => /* @__PURE__ */ jsxs60(Fragment83, {
|
|
5116
5142
|
children: [
|
|
5117
5143
|
"Scales the output dimensions by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ",
|
|
5118
|
-
/* @__PURE__ */
|
|
5144
|
+
/* @__PURE__ */ jsx83("code", {
|
|
5119
5145
|
children: "1.5"
|
|
5120
5146
|
}),
|
|
5121
5147
|
". See ",
|
|
5122
|
-
/* @__PURE__ */
|
|
5148
|
+
/* @__PURE__ */ jsx83("a", {
|
|
5123
5149
|
href: "https://www.remotion.dev/docs/scaling",
|
|
5124
5150
|
children: "Scaling"
|
|
5125
5151
|
}),
|
|
@@ -5130,11 +5156,11 @@ var scaleOption = {
|
|
|
5130
5156
|
docLink: "https://www.remotion.dev/docs/options/scale",
|
|
5131
5157
|
type: 0,
|
|
5132
5158
|
getValue: ({ commandLine }) => {
|
|
5133
|
-
if (commandLine[
|
|
5134
|
-
validateScale(commandLine[
|
|
5159
|
+
if (commandLine[cliFlag87] !== undefined) {
|
|
5160
|
+
validateScale(commandLine[cliFlag87]);
|
|
5135
5161
|
return {
|
|
5136
5162
|
source: "cli",
|
|
5137
|
-
value: commandLine[
|
|
5163
|
+
value: commandLine[cliFlag87]
|
|
5138
5164
|
};
|
|
5139
5165
|
}
|
|
5140
5166
|
if (currentScale !== null) {
|
|
@@ -5151,28 +5177,28 @@ var scaleOption = {
|
|
|
5151
5177
|
setConfig: (scale) => {
|
|
5152
5178
|
currentScale = scale;
|
|
5153
5179
|
},
|
|
5154
|
-
id:
|
|
5180
|
+
id: cliFlag87
|
|
5155
5181
|
};
|
|
5156
5182
|
|
|
5157
5183
|
// src/options/sequence-activity-limit.tsx
|
|
5158
|
-
import { NoReactInternals as
|
|
5159
|
-
import { jsx as
|
|
5184
|
+
import { NoReactInternals as NoReactInternals8 } from "remotion/no-react";
|
|
5185
|
+
import { jsx as jsx84, jsxs as jsxs61, Fragment as Fragment84 } from "react/jsx-runtime";
|
|
5160
5186
|
var configuredLimit = null;
|
|
5161
|
-
var
|
|
5187
|
+
var cliFlag88 = "sequence-activity-limit";
|
|
5162
5188
|
var sequenceActivityLimitOption = {
|
|
5163
5189
|
name: "Sequence Activity limit",
|
|
5164
5190
|
addedIn: "4.0.536",
|
|
5165
|
-
cliFlag:
|
|
5166
|
-
id:
|
|
5167
|
-
description: () => /* @__PURE__ */
|
|
5191
|
+
cliFlag: cliFlag88,
|
|
5192
|
+
id: cliFlag88,
|
|
5193
|
+
description: () => /* @__PURE__ */ jsxs61(Fragment84, {
|
|
5168
5194
|
children: [
|
|
5169
5195
|
"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",
|
|
5170
5196
|
" ",
|
|
5171
|
-
/* @__PURE__ */
|
|
5197
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5172
5198
|
children: "Infinity"
|
|
5173
5199
|
}),
|
|
5174
5200
|
" for unlimited discovery without admission delays. Must be a non-negative safe integer or ",
|
|
5175
|
-
/* @__PURE__ */
|
|
5201
|
+
/* @__PURE__ */ jsx84("code", {
|
|
5176
5202
|
children: "Infinity"
|
|
5177
5203
|
}),
|
|
5178
5204
|
". Set to 0 to disable Sequence Activity. Finite limits prioritize nearby scenes. Does not affect rendering."
|
|
@@ -5182,15 +5208,15 @@ var sequenceActivityLimitOption = {
|
|
|
5182
5208
|
docLink: "https://www.remotion.dev/docs/options/sequence-activity-limit",
|
|
5183
5209
|
type: 0,
|
|
5184
5210
|
getValue: ({ commandLine }) => {
|
|
5185
|
-
if (commandLine[
|
|
5186
|
-
const value = commandLine[
|
|
5211
|
+
if (commandLine[cliFlag88] !== undefined) {
|
|
5212
|
+
const value = commandLine[cliFlag88] === "Infinity" ? Infinity : commandLine[cliFlag88];
|
|
5187
5213
|
if (value !== Infinity && (!Number.isSafeInteger(value) || value < 0)) {
|
|
5188
5214
|
throw new Error("Sequence Activity limit must be a non-negative safe integer or Infinity.");
|
|
5189
5215
|
}
|
|
5190
5216
|
return { value, source: "cli" };
|
|
5191
5217
|
}
|
|
5192
5218
|
return {
|
|
5193
|
-
value: configuredLimit ??
|
|
5219
|
+
value: configuredLimit ?? NoReactInternals8.DEFAULT_SEQUENCE_ACTIVITY_LIMIT,
|
|
5194
5220
|
source: "config"
|
|
5195
5221
|
};
|
|
5196
5222
|
},
|
|
@@ -5207,18 +5233,18 @@ var sequenceActivityLimitOption = {
|
|
|
5207
5233
|
};
|
|
5208
5234
|
|
|
5209
5235
|
// src/options/show-layer-frame-numbers.tsx
|
|
5210
|
-
import { jsx as
|
|
5236
|
+
import { jsx as jsx85, jsxs as jsxs62, Fragment as Fragment85 } from "react/jsx-runtime";
|
|
5211
5237
|
var configuredShowLayerFrameNumbers = null;
|
|
5212
|
-
var
|
|
5238
|
+
var cliFlag89 = "show-layer-frame-numbers";
|
|
5213
5239
|
var showLayerFrameNumbersOption = {
|
|
5214
5240
|
name: "Show frame numbers of layer",
|
|
5215
5241
|
addedIn: "4.0.535",
|
|
5216
|
-
cliFlag:
|
|
5217
|
-
id:
|
|
5218
|
-
description: () => /* @__PURE__ */
|
|
5242
|
+
cliFlag: cliFlag89,
|
|
5243
|
+
id: cliFlag89,
|
|
5244
|
+
description: () => /* @__PURE__ */ jsxs62(Fragment85, {
|
|
5219
5245
|
children: [
|
|
5220
5246
|
"Show the current frame number inside sequence layers in the Studio timeline. Defaults to ",
|
|
5221
|
-
/* @__PURE__ */
|
|
5247
|
+
/* @__PURE__ */ jsx85("code", {
|
|
5222
5248
|
children: "false"
|
|
5223
5249
|
}),
|
|
5224
5250
|
"."
|
|
@@ -5228,8 +5254,8 @@ var showLayerFrameNumbersOption = {
|
|
|
5228
5254
|
docLink: "https://www.remotion.dev/docs/options/show-layer-frame-numbers",
|
|
5229
5255
|
type: false,
|
|
5230
5256
|
getValue: ({ commandLine }) => {
|
|
5231
|
-
if (commandLine[
|
|
5232
|
-
return { value: commandLine[
|
|
5257
|
+
if (commandLine[cliFlag89] !== undefined && commandLine[cliFlag89] !== null) {
|
|
5258
|
+
return { value: commandLine[cliFlag89], source: "cli" };
|
|
5233
5259
|
}
|
|
5234
5260
|
return { value: configuredShowLayerFrameNumbers ?? false, source: "config" };
|
|
5235
5261
|
},
|
|
@@ -5246,19 +5272,19 @@ var showLayerFrameNumbersOption = {
|
|
|
5246
5272
|
};
|
|
5247
5273
|
|
|
5248
5274
|
// src/options/show-premounting.tsx
|
|
5249
|
-
import { jsx as
|
|
5275
|
+
import { jsx as jsx86, jsxs as jsxs63, Fragment as Fragment86 } from "react/jsx-runtime";
|
|
5250
5276
|
var configuredShowPremounting = null;
|
|
5251
|
-
var
|
|
5277
|
+
var cliFlag90 = "show-premounting";
|
|
5252
5278
|
var showPremountingOption = {
|
|
5253
5279
|
name: "Show premounting in the Studio timeline",
|
|
5254
5280
|
addedIn: "4.0.535",
|
|
5255
|
-
cliFlag:
|
|
5256
|
-
id:
|
|
5257
|
-
description: () => /* @__PURE__ */
|
|
5281
|
+
cliFlag: cliFlag90,
|
|
5282
|
+
id: cliFlag90,
|
|
5283
|
+
description: () => /* @__PURE__ */ jsxs63(Fragment86, {
|
|
5258
5284
|
children: [
|
|
5259
5285
|
"Show premounting indicators in the Studio timeline. Defaults to",
|
|
5260
5286
|
" ",
|
|
5261
|
-
/* @__PURE__ */
|
|
5287
|
+
/* @__PURE__ */ jsx86("code", {
|
|
5262
5288
|
children: "false"
|
|
5263
5289
|
}),
|
|
5264
5290
|
"."
|
|
@@ -5268,8 +5294,8 @@ var showPremountingOption = {
|
|
|
5268
5294
|
docLink: "https://www.remotion.dev/docs/options/show-premounting",
|
|
5269
5295
|
type: true,
|
|
5270
5296
|
getValue: ({ commandLine }) => {
|
|
5271
|
-
if (commandLine[
|
|
5272
|
-
return { value: commandLine[
|
|
5297
|
+
if (commandLine[cliFlag90] !== undefined && commandLine[cliFlag90] !== null) {
|
|
5298
|
+
return { value: commandLine[cliFlag90], source: "cli" };
|
|
5273
5299
|
}
|
|
5274
5300
|
return { value: configuredShowPremounting ?? false, source: "config" };
|
|
5275
5301
|
},
|
|
@@ -5286,19 +5312,19 @@ var showPremountingOption = {
|
|
|
5286
5312
|
};
|
|
5287
5313
|
|
|
5288
5314
|
// src/options/skip-skills.tsx
|
|
5289
|
-
import { jsx as
|
|
5290
|
-
var
|
|
5315
|
+
import { jsx as jsx87, Fragment as Fragment87 } from "react/jsx-runtime";
|
|
5316
|
+
var cliFlag91 = "skip-skills";
|
|
5291
5317
|
var skipSkillsOption = {
|
|
5292
5318
|
name: "Skip Skills",
|
|
5293
5319
|
addedIn: "4.0.503",
|
|
5294
|
-
cliFlag:
|
|
5295
|
-
description: () => /* @__PURE__ */
|
|
5320
|
+
cliFlag: cliFlag91,
|
|
5321
|
+
description: () => /* @__PURE__ */ jsx87(Fragment87, {
|
|
5296
5322
|
children: "Do not update installed Remotion Agent Skills while upgrading Remotion."
|
|
5297
5323
|
}),
|
|
5298
5324
|
ssrName: null,
|
|
5299
5325
|
docLink: "https://www.remotion.dev/docs/options/skip-skills",
|
|
5300
5326
|
getValue: ({ commandLine }) => {
|
|
5301
|
-
if (commandLine[
|
|
5327
|
+
if (commandLine[cliFlag91]) {
|
|
5302
5328
|
return {
|
|
5303
5329
|
source: "cli",
|
|
5304
5330
|
value: true
|
|
@@ -5313,16 +5339,16 @@ var skipSkillsOption = {
|
|
|
5313
5339
|
throw new Error("Cannot skip updating skills via config file");
|
|
5314
5340
|
},
|
|
5315
5341
|
type: false,
|
|
5316
|
-
id:
|
|
5342
|
+
id: cliFlag91
|
|
5317
5343
|
};
|
|
5318
5344
|
|
|
5319
5345
|
// src/options/still-frame.tsx
|
|
5320
|
-
import { NoReactInternals as
|
|
5321
|
-
import { jsx as
|
|
5322
|
-
var
|
|
5346
|
+
import { NoReactInternals as NoReactInternals9 } from "remotion/no-react";
|
|
5347
|
+
import { jsx as jsx88, jsxs as jsxs64, Fragment as Fragment88 } from "react/jsx-runtime";
|
|
5348
|
+
var cliFlag92 = "frame";
|
|
5323
5349
|
var currentFrame = null;
|
|
5324
5350
|
var validate3 = (frame) => {
|
|
5325
|
-
|
|
5351
|
+
NoReactInternals9.validateFrame({
|
|
5326
5352
|
frame,
|
|
5327
5353
|
durationInFrames: Infinity,
|
|
5328
5354
|
allowFloats: false
|
|
@@ -5331,17 +5357,17 @@ var validate3 = (frame) => {
|
|
|
5331
5357
|
var stillFrameOption = {
|
|
5332
5358
|
name: "Frame",
|
|
5333
5359
|
addedIn: "2.3.0",
|
|
5334
|
-
cliFlag:
|
|
5335
|
-
description: () => /* @__PURE__ */
|
|
5360
|
+
cliFlag: cliFlag92,
|
|
5361
|
+
description: () => /* @__PURE__ */ jsxs64(Fragment88, {
|
|
5336
5362
|
children: [
|
|
5337
5363
|
"Which frame should be rendered when rendering a still. Default",
|
|
5338
5364
|
" ",
|
|
5339
|
-
/* @__PURE__ */
|
|
5365
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5340
5366
|
children: "0"
|
|
5341
5367
|
}),
|
|
5342
5368
|
". From v3.2.27, negative values are allowed, with",
|
|
5343
5369
|
" ",
|
|
5344
|
-
/* @__PURE__ */
|
|
5370
|
+
/* @__PURE__ */ jsx88("code", {
|
|
5345
5371
|
children: "-1"
|
|
5346
5372
|
}),
|
|
5347
5373
|
" being the last frame."
|
|
@@ -5350,8 +5376,8 @@ var stillFrameOption = {
|
|
|
5350
5376
|
ssrName: "frame",
|
|
5351
5377
|
docLink: "https://www.remotion.dev/docs/options/frame",
|
|
5352
5378
|
getValue: ({ commandLine }) => {
|
|
5353
|
-
if (commandLine[
|
|
5354
|
-
const frame = Number(commandLine[
|
|
5379
|
+
if (commandLine[cliFlag92] !== undefined) {
|
|
5380
|
+
const frame = Number(commandLine[cliFlag92]);
|
|
5355
5381
|
validate3(frame);
|
|
5356
5382
|
return {
|
|
5357
5383
|
source: "cli",
|
|
@@ -5376,25 +5402,25 @@ var stillFrameOption = {
|
|
|
5376
5402
|
currentFrame = value;
|
|
5377
5403
|
},
|
|
5378
5404
|
type: 0,
|
|
5379
|
-
id:
|
|
5405
|
+
id: cliFlag92
|
|
5380
5406
|
};
|
|
5381
5407
|
|
|
5382
5408
|
// src/options/still-image-format.tsx
|
|
5383
|
-
import { jsx as
|
|
5409
|
+
import { jsx as jsx89, jsxs as jsxs65, Fragment as Fragment89 } from "react/jsx-runtime";
|
|
5384
5410
|
var currentStillImageFormat = null;
|
|
5385
|
-
var
|
|
5411
|
+
var cliFlag93 = "image-format";
|
|
5386
5412
|
var stillImageFormatOption = {
|
|
5387
5413
|
name: "Still Image Format",
|
|
5388
5414
|
addedIn: "2.3.0",
|
|
5389
|
-
cliFlag:
|
|
5390
|
-
description: () => /* @__PURE__ */
|
|
5415
|
+
cliFlag: cliFlag93,
|
|
5416
|
+
description: () => /* @__PURE__ */ jsxs65(Fragment89, {
|
|
5391
5417
|
children: [
|
|
5392
5418
|
"The image format to use when rendering a still. Must be one of",
|
|
5393
5419
|
" ",
|
|
5394
5420
|
validStillImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5395
5421
|
". Default:",
|
|
5396
5422
|
" ",
|
|
5397
|
-
/* @__PURE__ */
|
|
5423
|
+
/* @__PURE__ */ jsx89("code", {
|
|
5398
5424
|
children: '"png"'
|
|
5399
5425
|
}),
|
|
5400
5426
|
"."
|
|
@@ -5404,8 +5430,8 @@ var stillImageFormatOption = {
|
|
|
5404
5430
|
docLink: "https://www.remotion.dev/docs/options/still-image-format",
|
|
5405
5431
|
type: null,
|
|
5406
5432
|
getValue: ({ commandLine }) => {
|
|
5407
|
-
if (commandLine[
|
|
5408
|
-
const value = commandLine[
|
|
5433
|
+
if (commandLine[cliFlag93] !== undefined) {
|
|
5434
|
+
const value = commandLine[cliFlag93];
|
|
5409
5435
|
if (!validStillImageFormats.includes(value)) {
|
|
5410
5436
|
throw new Error(`Invalid still image format: ${value}. Must be one of: ${validStillImageFormats.join(", ")}`);
|
|
5411
5437
|
}
|
|
@@ -5443,16 +5469,16 @@ var stillImageFormatOption = {
|
|
|
5443
5469
|
|
|
5444
5470
|
// src/options/throw-if-site-exists.tsx
|
|
5445
5471
|
var DEFAULT5 = false;
|
|
5446
|
-
var
|
|
5472
|
+
var cliFlag94 = "throw-if-site-exists";
|
|
5447
5473
|
var throwIfSiteExistsOption = {
|
|
5448
|
-
cliFlag:
|
|
5474
|
+
cliFlag: cliFlag94,
|
|
5449
5475
|
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.`,
|
|
5450
5476
|
docLink: "https://www.remotion.dev/docs/options/throw-if-site-exists",
|
|
5451
5477
|
getValue: ({ commandLine }) => {
|
|
5452
|
-
if (commandLine[
|
|
5478
|
+
if (commandLine[cliFlag94]) {
|
|
5453
5479
|
return {
|
|
5454
5480
|
source: "cli",
|
|
5455
|
-
value: commandLine[
|
|
5481
|
+
value: commandLine[cliFlag94]
|
|
5456
5482
|
};
|
|
5457
5483
|
}
|
|
5458
5484
|
return {
|
|
@@ -5467,42 +5493,42 @@ var throwIfSiteExistsOption = {
|
|
|
5467
5493
|
},
|
|
5468
5494
|
ssrName: "throwIfSiteExists",
|
|
5469
5495
|
type: false,
|
|
5470
|
-
id:
|
|
5496
|
+
id: cliFlag94
|
|
5471
5497
|
};
|
|
5472
5498
|
|
|
5473
5499
|
// src/options/timeout.tsx
|
|
5474
|
-
import { jsx as
|
|
5500
|
+
import { jsx as jsx90, jsxs as jsxs66, Fragment as Fragment90 } from "react/jsx-runtime";
|
|
5475
5501
|
var currentTimeout = DEFAULT_TIMEOUT;
|
|
5476
5502
|
var validate4 = (value) => {
|
|
5477
5503
|
if (typeof value !== "number") {
|
|
5478
5504
|
throw new Error("--timeout flag / setDelayRenderTimeoutInMilliseconds() must be a number, but got " + JSON.stringify(value));
|
|
5479
5505
|
}
|
|
5480
5506
|
};
|
|
5481
|
-
var
|
|
5507
|
+
var cliFlag95 = "timeout";
|
|
5482
5508
|
var delayRenderTimeoutInMillisecondsOption = {
|
|
5483
5509
|
name: "delayRender() timeout",
|
|
5484
5510
|
addedIn: "2.6.3",
|
|
5485
|
-
cliFlag:
|
|
5486
|
-
description: () => /* @__PURE__ */
|
|
5511
|
+
cliFlag: cliFlag95,
|
|
5512
|
+
description: () => /* @__PURE__ */ jsxs66(Fragment90, {
|
|
5487
5513
|
children: [
|
|
5488
5514
|
"A number describing how long the render may take to resolve all",
|
|
5489
5515
|
" ",
|
|
5490
|
-
/* @__PURE__ */
|
|
5516
|
+
/* @__PURE__ */ jsx90("a", {
|
|
5491
5517
|
href: "https://remotion.dev/docs/delay-render",
|
|
5492
|
-
children: /* @__PURE__ */
|
|
5518
|
+
children: /* @__PURE__ */ jsx90("code", {
|
|
5493
5519
|
children: "delayRender()"
|
|
5494
5520
|
})
|
|
5495
5521
|
}),
|
|
5496
5522
|
" ",
|
|
5497
5523
|
"calls",
|
|
5498
5524
|
" ",
|
|
5499
|
-
/* @__PURE__ */
|
|
5525
|
+
/* @__PURE__ */ jsx90("a", {
|
|
5500
5526
|
style: { fontSize: "inherit" },
|
|
5501
5527
|
href: "https://remotion.dev/docs/timeout",
|
|
5502
5528
|
children: "before it times out"
|
|
5503
5529
|
}),
|
|
5504
5530
|
". Default: ",
|
|
5505
|
-
/* @__PURE__ */
|
|
5531
|
+
/* @__PURE__ */ jsx90("code", {
|
|
5506
5532
|
children: "30000"
|
|
5507
5533
|
})
|
|
5508
5534
|
]
|
|
@@ -5511,10 +5537,10 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
5511
5537
|
docLink: "https://www.remotion.dev/docs/options/timeout",
|
|
5512
5538
|
type: 0,
|
|
5513
5539
|
getValue: ({ commandLine }) => {
|
|
5514
|
-
if (commandLine[
|
|
5540
|
+
if (commandLine[cliFlag95] !== undefined) {
|
|
5515
5541
|
return {
|
|
5516
5542
|
source: "cli",
|
|
5517
|
-
value: commandLine[
|
|
5543
|
+
value: commandLine[cliFlag95]
|
|
5518
5544
|
};
|
|
5519
5545
|
}
|
|
5520
5546
|
if (currentTimeout !== null) {
|
|
@@ -5533,28 +5559,28 @@ var delayRenderTimeoutInMillisecondsOption = {
|
|
|
5533
5559
|
validate4(value);
|
|
5534
5560
|
currentTimeout = value;
|
|
5535
5561
|
},
|
|
5536
|
-
id:
|
|
5562
|
+
id: cliFlag95
|
|
5537
5563
|
};
|
|
5538
5564
|
|
|
5539
5565
|
// src/options/user-agent.tsx
|
|
5540
|
-
import { jsx as
|
|
5566
|
+
import { jsx as jsx91, Fragment as Fragment91 } from "react/jsx-runtime";
|
|
5541
5567
|
var userAgent = null;
|
|
5542
|
-
var
|
|
5568
|
+
var cliFlag96 = "user-agent";
|
|
5543
5569
|
var userAgentOption = {
|
|
5544
5570
|
name: "User agent",
|
|
5545
5571
|
addedIn: "3.3.83",
|
|
5546
|
-
cliFlag:
|
|
5547
|
-
description: () => /* @__PURE__ */
|
|
5572
|
+
cliFlag: cliFlag96,
|
|
5573
|
+
description: () => /* @__PURE__ */ jsx91(Fragment91, {
|
|
5548
5574
|
children: "Lets you set a custom user agent that the headless Chrome browser assumes."
|
|
5549
5575
|
}),
|
|
5550
5576
|
ssrName: "userAgent",
|
|
5551
5577
|
docLink: "https://www.remotion.dev/docs/options/user-agent",
|
|
5552
5578
|
type: null,
|
|
5553
5579
|
getValue: ({ commandLine }) => {
|
|
5554
|
-
if (commandLine[
|
|
5580
|
+
if (commandLine[cliFlag96] !== undefined) {
|
|
5555
5581
|
return {
|
|
5556
5582
|
source: "cli",
|
|
5557
|
-
value: commandLine[
|
|
5583
|
+
value: commandLine[cliFlag96]
|
|
5558
5584
|
};
|
|
5559
5585
|
}
|
|
5560
5586
|
if (userAgent !== null) {
|
|
@@ -5571,26 +5597,26 @@ var userAgentOption = {
|
|
|
5571
5597
|
setConfig: (value) => {
|
|
5572
5598
|
userAgent = value;
|
|
5573
5599
|
},
|
|
5574
|
-
id:
|
|
5600
|
+
id: cliFlag96
|
|
5575
5601
|
};
|
|
5576
5602
|
|
|
5577
5603
|
// src/options/version-flag.tsx
|
|
5578
|
-
import { jsx as
|
|
5579
|
-
var
|
|
5604
|
+
import { jsx as jsx92, Fragment as Fragment92 } from "react/jsx-runtime";
|
|
5605
|
+
var cliFlag97 = "version";
|
|
5580
5606
|
var versionFlagOption = {
|
|
5581
5607
|
name: "Version",
|
|
5582
5608
|
addedIn: "4.0.15",
|
|
5583
|
-
cliFlag:
|
|
5584
|
-
description: () => /* @__PURE__ */
|
|
5609
|
+
cliFlag: cliFlag97,
|
|
5610
|
+
description: () => /* @__PURE__ */ jsx92(Fragment92, {
|
|
5585
5611
|
children: "Install a specific version. Also enables downgrading to an older version."
|
|
5586
5612
|
}),
|
|
5587
5613
|
ssrName: null,
|
|
5588
5614
|
docLink: "https://www.remotion.dev/docs/options/version",
|
|
5589
5615
|
getValue: ({ commandLine }) => {
|
|
5590
|
-
if (commandLine[
|
|
5616
|
+
if (commandLine[cliFlag97] !== undefined) {
|
|
5591
5617
|
return {
|
|
5592
5618
|
source: "cli",
|
|
5593
|
-
value: String(commandLine[
|
|
5619
|
+
value: String(commandLine[cliFlag97])
|
|
5594
5620
|
};
|
|
5595
5621
|
}
|
|
5596
5622
|
return {
|
|
@@ -5602,31 +5628,31 @@ var versionFlagOption = {
|
|
|
5602
5628
|
throw new Error("Cannot set version via config file");
|
|
5603
5629
|
},
|
|
5604
5630
|
type: "",
|
|
5605
|
-
id:
|
|
5631
|
+
id: cliFlag97
|
|
5606
5632
|
};
|
|
5607
5633
|
|
|
5608
5634
|
// src/options/video-bitrate.tsx
|
|
5609
|
-
import { jsx as
|
|
5635
|
+
import { jsx as jsx93, jsxs as jsxs67, Fragment as Fragment93 } from "react/jsx-runtime";
|
|
5610
5636
|
var videoBitrate = null;
|
|
5611
|
-
var
|
|
5637
|
+
var cliFlag98 = "video-bitrate";
|
|
5612
5638
|
var videoBitrateOption = {
|
|
5613
5639
|
name: "Video Bitrate",
|
|
5614
5640
|
addedIn: "3.2.32",
|
|
5615
|
-
cliFlag:
|
|
5616
|
-
description: () => /* @__PURE__ */
|
|
5641
|
+
cliFlag: cliFlag98,
|
|
5642
|
+
description: () => /* @__PURE__ */ jsxs67(Fragment93, {
|
|
5617
5643
|
children: [
|
|
5618
5644
|
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
|
|
5619
5645
|
"'",
|
|
5620
5646
|
"s",
|
|
5621
|
-
/* @__PURE__ */
|
|
5647
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5622
5648
|
children: "-b:v"
|
|
5623
5649
|
}),
|
|
5624
5650
|
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact video bitrate specified. Example values: ",
|
|
5625
|
-
/* @__PURE__ */
|
|
5651
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5626
5652
|
children: "512K"
|
|
5627
5653
|
}),
|
|
5628
5654
|
" for 512 kbps, ",
|
|
5629
|
-
/* @__PURE__ */
|
|
5655
|
+
/* @__PURE__ */ jsx93("code", {
|
|
5630
5656
|
children: "1M"
|
|
5631
5657
|
}),
|
|
5632
5658
|
" for 1 Mbps."
|
|
@@ -5636,10 +5662,10 @@ var videoBitrateOption = {
|
|
|
5636
5662
|
docLink: "https://www.remotion.dev/docs/options/video-bitrate",
|
|
5637
5663
|
type: "",
|
|
5638
5664
|
getValue: ({ commandLine }) => {
|
|
5639
|
-
if (commandLine[
|
|
5665
|
+
if (commandLine[cliFlag98] !== undefined) {
|
|
5640
5666
|
return {
|
|
5641
5667
|
source: "cli",
|
|
5642
|
-
value: commandLine[
|
|
5668
|
+
value: commandLine[cliFlag98]
|
|
5643
5669
|
};
|
|
5644
5670
|
}
|
|
5645
5671
|
if (videoBitrate !== null) {
|
|
@@ -5656,35 +5682,35 @@ var videoBitrateOption = {
|
|
|
5656
5682
|
setConfig: (bitrate) => {
|
|
5657
5683
|
videoBitrate = bitrate;
|
|
5658
5684
|
},
|
|
5659
|
-
id:
|
|
5685
|
+
id: cliFlag98
|
|
5660
5686
|
};
|
|
5661
5687
|
|
|
5662
5688
|
// src/options/video-cache-size.tsx
|
|
5663
|
-
import { jsx as
|
|
5689
|
+
import { jsx as jsx94, jsxs as jsxs68, Fragment as Fragment94 } from "react/jsx-runtime";
|
|
5664
5690
|
var mediaCacheSizeInBytes = null;
|
|
5665
|
-
var
|
|
5691
|
+
var cliFlag99 = "media-cache-size-in-bytes";
|
|
5666
5692
|
var mediaCacheSizeInBytesOption = {
|
|
5667
5693
|
name: "@remotion/media cache size",
|
|
5668
5694
|
addedIn: "4.0.352",
|
|
5669
|
-
cliFlag:
|
|
5670
|
-
description: () => /* @__PURE__ */
|
|
5695
|
+
cliFlag: cliFlag99,
|
|
5696
|
+
description: () => /* @__PURE__ */ jsxs68(Fragment94, {
|
|
5671
5697
|
children: [
|
|
5672
5698
|
"Specify the memory budget for decoded media cached by",
|
|
5673
5699
|
" ",
|
|
5674
|
-
/* @__PURE__ */
|
|
5700
|
+
/* @__PURE__ */ jsx94("code", {
|
|
5675
5701
|
children: "<Video>"
|
|
5676
5702
|
}),
|
|
5677
5703
|
" and ",
|
|
5678
|
-
/* @__PURE__ */
|
|
5704
|
+
/* @__PURE__ */ jsx94("code", {
|
|
5679
5705
|
children: "<Audio>"
|
|
5680
5706
|
}),
|
|
5681
5707
|
" from",
|
|
5682
5708
|
" ",
|
|
5683
|
-
/* @__PURE__ */
|
|
5709
|
+
/* @__PURE__ */ jsx94("code", {
|
|
5684
5710
|
children: "@remotion/media"
|
|
5685
5711
|
}),
|
|
5686
5712
|
", 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. ",
|
|
5687
|
-
/* @__PURE__ */
|
|
5713
|
+
/* @__PURE__ */ jsx94("br", {}),
|
|
5688
5714
|
"The default is half of the available system memory when the render starts."
|
|
5689
5715
|
]
|
|
5690
5716
|
}),
|
|
@@ -5692,10 +5718,10 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5692
5718
|
docLink: "https://www.remotion.dev/docs/options/media-cache-size-in-bytes",
|
|
5693
5719
|
type: 0,
|
|
5694
5720
|
getValue: ({ commandLine }) => {
|
|
5695
|
-
if (commandLine[
|
|
5721
|
+
if (commandLine[cliFlag99] !== undefined) {
|
|
5696
5722
|
return {
|
|
5697
5723
|
source: "cli",
|
|
5698
|
-
value: commandLine[
|
|
5724
|
+
value: commandLine[cliFlag99]
|
|
5699
5725
|
};
|
|
5700
5726
|
}
|
|
5701
5727
|
if (mediaCacheSizeInBytes !== null) {
|
|
@@ -5712,11 +5738,11 @@ var mediaCacheSizeInBytesOption = {
|
|
|
5712
5738
|
setConfig: (size) => {
|
|
5713
5739
|
mediaCacheSizeInBytes = size ?? null;
|
|
5714
5740
|
},
|
|
5715
|
-
id:
|
|
5741
|
+
id: cliFlag99
|
|
5716
5742
|
};
|
|
5717
5743
|
|
|
5718
5744
|
// src/options/video-codec.tsx
|
|
5719
|
-
import { jsx as
|
|
5745
|
+
import { jsx as jsx95, Fragment as Fragment95 } from "react/jsx-runtime";
|
|
5720
5746
|
var codec;
|
|
5721
5747
|
var setCodec = (newCodec) => {
|
|
5722
5748
|
if (newCodec === undefined) {
|
|
@@ -5741,12 +5767,12 @@ var deriveCodecsFromFilename = (extension) => {
|
|
|
5741
5767
|
possible: makeFileExtensionMap()[normalizedExtension] ?? []
|
|
5742
5768
|
};
|
|
5743
5769
|
};
|
|
5744
|
-
var
|
|
5770
|
+
var cliFlag100 = "codec";
|
|
5745
5771
|
var videoCodecOption = {
|
|
5746
5772
|
name: "Codec",
|
|
5747
5773
|
addedIn: "1.4.0",
|
|
5748
|
-
cliFlag:
|
|
5749
|
-
description: () => /* @__PURE__ */
|
|
5774
|
+
cliFlag: cliFlag100,
|
|
5775
|
+
description: () => /* @__PURE__ */ jsx95(Fragment95, {
|
|
5750
5776
|
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."
|
|
5751
5777
|
}),
|
|
5752
5778
|
ssrName: "codec",
|
|
@@ -5769,7 +5795,7 @@ var videoCodecOption = {
|
|
|
5769
5795
|
if (derivedDownloadCodecs.possible.length > 0 && derivedOutNameCodecs.possible.length > 0 && derivedDownloadCodecs.possible.join("") !== derivedOutNameCodecs.possible.join("")) {
|
|
5770
5796
|
throw new TypeError(`The download name is ${downloadName} but the output name is ${outName}. The file extensions must match`);
|
|
5771
5797
|
}
|
|
5772
|
-
const cliArgument = commandLine[
|
|
5798
|
+
const cliArgument = commandLine[cliFlag100];
|
|
5773
5799
|
if (cliArgument) {
|
|
5774
5800
|
if (derivedDownloadCodecs.possible.length > 0 && derivedDownloadCodecs.possible.indexOf(cliArgument) === -1) {
|
|
5775
5801
|
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.`);
|
|
@@ -5818,31 +5844,31 @@ var videoCodecOption = {
|
|
|
5818
5844
|
reset: () => {
|
|
5819
5845
|
codec = undefined;
|
|
5820
5846
|
},
|
|
5821
|
-
id:
|
|
5847
|
+
id: cliFlag100
|
|
5822
5848
|
};
|
|
5823
5849
|
|
|
5824
5850
|
// src/options/video-image-format.tsx
|
|
5825
|
-
import { jsx as
|
|
5851
|
+
import { jsx as jsx96, jsxs as jsxs69, Fragment as Fragment96 } from "react/jsx-runtime";
|
|
5826
5852
|
var currentVideoImageFormat = null;
|
|
5827
|
-
var
|
|
5853
|
+
var cliFlag101 = "image-format";
|
|
5828
5854
|
var videoImageFormatOption = {
|
|
5829
5855
|
name: "Video Image Format",
|
|
5830
5856
|
addedIn: "1.4.0",
|
|
5831
|
-
cliFlag:
|
|
5832
|
-
description: () => /* @__PURE__ */
|
|
5857
|
+
cliFlag: cliFlag101,
|
|
5858
|
+
description: () => /* @__PURE__ */ jsxs69(Fragment96, {
|
|
5833
5859
|
children: [
|
|
5834
5860
|
"The image format to use when rendering frames for a video. Must be one of",
|
|
5835
5861
|
" ",
|
|
5836
5862
|
validVideoImageFormats.map((f) => `"${f}"`).join(", "),
|
|
5837
5863
|
". Default:",
|
|
5838
5864
|
" ",
|
|
5839
|
-
/* @__PURE__ */
|
|
5865
|
+
/* @__PURE__ */ jsx96("code", {
|
|
5840
5866
|
children: '"jpeg"'
|
|
5841
5867
|
}),
|
|
5842
5868
|
". JPEG is faster, but does not support transparency.",
|
|
5843
|
-
/* @__PURE__ */
|
|
5869
|
+
/* @__PURE__ */ jsx96("br", {}),
|
|
5844
5870
|
"When ",
|
|
5845
|
-
/* @__PURE__ */
|
|
5871
|
+
/* @__PURE__ */ jsx96("a", {
|
|
5846
5872
|
href: "/docs/shared-memory-capture",
|
|
5847
5873
|
children: "shared-memory capture"
|
|
5848
5874
|
}),
|
|
@@ -5859,8 +5885,8 @@ var videoImageFormatOption = {
|
|
|
5859
5885
|
value: options.uiVideoImageFormat
|
|
5860
5886
|
};
|
|
5861
5887
|
}
|
|
5862
|
-
if (commandLine[
|
|
5863
|
-
const value = commandLine[
|
|
5888
|
+
if (commandLine[cliFlag101] !== undefined) {
|
|
5889
|
+
const value = commandLine[cliFlag101];
|
|
5864
5890
|
if (!validVideoImageFormats.includes(value)) {
|
|
5865
5891
|
throw new Error(`Invalid video image format: ${value}. Must be one of: ${validVideoImageFormats.join(", ")}`);
|
|
5866
5892
|
}
|
|
@@ -5924,13 +5950,13 @@ var videoImageFormatOption = {
|
|
|
5924
5950
|
};
|
|
5925
5951
|
|
|
5926
5952
|
// src/options/webhook-custom-data.tsx
|
|
5927
|
-
import { jsxs as
|
|
5928
|
-
var
|
|
5953
|
+
import { jsxs as jsxs70, Fragment as Fragment97 } from "react/jsx-runtime";
|
|
5954
|
+
var cliFlag102 = "webhook-custom-data";
|
|
5929
5955
|
var webhookCustomDataOption = {
|
|
5930
5956
|
name: "Webhook custom data",
|
|
5931
5957
|
addedIn: "4.0.25",
|
|
5932
|
-
cliFlag:
|
|
5933
|
-
description: (type) => /* @__PURE__ */
|
|
5958
|
+
cliFlag: cliFlag102,
|
|
5959
|
+
description: (type) => /* @__PURE__ */ jsxs70(Fragment97, {
|
|
5934
5960
|
children: [
|
|
5935
5961
|
"Pass up to 1,024 bytes of a JSON-serializable object to the webhook. This data will be included in the webhook payload.",
|
|
5936
5962
|
" ",
|
|
@@ -5946,25 +5972,25 @@ var webhookCustomDataOption = {
|
|
|
5946
5972
|
setConfig: () => {
|
|
5947
5973
|
throw new Error("Not implemented");
|
|
5948
5974
|
},
|
|
5949
|
-
id:
|
|
5975
|
+
id: cliFlag102
|
|
5950
5976
|
};
|
|
5951
5977
|
|
|
5952
5978
|
// src/options/webpack-poll.tsx
|
|
5953
|
-
import { jsx as
|
|
5954
|
-
var
|
|
5979
|
+
import { jsx as jsx97, Fragment as Fragment98 } from "react/jsx-runtime";
|
|
5980
|
+
var cliFlag103 = "webpack-poll";
|
|
5955
5981
|
var webpackPolling = null;
|
|
5956
5982
|
var webpackPollOption = {
|
|
5957
5983
|
name: "Webpack Polling",
|
|
5958
5984
|
addedIn: "3.3.11",
|
|
5959
|
-
cliFlag:
|
|
5960
|
-
description: () => /* @__PURE__ */
|
|
5985
|
+
cliFlag: cliFlag103,
|
|
5986
|
+
description: () => /* @__PURE__ */ jsx97(Fragment98, {
|
|
5961
5987
|
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."
|
|
5962
5988
|
}),
|
|
5963
5989
|
ssrName: null,
|
|
5964
5990
|
docLink: "https://www.remotion.dev/docs/options/webpack-poll",
|
|
5965
5991
|
getValue: ({ commandLine }) => {
|
|
5966
|
-
if (commandLine[
|
|
5967
|
-
const val = commandLine[
|
|
5992
|
+
if (commandLine[cliFlag103] !== undefined) {
|
|
5993
|
+
const val = commandLine[cliFlag103];
|
|
5968
5994
|
if (typeof val !== "number") {
|
|
5969
5995
|
throw new TypeError(`Webpack polling must be a number, got ${JSON.stringify(val)}`);
|
|
5970
5996
|
}
|
|
@@ -5991,11 +6017,11 @@ var webpackPollOption = {
|
|
|
5991
6017
|
webpackPolling = value;
|
|
5992
6018
|
},
|
|
5993
6019
|
type: 0,
|
|
5994
|
-
id:
|
|
6020
|
+
id: cliFlag103
|
|
5995
6021
|
};
|
|
5996
6022
|
|
|
5997
6023
|
// src/options/x264-preset.tsx
|
|
5998
|
-
import { jsx as
|
|
6024
|
+
import { jsx as jsx98, jsxs as jsxs71, Fragment as Fragment99 } from "react/jsx-runtime";
|
|
5999
6025
|
var x264PresetOptions = [
|
|
6000
6026
|
"ultrafast",
|
|
6001
6027
|
"superfast",
|
|
@@ -6009,64 +6035,64 @@ var x264PresetOptions = [
|
|
|
6009
6035
|
"placebo"
|
|
6010
6036
|
];
|
|
6011
6037
|
var preset = null;
|
|
6012
|
-
var
|
|
6038
|
+
var cliFlag104 = "x264-preset";
|
|
6013
6039
|
var DEFAULT_PRESET = "medium";
|
|
6014
6040
|
var x264Option = {
|
|
6015
6041
|
name: "x264 Preset",
|
|
6016
6042
|
addedIn: "4.0.22",
|
|
6017
|
-
cliFlag:
|
|
6018
|
-
description: () => /* @__PURE__ */
|
|
6043
|
+
cliFlag: cliFlag104,
|
|
6044
|
+
description: () => /* @__PURE__ */ jsxs71(Fragment99, {
|
|
6019
6045
|
children: [
|
|
6020
6046
|
"Sets a x264 preset profile. Only applies to videos rendered with",
|
|
6021
6047
|
" ",
|
|
6022
|
-
/* @__PURE__ */
|
|
6048
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6023
6049
|
children: "h264"
|
|
6024
6050
|
}),
|
|
6025
6051
|
" codec.",
|
|
6026
|
-
/* @__PURE__ */
|
|
6052
|
+
/* @__PURE__ */ jsx98("br", {}),
|
|
6027
6053
|
"Possible values: ",
|
|
6028
|
-
/* @__PURE__ */
|
|
6054
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6029
6055
|
children: "superfast"
|
|
6030
6056
|
}),
|
|
6031
6057
|
", ",
|
|
6032
|
-
/* @__PURE__ */
|
|
6058
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6033
6059
|
children: "veryfast"
|
|
6034
6060
|
}),
|
|
6035
6061
|
",",
|
|
6036
6062
|
" ",
|
|
6037
|
-
/* @__PURE__ */
|
|
6063
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6038
6064
|
children: "faster"
|
|
6039
6065
|
}),
|
|
6040
6066
|
", ",
|
|
6041
|
-
/* @__PURE__ */
|
|
6067
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6042
6068
|
children: "fast"
|
|
6043
6069
|
}),
|
|
6044
6070
|
", ",
|
|
6045
|
-
/* @__PURE__ */
|
|
6071
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6046
6072
|
children: "medium"
|
|
6047
6073
|
}),
|
|
6048
6074
|
",",
|
|
6049
6075
|
" ",
|
|
6050
|
-
/* @__PURE__ */
|
|
6076
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6051
6077
|
children: "slow"
|
|
6052
6078
|
}),
|
|
6053
6079
|
", ",
|
|
6054
|
-
/* @__PURE__ */
|
|
6080
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6055
6081
|
children: "slower"
|
|
6056
6082
|
}),
|
|
6057
6083
|
", ",
|
|
6058
|
-
/* @__PURE__ */
|
|
6084
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6059
6085
|
children: "veryslow"
|
|
6060
6086
|
}),
|
|
6061
6087
|
",",
|
|
6062
6088
|
" ",
|
|
6063
|
-
/* @__PURE__ */
|
|
6089
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6064
6090
|
children: "placebo"
|
|
6065
6091
|
}),
|
|
6066
6092
|
".",
|
|
6067
|
-
/* @__PURE__ */
|
|
6093
|
+
/* @__PURE__ */ jsx98("br", {}),
|
|
6068
6094
|
"Default: ",
|
|
6069
|
-
/* @__PURE__ */
|
|
6095
|
+
/* @__PURE__ */ jsx98("code", {
|
|
6070
6096
|
children: DEFAULT_PRESET
|
|
6071
6097
|
})
|
|
6072
6098
|
]
|
|
@@ -6075,7 +6101,7 @@ var x264Option = {
|
|
|
6075
6101
|
docLink: "https://www.remotion.dev/docs/options/x264-preset",
|
|
6076
6102
|
type: "fast",
|
|
6077
6103
|
getValue: ({ commandLine }) => {
|
|
6078
|
-
const value = commandLine[
|
|
6104
|
+
const value = commandLine[cliFlag104];
|
|
6079
6105
|
if (typeof value !== "undefined") {
|
|
6080
6106
|
return { value, source: "cli" };
|
|
6081
6107
|
}
|
|
@@ -6087,7 +6113,7 @@ var x264Option = {
|
|
|
6087
6113
|
setConfig: (profile) => {
|
|
6088
6114
|
preset = profile;
|
|
6089
6115
|
},
|
|
6090
|
-
id:
|
|
6116
|
+
id: cliFlag104
|
|
6091
6117
|
};
|
|
6092
6118
|
|
|
6093
6119
|
// src/options/index.tsx
|
|
@@ -6157,6 +6183,7 @@ var allOptions = {
|
|
|
6157
6183
|
ignoreCertificateErrorsOption,
|
|
6158
6184
|
imageSequencePatternOption,
|
|
6159
6185
|
mediaCacheSizeInBytesOption,
|
|
6186
|
+
preferredEffectBackendOption,
|
|
6160
6187
|
darkModeOption,
|
|
6161
6188
|
defaultCodingAgentOption,
|
|
6162
6189
|
defaultEditorOption,
|
|
@@ -6201,6 +6228,7 @@ var allOptions = {
|
|
|
6201
6228
|
var optionsMap = {
|
|
6202
6229
|
renderMedia: {
|
|
6203
6230
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6231
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6204
6232
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6205
6233
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6206
6234
|
videoBitrate: videoBitrateOption,
|
|
@@ -6235,6 +6263,7 @@ var optionsMap = {
|
|
|
6235
6263
|
},
|
|
6236
6264
|
renderStill: {
|
|
6237
6265
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6266
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6238
6267
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6239
6268
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6240
6269
|
jpegQuality: jpegQualityOption,
|
|
@@ -6248,6 +6277,7 @@ var optionsMap = {
|
|
|
6248
6277
|
},
|
|
6249
6278
|
getCompositions: {
|
|
6250
6279
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6280
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6251
6281
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6252
6282
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6253
6283
|
logLevel: logLevelOption,
|
|
@@ -6258,6 +6288,7 @@ var optionsMap = {
|
|
|
6258
6288
|
},
|
|
6259
6289
|
selectComposition: {
|
|
6260
6290
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6291
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6261
6292
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6262
6293
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6263
6294
|
logLevel: logLevelOption,
|
|
@@ -6268,6 +6299,7 @@ var optionsMap = {
|
|
|
6268
6299
|
},
|
|
6269
6300
|
renderFrames: {
|
|
6270
6301
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6302
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6271
6303
|
forSeamlessAacConcatenation: forSeamlessAacConcatenationOption,
|
|
6272
6304
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6273
6305
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
@@ -6283,6 +6315,7 @@ var optionsMap = {
|
|
|
6283
6315
|
renderMediaOnLambda: {
|
|
6284
6316
|
disableSharedMemoryCapture: disableSharedMemoryCaptureOption,
|
|
6285
6317
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6318
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6286
6319
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6287
6320
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6288
6321
|
videoBitrate: videoBitrateOption,
|
|
@@ -6304,6 +6337,7 @@ var optionsMap = {
|
|
|
6304
6337
|
},
|
|
6305
6338
|
renderStillOnLambda: {
|
|
6306
6339
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6340
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6307
6341
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6308
6342
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6309
6343
|
jpegQuality: jpegQualityOption,
|
|
@@ -6316,6 +6350,7 @@ var optionsMap = {
|
|
|
6316
6350
|
},
|
|
6317
6351
|
getCompositionsOnLambda: {
|
|
6318
6352
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6353
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6319
6354
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6320
6355
|
logLevel: logLevelOption,
|
|
6321
6356
|
timeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption
|
|
@@ -6323,6 +6358,7 @@ var optionsMap = {
|
|
|
6323
6358
|
renderMediaOnCloudRun: {
|
|
6324
6359
|
disableSharedMemoryCapture: disableSharedMemoryCaptureOption,
|
|
6325
6360
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6361
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6326
6362
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6327
6363
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6328
6364
|
numberOfGifLoops: numberOfGifLoopsOption,
|
|
@@ -6341,16 +6377,19 @@ var optionsMap = {
|
|
|
6341
6377
|
scale: scaleOption,
|
|
6342
6378
|
crf: crfOption,
|
|
6343
6379
|
jpegQuality: jpegQualityOption,
|
|
6344
|
-
sampleRate: sampleRateOption
|
|
6380
|
+
sampleRate: sampleRateOption,
|
|
6381
|
+
licenseKey: licenseKeyOption
|
|
6345
6382
|
},
|
|
6346
6383
|
renderStillOnCloudRun: {
|
|
6347
6384
|
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption,
|
|
6385
|
+
preferredEffectBackend: preferredEffectBackendOption,
|
|
6348
6386
|
offthreadVideoCacheSizeInBytes: offthreadVideoCacheSizeInBytesOption,
|
|
6349
6387
|
offthreadVideoThreads: offthreadVideoThreadsOption,
|
|
6350
6388
|
logLevel: logLevelOption,
|
|
6351
6389
|
scale: scaleOption,
|
|
6352
6390
|
jpegQuality: jpegQualityOption,
|
|
6353
|
-
delayRenderTimeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption
|
|
6391
|
+
delayRenderTimeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption,
|
|
6392
|
+
licenseKey: licenseKeyOption
|
|
6354
6393
|
},
|
|
6355
6394
|
ensureBrowser: {
|
|
6356
6395
|
logLevel: logLevelOption,
|
|
@@ -6372,7 +6411,7 @@ var optionsMap = {
|
|
|
6372
6411
|
};
|
|
6373
6412
|
|
|
6374
6413
|
// src/validate-output-filename.ts
|
|
6375
|
-
import { NoReactInternals as
|
|
6414
|
+
import { NoReactInternals as NoReactInternals10 } from "remotion/no-react";
|
|
6376
6415
|
var validateOutputFilename = ({
|
|
6377
6416
|
codec,
|
|
6378
6417
|
audioCodecSetting,
|
|
@@ -6384,7 +6423,7 @@ var validateOutputFilename = ({
|
|
|
6384
6423
|
throw new TypeError(`The codec "${codec}" is not supported. Supported codecs are: ${Object.keys(defaultFileExtensionMap).join(", ")}`);
|
|
6385
6424
|
}
|
|
6386
6425
|
const normalizedExtension = extension === null ? null : extension.toLowerCase();
|
|
6387
|
-
if (
|
|
6426
|
+
if (NoReactInternals10.ENABLE_V5_BREAKING_CHANGES && codec === "aac" && (normalizedExtension === "mpg" || normalizedExtension === "mpeg")) {
|
|
6388
6427
|
throw new Error("AAC output with .mpg or .mpeg extensions is not supported. Use .aac for raw ADTS AAC or .m4a for an MPEG-4 audio container.");
|
|
6389
6428
|
}
|
|
6390
6429
|
const map = defaultFileExtensionMap[codec];
|
|
@@ -6418,7 +6457,7 @@ var BrowserSafeApis = {
|
|
|
6418
6457
|
validAudioCodecs,
|
|
6419
6458
|
getDefaultCrfForCodec,
|
|
6420
6459
|
getValidCrfRanges,
|
|
6421
|
-
proResProfileOptions:
|
|
6460
|
+
proResProfileOptions: NoReactInternals11.proResProfileOptions,
|
|
6422
6461
|
x264PresetOptions,
|
|
6423
6462
|
hardwareAccelerationOptions,
|
|
6424
6463
|
validPixelFormats,
|