update maxBitrate = baseBitrate * 1.6

This commit is contained in:
matty 2024-04-17 10:35:57 -04:00
parent c856de817f
commit c81c019ebb

2
dist/main.js vendored
View File

@ -352,7 +352,7 @@ async function hevcLiveBuilder(params) {
function getTargetBitrate(resolution, fps) { function getTargetBitrate(resolution, fps) {
const baseBitrate = pluginSettings.baseBitrate.get(resolution) || 0; const baseBitrate = pluginSettings.baseBitrate.get(resolution) || 0;
const maxBitrate = baseBitrate * 1.4; const maxBitrate = baseBitrate * 1.6;
const maxBitrateDifference = maxBitrate - baseBitrate; const maxBitrateDifference = maxBitrate - baseBitrate;
const maxFpsDifference = 60 - 30; const maxFpsDifference = 60 - 30;
return Math.floor(baseBitrate + (fps - 30) * (maxBitrateDifference / maxFpsDifference)); return Math.floor(baseBitrate + (fps - 30) * (maxBitrateDifference / maxFpsDifference));