ffmpeg won't log anymore

This commit is contained in:
Master Kwoth
2016-02-19 04:53:54 +01:00
parent c08498af54
commit aa86359ea0
2 changed files with 18 additions and 17 deletions

View File

@ -172,12 +172,9 @@ namespace NadekoBot.Classes.Music {
//start feeding the buffer
var p = Process.Start(new ProcessStartInfo {
FileName = "ffmpeg",
Arguments = $"-i {Url} -f s16le -ar 48000 -ac 2 pipe:1",
Arguments = $"-i {Url} -f s16le -ar 48000 -ac 2 pipe:1 -loglevel quiet", //+ (NadekoBot.IsLinux ? "2> /dev/null" : "2>NUL"),
UseShellExecute = false,
RedirectStandardOutput = true,
RedirectStandardError = false,
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden,
});
int attempt = 0;
while (true) {