add cq settings back in, better outputs

This commit is contained in:
matty 2024-04-17 15:53:06 -04:00
parent ea1c106719
commit 11c0799ad0

8
dist/main.js vendored
View File

@ -235,7 +235,7 @@ async function vodBuilder(params) {
`-b:v${streamSuffix} ${targetBitrate}`, `-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`, `-bufsize ${targetBitrate * 2}`,
`-profile:v${streamSuffix} ${pluginSettings.h264Profile}`, `-profile:v${streamSuffix} ${pluginSettings.h264Profile}`,
//`-cq ${pluginSettings.cqH264}`, `-cq ${pluginSettings.cqH264}`,
`-bf 4` `-bf 4`
] ]
}; };
@ -269,7 +269,7 @@ async function liveBuilder(params) {
`-tune ${pluginSettings.liveQuality}`, `-tune ${pluginSettings.liveQuality}`,
`-r:v${streamSuffix} ${fps}`, `-r:v${streamSuffix} ${fps}`,
`-profile:v${streamSuffix} ${pluginSettings.h264Profile}`, `-profile:v${streamSuffix} ${pluginSettings.h264Profile}`,
//`-cq ${pluginSettings.cqH264}`, `-cq ${pluginSettings.cqH264}`,
`-g:v${streamSuffix} ${fps * 2}`, `-g:v${streamSuffix} ${fps * 2}`,
`-b:v${streamSuffix} ${targetBitrate}`, `-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`, `-bufsize ${targetBitrate * 2}`,
@ -305,7 +305,7 @@ async function hevcVODBuilder(params) {
`-b:v${streamSuffix} ${targetBitrate}`, `-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`, `-bufsize ${targetBitrate * 2}`,
`-profile:v${streamSuffix} ${pluginSettings.hevcProfile}`, `-profile:v${streamSuffix} ${pluginSettings.hevcProfile}`,
//`-cq ${pluginSettings.cqHEVC}` `-cq ${pluginSettings.cqHEVC}`
] ]
}; };
@ -341,7 +341,7 @@ async function hevcLiveBuilder(params) {
`-profile:v${streamSuffix} ${pluginSettings.hevcProfile}`, `-profile:v${streamSuffix} ${pluginSettings.hevcProfile}`,
`-g:v${streamSuffix} ${fps * 2}`, `-g:v${streamSuffix} ${fps * 2}`,
`-b:v${streamSuffix} ${targetBitrate}`, `-b:v${streamSuffix} ${targetBitrate}`,
//`-cq ${pluginSettings.cqHEVC}`, `-cq ${pluginSettings.cqHEVC}`,
`-bufsize ${targetBitrate * 2}` `-bufsize ${targetBitrate * 2}`
] ]
}; };