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

Swich mpv hook from youtube-dl to yt-dlp #1018

Closed
kmj9 opened this issue Oct 16, 2021 · 9 comments
Closed

Swich mpv hook from youtube-dl to yt-dlp #1018

kmj9 opened this issue Oct 16, 2021 · 9 comments

Comments

@kmj9
Copy link

kmj9 commented Oct 16, 2021

Youtube-dl is not active since july and youtube limits downloads to ~60 kb/s.
The result is : watching youtube videos in mpv (newsboat youtube rss) is not posible (buffering) when quality is set above 360p.

yt-dlp solved download limits but there's no option like { --ytdl-format= }

Solution would be to switch hook in mpv to yt-dlp.

@ghost
Copy link

ghost commented Oct 17, 2021

I've been having this issue myself as well, but I thought it was just youtube being odd, thanks.

I fixed it very easily, you need to install the package 'youtube-dlp' via yay and add the following to '~/.config/mpv/mpv.conf':
script-opts=ytdl_hook-ytdl_path=yt-dlp

It might be a drop-in for youtube-dl, in which case youtube-dl could easily be replaced system-wide, but I'll test it first.

@Trebled
Copy link

Trebled commented Oct 17, 2021

Next release of mpv defaults to yt-dlp, installing alongside mpv-git in the meantime solved for me. ^_^

@ghost
Copy link

ghost commented Oct 17, 2021

I'll make a pull requests that replaces youtube-dl on the whole system, in my opinion it's worth it because I had no issues during my tests.

@kmj9
Copy link
Author

kmj9 commented Oct 17, 2021

I agree. mpv-git works fine for now till mpv upgrade to the next version and yt-dlp is sensible choice.

@LukeSmithxyz
Copy link
Owner

This yt-dlp thing doesn't seem any faster and seems to have the same cap.

@kmj9
Copy link
Author

kmj9 commented Oct 18, 2021

Maybe but I don't think youtube-dl will get updated anytime soon if ever.
Combination of mpv-git + yt-dlp does work and mpv-git + youtube-dl doesn't.

@LukeSmithxyz
Copy link
Owner

LukeSmithxyz commented Oct 18, 2021 via email

@kmj9
Copy link
Author

kmj9 commented Oct 18, 2021

Maybe you right we don't need to rush let's wait then. We will see how this fix will finalize.

@TrevCan
Copy link
Contributor

TrevCan commented Jan 8, 2022

yt-dlp has been added to the official arch community repos.

I would recommend changing it now.

package

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