diff --git a/main.py b/main.py index 5515f62..d2db177 100644 --- a/main.py +++ b/main.py @@ -112,7 +112,7 @@ async def on_message(message): else: bitrateKilobits = 800 print("Calced bitrate = " + str(bitrateKilobits)) - ffmpeg.input(fileName).output("small_" + fileName, **{'b:v': str(bitrateKilobits) + 'k', 'threads': '4'}).run() + ffmpeg.input(fileName).output("small_" + fileName, **{'b:v': str(bitrateKilobits) + 'k', 'b:a': '64k', 'fs': '8M', 'threads': '4'}).run() with open("small_" + fileName, 'rb') as fp: await message.channel.send(file=discord.File(fp, str("small_" + fileName))) # Delete the compressed and original file