Линтер
This commit is contained in:
2
main.py
2
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'):
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user