this post was submitted on 03 Aug 2026
33 points (100.0% liked)

Linux

14711 readers
94 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

If you use FreeTube, you may be aware that it's really been struggling with SABR reload requests lately. If you're not familiar, what basically ends up happening is that YouTube will send a request to load an ad or whatever, and sometimes FreeTube will end up in a loop where it keeps reloading over and over.

In any case, FreeTube has an option to view videos in an external player, and this often helps whenever FreeTube itself is acting up. However, one big problem I have with this is that external video players like SMPlayer won't grab subtitles when you feed them a YouTube URL.

What I'm wondering is if I can set up SMPlayer to automatically grab the subtitle files for the YouTube videos I watch. I imagine MPV can do it, since it's very scriptable, and I do use MPV as my SMPlayer backend.

I'm using EndeavourOS with the latest KDE Plasma.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] equivocal@piefed.social 2 points 2 weeks ago (1 children)

So, quick testing is that mpv will pull subtitles by default but not display them without cycling the track (with J) or setting slang with an available language code[s]. (with slang=en,en-US for English.) Although, it will completely ignore auto-generated subtitles.

I did find that ytdl-raw-options='sub-langs="en,en-US",write-sub=,write-auto-sub=' will also give the option to use auto-generated subs.

I'm not too familiar with SMPlayer but I was seeing that you can use an mpv.conf with it.

[โ€“] mrbigmouth502@piefed.zip 1 points 1 week ago

I've noticed that if I pass the --config=yes option for mpv in SMPlayer's advanced preferences, it will use some of my mpv config, since it'll load the autoload script I use, but it'll ignore all the settings needed to load YouTube subtitles. Setting disable_player_config=false doesn't change this.

Celluloid, meanwhile, will load subtitles, but using it feels kind of jank compared to mpv by itself. On my setup, you have to pause while it's "loading", then play to actually get a YouTube video to start, and you also have to press J to bring up the subtitles.