Define explicitly the flac compression level.

This commit is contained in:
Tichau committed 2015-12-13 22:01:16 +01:00
1 parent ee791bcc11
commit c327eae1f6
2 files changed
+8 -6

No files matched your search

@@ -125,11 +125,11 @@ namespace FileConverter
System.Array.Resize(ref args, 2);
args[1] = "--settings";
//System.Array.Resize(ref args, 5);
//args[1] = "--conversion-preset";
//args[2] = "To Png";
//args[3] = "--verbose";
//args[4] = @"D:\Test\ApplicationIcon.ico";
System.Array.Resize(ref args, 5);
args[1] = "--conversion-preset";
args[2] = "To Flac";
args[3] = "--verbose";
args[4] = @"D:\Test\02 - Corn on the Cob.mp3";
//System.Array.Resize(ref args, 6);
//args[1] = "--conversion-preset";
@@ -69,7 +69,9 @@ namespace FileConverter.ConversionJobs
case OutputType.Flac:
{
arguments = string.Format("-n -stats -i \"{0}\" \"{1}\"", this.InputFilePath, this.OutputFilePath);
// http://taer-naguur.blogspot.fr/2013/11/flac-audio-encoding-with-ffmpeg.html
string encoderArgs = string.Format("-compression_level 12");
arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, encoderArgs);
}
break;