UNPKG

@remotion/renderer

Version:

Render Remotion videos using Node.js or Bun

61 lines (60 loc) 2.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.proResProfileOption = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const validProResProfiles = [ '4444-xq', '4444', 'hq', 'standard', 'light', 'proxy', ]; let proResProfile; const cliFlag = 'prores-profile'; exports.proResProfileOption = { name: 'ProRes profile', cliFlag, description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Set the ProRes profile. This option is only valid if the codec has been set to ", jsx_runtime_1.jsx("code", { children: "prores" }), ". Possible values:", ' ', validProResProfiles.map((p) => `"${p}"`).join(', '), ". Default:", ' ', jsx_runtime_1.jsx("code", { children: "\"hq\"" }), ". See", ' ', jsx_runtime_1.jsx("a", { href: "https://video.stackexchange.com/a/14715", children: "here" }), " for an explanation of possible values."] })), ssrName: 'proResProfile', docLink: 'https://www.remotion.dev/docs/config#setproresprofile', type: undefined, getValue: ({ commandLine }, options) => { if (options === null || options === void 0 ? void 0 : options.uiProResProfile) { return { source: 'via UI', value: options.uiProResProfile, }; } if (commandLine[cliFlag] !== undefined) { return { source: 'from --prores-profile flag', value: String(commandLine[cliFlag]), }; } if (options && options.compositionDefaultProResProfile !== null) { return { source: 'via calculateMetadata', value: options.compositionDefaultProResProfile, }; } if (proResProfile !== undefined) { return { source: 'Config file', value: proResProfile, }; } return { source: 'default', value: undefined, }; }, setConfig: (value) => { proResProfile = value; }, id: cliFlag, };