mpv
mpv copied to clipboard
Make `--sub-back-color` to follow the shape of the subtitles
It would be nice if --sub-back-color
would take into account that not every line has the same length when multiple lines are displayed.
Currently --sub-back-color
creates a single box that can fit all the lines inside:
And this is how it should look like:
In my opinion the current solution doesn't look that great, especially because there seems to be no way to add opacity to the background color.
no way to add opacity to the background color.
https://mpv.io/manual/master/#options-sub-color
Why not?
"#641C1C1C"
Oh, thanks. I tried some wrong values then. I'm still curious about the box shape though.
Why not?
Its much easier to read the text when there's background color (contrast). Especially when watching something with a different audio language than the actual text. The less effort to read it, the better. That's also why every sub on many channels around the world use exactly such background color that follows the sub text. Its not supposed to be pretty to look at, but fast and easy to read.
The sub-color' option can only add 3-4px of border before the color and letters get mixed up.
As the 'sub-back-color' doesn't follow the shape of the subtitles letters such as "J" will get drawn outside of the box. So not being able to follow the text shape has issues with both being "too much" or "too little". For horisontal text, its probably trivial to set some height . and vice versa.
I would also prefer each line having its own background width. Digging back, this actually used to be the default a decade ago but was changed because it didn't play well with semi-transparent backgrounds (#822).
Hopefully it's been fixed on the libass side by now. If not, I'd still enjoy seeing it as an option—less need for background opacity when the background covers less of the screen to begin with.