Added threads flag

This commit is contained in:
Lukas Blacha
2023-02-07 22:45:19 +01:00
parent c2e3081995
commit 6070780b0a

View File

@@ -77,7 +77,7 @@ else:
filename = data["url"] if stream else ytdl.prepare_filename(data) filename = data["url"] if stream else ytdl.prepare_filename(data)
return cls(discord.FFmpegPCMAudio(source=filename, executable="ffmpeg", pipe=False, stderr=False, return cls(discord.FFmpegPCMAudio(source=filename, executable="ffmpeg", pipe=False, stderr=False,
before_options="-threads 2 -bufsize 5M -maxrate 5M -c:v libx264", options=ffmpeg_options), data=data) before_options="-threads 2 -bufsize 5M -maxrate 5M -c:v libopus", options=ffmpeg_options), data=data)
intents = discord.Intents.default() intents = discord.Intents.default()