bump default VOD quality to p5
This commit is contained in:
parent
e6e4097b5f
commit
506c47f3db
6
dist/main.js
vendored
6
dist/main.js
vendored
@ -4,7 +4,7 @@ exports.unregister = exports.register = void 0;
|
|||||||
let logger;
|
let logger;
|
||||||
let transcodingManager;
|
let transcodingManager;
|
||||||
const DEFAULT_HARDWARE_DECODE = false;
|
const DEFAULT_HARDWARE_DECODE = false;
|
||||||
const DEFAULT_VOD_QUALITY = "p4";
|
const DEFAULT_VOD_QUALITY = "p5";
|
||||||
const DEFAULT_LIVE_QUALITY = "hq";
|
const DEFAULT_LIVE_QUALITY = "hq";
|
||||||
const DEFAULT_BITRATES = new Map([
|
const DEFAULT_BITRATES = new Map([
|
||||||
[0, 64 * 1000],
|
[0, 64 * 1000],
|
||||||
@ -164,7 +164,7 @@ async function vodBuilder(params) {
|
|||||||
`-preset ${pluginSettings.vodQuality}`,
|
`-preset ${pluginSettings.vodQuality}`,
|
||||||
`-b:v${streamSuffix} ${targetBitrate}`,
|
`-b:v${streamSuffix} ${targetBitrate}`,
|
||||||
`-bufsize ${targetBitrate * 2}`,
|
`-bufsize ${targetBitrate * 2}`,
|
||||||
// `-cq 21`, // increased 19 to 21, file size massive
|
//`-crf 21`, // increased 19 to 21, file size massive
|
||||||
`-profile:v${streamSuffix} high`
|
`-profile:v${streamSuffix} high`
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -192,11 +192,9 @@ async function liveBuilder(params) {
|
|||||||
`-tune ${pluginSettings.liveQuality}`,
|
`-tune ${pluginSettings.liveQuality}`,
|
||||||
`-r:v${streamSuffix} ${fps}`,
|
`-r:v${streamSuffix} ${fps}`,
|
||||||
`-profile:v${streamSuffix} high`,
|
`-profile:v${streamSuffix} high`,
|
||||||
// `-level:v${streamSuffix} `,
|
|
||||||
`-g:v${streamSuffix} ${fps * 2}`,
|
`-g:v${streamSuffix} ${fps * 2}`,
|
||||||
`-b:v${streamSuffix} ${targetBitrate}`,
|
`-b:v${streamSuffix} ${targetBitrate}`,
|
||||||
`-bufsize ${targetBitrate * 2}`,
|
`-bufsize ${targetBitrate * 2}`,
|
||||||
// `-cq 19` // increase for accessibility
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
logger.info(`EncoderOptions: ${JSON.stringify(options)}`);
|
logger.info(`EncoderOptions: ${JSON.stringify(options)}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user