Discord JS music playback via ffmpeg on stage

I understand that in ffmpeg I pass the path to the file and how do I redirect the music playback stream to the voice of the bot that is on stage?
3 Replies
d.js toolkit
d.js toolkit15mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Dmitry Batkovich
Dmitry BatkovichOP15mo ago
and is it possible to specify the path to ffmpeg in the create Audio Resource, which is located in the ffmpeg Exe variable so that there is no this error?
ror: FFmpeg/avconv not found!
at FFmpeg.getInfo (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:143:11)
at FFmpeg.create (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:156:38)
at new FFmpeg (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:45:27)
at Object.transformer (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2221:27)
at D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:58
at Array.map (<anonymous>)
at createAudioResource (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:39)
at d:\KJPiTechnologes\discordbots\neurodj\src\index.js:397:32
at Array.forEach (<anonymous>)
at D:\KJPiTechnologes\discordbots\neurodj\src\index.js:387:21 {stack: 'Error: FFmpeg/avconv not found!
at FFmpeg…loges\discordbots\neurodj\src\index.js:387:21', message: 'FFmpeg/avconv not found!'}
ror: FFmpeg/avconv not found!
at FFmpeg.getInfo (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:143:11)
at FFmpeg.create (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:156:38)
at new FFmpeg (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:45:27)
at Object.transformer (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2221:27)
at D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:58
at Array.map (<anonymous>)
at createAudioResource (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:39)
at d:\KJPiTechnologes\discordbots\neurodj\src\index.js:397:32
at Array.forEach (<anonymous>)
at D:\KJPiTechnologes\discordbots\neurodj\src\index.js:387:21 {stack: 'Error: FFmpeg/avconv not found!
at FFmpeg…loges\discordbots\neurodj\src\index.js:387:21', message: 'FFmpeg/avconv not found!'}
d.js docs
d.js docs15mo ago
- npm: npm install ffmpeg-static - Install: Download | chocolatey | homebrew | your distributions package manager - Tutorial: YouTube - ffmpeg-binaries is deprecated, uninstall it with npm rm ffmpeg-binaries
Want results from more Discord servers?
Add your server