Discord.js Music Bot has laggy/distorted music playback

When my discord bot is playing music it goes really distorted and slowed down/sped up. I have downloaded FFMPEG-binaries but it hasn’t done anything. Any help?

EDIT: This also seems to only happen on certain songs and for a certain time.

It may just be certain songs. Also FFMPEG should allready be installed. If you are using discord.js make sure you have libsodium-wrappers and opusscript in your package.json. If you see no changes then it could be the service that your streaming the music from.

1 Like

I could help but it would be different packages and its these packages and files to add:
Packages:

  1. ytdl-core
  2. discord.js-musicbot-plugin

Files:

  1. config.json

Due to the complex way youtube distributes it’s videos it could be the fact that the video isn’t avalible on a close service so it results in having to stream from a farther server. Glitch servers also sometimes have a high packet loss as I found in a experiment

This is 2 years old, OP has not been active since June.

1 Like

I did notice that