rely on -cq rather than bitrate, remove bufsize
This commit is contained in:
parent
8483a37bae
commit
356caf37fd
14
dist/main.js
vendored
14
dist/main.js
vendored
@ -163,10 +163,11 @@ async function vodBuilder(params) {
|
||||
inputOptions: shouldInitVaapi ? buildInitOptions() : [],
|
||||
outputOptions: [
|
||||
`-preset ${pluginSettings.vodQuality}`,
|
||||
`-b:v${streamSuffix} ${targetBitrate}`,
|
||||
`-bufsize ${targetBitrate * 2}`,
|
||||
//`-b:v${streamSuffix} ${targetBitrate}`,
|
||||
`-b:v${streamSuffix} 0`,
|
||||
//`-bufsize ${targetBitrate * 2}`,
|
||||
`-profile:v${streamSuffix} high`,
|
||||
`-cq 24`,
|
||||
`-cq 18`,
|
||||
`-rc:v vbr`,
|
||||
`-c:v${streamSuffix} h264_nvenc`,
|
||||
`-bf 4`
|
||||
@ -198,10 +199,11 @@ async function liveBuilder(params) {
|
||||
`-r:v${streamSuffix} ${fps}`,
|
||||
`-profile:v${streamSuffix} high`,
|
||||
`-c:v${streamSuffix} h264_nvenc`,
|
||||
`-cq 24`,
|
||||
`-cq 18`,
|
||||
`-g:v${streamSuffix} ${fps * 2}`,
|
||||
`-b:v${streamSuffix} ${targetBitrate}`,
|
||||
`-bufsize ${targetBitrate * 2}`,
|
||||
//`-b:v${streamSuffix} ${targetBitrate}`,
|
||||
`-b:v${streamSuffix} 0`,
|
||||
//`-bufsize ${targetBitrate * 2}`,
|
||||
`-rc:v vbr`,
|
||||
`-bf 4`
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user