remove erroneous options, update version

This commit is contained in:
matty 2024-03-07 20:53:49 -05:00
parent 5c954b4c0d
commit dd700ffeaa
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "peertube-plugin-nctv-nvenc-transcode", "name": "peertube-plugin-nctv-nvenc-transcode",
"version": "1.0.1", "version": "1.0.3",
"license": "MIT", "license": "MIT",
"description": "Plugin that adds transcode profiles which use NVIDIA NVENC for hardware acceleration", "description": "Plugin that adds transcode profiles which use NVIDIA NVENC for hardware acceleration",
"engine": { "engine": {

View File

@ -213,7 +213,7 @@ async function vodBuilder(params: EncoderOptionsBuilderParams) : Promise<Encoder
`-preset ${pluginSettings.vodQuality}`, `-preset ${pluginSettings.vodQuality}`,
`-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` `-cq 18`
] ]
@ -248,13 +248,14 @@ async function liveBuilder(params: EncoderOptionsBuilderParams) : Promise<Encode
inputOptions: shouldInitVaapi ? buildInitOptions() : [], inputOptions: shouldInitVaapi ? buildInitOptions() : [],
outputOptions: [ outputOptions: [
`-preset ${pluginSettings.liveQuality}`, `-preset ${pluginSettings.liveQuality}`,
`-r:v${streamSuffix} ${fps}`, // `-r:v${streamSuffix} ${fps}`,
`-profile:v${streamSuffix} high`, `-profile:v${streamSuffix} high`,
`-g:v${streamSuffix} ${fps*2}`, // `-g:v${streamSuffix} ${fps*2}`,
`-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`, `-cq 18`,
// `-async 1`,
`-bf 4` `-bf 4`
] ]
} }