]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix QSV Preset/Profile/Level
authorsr55 <sr55.hb@outlook.com>
Wed, 14 Jan 2015 21:45:50 +0000 (21:45 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 14 Jan 2015 21:45:50 +0000 (21:45 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6752 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs

index 6a7a60418f31dd20ece90c1c548a284812e6371e..edea7fb9d71cd9cbae1f2f7cadfa6f3e3c758883 100644 (file)
@@ -223,6 +223,12 @@ namespace HandBrake.ApplicationServices.Utilities
                     profile.VideoTunes.Add(work.X265Tune.ToString().ToLower().Replace(" ", string.Empty));\r
                 }\r
             }\r
+            else if (work.VideoEncoder == VideoEncoder.QuickSync)\r
+            {\r
+                profile.VideoPreset = work.QsvPreset.ToString().ToLower().Replace(" ", string.Empty);\r
+                profile.VideoProfile = work.H264Profile.ToString().ToLower().Replace(" ", string.Empty);\r
+                profile.VideoLevel = work.H264Level;\r
+            }\r
             \r
             // Chapter Markers\r
             profile.IncludeChapterMarkers = work.IncludeChapterMarkers;\r