diff options
author | sr55 <[email protected]> | 2011-10-30 17:58:53 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-10-30 17:58:53 +0000 |
commit | 8b8ebd1f417c6ef65ab431a36fad0bbf0e2daf58 (patch) | |
tree | 37637e767ceac63a4bb48b8a99c17b196128b846 /win/CS/HandBrake.ApplicationServices | |
parent | 2f0f372b09897e703a8d01fe9774aa59c936a013 (diff) |
Interop: Updates to the Interop Library to use the new methods to get at the Audio/Video encoder information from libhb. Patch by RandomEngy.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4329 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs b/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs index 6221b5784..47d68feab 100644 --- a/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs +++ b/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs @@ -65,9 +65,9 @@ namespace HandBrake.ApplicationServices.Functions Bitrate = track.Bitrate,
Drc = track.DRC,
Gain = track.Gain,
- Encoder = track.Encoder,
+ Encoder = Converters.GetCliAudioEncoder(track.Encoder),
InputNumber = track.Track.HasValue ? track.Track.Value : 0,
- Mixdown = track.MixDown,
+ Mixdown = Converters.GetCliMixDown(track.MixDown),
SampleRateRaw = GetSampleRateRaw(track.SampleRate),
};
@@ -113,10 +113,10 @@ namespace HandBrake.ApplicationServices.Functions {
case OutputFormat.Mp4:
case OutputFormat.M4V:
- profile.OutputFormat = Interop.Model.Encoding.OutputFormat.Mp4;
+ profile.OutputFormat = Container.Mp4;
break;
case OutputFormat.Mkv:
- profile.OutputFormat = Interop.Model.Encoding.OutputFormat.Mkv;
+ profile.OutputFormat = Container.Mkv;
break;
}
profile.PeakFramerate = work.FramerateMode == FramerateMode.PFR;
@@ -136,7 +136,7 @@ namespace HandBrake.ApplicationServices.Functions profile.UseDisplayWidth = true;
profile.VideoBitrate = work.VideoBitrate.HasValue ? work.VideoBitrate.Value : 0;
profile.VideoEncodeRateType = work.VideoEncodeRateType;
- profile.VideoEncoder = work.VideoEncoder;
+ profile.VideoEncoder = Converters.GetVideoEncoder(work.VideoEncoder);
profile.Width = work.Width.HasValue ? work.Width.Value : 0;
profile.X264Options = work.AdvancedEncoderOptions;
|