From dac4fa17c7f136343464e54ac6dade2ef9f091ce Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Thu, 28 Nov 2019 14:28:40 +1100 Subject: [PATCH] Make ffmpeg less verbose --- spectur_live_view.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/spectur_live_view.py b/spectur_live_view.py index f7b5809..9f44eee 100644 --- a/spectur_live_view.py +++ b/spectur_live_view.py @@ -222,16 +222,11 @@ def create_video(): mp4_name = os.path.join(current_hightide_dir, f'{timestamp}_{height}.mp4') now.strftime('%Y-%m-%d_%H-%M') command = [ - 'ffmpeg', - '-pattern_type', - 'glob', - '-framerate', - '10', - '-i', - current_hightide_dir + '/jpg/*.jpg', - mp4_name, + 'ffmpeg', '-hide_banner', '-loglevel', 'panic', '-pattern_type', + 'glob', '-framerate', '10', '-i', current_hightide_dir + '/jpg/*.jpg', + mp4_name ] - subprocess.run(command, stdout=subprocess.DEVNULL) + subprocess.run(command) # Create counter