mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Make `--sub-back-color` to follow the shape of the subtitles

Open pcroland opened this issue 2 years ago • 2 comments

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: img And this is how it should look like: img 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.

pcroland avatar Jul 28 '22 22:07 pcroland

no way to add opacity to the background color.

https://mpv.io/manual/master/#options-sub-color Why not? Snipaste_2022-07-29_06-39-48 "#641C1C1C"

hooke007 avatar Jul 29 '22 05:07 hooke007

Oh, thanks. I tried some wrong values then. I'm still curious about the box shape though.

pcroland avatar Jul 29 '22 14:07 pcroland

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.

idiotpatrol avatar Jan 20 '23 02:01 idiotpatrol

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.

estrogently avatar Aug 11 '23 01:08 estrogently