diff options
author | sr55 <[email protected]> | 2015-01-14 20:59:29 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-01-14 20:59:29 +0000 |
commit | 7e4f5e4ec9c4f6d0c8f4540617726d428b70aaa0 (patch) | |
tree | e11decbab5e2c53fd9d142fb344191c35cc66b61 /win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs | |
parent | 3517fab9d6bba873a5bf7a047f651fd8ea169c8b (diff) |
WinGui: Libhb JSON API, Fix Extra encode arguments.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6751 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs b/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs index a7dac9fcd..6a7a60418 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/InteropModelCreator.cs @@ -209,8 +209,7 @@ namespace HandBrake.ApplicationServices.Utilities profile.VideoLevel = work.H264Level;
}
else if (work.VideoEncoder == VideoEncoder.X265)
- {
-
+ {
profile.VideoPreset = work.X265Preset.ToString().ToLower().Replace(" ", string.Empty);
if (work.H265Profile != x265Profile.None)
@@ -231,7 +230,7 @@ namespace HandBrake.ApplicationServices.Utilities job.UseDefaultChapterNames = work.IncludeChapterMarkers;
// Advanced Settings
- profile.VideoOptions = work.AdvancedEncoderOptions;
+ profile.VideoOptions = work.ShowAdvancedTab ? work.AdvancedEncoderOptions : work.ExtraAdvancedArguments;
// Subtitles
job.Subtitles = new Subtitles { SourceSubtitles = new List<SourceSubtitle>(), SrtSubtitles = new List<SrtSubtitle>() };
|