maybe fix a thing

This commit is contained in:
matty 2024-03-07 20:08:06 -05:00
parent b77a9d6866
commit 33da091ba7
2 changed files with 8 additions and 6 deletions

View File

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

View File

@ -175,12 +175,14 @@ function printResolution(resolution : VideoResolution) : string {
function buildInitOptions() {
if (pluginSettings.hardwareDecode) {
return [
'-vcodec h264_nvenc'
]
} else {
'-hwaccel cuda',
'-hwaccel_output_format cuda'
];
}
else {
return [
'-vcodec h264_nvenc'
]
'-hwaccel cuda'
];
}
}