Merge pull request #7375 from jellyfin/presets-nvenc

pull/7382/head
Cody Robibero 3 years ago committed by GitHub
commit aec1ee5869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
} }
} }

Loading…
Cancel
Save