From a814079e730cb2830c126def204b74f9811be7a6 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 c806cf4d..89c2b3fb 100644 --- a/src/zimscraperlib/video/presets.py +++ b/src/zimscraperlib/video/presets.py @@ -44,8 +44,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 0c0cb761..37788c01 100644 --- a/tests/video/test_video.py +++ b/tests/video/test_video.py @@ -145,6 +145,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