From 92b9e7807666dd5c0cb852583ac64979927422ee Mon Sep 17 00:00:00 2001 From: matty Date: Sat, 13 Apr 2024 16:50:57 -0400 Subject: [PATCH] remove explicit bitrates, add h264_nvencwq --- dist/main.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dist/main.js b/dist/main.js index 571a7b6..4ffd4e5 100644 --- a/dist/main.js +++ b/dist/main.js @@ -163,10 +163,11 @@ async function vodBuilder(params) { inputOptions: shouldInitVaapi ? buildInitOptions() : [], outputOptions: [ `-preset ${pluginSettings.vodQuality}`, - `-b:v${streamSuffix} ${targetBitrate}`, - `-bufsize ${targetBitrate * 1.5}`, + // `-b:v${streamSuffix} ${targetBitrate}`, + // `-bufsize ${targetBitrate * 2}`, //`-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)}`); @@ -192,11 +193,12 @@ async function liveBuilder(params) { inputOptions: shouldInitVaapi ? buildInitOptions() : [], outputOptions: [ `-tune ${pluginSettings.liveQuality}`, - `-r:v${streamSuffix} ${fps}`, + // `-r:v${streamSuffix} ${fps}`, `-profile:v${streamSuffix} high`, - `-g:v${streamSuffix} ${fps * 2}`, - `-b:v${streamSuffix} ${targetBitrate}`, - `-bufsize ${targetBitrate * 1.5}`, + `-c:v h264_nvenc` + // `-g:v${streamSuffix} ${fps * 2}`, + // `-b:v${streamSuffix} ${targetBitrate}`, + // `-bufsize ${targetBitrate * 2}`, ] }; logger.info(`EncoderOptions: ${JSON.stringify(options)}`);