Subtitles in mpv: loading, styling, syncing and dual subtitles
mpv is popular with subtitle-heavy viewers for a reason. It renders styled ASS subtitles faithfully, loads external files automatically and can show two tracks at once. These are the settings and keys that cover almost every situation.
Loading subtitles
Subtitle tracks inside the file (common in MKV) load automatically. Cycle through them with j and J, and hide or show them with v. For separate subtitle files you have three options:
- Matching name: put
movie.srtnext tomovie.mkvand mpv loads it by default. - Drag and drop: drag any subtitle file onto the playing window.
- Command line:
mpv movie.mkv --sub-file=other.srt
Load more files automatically
The default matching (exact) only picks up the media file name plus a subtitle extension and language suffix. Two settings make it far more forgiving:
# load any subtitle whose name contains the video's name
sub-auto=fuzzy
# also look in these sub-folders (Windows separator is ;)
sub-file-paths=subs;Subs;subtitles
On Linux and macOS, separate the folders with a colon instead: sub-file-paths=subs:Subs:subtitles. For sub-auto, all goes further and loads every subtitle file in those folders, which can be noisy.
Choosing the language
When a file has several subtitle tracks, tell mpv which languages you prefer, in order:
slang=en,eng
alang=ja,jpn,en,eng
Language codes must match the file's metadata, so listing both two- and three-letter codes is a cheap safety net.
Styling plain-text subtitles
SRT and other plain-text subtitles use mpv's own style, which you can change:
sub-font="Segoe UI"
sub-font-size=44
sub-color="#FFFFFFFF"
# vertical position, 100 = bottom edge
sub-pos=95
Press F and G during playback to shrink or enlarge subtitles on the fly. ASS/SSA subtitles carry their own fonts, colours and positioning, and mpv's libass renderer shows them as the author intended. That's why your style settings mostly leave them alone. If a badly authored ASS file is unreadable, sub-ass-override=force applies your style anyway, at the cost of the original typesetting.
Fixing out-of-sync subtitles
- z shows subtitles 0.1 s earlier, and Z 0.1 s later. Hold the key for larger shifts.
- Ctrl+Shift+← / → shift timing so that the previous or next subtitle line is displayed right now. This is very fast for aligning to a line you just heard.
The delay resets for each file. If one file always needs the same offset, run it with --sub-delay=1.5 rather than putting that in mpv.conf, where it would affect everything.
Showing two subtitles at once
mpv can display a second subtitle track, which is useful for language learning or for signs-and-songs tracks. Select it with:
mpv movie.mkv --sid=1 --secondary-sid=2
The manual describes the secondary track as a "toptitle": it appears at the top of the screen alongside the normal subtitle. In mpv 0.41 you can also pick it interactively. Press Ctrl+p to open the menu and choose the secondary subtitle entry. One caveat from the manual: image-based subtitles such as PGS always render in their own position, so they may overlap.
Subtitles for online videos
When you play links through yt-dlp, available subtitle tracks are offered just like embedded ones, and the same j/v keys apply. Setup is covered in the yt-dlp guide.
Ready to try it? The homepage has the Windows download and a short setup checklist.
Download Now