I am trying to create a discord bot, however receive this error every time I try to run a youtube link.
Error: FFmpeg/avconv not found!
at Function.getInf
Are you using this method? https://discord.js.org/#/docs/main/stable/class/VoiceConnection?scrollTo=play
As you didn't provide any code...
I had the same issue, that day i did two things, but i don't know which one was the fix.
I'm not sure which one of the fixes it was. But now it also works without the file in directory, so I'm kinda confused
Also try requiring ffmpeg-binaries
in the js file
try to run this npm i ffmpeg-static
I had a problem with playing stream in Discord.js even thought I installed ffmpeg binaries, so here's a possible fix, atleast in windows if ffmpeg can't be run alone in CMD, then I went to node_modules\prism-media\src\core\FFmpeg.js on line 115 and there is an array of each possible directory of what to use e.g ffmpeg, so I changed from
}, 'ffmpeg', 'avconv', './ffmpeg', './avconv'];
to
}, 'ffmpeg', 'avconv', './ffmpeg', 'C:/ffmpeg/ffmpeg', './avconv'];
and it worked fine for me :)