Avoid logging ffmpeg banner and progress info

This commit is contained in:
ConfusedPolarBear 2022-06-16 14:59:25 -05:00
parent d5f57f3ca7
commit a1f1faba82

View File

@ -112,7 +112,9 @@ public static class Chromaprint
{
var ffmpegPath = Plugin.Instance?.FFmpegPath ?? "ffmpeg";
var info = new ProcessStartInfo(ffmpegPath, args)
// Prepend some flags to prevent FFmpeg from logging it's banner and progress information
// for each file that is fingerprinted.
var info = new ProcessStartInfo(ffmpegPath, args.Insert(0, "-hide_banner -loglevel warning "))
{
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,