diff options
author | sr55 <[email protected]> | 2018-08-08 22:02:56 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-08-08 22:02:56 +0100 |
commit | cdd6a93023ecb514ce70aa76cf3856d2cf2c4c4d (patch) | |
tree | 13d9dff29cf8b1d925f09d6c052ecd6ae2ccf848 /win/CS/HandBrakeWPF/ViewModels | |
parent | d80a17590a1aa6c65de0ef0f2e6e0bd273f4753e (diff) |
NVEnc: Add human names for encoder presets and remove currently invalid options.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 7c14e1594..53f410356 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -1425,6 +1425,12 @@ namespace HandBrakeWPF.ViewModels this.VideoPresetMaxValue = encoder.Presets.Count - 1;
int middlePreset = (int)Math.Round((decimal)(this.VideoPresetMaxValue / 2), 0);
+
+ if (selectedEncoder == VideoEncoder.NvencH264 || selectedEncoder == VideoEncoder.NvencH265)
+ {
+ middlePreset = this.VideoPresets.IndexOf(this.VideoPresets.FirstOrDefault(s => s.ShortName == "default"));
+ }
+
this.VideoPresetValue = middlePreset;
}
else
|