Compare commits
2 Commits
2a087cc3c0
...
e6e4097b5f
Author | SHA1 | Date | |
---|---|---|---|
e6e4097b5f | |||
39d08a8592 |
10
dist/main.js
vendored
10
dist/main.js
vendored
@ -4,7 +4,7 @@ exports.unregister = exports.register = void 0;
|
|||||||
let logger;
|
let logger;
|
||||||
let transcodingManager;
|
let transcodingManager;
|
||||||
const DEFAULT_HARDWARE_DECODE = false;
|
const DEFAULT_HARDWARE_DECODE = false;
|
||||||
const DEFAULT_VOD_QUALITY = "p7";
|
const DEFAULT_VOD_QUALITY = "p4";
|
||||||
const DEFAULT_LIVE_QUALITY = "hq";
|
const DEFAULT_LIVE_QUALITY = "hq";
|
||||||
const DEFAULT_BITRATES = new Map([
|
const DEFAULT_BITRATES = new Map([
|
||||||
[0, 64 * 1000],
|
[0, 64 * 1000],
|
||||||
@ -162,8 +162,8 @@ 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}`,
|
||||||
// `-cq 21`, // increased 19 to 21, file size massive
|
// `-cq 21`, // increased 19 to 21, file size massive
|
||||||
`-profile:v${streamSuffix} high`
|
`-profile:v${streamSuffix} high`
|
||||||
]
|
]
|
||||||
@ -194,8 +194,8 @@ async function liveBuilder(params) {
|
|||||||
`-profile:v${streamSuffix} high`,
|
`-profile:v${streamSuffix} high`,
|
||||||
// `-level:v${streamSuffix} `,
|
// `-level:v${streamSuffix} `,
|
||||||
`-g:v${streamSuffix} ${fps * 2}`,
|
`-g:v${streamSuffix} ${fps * 2}`,
|
||||||
// `-b:v${streamSuffix} ${targetBitrate}`,
|
`-b:v${streamSuffix} ${targetBitrate}`,
|
||||||
// `-bufsize ${targetBitrate * 2}`,
|
`-bufsize ${targetBitrate * 2}`,
|
||||||
// `-cq 19` // increase for accessibility
|
// `-cq 19` // increase for accessibility
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-nctv-nvenc-transcode",
|
"name": "peertube-plugin-nctv-nvenc-transcode",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"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": {
|
||||||
|
Loading…
Reference in New Issue
Block a user