add rc:v vbr and -bf 4

This commit is contained in:
matty 2024-04-13 19:18:32 -04:00
parent c92e017680
commit de17b72171

8
dist/main.js vendored
View File

@ -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)}`);