Switched back to ffmepgPCM
This commit is contained in:
@@ -50,7 +50,7 @@ else:
|
|||||||
}],
|
}],
|
||||||
}
|
}
|
||||||
|
|
||||||
ffmpeg_options = {"options": "-vn -threads 2"}
|
ffmpeg_options = {"options": "-vn"}
|
||||||
|
|
||||||
ytdl = yt_dlp.YoutubeDL(ytdl_format_options)
|
ytdl = yt_dlp.YoutubeDL(ytdl_format_options)
|
||||||
|
|
||||||
@@ -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=None, options=ffmpeg_options), data=data)
|
before_options="-threads 4", options=ffmpeg_options), data=data)
|
||||||
|
|
||||||
intents = discord.Intents.default()
|
intents = discord.Intents.default()
|
||||||
intents.message_content = True
|
intents.message_content = True
|
||||||
|
|||||||
Reference in New Issue
Block a user