@remotion/renderer
Version:
Render Remotion videos using Node.js or Bun
1,817 lines (1,779 loc) • 93.8 kB
JavaScript
// src/client.ts
import { NoReactInternals as NoReactInternals2 } from "remotion/no-react";
// src/browser/TimeoutSettings.ts
var DEFAULT_TIMEOUT = 30000;
class TimeoutSettings {
#defaultTimeout;
#defaultNavigationTimeout;
constructor() {
this.#defaultTimeout = null;
this.#defaultNavigationTimeout = null;
}
setDefaultTimeout(timeout) {
this.#defaultTimeout = timeout;
}
setDefaultNavigationTimeout(timeout) {
this.#defaultNavigationTimeout = timeout;
}
navigationTimeout() {
if (this.#defaultNavigationTimeout !== null) {
return this.#defaultNavigationTimeout;
}
if (this.#defaultTimeout !== null) {
return this.#defaultTimeout;
}
return DEFAULT_TIMEOUT;
}
timeout() {
if (this.#defaultTimeout !== null) {
return this.#defaultTimeout;
}
return DEFAULT_TIMEOUT;
}
}
// src/codec.ts
var validCodecs = [
"h264",
"h265",
"vp8",
"vp9",
"mp3",
"aac",
"wav",
"prores",
"h264-mkv",
"h264-ts",
"gif"
];
var DEFAULT_CODEC = "h264";
// src/crf.ts
var defaultCrfMap = {
h264: 18,
h265: 23,
vp8: 9,
vp9: 28,
prores: null,
gif: null,
"h264-mkv": 18,
"h264-ts": 18,
aac: null,
mp3: null,
wav: null
};
var getDefaultCrfForCodec = (codec) => {
const val = defaultCrfMap[codec];
if (val === undefined) {
throw new TypeError(`Got unexpected codec "${codec}"`);
}
return val;
};
var crfRanges = {
h264: [1, 51],
h265: [0, 51],
vp8: [4, 63],
vp9: [0, 63],
prores: [0, 0],
gif: [0, 0],
"h264-mkv": [1, 51],
"h264-ts": [1, 51],
aac: [0, 0],
mp3: [0, 0],
wav: [0, 0]
};
var getValidCrfRanges = (codec) => {
const val = crfRanges[codec];
if (val === undefined) {
throw new TypeError(`Got unexpected codec "${codec}"`);
}
return val;
};
// src/codec-supports-media.ts
var codecSupportsVideoBitrateMap = {
"h264-mkv": true,
"h264-ts": true,
aac: false,
gif: false,
h264: true,
h265: true,
mp3: false,
prores: false,
vp8: true,
vp9: true,
wav: false
};
var codecSupportsCrf = (codec) => {
const range = getValidCrfRanges(codec);
return range[0] !== range[1];
};
var codecSupportsVideoBitrate = (codec) => {
return codecSupportsVideoBitrateMap[codec];
};
// src/file-extensions.ts
var defaultFileExtensionMap = {
"h264-mkv": {
default: "mkv",
forAudioCodec: {
"pcm-16": { possible: ["mkv"], default: "mkv" },
mp3: { possible: ["mkv"], default: "mkv" }
}
},
"h264-ts": {
default: "ts",
forAudioCodec: {
"pcm-16": { possible: ["ts"], default: "ts" },
aac: { possible: ["ts"], default: "ts" }
}
},
aac: {
default: "aac",
forAudioCodec: {
aac: {
possible: ["aac", "3gp", "m4a", "m4b", "mpg", "mpeg"],
default: "aac"
},
"pcm-16": {
possible: ["wav"],
default: "wav"
}
}
},
gif: {
default: "gif",
forAudioCodec: {}
},
h264: {
default: "mp4",
forAudioCodec: {
"pcm-16": { possible: ["mkv", "mov"], default: "mkv" },
aac: { possible: ["mp4", "mkv", "mov"], default: "mp4" },
mp3: { possible: ["mp4", "mkv", "mov"], default: "mp4" }
}
},
h265: {
default: "mp4",
forAudioCodec: {
aac: { possible: ["mp4", "mkv", "hevc"], default: "mp4" },
"pcm-16": { possible: ["mkv"], default: "mkv" }
}
},
mp3: {
default: "mp3",
forAudioCodec: {
mp3: { possible: ["mp3"], default: "mp3" },
"pcm-16": { possible: ["wav"], default: "wav" }
}
},
prores: {
default: "mov",
forAudioCodec: {
aac: { possible: ["mov", "mkv", "mxf"], default: "mov" },
"pcm-16": { possible: ["mov", "mkv", "mxf"], default: "mov" }
}
},
vp8: {
default: "webm",
forAudioCodec: {
"pcm-16": { possible: ["mkv"], default: "mkv" },
opus: { possible: ["webm"], default: "webm" }
}
},
vp9: {
default: "webm",
forAudioCodec: {
"pcm-16": { possible: ["mkv"], default: "mkv" },
opus: { possible: ["webm"], default: "webm" }
}
},
wav: {
default: "wav",
forAudioCodec: {
"pcm-16": { possible: ["wav"], default: "wav" }
}
}
};
// src/get-extension-from-codec.ts
var getFileExtensionFromCodec = (codec, audioCodec) => {
if (!validCodecs.includes(codec)) {
throw new Error(`Codec must be one of the following: ${validCodecs.join(", ")}, but got ${codec}`);
}
const map = defaultFileExtensionMap[codec];
if (audioCodec === null) {
return map.default;
}
const typedAudioCodec = audioCodec;
if (!(typedAudioCodec in map.forAudioCodec)) {
throw new Error(`Audio codec ${typedAudioCodec} is not supported for codec ${codec}`);
}
return map.forAudioCodec[audioCodec].default;
};
var makeFileExtensionMap = () => {
const map = {};
Object.keys(defaultFileExtensionMap).forEach((_codec) => {
const codec = _codec;
const fileExtMap = defaultFileExtensionMap[codec];
const audioCodecs = Object.keys(fileExtMap.forAudioCodec);
const possibleExtensionsForAudioCodec = audioCodecs.map((audioCodec) => fileExtMap.forAudioCodec[audioCodec].possible);
const allPossibleExtensions = [
fileExtMap.default,
...possibleExtensionsForAudioCodec.flat(1)
];
for (const extension of allPossibleExtensions) {
if (!map[extension]) {
map[extension] = [];
}
if (!map[extension].includes(codec)) {
map[extension].push(codec);
}
}
});
return map;
};
var defaultCodecsForFileExtension = {
"3gp": "aac",
aac: "aac",
gif: "gif",
hevc: "h265",
m4a: "aac",
m4b: "aac",
mkv: "h264-mkv",
mov: "prores",
mp3: "mp3",
mp4: "h264",
mpeg: "aac",
mpg: "aac",
mxf: "prores",
wav: "wav",
webm: "vp8",
ts: "h264-ts"
};
// src/image-format.ts
var validVideoImageFormats = ["png", "jpeg", "none"];
var validStillImageFormats = ["png", "jpeg", "pdf", "webp"];
// src/jpeg-quality.ts
var DEFAULT_JPEG_QUALITY = 80;
var validateJpegQuality = (q) => {
if (typeof q !== "undefined" && typeof q !== "number") {
throw new Error(`JPEG Quality option must be a number or undefined. Got ${typeof q} (${JSON.stringify(q)})`);
}
if (typeof q === "undefined") {
return;
}
if (!Number.isFinite(q)) {
throw new RangeError(`JPEG Quality must be a finite number, but is ${q}`);
}
if (Number.isNaN(q)) {
throw new RangeError(`JPEG Quality is NaN, but must be a real number`);
}
if (q > 100 || q < 0) {
throw new RangeError("JPEG Quality option must be between 0 and 100.");
}
};
// src/log-level.ts
var logLevels = ["trace", "verbose", "info", "warn", "error"];
var getNumberForLogLevel = (level) => {
return logLevels.indexOf(level);
};
var isValidLogLevel = (level) => {
return getNumberForLogLevel(level) > -1;
};
// src/options/api-key.tsx
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
var currentApiKey = null;
var cliFlag = "api-key";
var apiKeyOption = {
name: "API key",
cliFlag,
description: () => /* @__PURE__ */ jsxs(Fragment, {
children: [
"API key for sending a usage event using ",
/* @__PURE__ */ jsx("code", {
children: "@remotion/licensing"
}),
"."
]
}),
ssrName: "apiKey",
docLink: "https://www.remotion.dev/docs/licensing",
type: null,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag] !== undefined) {
return {
source: "cli",
value: commandLine[cliFlag]
};
}
return {
source: "default",
value: currentApiKey
};
},
setConfig: (value) => {
currentApiKey = value;
}
};
// src/options/audio-bitrate.tsx
import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
var cliFlag2 = "audio-bitrate";
var audioBitrate = null;
var audioBitrateOption = {
name: "Audio Bitrate",
cliFlag: cliFlag2,
description: () => /* @__PURE__ */ jsxs2(Fragment2, {
children: [
"Specify the target bitrate for the generated video. The syntax for FFmpeg",
"'",
"s ",
/* @__PURE__ */ jsx2("code", {
children: "-b:a"
}),
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact audio bitrate specified. Example values: ",
/* @__PURE__ */ jsx2("code", {
children: "512K"
}),
" for 512 kbps, ",
/* @__PURE__ */ jsx2("code", {
children: "1M"
}),
" for 1 Mbps. Default: ",
/* @__PURE__ */ jsx2("code", {
children: "320k"
})
]
}),
ssrName: "audioBitrate",
docLink: "https://www.remotion.dev/docs/renderer/render-media#audiobitrate-",
type: "0",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag2]) {
return {
value: commandLine[cliFlag2],
source: "cli"
};
}
if (audioBitrate) {
return {
value: audioBitrate,
source: "config file"
};
}
return {
value: null,
source: "default"
};
},
setConfig: (value) => {
audioBitrate = value;
}
};
// src/options/separate-audio.tsx
var DEFAULT = null;
var cliFlag3 = "separate-audio-to";
var separateAudioOption = {
cliFlag: cliFlag3,
description: () => `If set, the audio will not be included in the main output but rendered as a separate file at the location you pass. It is recommended to use an absolute path. If a relative path is passed, it is relative to the Remotion Root.`,
docLink: "https://remotion.dev/docs/renderer/render-media",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag3]) {
return {
source: "cli",
value: commandLine[cliFlag3]
};
}
return {
source: "default",
value: DEFAULT
};
},
name: "Separate audio to",
setConfig: () => {
throw new Error("Not implemented");
},
ssrName: "separateAudioTo",
type: "string"
};
// src/options/audio-codec.tsx
var validAudioCodecs = ["pcm-16", "aac", "mp3", "opus"];
var supportedAudioCodecs = {
h264: ["aac", "pcm-16", "mp3"],
"h264-mkv": ["pcm-16", "mp3"],
"h264-ts": ["pcm-16", "aac"],
aac: ["aac", "pcm-16"],
avi: [],
gif: [],
h265: ["aac", "pcm-16"],
mp3: ["mp3", "pcm-16"],
prores: ["aac", "pcm-16"],
vp8: ["opus", "pcm-16"],
vp9: ["opus", "pcm-16"],
wav: ["pcm-16"]
};
var _satisfies = supportedAudioCodecs;
if (_satisfies) {}
var cliFlag4 = "audio-codec";
var ssrName = "audioCodec";
var defaultAudioCodecs = {
"h264-mkv": {
lossless: "pcm-16",
compressed: "pcm-16"
},
"h264-ts": {
lossless: "pcm-16",
compressed: "aac"
},
aac: {
lossless: "pcm-16",
compressed: "aac"
},
gif: {
lossless: null,
compressed: null
},
h264: {
lossless: "pcm-16",
compressed: "aac"
},
h265: {
lossless: "pcm-16",
compressed: "aac"
},
mp3: {
lossless: "pcm-16",
compressed: "mp3"
},
prores: {
lossless: "pcm-16",
compressed: "pcm-16"
},
vp8: {
lossless: "pcm-16",
compressed: "opus"
},
vp9: {
lossless: "pcm-16",
compressed: "opus"
},
wav: {
lossless: "pcm-16",
compressed: "pcm-16"
}
};
var extensionMap = {
aac: "aac",
mp3: "mp3",
opus: "opus",
"pcm-16": "wav"
};
var getExtensionFromAudioCodec = (audioCodec) => {
if (extensionMap[audioCodec]) {
return extensionMap[audioCodec];
}
throw new Error(`Unsupported audio codec: ${audioCodec}`);
};
var resolveAudioCodec = ({
codec,
setting,
preferLossless,
separateAudioTo
}) => {
let derivedFromSeparateAudioToExtension = null;
if (separateAudioTo) {
const extension = separateAudioTo.split(".").pop();
for (const [key, value] of Object.entries(extensionMap)) {
if (value === extension) {
derivedFromSeparateAudioToExtension = key;
if (!supportedAudioCodecs[codec].includes(derivedFromSeparateAudioToExtension) && derivedFromSeparateAudioToExtension) {
throw new Error(`The codec is ${codec} but the audio codec derived from --${separateAudioOption.cliFlag} is ${derivedFromSeparateAudioToExtension}. The only supported codecs are: ${supportedAudioCodecs[codec].join(", ")}`);
}
}
}
}
if (preferLossless) {
const selected = getDefaultAudioCodec({ codec, preferLossless });
if (derivedFromSeparateAudioToExtension && selected !== derivedFromSeparateAudioToExtension) {
throw new Error(`The audio codec derived from --${separateAudioOption.cliFlag} is ${derivedFromSeparateAudioToExtension}, but does not match the audio codec derived from the "Prefer lossless" option (${selected}). Remove any conflicting options.`);
}
return selected;
}
if (setting === null) {
if (derivedFromSeparateAudioToExtension) {
return derivedFromSeparateAudioToExtension;
}
return getDefaultAudioCodec({ codec, preferLossless });
}
if (derivedFromSeparateAudioToExtension !== setting && derivedFromSeparateAudioToExtension) {
throw new Error(`The audio codec derived from --${separateAudioOption.cliFlag} is ${derivedFromSeparateAudioToExtension}, but does not match the audio codec derived from your ${audioCodecOption.name} setting (${setting}). Remove any conflicting options.`);
}
return setting;
};
var getDefaultAudioCodec = ({
codec,
preferLossless
}) => {
return defaultAudioCodecs[codec][preferLossless ? "lossless" : "compressed"];
};
var _audioCodec = null;
var audioCodecOption = {
cliFlag: cliFlag4,
setConfig: (audioCodec) => {
if (audioCodec === null) {
_audioCodec = null;
return;
}
if (!validAudioCodecs.includes(audioCodec)) {
throw new Error(`Audio codec must be one of the following: ${validAudioCodecs.join(", ")}, but got ${audioCodec}`);
}
_audioCodec = audioCodec;
},
getValue: ({ commandLine }) => {
if (commandLine[cliFlag4]) {
const codec = commandLine[cliFlag4];
if (!validAudioCodecs.includes(commandLine[cliFlag4])) {
throw new Error(`Audio codec must be one of the following: ${validAudioCodecs.join(", ")}, but got ${codec}`);
}
return {
source: "cli",
value: commandLine[cliFlag4]
};
}
if (_audioCodec !== null) {
return {
source: "config",
value: _audioCodec
};
}
return {
source: "default",
value: null
};
},
description: () => `Set the format of the audio that is embedded in the video. Not all codec and audio codec combinations are supported and certain combinations require a certain file extension and container format. See the table in the docs to see possible combinations.`,
docLink: "https://www.remotion.dev/docs/encoding/#audio-codec",
name: "Audio Codec",
ssrName,
type: "aac"
};
// src/options/beep-on-finish.tsx
import { jsx as jsx3, Fragment as Fragment3 } from "react/jsx-runtime";
var beepOnFinish = false;
var cliFlag5 = "beep-on-finish";
var beepOnFinishOption = {
name: "Beep on finish",
cliFlag: cliFlag5,
description: () => /* @__PURE__ */ jsx3(Fragment3, {
children: "Whether the Remotion Studio tab should beep when the render is finished."
}),
ssrName: null,
docLink: "https://www.remotion.dev/docs/config#setbeeponfinish",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag5] !== undefined) {
return {
value: commandLine[cliFlag5],
source: "cli"
};
}
if (beepOnFinish !== false) {
return {
value: beepOnFinish,
source: "config"
};
}
return {
value: false,
source: "default"
};
},
setConfig(value) {
beepOnFinish = value;
}
};
// src/options/binaries-directory.tsx
import { jsx as jsx4, jsxs as jsxs3, Fragment as Fragment4 } from "react/jsx-runtime";
var cliFlag6 = "binaries-directory";
var currentDirectory = null;
var binariesDirectoryOption = {
name: "Binaries Directory",
cliFlag: cliFlag6,
description: () => /* @__PURE__ */ jsxs3(Fragment4, {
children: [
"The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ",
/* @__PURE__ */ jsx4("code", {
children: "ffmpeg"
}),
" and",
" ",
/* @__PURE__ */ jsx4("code", {
children: "ffprobe"
}),
" binary, a Rust binary for various tasks, and various shared libraries. If the value is set to ",
/* @__PURE__ */ jsx4("code", {
children: "null"
}),
", which is the default, then the path of a platform-specific package located at",
" ",
/* @__PURE__ */ jsx4("code", {
children: "node_modules/@remotion/compositor-*"
}),
" is selected.",
/* @__PURE__ */ jsx4("br", {}),
"This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron."
]
}),
ssrName: "binariesDirectory",
docLink: "https://www.remotion.dev/docs/renderer",
type: "",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag6] !== undefined) {
return {
source: "cli",
value: commandLine[cliFlag6]
};
}
if (currentDirectory !== null) {
return {
source: "config",
value: currentDirectory
};
}
return {
source: "default",
value: null
};
},
setConfig: (value) => {
currentDirectory = value;
}
};
// src/options/chrome-mode.tsx
import { jsx as jsx5, jsxs as jsxs4, Fragment as Fragment5 } from "react/jsx-runtime";
var validChromeModeOptions = [
"headless-shell",
"chrome-for-testing"
];
var cliFlag7 = "chrome-mode";
var configSelection = null;
var chromeModeOption = {
cliFlag: cliFlag7,
name: "Chrome Mode",
ssrName: "chromeMode",
description: () => {
return /* @__PURE__ */ jsxs4(Fragment5, {
children: [
"One of",
" ",
validChromeModeOptions.map((option, i) => /* @__PURE__ */ jsxs4("code", {
children: [
option,
i === validChromeModeOptions.length - 1 ? "" : ", "
]
}, option)),
". Default ",
/* @__PURE__ */ jsx5("code", {
children: "headless-shell"
}),
".",
" ",
/* @__PURE__ */ jsxs4("a", {
href: "https://remotion.dev/docs/miscellaneous/chrome-headless-shell",
children: [
"Use ",
/* @__PURE__ */ jsx5("code", {
children: "chrome-for-testing"
}),
" to take advantage of GPU drivers on Linux."
]
})
]
});
},
docLink: "https://www.remotion.dev/chrome-for-testing",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag7]) {
if (!validChromeModeOptions.includes(commandLine[cliFlag7])) {
throw new Error(`Invalid \`--${cliFlag7}\` value passed. Accepted values: ${validChromeModeOptions.map((l) => `'${l}'`).join(", ")}.`);
}
return {
value: commandLine[cliFlag7],
source: "cli"
};
}
if (configSelection !== null) {
return {
value: configSelection,
source: "config"
};
}
return {
value: "headless-shell",
source: "default"
};
},
setConfig: (newChromeMode) => {
configSelection = newChromeMode;
},
type: "headless-shell"
};
// src/options/color-space.tsx
import { NoReactInternals } from "remotion/no-react";
import { jsx as jsx6, jsxs as jsxs5, Fragment as Fragment6 } from "react/jsx-runtime";
var validV4ColorSpaces = ["default", "bt709", "bt2020-ncl"];
var validV5ColorSpaces = ["bt601", "bt709", "bt2020-ncl"];
var validColorSpaces = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? validV5ColorSpaces : validV4ColorSpaces;
var DEFAULT_COLOR_SPACE = NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? "bt709" : "default";
var colorSpace = DEFAULT_COLOR_SPACE;
var cliFlag8 = "color-space";
var colorSpaceOption = {
name: "Color space",
cliFlag: "color-space",
description: () => /* @__PURE__ */ jsxs5(Fragment6, {
children: [
"Color space to use for the video. Acceptable values:",
" ",
/* @__PURE__ */ jsxs5("code", {
children: [
'"',
DEFAULT_COLOR_SPACE,
'"'
]
}),
"(default since 5.0),",
" ",
NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? /* @__PURE__ */ jsxs5("code", {
children: [
'"',
"bt601",
'"',
", "
]
}) : /* @__PURE__ */ jsxs5(Fragment6, {
children: [
/* @__PURE__ */ jsxs5("code", {
children: [
'"',
"bt709",
'"'
]
}),
" ",
"(since v4.0.28),",
" "
]
}),
/* @__PURE__ */ jsxs5("code", {
children: [
'"',
"bt2020-ncl",
'"'
]
}),
" ",
"(since v4.0.88),",
" ",
/* @__PURE__ */ jsxs5("code", {
children: [
'"',
"bt2020-cl",
'"'
]
}),
" ",
"(since v4.0.88), .",
/* @__PURE__ */ jsx6("br", {}),
"For best color accuracy, it is recommended to also use",
" ",
/* @__PURE__ */ jsxs5("code", {
children: [
'"',
"png",
'"'
]
}),
" ",
"as the image format to have accurate color transformations throughout.",
/* @__PURE__ */ jsx6("br", {}),
"Only since v4.0.83, colorspace conversion is actually performed, previously it would only tag the metadata of the video."
]
}),
docLink: "https://www.remotion.dev/docs/renderer/render-media#colorspace",
ssrName: "colorSpace",
type: DEFAULT_COLOR_SPACE,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag8] !== undefined) {
return {
source: "cli",
value: commandLine[cliFlag8]
};
}
if (colorSpace !== DEFAULT_COLOR_SPACE) {
return {
source: "config",
value: colorSpace
};
}
return {
source: "default",
value: DEFAULT_COLOR_SPACE
};
},
setConfig: (value) => {
colorSpace = value ?? DEFAULT_COLOR_SPACE;
}
};
// src/options/crf.tsx
import { jsx as jsx7, Fragment as Fragment7 } from "react/jsx-runtime";
var currentCrf;
var validateCrf = (newCrf) => {
if (typeof newCrf !== "number" && newCrf !== undefined) {
throw new TypeError("The CRF must be a number or undefined.");
}
};
var cliFlag9 = "crf";
var crfOption = {
name: "CRF",
cliFlag: cliFlag9,
description: () => /* @__PURE__ */ jsx7(Fragment7, {
children: "No matter which codec you end up using, there's always a tradeoff between file size and video quality. You can control it by setting the CRF (Constant Rate Factor). The lower the number, the better the quality, the higher the number, the smaller the file is – of course at the cost of quality."
}),
ssrName: "crf",
docLink: "https://www.remotion.dev/docs/encoding/#controlling-quality-using-the-crf-setting",
type: 0,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag9] !== undefined) {
validateCrf(commandLine[cliFlag9]);
return {
source: "cli",
value: commandLine[cliFlag9]
};
}
if (currentCrf !== null) {
return {
source: "config",
value: currentCrf
};
}
return {
source: "default",
value: undefined
};
},
setConfig: (crf) => {
validateCrf(crf);
currentCrf = crf;
}
};
// src/options/cross-site-isolation.tsx
import { jsx as jsx8, jsxs as jsxs6, Fragment as Fragment8 } from "react/jsx-runtime";
var enableCrossSiteIsolation = false;
var cliFlag10 = "cross-site-isolation";
var enableCrossSiteIsolationOption = {
name: "Enable Cross-Site Isolation",
cliFlag: cliFlag10,
description: () => /* @__PURE__ */ jsxs6(Fragment8, {
children: [
"Enable Cross-Site Isolation in the Studio (sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers, required for",
" ",
/* @__PURE__ */ jsx8("code", {
children: "@remotion/whisper-web"
}),
")."
]
}),
ssrName: null,
docLink: "https://www.remotion.dev/docs/config#setenablecrosssiteisolation",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag10] !== undefined) {
return {
value: commandLine[cliFlag10],
source: "cli"
};
}
return {
value: enableCrossSiteIsolation,
source: "config"
};
},
setConfig(value) {
enableCrossSiteIsolation = value;
}
};
// src/options/dark-mode.tsx
import { jsx as jsx9, jsxs as jsxs7, Fragment as Fragment9 } from "react/jsx-runtime";
var DEFAULT_VALUE = false;
var darkMode = DEFAULT_VALUE;
var cliFlag11 = "dark-mode";
var darkModeOption = {
name: "Dark Mode",
cliFlag: cliFlag11,
description: () => /* @__PURE__ */ jsxs7(Fragment9, {
children: [
"Whether Chromium should pretend to be in dark mode by emulating the media feature 'prefers-color-scheme: dark'. Default is",
" ",
/* @__PURE__ */ jsx9("code", {
children: String(DEFAULT_VALUE)
}),
"."
]
}),
ssrName: "darkMode",
docLink: "https://www.remotion.dev/docs/chromium-flags#--dark-mode",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag11] !== undefined) {
return {
source: "cli",
value: commandLine[cliFlag11]
};
}
if (darkMode !== DEFAULT_VALUE) {
return {
source: "config",
value: darkMode
};
}
return {
source: "default",
value: DEFAULT_VALUE
};
},
setConfig: (value) => {
darkMode = value;
}
};
// src/options/delete-after.tsx
import { jsx as jsx10, jsxs as jsxs8, Fragment as Fragment10 } from "react/jsx-runtime";
var cliFlag12 = "delete-after";
var deleteAfter = null;
var deleteAfterOption = {
name: "Lambda render expiration",
cliFlag: cliFlag12,
description: () => {
return /* @__PURE__ */ jsxs8(Fragment10, {
children: [
"Automatically delete the render after a certain period. Accepted values are ",
/* @__PURE__ */ jsx10("code", {
children: "1-day"
}),
", ",
/* @__PURE__ */ jsx10("code", {
children: "3-days"
}),
", ",
/* @__PURE__ */ jsx10("code", {
children: "7-days"
}),
" and",
" ",
/* @__PURE__ */ jsx10("code", {
children: "30-days"
}),
".",
/* @__PURE__ */ jsx10("br", {}),
" For this to work, your bucket needs to have",
" ",
/* @__PURE__ */ jsx10("a", {
href: "/docs/lambda/autodelete",
children: "lifecycles enabled"
}),
"."
]
});
},
ssrName: "deleteAfter",
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
type: "1-day",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag12] !== undefined) {
return {
source: "cli",
value: commandLine[cliFlag12]
};
}
if (deleteAfter !== null) {
return {
source: "config",
value: deleteAfter
};
}
return {
source: "default",
value: null
};
},
setConfig: (value) => {
deleteAfter = value;
}
};
// src/options/disable-git-source.tsx
var DEFAULT2 = false;
var cliFlag13 = "disable-git-source";
var disableGitSourceOption = {
cliFlag: cliFlag13,
description: () => `Disables the Git Source being connected to the Remotion Studio. Clicking on stack traces and certain menu items will be disabled.`,
docLink: "https://remotion.dev/docs/bundle",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag13]) {
return {
source: "cli",
value: commandLine[cliFlag13]
};
}
return {
source: "default",
value: DEFAULT2
};
},
name: "Disable Git source",
setConfig: () => {
throw new Error("Not implemented");
},
ssrName: "disableGitSource",
type: false
};
// src/options/disallow-parallel-encoding.tsx
import { jsx as jsx11, Fragment as Fragment11 } from "react/jsx-runtime";
var disallowParallelEncoding = false;
var cliFlag14 = "disallow-parallel-encoding";
var disallowParallelEncodingOption = {
name: "Disallow parallel encoding",
cliFlag: cliFlag14,
description: () => /* @__PURE__ */ jsx11(Fragment11, {
children: "Disallows the renderer from doing rendering frames and encoding at the same time. This makes the rendering process more memory-efficient, but possibly slower."
}),
ssrName: "disallowParallelEncoding",
docLink: "https://www.remotion.dev/docs/config#setdisallowparallelencoding",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag14] !== undefined) {
return {
value: commandLine[cliFlag14],
source: "cli"
};
}
if (disallowParallelEncoding !== false) {
return {
value: disallowParallelEncoding,
source: "config"
};
}
return {
value: false,
source: "default"
};
},
setConfig(value) {
disallowParallelEncoding = value;
}
};
// src/options/enable-lambda-insights.tsx
import { jsx as jsx12, jsxs as jsxs9, Fragment as Fragment12 } from "react/jsx-runtime";
var cliFlag15 = "enable-lambda-insights";
var option = false;
var enableLambdaInsights = {
name: "Enable Lambda Insights",
cliFlag: cliFlag15,
description: () => /* @__PURE__ */ jsxs9(Fragment12, {
children: [
"Enable",
" ",
/* @__PURE__ */ jsx12("a", {
href: "https://remotion.dev/docs/lambda/insights",
children: "Lambda Insights in AWS CloudWatch"
}),
". For this to work, you may have to update your role permission."
]
}),
ssrName: "enableLambdaInsights",
docLink: "https://www.remotion.dev/docs/lambda/insights",
type: false,
setConfig: (value) => {
option = value;
},
getValue: ({ commandLine }) => {
if (commandLine[cliFlag15] !== undefined) {
return {
value: commandLine[cliFlag15],
source: "cli"
};
}
if (option) {
return {
value: option,
source: "config"
};
}
return {
value: false,
source: "default"
};
}
};
// src/options/enable-multiprocess-on-linux.tsx
import { jsx as jsx13, jsxs as jsxs10, Fragment as Fragment13 } from "react/jsx-runtime";
var DEFAULT_VALUE2 = true;
var multiProcessOnLinux = DEFAULT_VALUE2;
var cliFlag16 = "enable-multiprocess-on-linux";
var enableMultiprocessOnLinuxOption = {
name: "Enable Multiprocess on Linux",
cliFlag: cliFlag16,
description: () => /* @__PURE__ */ jsxs10(Fragment13, {
children: [
"Removes the ",
/* @__PURE__ */ jsx13("code", {
children: "--single-process"
}),
" flag that gets passed to Chromium on Linux by default. This will make the render faster because multiple processes can be used, but may cause issues with some Linux distributions or if window server libraries are missing.",
/* @__PURE__ */ jsx13("br", {}),
"Default: ",
/* @__PURE__ */ jsx13("code", {
children: "false"
}),
" until v4.0.136, then ",
/* @__PURE__ */ jsx13("code", {
children: "true"
}),
" from v4.0.137 on because newer Chrome versions ",
"don't",
" allow rendering with the ",
/* @__PURE__ */ jsx13("code", {
children: "--single-process"
}),
" flag. ",
/* @__PURE__ */ jsx13("br", {}),
"This flag will be removed in Remotion v5.0."
]
}),
ssrName: "chromiumOptions.enableMultiprocessOnLinux",
docLink: "https://www.remotion.dev/docs/chromium-flags",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag16] !== undefined) {
return {
source: "cli",
value: commandLine[cliFlag16]
};
}
if (multiProcessOnLinux !== false) {
return {
source: "config",
value: multiProcessOnLinux
};
}
return {
source: "default",
value: DEFAULT_VALUE2
};
},
setConfig: (value) => {
multiProcessOnLinux = value;
}
};
// src/options/encoding-buffer-size.tsx
import { jsx as jsx14, jsxs as jsxs11, Fragment as Fragment14 } from "react/jsx-runtime";
var encodingBufferSize = null;
var setEncodingBufferSize = (bitrate) => {
encodingBufferSize = bitrate;
};
var cliFlag17 = "buffer-size";
var encodingBufferSizeOption = {
name: "FFmpeg -bufsize flag",
cliFlag: cliFlag17,
description: () => /* @__PURE__ */ jsxs11(Fragment14, {
children: [
"The value for the ",
/* @__PURE__ */ jsx14("code", {
children: "-bufsize"
}),
" flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."
]
}),
ssrName: "encodingBufferSize",
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize",
type: "",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag17] !== undefined) {
return {
value: commandLine[cliFlag17],
source: "cli"
};
}
if (encodingBufferSize !== null) {
return {
value: encodingBufferSize,
source: "config"
};
}
return {
value: null,
source: "default"
};
},
setConfig: setEncodingBufferSize
};
// src/options/encoding-max-rate.tsx
import { jsx as jsx15, jsxs as jsxs12, Fragment as Fragment15 } from "react/jsx-runtime";
var encodingMaxRate = null;
var cliFlag18 = "max-rate";
var encodingMaxRateOption = {
name: "FFmpeg -maxrate flag",
cliFlag: cliFlag18,
description: () => /* @__PURE__ */ jsxs12(Fragment15, {
children: [
"The value for the ",
/* @__PURE__ */ jsx15("code", {
children: "-maxrate"
}),
" flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."
]
}),
ssrName: "encodingMaxRate",
docLink: "https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate",
type: "",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag18] !== undefined) {
return {
value: commandLine[cliFlag18],
source: "cli"
};
}
if (encodingMaxRate !== null) {
return {
value: encodingMaxRate,
source: "config"
};
}
return {
value: null,
source: "default"
};
},
setConfig: (newMaxRate) => {
encodingMaxRate = newMaxRate;
}
};
// src/options/enforce-audio.tsx
import { jsx as jsx16, Fragment as Fragment16 } from "react/jsx-runtime";
var DEFAULT_ENFORCE_AUDIO_TRACK = false;
var enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
var cliFlag19 = "enforce-audio-track";
var enforceAudioOption = {
name: "Enforce Audio Track",
cliFlag: cliFlag19,
description: () => /* @__PURE__ */ jsx16(Fragment16, {
children: "Render a silent audio track if there would be none otherwise."
}),
ssrName: "enforceAudioTrack",
docLink: "https://www.remotion.dev/docs/config#setenforceaudiotrack-",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag19]) {
return {
source: "cli",
value: true
};
}
if (enforceAudioTrackState !== DEFAULT_ENFORCE_AUDIO_TRACK) {
return {
source: "config",
value: enforceAudioTrackState
};
}
return {
source: "default",
value: DEFAULT_ENFORCE_AUDIO_TRACK
};
},
setConfig: (value) => {
enforceAudioTrackState = value;
}
};
// src/options/folder-expiry.tsx
import { jsx as jsx17, jsxs as jsxs13, Fragment as Fragment17 } from "react/jsx-runtime";
var enableFolderExpiry = null;
var cliFlag20 = "enable-folder-expiry";
var folderExpiryOption = {
name: "Lambda render expiration",
cliFlag: cliFlag20,
description: () => {
return /* @__PURE__ */ jsxs13(Fragment17, {
children: [
"When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is",
" ",
/* @__PURE__ */ jsx17("code", {
children: "null"
}),
", which does not change any lifecycle policies of the S3 bucket. See: ",
/* @__PURE__ */ jsx17("a", {
href: "/docs/lambda/autodelete",
children: "Lambda autodelete"
}),
"."
]
});
},
ssrName: "enableFolderExpiry",
docLink: "https://www.remotion.dev/docs/lambda/autodelete",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag20] !== undefined) {
return {
source: "cli",
value: commandLine[cliFlag20]
};
}
if (enableFolderExpiry !== null) {
return {
source: "config",
value: enableFolderExpiry
};
}
return {
source: "default",
value: null
};
},
setConfig: (value) => {
enableFolderExpiry = value;
}
};
// src/options/for-seamless-aac-concatenation.tsx
import { jsx as jsx18, jsxs as jsxs14, Fragment as Fragment18 } from "react/jsx-runtime";
var DEFAULT3 = false;
var forSeamlessAacConcatenation = DEFAULT3;
var cliFlag21 = "for-seamless-aac-concatenation";
var forSeamlessAacConcatenationOption = {
name: "For seamless AAC concatenation",
cliFlag: cliFlag21,
description: () => /* @__PURE__ */ jsxs14(Fragment18, {
children: [
"If enabled, the audio is trimmed to the nearest AAC frame, which is required for seamless concatenation of AAC files. This is a requirement if you later want to combine multiple video snippets seamlessly.",
/* @__PURE__ */ jsx18("br", {}),
/* @__PURE__ */ jsx18("br", {}),
" This option is used internally. There is currently no documentation yet for to concatenate the audio chunks."
]
}),
docLink: "https://remotion.dev/docs/renderer",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag21]) {
return {
source: "cli",
value: true
};
}
if (forSeamlessAacConcatenation !== DEFAULT3) {
return {
source: "config",
value: forSeamlessAacConcatenation
};
}
return {
source: "default",
value: DEFAULT3
};
},
setConfig: (value) => {
forSeamlessAacConcatenation = value;
},
ssrName: "forSeamlessAacConcatenation",
type: false
};
// src/options/gl.tsx
import { jsx as jsx19, jsxs as jsxs15, Fragment as Fragment19 } from "react/jsx-runtime";
var validOpenGlRenderers = [
"swangle",
"angle",
"egl",
"swiftshader",
"vulkan",
"angle-egl"
];
var DEFAULT_OPENGL_RENDERER = null;
var openGlRenderer = DEFAULT_OPENGL_RENDERER;
var AngleChangelog = () => {
return /* @__PURE__ */ jsxs15("details", {
style: { fontSize: "0.9em", marginBottom: "1em" },
children: [
/* @__PURE__ */ jsx19("summary", {
children: "Changelog"
}),
/* @__PURE__ */ jsxs15("ul", {
children: [
/* @__PURE__ */ jsxs15("li", {
children: [
"From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was",
" ",
/* @__PURE__ */ jsx19("code", {
children: "swiftshader"
}),
", but from v3.0.8 the default is",
" ",
/* @__PURE__ */ jsx19("code", {
children: "swangle"
}),
" (Swiftshader on Angle) since Chrome 101 added support for it."
]
}),
/* @__PURE__ */ jsxs15("li", {
children: [
"From Remotion v2.4.3 until v2.6.6, the default was ",
/* @__PURE__ */ jsx19("code", {
children: "angle"
}),
", however it turns out to have a small memory leak that could crash long Remotion renders."
]
})
]
})
]
});
};
var cliFlag22 = "gl";
var glOption = {
cliFlag: cliFlag22,
docLink: "https://www.remotion.dev/docs/chromium-flags#--gl",
name: "OpenGL renderer",
type: "angle",
ssrName: "gl",
description: () => {
return /* @__PURE__ */ jsxs15(Fragment19, {
children: [
/* @__PURE__ */ jsx19(AngleChangelog, {}),
/* @__PURE__ */ jsxs15("p", {
children: [
"Select the OpenGL renderer backend for Chromium. ",
/* @__PURE__ */ jsx19("br", {}),
"Accepted values:"
]
}),
/* @__PURE__ */ jsxs15("ul", {
children: [
/* @__PURE__ */ jsx19("li", {
children: /* @__PURE__ */ jsx19("code", {
children: '"angle"'
})
}),
/* @__PURE__ */ jsx19("li", {
children: /* @__PURE__ */ jsx19("code", {
children: '"egl"'
})
}),
/* @__PURE__ */ jsx19("li", {
children: /* @__PURE__ */ jsx19("code", {
children: '"swiftshader"'
})
}),
/* @__PURE__ */ jsx19("li", {
children: /* @__PURE__ */ jsx19("code", {
children: '"swangle"'
})
}),
/* @__PURE__ */ jsxs15("li", {
children: [
/* @__PURE__ */ jsx19("code", {
children: '"vulkan"'
}),
" (",
/* @__PURE__ */ jsx19("em", {
children: "from Remotion v4.0.41"
}),
")"
]
}),
/* @__PURE__ */ jsxs15("li", {
children: [
/* @__PURE__ */ jsx19("code", {
children: '"angle-egl"'
}),
" (",
/* @__PURE__ */ jsx19("em", {
children: "from Remotion v4.0.51"
}),
")"
]
})
]
}),
/* @__PURE__ */ jsxs15("p", {
children: [
"The default is ",
/* @__PURE__ */ jsx19("code", {
children: "null"
}),
", letting Chrome decide, except on Lambda where the default is ",
/* @__PURE__ */ jsx19("code", {
children: '"swangle"'
})
]
})
]
});
},
getValue: ({ commandLine }) => {
if (commandLine[cliFlag22]) {
validateOpenGlRenderer(commandLine[cliFlag22]);
return {
value: commandLine[cliFlag22],
source: "cli"
};
}
if (openGlRenderer !== DEFAULT_OPENGL_RENDERER) {
return {
value: openGlRenderer,
source: "config"
};
}
return {
value: DEFAULT_OPENGL_RENDERER,
source: "default"
};
},
setConfig: (value) => {
validateOpenGlRenderer(value);
openGlRenderer = value;
}
};
var validateOpenGlRenderer = (option2) => {
if (option2 === null) {
return null;
}
if (!validOpenGlRenderers.includes(option2)) {
throw new TypeError(`${option2} is not a valid GL backend. Accepted values: ${validOpenGlRenderers.join(", ")}`);
}
return option2;
};
// src/options/hardware-acceleration.tsx
var hardwareAccelerationOptions = [
"disable",
"if-possible",
"required"
];
var cliFlag23 = "hardware-acceleration";
var currentValue = null;
var hardwareAccelerationOption = {
name: "Hardware Acceleration",
cliFlag: cliFlag23,
description: () => `
One of
${new Intl.ListFormat("en", { type: "disjunction" }).format(hardwareAccelerationOptions.map((a) => JSON.stringify(a)))}
. Default "disable". Encode using a hardware-accelerated encoder if
available. If set to "required" and no hardware-accelerated encoder is
available, then the render will fail.
`,
ssrName: "hardwareAcceleration",
docLink: "https://www.remotion.dev/docs/encoding",
type: "disable",
getValue: ({ commandLine }) => {
if (commandLine[cliFlag23] !== undefined) {
const value = commandLine[cliFlag23];
if (!hardwareAccelerationOptions.includes(value)) {
throw new Error(`Invalid value for --${cliFlag23}: ${value}`);
}
return {
source: "cli",
value
};
}
if (currentValue !== null) {
return {
source: "config",
value: currentValue
};
}
return {
source: "default",
value: "disable"
};
},
setConfig: (value) => {
if (!hardwareAccelerationOptions.includes(value)) {
throw new Error(`Invalid value for --${cliFlag23}: ${value}`);
}
currentValue = value;
}
};
// src/options/headless.tsx
import { jsx as jsx20, jsxs as jsxs16, Fragment as Fragment20 } from "react/jsx-runtime";
var DEFAULT4 = true;
var headlessMode = DEFAULT4;
var cliFlag24 = "disable-headless";
var headlessOption = {
name: "Disable Headless Mode",
cliFlag: cliFlag24,
description: () => /* @__PURE__ */ jsxs16(Fragment20, {
children: [
"Deprecated - will be removed in 5.0.0. With the migration to",
" ",
/* @__PURE__ */ jsx20("a", {
href: "/docs/miscellaneous/chrome-headless-shell",
children: "Chrome Headless Shell"
}),
", this option is not functional anymore.",
/* @__PURE__ */ jsx20("br", {}),
/* @__PURE__ */ jsx20("br", {}),
" If disabled, the render will open an actual Chrome window where you can see the render happen. The default is headless mode."
]
}),
ssrName: "headless",
docLink: "https://www.remotion.dev/docs/chromium-flags#--disable-headless",
type: false,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag24] !== undefined) {
return {
source: "cli",
value: !commandLine[cliFlag24]
};
}
if (headlessMode !== DEFAULT4) {
return {
source: "config",
value: headlessMode
};
}
return {
source: "default",
value: headlessMode
};
},
setConfig: (value) => {
headlessMode = value;
}
};
// src/options/image-sequence-pattern.tsx
import { jsx as jsx21, jsxs as jsxs17, Fragment as Fragment21 } from "react/jsx-runtime";
var cliFlag25 = "image-sequence-pattern";
var currentImageSequencePattern = null;
var imageSequencePatternOption = {
name: "Image Sequence Pattern",
cliFlag: cliFlag25,
ssrName: "imageSequencePattern",
description: () => /* @__PURE__ */ jsxs17(Fragment21, {
children: [
"Pattern for naming image sequence files. Supports ",
/* @__PURE__ */ jsx21("code", {
children: "[frame]"
}),
" for the zero-padded frame number and ",
/* @__PURE__ */ jsx21("code", {
children: "[ext]"
}),
" for the file extension."
]
}),
docLink: null,
type: "string",
getValue: ({ commandLine }) => {
if (currentImageSequencePattern !== null) {
return {
value: currentImageSequencePattern,
source: "config"
};
}
return {
value: commandLine[cliFlag25],
source: "cli"
};
},
setConfig: (pattern) => {
currentImageSequencePattern = pattern;
}
};
// src/options/jpeg-quality.tsx
import { jsx as jsx22, Fragment as Fragment22 } from "react/jsx-runtime";
var defaultValue = DEFAULT_JPEG_QUALITY;
var quality = defaultValue;
var setJpegQuality = (q) => {
validateJpegQuality(q);
if (q === 0 || q === undefined) {
quality = defaultValue;
return;
}
quality = q;
};
var cliFlag26 = "jpeg-quality";
var jpegQualityOption = {
name: "JPEG Quality",
cliFlag: cliFlag26,
description: () => /* @__PURE__ */ jsx22(Fragment22, {
children: "Sets the quality of the generated JPEG images. Must be an integer between 0 and 100. Default: 80."
}),
ssrName: "jpegQuality",
docLink: "https://www.remotion.dev/docs/renderer/render-media#jpeg-quality",
type: 0,
setConfig: setJpegQuality,
getValue: ({ commandLine }) => {
if (commandLine[cliFlag26] !== undefined) {
validateJpegQuality(commandLine[cliFlag26]);
return {
source: "cli",
value: commandLine[cliFlag26]
};
}
if (quality !== defaultValue) {
return {
source: "config",
value: quality
};
}
return {
source: "default",
value: defaultValue
};
}
};
// src/options/latency-hint.tsx
import { jsx as jsx23, jsxs as jsxs18, Fragment as Fragment23 } from "react/jsx-runtime";
var cliFlag27 = "audio-latency-hint";
var value = null;
var audioLatencyHintOption = {
name: "Audio Latency Hint",
cliFlag: cliFlag27,
description: () => /* @__PURE__ */ jsxs18(Fragment23, {
children: [
"Sets the",
" ",
/* @__PURE__ */ jsx23("a", {
href: "https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext",
children: "audio latency"
}),
" ",
"hint for the global ",
/* @__PURE__ */ jsx23("code", {
children: "AudioContext"
}),
" context that Remotion uses to play audio.",
/* @__PURE__ */ jsx23("br", {}),
"Possible values: ",
/* @__PURE__ */ jsx23("code", {
children: "interactive"
}),
", ",
/* @__PURE__ */ jsx23("code", {
children: "balanced"
}),
",",
" ",
/* @__PURE__ */ jsx23("code", {
children: "playback"
})
]
}),
ssrName: "audioLatencyHint",
docLink: "https://www.remotion.dev/docs/renderer/render-media",
type: "interactive",
getValue: ({ commandLine }) => {
const val = commandLine[cliFlag27];
if (typeof val !== "undefined") {
return { value: val, source: "cli" };
}
if (value !== null) {
return { value, source: "config" };
}
return { value: null, source: "default" };
},
setConfig: (profile) => {
value = profile;
}
};
// src/options/log-level.tsx
import { jsx as jsx24, jsxs as jsxs19, Fragment as Fragment24 } from "react/jsx-runtime";
var logLevel = "info"