From de17b721714b5bacdcc4b864ae950c15bd9ee600 Mon Sep 17 00:00:00 2001 From: matty Date: Sat, 13 Apr 2024 19:18:32 -0400 Subject: [PATCH] add rc:v vbr and -bf 4 --- dist/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/main.js b/dist/main.js index dd7df84..83f3ec0 100644 --- a/dist/main.js +++ b/dist/main.js @@ -167,7 +167,9 @@ async function vodBuilder(params) { `-bufsize ${targetBitrate * 2}`, `-profile:v${streamSuffix} high`, `-cq 24`, - `-c:v${streamSuffix} h264_nvenc` + `-rc:v vbr`, + `-c:v${streamSuffix} h264_nvenc`, + `-bf 4` ] }; logger.info(`EncoderOptions: ${JSON.stringify(options)}`); @@ -199,7 +201,9 @@ async function liveBuilder(params) { `-cq 24`, `-g:v${streamSuffix} ${fps * 2}`, `-b:v${streamSuffix} ${targetBitrate}`, - `-bufsize ${targetBitrate * 2}` + `-bufsize ${targetBitrate * 2}`, + `-rc:v vbr`, + `-bf 4` ] }; logger.info(`EncoderOptions: ${JSON.stringify(options)}`);