make ffmpeg verbose

This commit is contained in:
nexy7574 2023-05-11 19:06:17 +01:00
parent b82fef4afc
commit 522a5c755f

View file

@ -1276,6 +1276,7 @@ class OtherCog(commands.Cog):
target = file.with_name(file.name + '.compressed' + file.suffix) target = file.with_name(file.name + '.compressed' + file.suffix)
ffmpeg_command = [ ffmpeg_command = [
"ffmpeg", "ffmpeg",
"-hide_banner",
"-i", "-i",
str(file), str(file),
"-c", "-c",
@ -1292,7 +1293,6 @@ class OtherCog(commands.Cog):
partial( partial(
subprocess.run, subprocess.run,
ffmpeg_command, ffmpeg_command,
capture_output=True,
check=True check=True
) )
) )
@ -1313,7 +1313,7 @@ class OtherCog(commands.Cog):
round(st_r, 2), round(st_r, 2),
units[0], units[0],
MAX_SIZE_MB, MAX_SIZE_MB,
', compressing failed' if COMPRESS_FAILED else '' ', compressing failed' if COMPRESS_FAILED else ', compressed fine.'
) )
continue continue
else: else: