case "Mp4HttpOptimize":\r
preset.Task.OptimizeMP4 = kvp.Value == 1;\r
break;\r
- case "Mp4LargeFile":\r
- preset.Task.LargeFile = kvp.Value == 1;\r
- break;\r
case "Mp4iPodCompatible":\r
preset.Task.IPod5GSupport = kvp.Value == 1;\r
break;\r
this.IncludeChapterMarkers = task.IncludeChapterMarkers;\r
this.IPod5GSupport = task.IPod5GSupport;\r
this.KeepDisplayAspect = task.KeepDisplayAspect;\r
- this.LargeFile = task.LargeFile;\r
this.MaxHeight = task.MaxHeight;\r
this.MaxWidth = task.MaxWidth;\r
this.Modulus = task.Modulus;\r
/// </summary>\r
public OutputFormat OutputFormat { get; set; }\r
\r
- /// <summary>\r
- /// Gets or sets a value indicating whether LargeFile.\r
- /// </summary>\r
- public bool LargeFile { get; set; }\r
-\r
/// <summary>\r
/// Gets or sets a value indicating whether Optimize.\r
/// </summary>\r
{\r
get\r
{\r
- if (this.OutputFormat == OutputFormat.M4V || this.OutputFormat == OutputFormat.Mp4 || this.OutputFormat == OutputFormat.av_mp4)\r
+ if (this.OutputFormat == OutputFormat.M4V || this.OutputFormat == OutputFormat.Mp4)\r
{\r
bool audio = this.AudioTracks.Any(item => item.Encoder == AudioEncoder.Ac3Passthrough || \r
item.Encoder == AudioEncoder.Ac3 || item.Encoder == AudioEncoder.DtsPassthrough || item.Encoder == AudioEncoder.Passthrough);\r
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
private Audio scannedTrack;\r
\r
+ private bool isDefault;\r
+\r
#endregion\r
\r
#region Constructors and Destructors\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Gets or sets a value indicating whether is default.\r
+ /// </summary>\r
+ public bool IsDefault\r
+ {\r
+ get\r
+ {\r
+ return this.isDefault;\r
+ }\r
+ set\r
+ {\r
+ this.isDefault = value;\r
+ }\r
+ }\r
+\r
/// <summary>\r
/// Gets or sets Audio Encoder\r
/// </summary>\r
\r
[Description("av_mkv")]\r
av_mkv,\r
-\r
- [Description("av_mp4")]\r
- av_mp4,\r
}\r
}\r
switch (format.ToLower())\r
{\r
default:\r
- return OutputFormat.av_mp4;\r
+ return OutputFormat.Mp4;\r
case "m4v":\r
- return OutputFormat.av_mp4;\r
+ return OutputFormat.Mp4;\r
case "mkv":\r
return OutputFormat.av_mkv;\r
}\r
{\r
default:\r
return "mp4";\r
- case OutputFormat.av_mp4:\r
+ case OutputFormat.Mp4:\r
return "m4v";\r
case OutputFormat.av_mkv:\r
return "mkv";\r
profile.IPod5GSupport = work.IPod5GSupport;\r
profile.IncludeChapterMarkers = work.IncludeChapterMarkers;\r
profile.KeepDisplayAspect = work.KeepDisplayAspect;\r
- profile.LargeFile = work.LargeFile;\r
profile.MaxHeight = work.MaxHeight.HasValue ? work.MaxHeight.Value : 0;\r
profile.MaxWidth = work.MaxWidth.HasValue ? work.MaxWidth.Value : 0;\r
profile.Modulus = work.Modulus.HasValue ? work.Modulus.Value : 16;\r
AddEncodeElement(xmlWriter, "FileFormat", "string", (parsed.OutputFormat == OutputFormat.Mp4 || parsed.OutputFormat == OutputFormat.M4V) ? "MP4 file" : "MKV file");\r
AddBooleanElement(xmlWriter, "Folder", false);\r
AddEncodeElement(xmlWriter, "Mp4HttpOptimize", "integer", parsed.OptimizeMP4 ? "1" : "0");\r
- AddEncodeElement(xmlWriter, "Mp4LargeFile", "integer", parsed.LargeFile ? "1" : "0");\r
AddEncodeElement(xmlWriter, "Mp4iPodCompatible", "integer", parsed.IPod5GSupport ? "1" : "0");\r
AddEncodeElement(xmlWriter, "PictureAutoCrop", "integer", "1");\r
AddEncodeElement(xmlWriter, "PictureBottomCrop", "integer", parsed.Cropping.Bottom.ToString());\r
query += string.Format(" -f {0} ", EnumHelper<Enum>.GetDescription(task.OutputFormat).ToLower());\r
\r
// These are output settings features\r
- if (task.LargeFile)\r
- query += " -4 ";\r
-\r
if (task.IPod5GSupport)\r
query += " -I ";\r
\r
{\r
parsed.OutputFormat = Converters.GetFileFormat(format.Groups[1].ToString());\r
}\r
- parsed.LargeFile = largerMp4.Success;\r
parsed.IPod5GSupport = ipodAtom.Success;\r
parsed.OptimizeMP4 = optimizeMP4.Success;\r
\r
/*\r
* File Extension\r
*/\r
- if (task.OutputFormat == OutputFormat.Mp4 || task.OutputFormat == OutputFormat.M4V || task.OutputFormat == OutputFormat.av_mp4)\r
+ if (task.OutputFormat == OutputFormat.Mp4 || task.OutputFormat == OutputFormat.M4V)\r
{\r
switch (userSettingService.GetUserSetting<int>(UserSettingConstants.UseM4v))\r
{\r
{\r
this.NotifyOfPropertyChange(() => this.Task);\r
\r
- if (Task.OutputFormat == OutputFormat.Mp4 || this.Task.OutputFormat == OutputFormat.av_mp4)\r
+ if (Task.OutputFormat == OutputFormat.Mp4)\r
{\r
foreach (AudioTrack track in this.Task.AudioTracks.Where(track => track.Encoder == AudioEncoder.ffflac || track.Encoder == AudioEncoder.Vorbis))\r
{\r
if (this.SelectedPreset != null)\r
{\r
// Main Window Settings\r
- this.CurrentTask.LargeFile = selectedPreset.Task.LargeFile;\r
this.CurrentTask.OptimizeMP4 = selectedPreset.Task.OptimizeMP4;\r
this.CurrentTask.IPod5GSupport = selectedPreset.Task.IPod5GSupport;\r
this.SelectedOutputFormat = selectedPreset.Task.OutputFormat;\r
{\r
return new List<OutputFormat>\r
{\r
- OutputFormat.av_mp4, OutputFormat.av_mkv, OutputFormat.Mp4, OutputFormat.Mkv\r
+ OutputFormat.Mp4, OutputFormat.av_mkv, OutputFormat.Mkv\r
};\r
}\r
}\r
this.SelectedOutputFormat = OutputFormat.av_mkv;\r
break;\r
case ".mp4":\r
- this.SelectedOutputFormat = OutputFormat.av_mp4;\r
+ this.SelectedOutputFormat = OutputFormat.Mp4;\r
break;\r
case ".m4v":\r
- this.SelectedOutputFormat = OutputFormat.av_mp4;\r
+ this.SelectedOutputFormat = OutputFormat.M4V;\r
break;\r
}\r
\r
if (newExtension == ".mkv")\r
{\r
this.IsMkv = true;\r
- this.CurrentTask.LargeFile = false;\r
this.CurrentTask.OptimizeMP4 = false;\r
this.CurrentTask.IPod5GSupport = false;\r
}\r
\r
if ((source.SubtitleType == SubtitleType.PGS || source.SubtitleType == SubtitleType.VobSub) &&\r
this.Task != null &&\r
- (this.Task.OutputFormat == OutputFormat.Mp4 || this.Task.OutputFormat == OutputFormat.M4V || this.Task.OutputFormat == OutputFormat.av_mp4))\r
+ (this.Task.OutputFormat == OutputFormat.Mp4 || this.Task.OutputFormat == OutputFormat.M4V))\r
{\r
this.SelectBurnedInTrack(track);\r
}\r
{\r
this.NotifyOfPropertyChange(() => this.Task);\r
\r
- if ((Task.OutputFormat == OutputFormat.Mp4 || Task.OutputFormat == OutputFormat.av_mp4) && this.SelectedVideoEncoder == VideoEncoder.Theora)\r
+ if ((Task.OutputFormat == OutputFormat.Mp4) && this.SelectedVideoEncoder == VideoEncoder.Theora)\r
{\r
this.SelectedVideoEncoder = VideoEncoder.X264;\r
}\r
<Setter Property="Tag" Value="{Binding}" />\r
\r
<Style.Triggers>\r
- <DataTrigger Binding="{Binding Path=IsDisc}" Value="true">\r
+ <DataTrigger Binding="{Binding Path=IsDrive}" Value="true">\r
<Setter Property="Icon" Value="{StaticResource Disc}"/>\r
</DataTrigger>\r
<DataTrigger Binding="{Binding Path=IsOpenFolder}" Value="true">\r
ItemsSource="{Binding OutputFormats}"\r
SelectedItem="{Binding SelectedOutputFormat}"\r
/>\r
- <CheckBox Name="LargeFileMp4"\r
- Margin="8,0,0,0"\r
- VerticalAlignment="Center"\r
- Content="Large File Size"\r
- IsChecked="{Binding Path=CurrentTask.LargeFile}"\r
- Visibility="{Binding IsMkv,\r
- Converter={StaticResource boolToVisConverter},\r
- ConverterParameter=true}"\r
- />\r
<CheckBox Name="WebOptimized"\r
Margin="8,0,0,0"\r
VerticalAlignment="Center"\r