private const string FffmpegArguments = "-acodec mp3 -ac 2 -ab 160k"; foreach (InputFile inputFile in this.inputFiles) { string input = Path.Combine(inputFile.Location, inputFile.Name); string output = Path.Combine( inputFile.Location, Path.GetFileNameWithoutExtension(inputFile.Name) + "." + OutputExt); ProcessStartInfo startInfo = new ProcessStartInfo( "ffmpeg.exe", string.Format(@" -i ""{0}"" {1} ""{2}""", input, FffmpegArguments, output)) { WindowStyle = ProcessWindowStyle.Hidden, UseShellExecute = false, RedirectStandardInput = true, RedirectStandardOutput = true, RedirectStandardError = true, CreateNoWindow = true }; Process proc = new Process { StartInfo = startInfo }; proc.Start(); }
UseShellExecute = true, RedirectStandardInput = false, RedirectStandardOutput = false, RedirectStandardError = false,
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)