From 1b99b57a8aa97434b3534da6d242eb730332a785 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Mon, 5 Feb 2024 09:12:36 +0100 Subject: [PATCH] Make style check happy --- src/zimscraperlib/video/presets.py | 4 ++-- tests/video/test_video.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zimscraperlib/video/presets.py b/src/zimscraperlib/video/presets.py index c77dc54b..1f2e1e50 100644 --- a/src/zimscraperlib/video/presets.py +++ b/src/zimscraperlib/video/presets.py @@ -43,8 +43,8 @@ class VideoWebmLow(Config): "-codec:v": "libvpx", # video codec "-quality": "best", # codec preset "-b:v": "128k", # Adjust quantizer within min/max to target this bitrate - "-qmin": "18", # Reduce the bitrate on very still videos - "-qmax": "40", # Increase the bitrate on very busy videos + "-qmin": "18", # Reduce the bitrate on very still videos + "-qmax": "40", # Increase the bitrate on very busy videos "-vf": "scale='480:trunc(ow/a/2)*2'", # frame size "-codec:a": "libvorbis", # audio codec "-ar": "44100", # audio sampling rate diff --git a/tests/video/test_video.py b/tests/video/test_video.py index cc7165dc..e31e3bfc 100644 --- a/tests/video/test_video.py +++ b/tests/video/test_video.py @@ -146,6 +146,7 @@ def test_preset_video_webm_low(): args = config.to_ffmpeg_args() assert len(args) > 0 + def test_preset_video_webm_high(): config = VideoWebmHigh() assert config.VERSION == 1