From afabcb0afa0422f5028fe2b8cb9788508fa43b61 Mon Sep 17 00:00:00 2001 From: Miwory Date: Fri, 31 Jan 2025 22:14:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B8=D0=BD=D1=82=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d340958..31aa69f 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ def compress(input_file: Path, output_file: Path, sticker_width: int, max_size: if input_file.suffix in ('.gif', '.mp4'): duration = float(ffmpeg.probe(input_file)['streams'][0]['duration']) - max_bitrate = int(max_size * 8 / duration) * .95 + max_bitrate = int(max_size * 8 / duration) * 0.95 speed_factor = 1 if duration > 3: