Forums

Discord Music Bot FFMPEG?

[youtube] kOrZEjLrno0: Downloading webpage [youtube] kOrZEjLrno0: Downloading video info webpage Ignoring exception in command play Traceback (most recent call last): File "/home/poytox/.local/lib/python3.6/site-packages/discord/voice_client.py", line 431, in create_ffmpeg_player p = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE, stderr=stderr) File "/usr/lib/python3.6/subprocess.py", line 707, in init restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1326, in _execute_child raise child_exception_type(errno_num, err_msg) FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/poytox/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 50, in wrapped ret = yield from coro(args, kwargs) File "snipebot.py", line 31, in play player = await voice_client.create_ytdl_player(url) File "/home/poytox/.local/lib/python3.6/site-packages/discord/voice_client.py", line 541, in create_ytdl_player player = self.create_ffmpeg_player(download_url, kwargs) File "/home/poytox/.local/lib/python3.6/site-packages/discord/voice_client.py", line 434, in create_ffmpeg_player raise ClientException('ffmpeg/avconv was not found in your PATH environment variable') from e discord.errors.ClientException: ffmpeg/avconv was not found in your PATH environment variable The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/poytox/.local/lib/python3.6/site-packages/discord/ext/commands/bot.py", line 846, in process_commands yield from command.invoke(ctx) File "/home/poytox/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 374, in invoke yield from injected(ctx.args, **ctx.kwargs) File "/home/poytox/.local/lib/python3.6/site-packages/discord/ext/commands/core.py", line 54, in wrapped raise CommandInvokeError(e) from e discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: ffmpeg/avconv was not found in your PATH envi ronment variable

How do I fix this? How do I install FFMPEG or make it use avconv?

avconv is already installed on PythonAnywhere. It looks like your code would accept either ffmpeg or avconv. I would check the documentation of the library you're using to see how to configure it correctly.