init commit
This commit is contained in:
37
remotion/node_modules/@remotion/renderer/dist/options/encoding-max-rate.js
generated
vendored
Normal file
37
remotion/node_modules/@remotion/renderer/dist/options/encoding-max-rate.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.encodingMaxRateOption = void 0;
|
||||
const jsx_runtime_1 = require("react/jsx-runtime");
|
||||
let encodingMaxRate = null;
|
||||
const cliFlag = 'max-rate';
|
||||
exports.encodingMaxRateOption = {
|
||||
name: 'FFmpeg -maxrate flag',
|
||||
cliFlag,
|
||||
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The value for the ",
|
||||
jsx_runtime_1.jsx("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[cliFlag] !== undefined) {
|
||||
return {
|
||||
value: commandLine[cliFlag],
|
||||
source: 'cli',
|
||||
};
|
||||
}
|
||||
if (encodingMaxRate !== null) {
|
||||
return {
|
||||
value: encodingMaxRate,
|
||||
source: 'config',
|
||||
};
|
||||
}
|
||||
return {
|
||||
value: null,
|
||||
source: 'default',
|
||||
};
|
||||
},
|
||||
setConfig: (newMaxRate) => {
|
||||
encodingMaxRate = newMaxRate;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user