How to use yt-dlp instead of yt-dl with mpv | Hund


How to use yt-dlp instead of yt-dl with mpv

Tuesday, October 12, 2021

I interact with YouTube using the text-based client pipe-viewer. I then watch any video using my favourite media player mpv. This has always worked perfectly fine thanks to mpv supporting youtube-dl, which unfortunately, now seems to be an abandoned project.

This means that it has been semi-broken for some time now; playing any video results in constant buffering due to Google—once again—have found a way to throttle their users who use youtube-dl instead of their incredibly bloated, slow and privacy invasive website

This is how well youtube-dl is working for me right now:

(Buffering) AV: 00:00:16 / 00:16:29 (2%) A-V:  0.000 Cache: 0.8s/96KB

Thakfully, someone have forked the project into a new project called yt-dlp. This new fork works perfectly:

AV: 00:00:29 / 00:16:29 (3%) A-V:  0.000 Cache: 23s/3MB


Add this line to your configuration file for mpv (~/.config/mpv/mpv.conf):


It should now use yt-dlp instead of youtube-dl.



If you want to leave feedback, you can do so by either sending me a message via email, XMPP or via IRC.