cq 22, re-add bufsize and bitrate shit
This commit is contained in:
parent
84cc3a58cd
commit
35ffb74383
16
dist/main.js
vendored
16
dist/main.js
vendored
@ -163,11 +163,11 @@ async function vodBuilder(params) {
|
|||||||
inputOptions: shouldInitVaapi ? buildInitOptions() : [],
|
inputOptions: shouldInitVaapi ? buildInitOptions() : [],
|
||||||
outputOptions: [
|
outputOptions: [
|
||||||
`-preset ${pluginSettings.vodQuality}`,
|
`-preset ${pluginSettings.vodQuality}`,
|
||||||
// `-b:v${streamSuffix} ${targetBitrate}`,
|
`-b:v${streamSuffix} ${targetBitrate}`,
|
||||||
// `-bufsize ${targetBitrate * 2}`,
|
`-bufsize ${targetBitrate * 2}`,
|
||||||
//`-crf 21`, // increased 19 to 21, file size massive
|
//`-crf 21`, // increased 19 to 21, file size massive
|
||||||
`-profile:v${streamSuffix} high`,
|
`-profile:v${streamSuffix} high`,
|
||||||
`-cq 23`,
|
`-cq 22`,
|
||||||
`-c:v${streamSuffix} h264_nvenc`
|
`-c:v${streamSuffix} h264_nvenc`
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -194,13 +194,13 @@ async function liveBuilder(params) {
|
|||||||
inputOptions: shouldInitVaapi ? buildInitOptions() : [],
|
inputOptions: shouldInitVaapi ? buildInitOptions() : [],
|
||||||
outputOptions: [
|
outputOptions: [
|
||||||
`-tune ${pluginSettings.liveQuality}`,
|
`-tune ${pluginSettings.liveQuality}`,
|
||||||
// `-r:v${streamSuffix} ${fps}`,
|
`-r:v${streamSuffix} ${fps}`,
|
||||||
`-profile:v${streamSuffix} high`,
|
`-profile:v${streamSuffix} high`,
|
||||||
`-c:v${streamSuffix} h264_nvenc`,
|
`-c:v${streamSuffix} h264_nvenc`,
|
||||||
`-cq 23`
|
`-cq 22`
|
||||||
// `-g:v${streamSuffix} ${fps * 2}`,
|
`-g:v${streamSuffix} ${fps * 2}`,
|
||||||
// `-b:v${streamSuffix} ${targetBitrate}`,
|
`-b:v${streamSuffix} ${targetBitrate}`,
|
||||||
// `-bufsize ${targetBitrate * 2}`,
|
`-bufsize ${targetBitrate * 2}`,
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
logger.info(`EncoderOptions: ${JSON.stringify(options)}`);
|
logger.info(`EncoderOptions: ${JSON.stringify(options)}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user