convert mb to kbit

This commit is contained in:
Nexus 2023-08-16 01:44:17 +01:00
parent a035916254
commit 1529180363
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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