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

Linux

14706 readers
162 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.

top 7 comments
sorted by: hot top controversial new old
[–] chortle_tortle@mander.xyz 4 points 2 weeks ago (1 children)
[–] mrbigmouth502@piefed.zip 4 points 2 weeks ago

The last answer works for MPV. I'll have to figure out if it's possible to get it working with SMPlayer as well, but for now telling FreeTube to use MPV directly works.

If anyone doesn't feel like opening the link, the fix involves adding this to your ~/.config/mpv/mpv.conf file:

slang=en,eng,enUS,en-US
sub-auto=fuzzy
ytdl-raw-options=ignore-config=,sub-lang="en,eng,enUS,en-US",write-sub=,write-auto-sub=
[–] equivocal@piefed.social 2 points 1 week 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.

[–] sbeak@sopuli.xyz 1 points 1 week ago (1 children)

EndeavourOS with the latest KDE Plasma.

Same here! It's awesome!

As for the actual question, I personally use FreeTube without an external player and it works fine enough. Maybe check if you have the latest version? It does occasionally reload but it never goes in a loop (at most it reloads two or three times).

[–] mrbigmouth502@piefed.zip 2 points 1 week ago* (last edited 1 week ago) (1 children)

I'm using FreeTube Nightly, and I'm actually using a newer build than the one that's on the AUR, since you can pull the latest Nightly build from their Github, yay -G the PKGBUILD for freetube-nightly, then modify the PKGBUILD to point at the newer .pacman file. FWIW, this has never really fixed any problems I've had with using whatever the latest version on the AUR is.

But in any case, different people have different results with FreeTube, and it sounds like you've been having better luck than I have. It's not consistent.

[–] sbeak@sopuli.xyz 3 points 1 week ago

Maybe it depends on where you live? Since YouTube seems to change stuff every day