Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl is very slow #46

Open
TiiFuchs opened this issue Dec 7, 2021 · 4 comments
Open

youtube-dl is very slow #46

TiiFuchs opened this issue Dec 7, 2021 · 4 comments

Comments

@TiiFuchs
Copy link

TiiFuchs commented Dec 7, 2021

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.

@StjerneIdioten
Copy link

StjerneIdioten commented Jan 29, 2022

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)

@Maks1116
Copy link

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.

@StjerneIdioten
Copy link

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.

@FlorianLeChat
Copy link

This is no longer an issue after a change to the "Patched" version of YouTube-DL a few months ago: 48ad92a#diff-3c1d937d30984cc2eeab60a6bdc7e7acc113cdffa6e397abea958a03fb60ae2e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants