Update presets for NVENC encoder

This commit is contained in:
Nyanmisaka 2022-02-28 23:05:08 +08:00 committed by GitHub
parent e26446f9c0
commit 9251c875b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1338,29 +1338,37 @@ namespace MediaBrowser.Controller.MediaEncoding
switch (encodingOptions.EncoderPreset) switch (encodingOptions.EncoderPreset)
{ {
case "veryslow": case "veryslow":
param += " -preset p7";
param += " -preset slow"; // lossless is only supported on maxwell and newer(2014+)
break; break;
case "slow": case "slow":
param += " -preset p6";
break;
case "slower": case "slower":
param += " -preset slow"; param += " -preset p5";
break; break;
case "medium": case "medium":
param += " -preset medium"; param += " -preset p4";
break; break;
case "fast": case "fast":
param += " -preset p3";
break;
case "faster": case "faster":
param += " -preset p2";
break;
case "veryfast": case "veryfast":
case "superfast": case "superfast":
case "ultrafast": case "ultrafast":
param += " -preset fast"; param += " -preset p1";
break; break;
default: default:
param += " -preset default"; param += " -preset p4";
break; break;
} }
} }