🏆 I provide private lessons on Emacs, Linux, and Life in general: https://protesilaos.com/coach/. Lessons continue throughout the year.

Today I learned: mpv for online video streaming

An easy way to control video playback

This post is archived. Opinions expressed herein may no longer represent my current views. Links, images and other media might not work as intended. Information may be out of date. For further questions contact me.

Today I learned how to use Youtube without ever logging in to the site. This is a combination of subscribing to channels via RSS and then using mpv (with youtube-dl dependency) to stream the content locally.

Here is how it works.

First subscribe to your favourite channel via RSS. You need to retrieve the channel’s id or username, which you will implement in the corresponding url template:

# Templates

# Example with my channel's actual url (last part is the id)

# Example with my channel's RSS feed

Now you are good to go. When you receive an update in your RSS reader, copy the link, open a terminal and execute the following:

# Template
mpv link-to-video

# Example with my latest seminar
mpv https://www.youtube.com/watch?v=CDjJ6vY0plk

My RSS reader is newsboat which makes things even better, as I remain close to the command line.

Anyway, using mpv to stream videos is a solid method to degoogle part of your online activity without losing out on some valuable content. I strongly recommend checking out man mpv and the relevant Arch wiki entry for cool ways to optimise your experience.