remove explicit bitrates, add h264_nvencwq

This commit is contained in:
matty 2024-04-13 16:50:57 -04:00
parent dff32f1466
commit 92b9e78076

16
dist/main.js vendored
View File

@ -163,10 +163,11 @@ async function vodBuilder(params) {
inputOptions: shouldInitVaapi ? buildInitOptions() : [], inputOptions: shouldInitVaapi ? buildInitOptions() : [],
outputOptions: [ outputOptions: [
`-preset ${pluginSettings.vodQuality}`, `-preset ${pluginSettings.vodQuality}`,
`-b:v${streamSuffix} ${targetBitrate}`, // `-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 1.5}`, // `-bufsize ${targetBitrate * 2}`,
//`-crf 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`,
`-c:v h264_nvenc`
] ]
}; };
logger.info(`EncoderOptions: ${JSON.stringify(options)}`); logger.info(`EncoderOptions: ${JSON.stringify(options)}`);
@ -192,11 +193,12 @@ async function liveBuilder(params) {
inputOptions: shouldInitVaapi ? buildInitOptions() : [], inputOptions: shouldInitVaapi ? buildInitOptions() : [],
outputOptions: [ outputOptions: [
`-tune ${pluginSettings.liveQuality}`, `-tune ${pluginSettings.liveQuality}`,
`-r:v${streamSuffix} ${fps}`, // `-r:v${streamSuffix} ${fps}`,
`-profile:v${streamSuffix} high`, `-profile:v${streamSuffix} high`,
`-g:v${streamSuffix} ${fps * 2}`, `-c:v h264_nvenc`
`-b:v${streamSuffix} ${targetBitrate}`, // `-g:v${streamSuffix} ${fps * 2}`,
`-bufsize ${targetBitrate * 1.5}`, // `-b:v${streamSuffix} ${targetBitrate}`,
// `-bufsize ${targetBitrate * 2}`,
] ]
}; };
logger.info(`EncoderOptions: ${JSON.stringify(options)}`); logger.info(`EncoderOptions: ${JSON.stringify(options)}`);