From a1f1faba82e5afde55e65f90d2e044765ff8aab9 Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Thu, 16 Jun 2022 14:59:25 -0500 Subject: [PATCH] Avoid logging ffmpeg banner and progress info --- ConfusedPolarBear.Plugin.IntroSkipper/Chromaprint.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Chromaprint.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Chromaprint.cs index 0cca214..31874f9 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Chromaprint.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Chromaprint.cs @@ -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,