}\r
}\r
\r
+ private string q_format;\r
+ /// <summary>\r
+ /// Returns a String \r
+ /// Full path of the destination.\r
+ /// </summary>\r
+ public string Format\r
+ {\r
+ get\r
+ {\r
+ return this.q_format;\r
+ }\r
+ }\r
+\r
private int q_dvdTitle;\r
/// <summary>\r
/// Returns an Integer\r
Match source = r1.Match(input.Replace('"', '\"'));\r
Match title = Regex.Match(input, @"-t ([0-9]*)");\r
Match chapters = Regex.Match(input, @"-c ([0-9-]*)");\r
+ Match format = Regex.Match(input, @"-f ([a-z0-9a-z0-9a-z0-9]*)");\r
+ //-f mp4\r
\r
//Destination\r
Regex r2 = new Regex(@"(-o)(?:\s\"")([a-zA-Z0-9:\\\s\.]+)(?:\"")");\r
thisQuery.q_chaptersStart = int.Parse(actTitles[0]);\r
thisQuery.q_chaptersFinish = int.Parse(actTitles[1]);\r
}\r
+\r
+ if (format.Success != false)\r
+ {\r
+ \r
+ thisQuery.q_format = format.ToString().Replace("-f ", "");\r
+ }\r
#endregion\r
\r
//\r
videoEncoderConvertion = "H.264 (iPod)";\r
break;\r
default:\r
- videoEncoderConvertion = "H.264";\r
+ videoEncoderConvertion = "Mpeg 4";\r
break;\r
}\r
thisQuery.q_videoEncoder = videoEncoderConvertion;\r
thisQuery.q_detelecine = detelecine.Success;\r
thisQuery.q_deBlock = deblock.Success;\r
\r
+ thisQuery.q_deinterlace = "None";\r
if (deinterlace.Success != false)\r
{\r
switch (deinterlace.ToString().Replace("--deinterlace=", ""))\r
break;\r
}\r
}\r
- \r
+\r
+ thisQuery.q_denoise = "None";\r
if (denoise.Success != false)\r
{\r
switch (denoise.ToString().Replace("--denoise=", ""))\r
if (videoQuality.Success != false)\r
{\r
qConvert = double.Parse(videoQuality.ToString().Replace("-q ", "")) * 100;\r
+ qConvert = System.Math.Ceiling(qConvert);\r
thisQuery.q_videoQuality = int.Parse(qConvert.ToString());\r
}\r
thisQuery.q_crf = CRF.Success;\r
{\r
thisQuery.q_audioTrack1 = audioChannel.ToString().Replace("-a ", "");\r
}\r
- \r
+ else\r
+ {\r
+ thisQuery.q_audioTrack1 = "Automatic";\r
+ }\r
+\r
+ thisQuery.q_audioTrackMix = "Automatic";\r
if (audioChannelsMix.Success != false)\r
{\r
switch (audioChannelsMix.ToString().Replace("-6 ", "").Replace(" ",""))\r
thisQuery.q_audioTrackMix = "6 Channel Discrete";\r
break;\r
default:\r
- thisQuery.q_audioTrackMix = "Automatic2";\r
+ thisQuery.q_audioTrackMix = "Automatic";\r
break;\r
}\r
\r
{\r
thisQuery.q_subtitles = subtitles.ToString().Replace("-s ", "");\r
}\r
+ else\r
+ {\r
+ thisQuery.q_subtitles = "None";\r
+ }\r
#endregion\r
\r
//\r