9

How do I make subtitle appear larger or smaller with mpv ? The subtitles are in .srt format most of the times but sometimes also in the movie itself ?

Is there a way to do that ?

Also is there a default configuration variable that I could put so that subtitles play uniformly, using my own fonts and weights etc.

7

The Manual has an entire section about subtitles.

2 relevant options:

Add these to ~/.mpv/config by removing the leading double-dashees (--).

All of that only works for non-image based subtitle formats

Edit: @cipricus points out, that you can set shortcuts for increasing/decreasing subtitle size and position in the file ~/.config/mpv/input.conf

8

You can also add shortcuts to ~/.config/mpv/input.conf to adjust the subtitles size as you want.

# increase subtitle font size
ALT+k add sub-scale +0.1

# decrease subtitle font size
ALT+j add sub-scale -0.1

Note: if the config file doesn't exist, just create it in that location

  • I guess you can so same with parameter sub-font-size as docs say this parameter is preferred (see other answer). – Alexei Martianov Dec 27 '18 at 18:06
2

Inspired by the other answer - namely this: https://mpv.io/manual/master/#options-sub-scale, where what it says is:

--sub-scale=<0-100> Factor for the text subtitle font size (default: 1).

Note

This affects ASS subtitles as well, and may lead to incorrect subtitle rendering. Use with care, or use --sub-font-size instead.

Therefore, looking up --sub-font-size, we see this:

--sub-font-size= Specify the sub font size. The unit is the size in scaled pixels at a window height of 720. The actual pixel size is scaled with the window height: if the window height is larger or smaller than 720, the actual size of the text increases or decreases as well. Default: 55.

So - create the file config in a folder ~/.mpv with a line like

sub-font-size=44

to get 80% of the 55 default size.

Log out and back to see changes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.