@remotion/renderer
Version:
Render Remotion videos using Node.js or Bun
36 lines (35 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.imageSequencePatternOption = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const cliFlag = 'image-sequence-pattern';
let currentImageSequencePattern = null;
// Option for --image-sequence-pattern
exports.imageSequencePatternOption = {
name: 'Image Sequence Pattern',
cliFlag,
ssrName: 'imageSequencePattern',
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Pattern for naming image sequence files. Supports ",
jsx_runtime_1.jsx("code", { children: "[frame]" }),
" for the zero-padded frame number and ",
jsx_runtime_1.jsx("code", { children: "[ext]" }),
" for the file extension."] })),
docLink: null,
type: 'string',
getValue: ({ commandLine }) => {
if (currentImageSequencePattern !== null) {
return {
value: currentImageSequencePattern,
source: 'config',
};
}
return {
value: commandLine[cliFlag],
source: 'cli',
};
},
setConfig: (pattern) => {
currentImageSequencePattern = pattern;
},
id: cliFlag,
};