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