add -cq option

This commit is contained in:
matty 2024-03-07 20:44:49 -05:00
parent 2d0694dc8c
commit 5c954b4c0d

View File

@ -214,7 +214,8 @@ async function vodBuilder(params: EncoderOptionsBuilderParams) : Promise<Encoder
`-b:v${streamSuffix} ${targetBitrate}`, `-b:v${streamSuffix} ${targetBitrate}`,
`-c:v${streamSuffix} h264_nvenc`, `-c:v${streamSuffix} h264_nvenc`,
`-bufsize ${targetBitrate * 2}`, `-bufsize ${targetBitrate * 2}`,
`-bf 4` `-bf 4`,
`-cq 18`
] ]
} }
logger.info(`EncoderOptions: ${JSON.stringify(options)}`) logger.info(`EncoderOptions: ${JSON.stringify(options)}`)
@ -253,6 +254,7 @@ async function liveBuilder(params: EncoderOptionsBuilderParams) : Promise<Encode
`-c:v${streamSuffix} h264_nvenc`, `-c:v${streamSuffix} h264_nvenc`,
`-b:v${streamSuffix} ${targetBitrate}`, `-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`, `-bufsize ${targetBitrate * 2}`,
`-cq 18`,
`-bf 4` `-bf 4`
] ]
} }