revert some changes, alter default quality levels

This commit is contained in:
matty 2024-04-10 09:27:04 -04:00
parent 2a087cc3c0
commit 39d08a8592
1 changed files with 6 additions and 6 deletions

12
dist/main.js vendored
View File

@ -4,7 +4,7 @@ exports.unregister = exports.register = void 0;
let logger;
let transcodingManager;
const DEFAULT_HARDWARE_DECODE = false;
const DEFAULT_VOD_QUALITY = "p7";
const DEFAULT_VOD_QUALITY = "p4";
const DEFAULT_LIVE_QUALITY = "hq";
const DEFAULT_BITRATES = new Map([
[0, 64 * 1000],
@ -162,8 +162,8 @@ async function vodBuilder(params) {
inputOptions: shouldInitVaapi ? buildInitOptions() : [],
outputOptions: [
`-preset ${pluginSettings.vodQuality}`,
// `-b:v${streamSuffix} ${targetBitrate}`,
// `-bufsize ${targetBitrate * 2}`,
`-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`,
// `-cq 21`, // increased 19 to 21, file size massive
`-profile:v${streamSuffix} high`
]
@ -192,10 +192,10 @@ async function liveBuilder(params) {
`-tune ${pluginSettings.liveQuality}`,
`-r:v${streamSuffix} ${fps}`,
`-profile:v${streamSuffix} high`,
// `-level:v${streamSuffix} `,
// `-level:v${streamSuffix} `,
`-g:v${streamSuffix} ${fps * 2}`,
// `-b:v${streamSuffix} ${targetBitrate}`,
// `-bufsize ${targetBitrate * 2}`,
`-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`,
// `-cq 19` // increase for accessibility
]
};