From 35ffb7438398b84988c6c1898050ed8f123f6a18 Mon Sep 17 00:00:00 2001 From: matty Date: Sat, 13 Apr 2024 18:02:09 -0400 Subject: [PATCH] cq 22, re-add bufsize and bitrate shit --- dist/main.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/main.js b/dist/main.js index d43c62c..f1962e2 100644 --- a/dist/main.js +++ b/dist/main.js @@ -163,11 +163,11 @@ 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}`, //`-crf 21`, // increased 19 to 21, file size massive `-profile:v${streamSuffix} high`, - `-cq 23`, + `-cq 22`, `-c:v${streamSuffix} h264_nvenc` ] }; @@ -194,13 +194,13 @@ async function liveBuilder(params) { inputOptions: shouldInitVaapi ? buildInitOptions() : [], outputOptions: [ `-tune ${pluginSettings.liveQuality}`, - // `-r:v${streamSuffix} ${fps}`, + `-r:v${streamSuffix} ${fps}`, `-profile:v${streamSuffix} high`, `-c:v${streamSuffix} h264_nvenc`, - `-cq 23` - // `-g:v${streamSuffix} ${fps * 2}`, - // `-b:v${streamSuffix} ${targetBitrate}`, - // `-bufsize ${targetBitrate * 2}`, + `-cq 22` + `-g:v${streamSuffix} ${fps * 2}`, + `-b:v${streamSuffix} ${targetBitrate}`, + `-bufsize ${targetBitrate * 2}`, ] }; logger.info(`EncoderOptions: ${JSON.stringify(options)}`);