Do we need ffmpeg to play music on node js discord bot

i want to know because i am making a bot

ffmpeg is already installed in the Glitch container by default. If you’re wanting to play audio with a Discord.js discord bot then you’ll need to add node-opus to your package.json

You need ffmpeg and opusscript lol

pnpm i ffmpeg-binaries opusscript

node-opus is preffered by Discord.js (rather than opusscript). Also to note that ffmpeg-binaries is deprecated

1 Like

You can use ffmpeg-static instead of ffmpeg-binaries as it has been deprecated.

1 Like