From dbf898635dc12608b78c33916137465ce08937bf Mon Sep 17 00:00:00 2001 From: Scott <628593+sr55@users.noreply.github.com> Date: Fri, 29 Jun 2018 19:48:26 +0100 Subject: Add NVEnc encoder. (Round 3) (#1437) Adding the Nvidia NVEnc H.264 and H.265 encoders. Based on Initial work by sgothel --enable-nvenc is the new compile time configure option to enable for builds. --- win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'win/CS/HandBrakeWPF/Converters') diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs index 42ccf1c10..40131ddb3 100644 --- a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs @@ -101,6 +101,16 @@ namespace HandBrakeWPF.Converters.Video encoders.Remove(VideoEncoder.VceH265); } + if (!SystemInfo.IsNVEncH264Available) + { + encoders.Remove(VideoEncoder.NvencH264); + } + + if (!SystemInfo.IsNVEncH265Available) + { + encoders.Remove(VideoEncoder.NvencH265); + } + return EnumHelper.GetEnumDisplayValuesSubset(encoders); } -- cgit v1.2.3