mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
convert mb to kbit
This commit is contained in:
parent
a035916254
commit
1529180363
1 changed files with 1 additions and 1 deletions
|
@ -1651,7 +1651,7 @@ class OtherCog(commands.Cog):
|
|||
channels = int(stream["channels"])
|
||||
codec = stream["codec_name"]
|
||||
|
||||
target_bitrate = math.floor((size_mb * 1024) / duration)
|
||||
target_bitrate = math.floor((size_mb * 8192) / duration)
|
||||
if target_bitrate <= 0:
|
||||
return await ctx.respond(
|
||||
":x: Target size too small (would've had a negative bitrate of %d)" % target_bitrate
|
||||
|
|
Loading…
Reference in a new issue