@remotion/renderer
Version:
Render Remotion videos using Node.js or Bun
45 lines (44 loc) • 1.89 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.binariesDirectoryOption = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const cliFlag = 'binaries-directory';
let currentDirectory = null;
exports.binariesDirectoryOption = {
name: 'Binaries Directory',
cliFlag,
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ",
jsx_runtime_1.jsx("code", { children: "ffmpeg" }),
" and", ' ', jsx_runtime_1.jsx("code", { children: "ffprobe" }),
" binary, a Rust binary for various tasks, and various shared libraries. If the value is set to ",
jsx_runtime_1.jsx("code", { children: "null" }),
", which is the default, then the path of a platform-specific package located at", ' ', jsx_runtime_1.jsx("code", { children: "node_modules/@remotion/compositor-*" }),
" is selected.",
jsx_runtime_1.jsx("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[cliFlag] !== undefined) {
return {
source: 'cli',
value: commandLine[cliFlag],
};
}
if (currentDirectory !== null) {
return {
source: 'config',
value: currentDirectory,
};
}
return {
source: 'default',
value: null,
};
},
setConfig: (value) => {
currentDirectory = value;
},
id: cliFlag,
};