Added threads flag
This commit is contained in:
1 parent
7e0a927c2b
commit
c2e3081995
1 file changed
+2
-1
+2
-1
@@ -77,7 +77,8 @@ else:
|
||||
|
||||
filename = data["url"] if stream else ytdl.prepare_filename(data)
|
||||
return cls(discord.FFmpegPCMAudio(source=filename, executable="ffmpeg", pipe=False, stderr=False,
|
||||
before_options="-threads 2", options=ffmpeg_options), data=data)
|
||||
before_options="-threads 2 -bufsize 5M -maxrate 5M -c:v libx264", options=ffmpeg_options), data=data)
|
||||
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.message_content = True
|
||||
|
||||
Reference in new issue
Block a user