Skip to content

Commit

Permalink
Backport pull request #9538 from jellyfin/release-10.8.z
Browse files Browse the repository at this point in the history
Fix nvenc preset order

Original-merge: 79bb756

Merged-by: Cody Robibero <cody@robibe.ro>

Backported-by: Bond_009 <bond.009@outlook.com>
  • Loading branch information
TheTyrius authored and Bond-009 committed Jun 13, 2023
1 parent ed88c8b commit 67bc81e
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 @@ -165,6 +165,7 @@
- [MinecraftPlaye](https://github.com/MinecraftPlaye)
- [RealGreenDragon](https://github.com/RealGreenDragon)
- [ipitio](https://github.com/ipitio)
- [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 @@ -1549,11 +1549,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 @@ -1586,8 +1586,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 67bc81e

Please sign in to comment.