Линтер

This commit is contained in:
2025-01-31 22:14:59 +03:00
parent 9add816188
commit afabcb0afa

View File

@ -37,7 +37,7 @@ def compress(input_file: Path, output_file: Path, sticker_width: int, max_size:
if input_file.suffix in ('.gif', '.mp4'): if input_file.suffix in ('.gif', '.mp4'):
duration = float(ffmpeg.probe(input_file)['streams'][0]['duration']) 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 speed_factor = 1
if duration > 3: if duration > 3: