docker
docker copied to clipboard
youtube-dl is very slow
It seems to me, that the download speed of audio from youtube is very slow. I'm not sure if there's a fix for that, but I thought it was not that slow in the beginning.
It is indeed extremely slow. The fix is to use yt-dlp instead, but it would require a bit of patchwork of your sinusbot container or generating a new docker image.
-edit: I have now tested it on the newest sinusbot image by going into the container and switching out youtube-dl for yt-dlp (It requires you to install python3 as well) and it made the download 15x faster (from around 30 sec for a lyrics video, to about 2 seconds)
This is because of youtube limits. Youtube has limited download speeds to make users stop downloading videos from their platform. It is just enough to play videos in player.
This is because of youtube limits. Youtube has limited download speeds to make users stop downloading videos from their platform. It is just enough to play videos in player.
I don't quite know what point you are trying to make with your last statement, since we can't really "Watch videos in the player" with the music bot. It might be youtube's rate limiting that is causing this, but I've had absolutely no problem after I patched it myself and switched to use yt-dlp instead of yt-dl, which points to yt-dlp somehow circumventing the limitations.
This is no longer an issue after a change to the "Patched" version of YouTube-DL a few months ago: https://github.com/SinusBot/docker/commit/48ad92aaffd8d4dce613adf5dc0a5bcffab9cdcb#diff-3c1d937d30984cc2eeab60a6bdc7e7acc113cdffa6e397abea958a03fb60ae2e.