Compare commits

..

No commits in common. "38936ff6ef698d99a0dac32f471be476ec1132b2" and "e6e4097b5f4709adf1c356428aac8a15034fe81b" have entirely different histories.

2 changed files with 5 additions and 3 deletions

6
dist/main.js vendored
View File

@ -4,7 +4,7 @@ exports.unregister = exports.register = void 0;
let logger;
let transcodingManager;
const DEFAULT_HARDWARE_DECODE = false;
const DEFAULT_VOD_QUALITY = "p5";
const DEFAULT_VOD_QUALITY = "p4";
const DEFAULT_LIVE_QUALITY = "hq";
const DEFAULT_BITRATES = new Map([
[0, 64 * 1000],
@ -164,7 +164,7 @@ async function vodBuilder(params) {
`-preset ${pluginSettings.vodQuality}`,
`-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`,
//`-crf 21`, // increased 19 to 21, file size massive
// `-cq 21`, // increased 19 to 21, file size massive
`-profile:v${streamSuffix} high`
]
};
@ -192,9 +192,11 @@ async function liveBuilder(params) {
`-tune ${pluginSettings.liveQuality}`,
`-r:v${streamSuffix} ${fps}`,
`-profile:v${streamSuffix} high`,
// `-level:v${streamSuffix} `,
`-g:v${streamSuffix} ${fps * 2}`,
`-b:v${streamSuffix} ${targetBitrate}`,
`-bufsize ${targetBitrate * 2}`,
// `-cq 19` // increase for accessibility
]
};
logger.info(`EncoderOptions: ${JSON.stringify(options)}`);

View File

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