From 6a47bd9e772099f4b9fc04abb4f8bf0739bda2f8 Mon Sep 17 00:00:00 2001 From: matty Date: Sat, 13 Apr 2024 20:32:58 -0400 Subject: [PATCH] keep -cq within bitrate limits, we'll see how it goes --- dist/main.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/main.js b/dist/main.js index 66ac1a1..5103d2c 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}`, - `-b:v${streamSuffix} 0`, - //`-bufsize ${targetBitrate * 2}`, + `-b:v${streamSuffix} ${targetBitrate}`, + //`-b:v${streamSuffix} 0`, + `-bufsize ${targetBitrate * 2}`, `-profile:v${streamSuffix} high`, - `-cq 24`, + `-cq 22`, `-rc:v vbr`, `-c:v${streamSuffix} h264_nvenc`, `-bf 4` @@ -199,11 +199,11 @@ async function liveBuilder(params) { `-r:v${streamSuffix} ${fps}`, `-profile:v${streamSuffix} high`, `-c:v${streamSuffix} h264_nvenc`, - `-cq 24`, + `-cq 22`, `-g:v${streamSuffix} ${fps * 2}`, - //`-b:v${streamSuffix} ${targetBitrate}`, - `-b:v${streamSuffix} 0`, - //`-bufsize ${targetBitrate * 2}`, + `-b:v${streamSuffix} ${targetBitrate}`, + //`-b:v${streamSuffix} 0`, + `-bufsize ${targetBitrate * 2}`, `-rc:v vbr`, `-bf 4` ]