Skip to content

Commit

Permalink
Merge pull request #9538 from TheTyrius/fix-nvenc-preset-order
Browse files Browse the repository at this point in the history
Fix nvenc preset order
  • Loading branch information
crobibero committed Mar 25, 2023
2 parents e6313d0 + bf37db7 commit 79bb756
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
- [vgambier](https://github.com/vgambier)
- [MinecraftPlaye](https://github.com/MinecraftPlaye)
- [RealGreenDragon](https://github.com/RealGreenDragon)
- [TheTyrius](https://github.com/TheTyrius)

# Emby Contributors

Expand Down
6 changes: 3 additions & 3 deletions MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1459,11 +1459,11 @@ public string GetVideoQualityParam(EncodingJobInfo state, string videoEncoder, E
param += " -preset p7";
break;

case "slow":
case "slower":
param += " -preset p6";
break;

case "slower":
case "slow":
param += " -preset p5";
break;

Expand Down Expand Up @@ -1496,8 +1496,8 @@ public string GetVideoQualityParam(EncodingJobInfo state, string videoEncoder, E
switch (encodingOptions.EncoderPreset)
{
case "veryslow":
case "slow":
case "slower":
case "slow":
param += " -quality quality";
break;

Expand Down

0 comments on commit 79bb756

Please sign in to comment.