track.SampleRate = value == "Auto" ? 0 : double.Parse(value);\r
break;\r
case "AudioTrack":\r
- //track.SourceTrack = value;\r
+ //track.SourceTrack = value;\r
break;\r
case "AudioTrackDRCSlider":\r
track.DRC = double.Parse(value);\r
\r
switch (key)\r
{\r
- // Output Settings\r
+ // Output Settings\r
case "FileFormat":\r
parsed.OutputFormat = Converters.GetFileFormat(value.Replace("file", string.Empty).Trim());\r
break;\r
parsed.OptimizeMP4 = value == "1";\r
break;\r
case "Mp4LargeFile":\r
- parsed.IPod5GSupport = value == "1";\r
+ parsed.LargeFile = value == "1";\r
break;\r
case "Mp4iPodCompatible":\r
parsed.IPod5GSupport = value == "1";\r
break;\r
\r
- // Picture Settings\r
+ // Picture Settings\r
case "PictureAutoCrop":\r
parsed.HasCropping = value != "1";\r
break;\r
}\r
break;\r
\r
- // Filters\r
+ // Filters\r
case "PictureDeblock":\r
parsed.Deblock = int.Parse(value);\r
break;\r
case "PictureDecomb":\r
parsed.Decomb = Decomb.Off;\r
- // Don't place custom here as it's handled in the filter panel\r
- if (value == "2")\r
+ switch (value)\r
{\r
- parsed.Decomb = Decomb.Default;\r
+ case "1":\r
+ parsed.Decomb = Decomb.Custom;\r
+ break;\r
+ case "2":\r
+ parsed.Decomb = Decomb.Default;\r
+ break;\r
+ case "3":\r
+ parsed.Decomb = Decomb.Fast;\r
+ break;\r
}\r
break;\r
case "PictureDecombCustom":\r
case "0":\r
parsed.Deinterlace = Deinterlace.Off;\r
break;\r
- // Don't place custom here as it's handled in the filter panel\r
+ case "1":\r
+ parsed.Deinterlace = Deinterlace.Custom;\r
+ break;\r
case "2":\r
parsed.Deinterlace = Deinterlace.Fast;\r
break;\r
case "0":\r
parsed.Denoise = Denoise.Off;\r
break;\r
- // Don't place custom here as it's handled in the filter panel\r
+ case "1":\r
+ parsed.Denoise = Denoise.Custom;\r
+ break;\r
case "2":\r
parsed.Denoise = Denoise.Weak;\r
break;\r
case "PictureDetelecine":\r
parsed.Detelecine = Detelecine.Off;\r
if (value == "1")\r
+ {\r
+ parsed.Detelecine = Detelecine.Custom;\r
+ }\r
+ if (value == "2")\r
{\r
parsed.Detelecine = Detelecine.Default;\r
}\r
}\r
break;\r
\r
- // Video Tab\r
+ // Video Tab\r
case "VideoAvgBitrate":\r
if (!string.IsNullOrEmpty(value))\r
{\r
parsed.TwoPass = value == "1";\r
break;\r
\r
- // Chapter Markers Tab\r
+ // Chapter Markers Tab\r
case "ChapterMarkers":\r
parsed.IncludeChapterMarkers = value == "1";\r
break;\r
\r
- // Advanced x264 tab\r
+ // Advanced x264 tab\r
case "x264Option":\r
parsed.AdvancedEncoderOptions = value;\r
break;\r
\r
- // Preset Information\r
+ // Preset Information\r
case "PresetBuildNumber":\r
parsed.PresetBuildNumber = int.Parse(value);\r
break;\r
AddEncodeElement(xmlWriter, "PictureDecombCustom", "string", string.Empty);\r
break;\r
case Decomb.Default:\r
- AddEncodeElement(xmlWriter, "PictureDecomb", "integer", "1");\r
+ AddEncodeElement(xmlWriter, "PictureDecomb", "integer", "2");\r
AddEncodeElement(xmlWriter, "PictureDecombCustom", "string", string.Empty);\r
break;\r
- default:\r
- AddEncodeElement(xmlWriter, "PictureDecomb", "integer", "2");\r
+ case Decomb.Fast:\r
+ AddEncodeElement(xmlWriter, "PictureDecomb", "integer", "3");\r
+ AddEncodeElement(xmlWriter, "PictureDecombCustom", "string", string.Empty);\r
+ break;\r
+ case Decomb.Custom:\r
+ AddEncodeElement(xmlWriter, "PictureDecomb", "integer", "1");\r
AddEncodeElement(xmlWriter, "PictureDecombCustom", "string", parsed.CustomDecomb);\r
break;\r
}\r
AddEncodeElement(xmlWriter, "PictureDeinterlaceCustom", "string", string.Empty);\r
break;\r
case Deinterlace.Fast:\r
- AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "1");\r
+ AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "2");\r
AddEncodeElement(xmlWriter, "PictureDeinterlaceCustom", "string", string.Empty);\r
break;\r
case Deinterlace.Slow:\r
- AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "2");\r
+ AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "3");\r
AddEncodeElement(xmlWriter, "PictureDeinterlaceCustom", "string", string.Empty);\r
break;\r
case Deinterlace.Slower:\r
- AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "3");\r
+ AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "4");\r
AddEncodeElement(xmlWriter, "PictureDeinterlaceCustom", "string", string.Empty);\r
break;\r
- default:\r
- AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "4");\r
+ case Deinterlace.Custom:\r
+ AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", "1");\r
AddEncodeElement(xmlWriter, "PictureDeinterlaceCustom", "string", parsed.CustomDeinterlace);\r
break;\r
}\r
AddEncodeElement(xmlWriter, "PictureDenoiseCustom", "string", string.Empty);\r
break;\r
case Denoise.Weak:\r
- AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "1");\r
+ AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "2");\r
AddEncodeElement(xmlWriter, "PictureDenoiseCustom", "string", string.Empty);\r
break;\r
case Denoise.Medium:\r
- AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "2");\r
+ AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "3");\r
AddEncodeElement(xmlWriter, "PictureDenoiseCustom", "string", string.Empty);\r
break;\r
case Denoise.Strong:\r
- AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "3");\r
+ AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "4");\r
AddEncodeElement(xmlWriter, "PictureDenoiseCustom", "string", string.Empty);\r
break;\r
- default:\r
- AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "4");\r
+ case Denoise.Custom:\r
+ AddEncodeElement(xmlWriter, "PictureDenoise", "integer", "1");\r
AddEncodeElement(xmlWriter, "PictureDenoiseCustom", "string", parsed.CustomDenoise);\r
break;\r
}\r
\r
- int detelecine;\r
+ int detelecine = 0;\r
switch (parsed.Detelecine)\r
{\r
case Detelecine.Off:\r
case Detelecine.Default:\r
detelecine = 2;\r
break;\r
- default:\r
+ case Detelecine.Custom:\r
detelecine = 1;\r
break;\r
}\r
\r
xmlWriter.WriteElementString("key", "AudioTrackGainSlider");\r
xmlWriter.WriteElementString("real", audioTrack.Gain.ToString());\r
- \r
+\r
xmlWriter.WriteEndElement();\r
}\r
#endregion\r