From 11ec464f89295c3dd0092b88b98b22e19549fd0d Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Tue, 21 May 2024 15:38:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Silence=20ffmpeg=20output.=20Fix?= =?UTF-8?q?es=20#103?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/download.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index 1d71e33..25c69b1 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -477,7 +477,7 @@ class Download: def _video_convert(self, path_file: str) -> str: path_file_out = path_file + AudioExtensions.MP4 - result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy").run() + result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy", loglevel="quiet").run() return path_file_out @@ -485,7 +485,9 @@ class Download: path_media_out = path_media_src + AudioExtensions.FLAC result, _ = ( ffmpeg.input(path_media_src) - .output(path_media_out, map=0, movflags="use_metadata_tags", acodec="copy", map_metadata="0:g") + .output( + path_media_out, map=0, movflags="use_metadata_tags", acodec="copy", map_metadata="0:g", loglevel="quiet" + ) .run() )