Merge pull request #7375 from jellyfin/presets-nvenc

This commit is contained in:
Cody Robibero 2022-02-28 20:15:14 -07:00 committed by GitHub
commit aec1ee5869
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)
{
case "veryslow":
param += " -preset slow"; // lossless is only supported on maxwell and newer(2014+)
param += " -preset p7";
break;
case "slow":
param += " -preset p6";
break;
case "slower":
param += " -preset slow";
param += " -preset p5";
break;
case "medium":
param += " -preset medium";
param += " -preset p4";
break;
case "fast":
param += " -preset p3";
break;
case "faster":
param += " -preset p2";
break;
case "veryfast":
case "superfast":
case "ultrafast":
param += " -preset fast";
param += " -preset p1";
break;
default:
param += " -preset default";
param += " -preset p4";
break;
}
}