💾 Archived View for jacksonchen666.com › posts › 2023-07-20 › 19-49-16 › index.gmi captured on 2023-11-04 at 11:32:46. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-07-22)

➡️ Next capture (2024-03-21)

🚧 View Differences

-=-=-=-=-=-=-

YouTube With mpv

2023-07-20 19:49:16Z

I am currently watching a 30 minute video from Louis Rossmann. The video is on YouTube. I am watching it with mpv. How?

mpv

Well, first you ask on the Fediverse, then you get a response for your question.

I ask on the Fediverse => https://is-a.wyvern.rip/notes/9h7jj1xm1o I get a response on the Fediverse

If you don't feel like opening those links, you don't have to! Here's the mpv configuration that I have, located at `~/.config/mpv/mpv.conf`:

script-opts=ytdl_hook-ytdl_path=yt-dlp 
ytdl-raw-options=ignore-config=,sub-format=en,sub-langs="en,auto",write-sub=
script-opts=sponsorblock_minimal-hash=true
script-opts=sponsorblock_minimal-categories=["sponsor","intro","outro","selfpromo","interaction","preview"]

The first line is the most important part. OK maybe not so important. OK actually completely unimportant, because you can just throw mpv a YouTube link and it will play it, even if you have `yt-dlp` but no `youtube-dl` installed.

Yes, you need some kind of YouTube downloader installed. I'd recommend `yt-dlp` since it's much more alive than `youtube-dl` (which had no more releases since 2021).

The second line just allows captions to be turned on. Not sure why the `sub-format` option is given a language, it's for a format in `yt-dlp`.

3rd and 4th lines are related to mpv_sponsorblock_minimal but don't seem to apply. I modified the script to do the same, but the configuration is pretty much the same in my config file and the modified script.

mpv_sponsorblock_minimal

You can install mpv_sponsorblock_minimal by dropping the repo into a folder located in `~/.config/mpv/scripts/`, so the files in that repo would probably be located in `~/.config/mpv/scripts/mpv_sponsorblock_minimal`.

(A test video to test your SponsorBlock setup (warning: nonsense): <https://www.youtube.com/watch?v=Slwai2Jhy_A>)

Also some disadvantages:

The last thing is *getting* videos to watch, since I do still subscribe to a few things.

That... I thought about RSS/Atom feeds but the last piece of the puzzle seems to be finding clients. I thought about vore, but I'm not sure if I want to settle on it...

vore

(Tip: Append channel ID to this URL to get RSS/Atom feed: `https://www.youtube.com/feeds/videos.xml?channel_id=`)

Or you know, I could just use NewPipe SponsorBlock.

NewPipe with SponsorBlock

public inbox (comments and discussions)

public inbox archives

(mailing list etiquette for public inbox)