diff options
| author | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 18:08:59 +0200 |
|---|---|---|
| committer | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 18:08:59 +0200 |
| commit | 936ffa8b06f339de37f6246e45858bbd215cd204 (patch) | |
| tree | 1abae237d91f7755e3d53b06fbf9e07bd6890158 /cogs/compression.py | |
| parent | more logs!?!?! (diff) | |
| download | senator-sperma-936ffa8b06f339de37f6246e45858bbd215cd204.tar.gz senator-sperma-936ffa8b06f339de37f6246e45858bbd215cd204.zip | |
more logs!?!?! and fixes
Diffstat (limited to 'cogs/compression.py')
| -rw-r--r-- | cogs/compression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cogs/compression.py b/cogs/compression.py index 75eaf7c..dc8e632 100644 --- a/cogs/compression.py +++ b/cogs/compression.py | |||
| @@ -52,7 +52,7 @@ class Compression(commands.Cog): | |||
| 52 | # Execute ffmpeg command to compress video | 52 | # Execute ffmpeg command to compress video |
| 53 | ffmpeg_command = f"ffmpeg -i {input_path} -c:v libx264 -crf 51 -b:v 100 -vf 'fps=10' -preset ultrafast -c:a libopus -b:a 500 {output_path}" | 53 | ffmpeg_command = f"ffmpeg -i {input_path} -c:v libx264 -crf 51 -b:v 100 -vf 'fps=10' -preset ultrafast -c:a libopus -b:a 500 {output_path}" |
| 54 | elif file_type == "Audio": | 54 | elif file_type == "Audio": |
| 55 | ffmpeg_command = f"ffmpeg -i {input_path} -ar 8000 -ac 1 -b:a 16k -acodec libmp3lame -q:a 9 {output_path}" | 55 | ffmpeg_command = f"ffmpeg -i {input_path} -ac 1 -b:a 500 -acodec libopus {output_path}" |
| 56 | elif file_type == "Image": | 56 | elif file_type == "Image": |
| 57 | # Use ImageMagick's magick to heavily compress image (JPEG/PNG/GIF) | 57 | # Use ImageMagick's magick to heavily compress image (JPEG/PNG/GIF) |
| 58 | # For JPEG: quality 5, strip metadata, resize to 30% of the original size | 58 | # For JPEG: quality 5, strip metadata, resize to 30% of the original size |
