#645 Subtitle settings don't allow setting transparency

Next_Release
open
nobody
None
5
2016-10-20
2016-09-07
No

mpv always supported transparentcy in for fonts: osd, simple and ASS subtitles. It's set as RGB[A] (like 'osd-color=#D7AAFF7F') but smplayer forbids setting the last one and even cuts it off if it's manually added via ~/.config/smplayer/styles.ass but then smplayer's subtitle settings are opened. There is no reason for that, smplayer should have field for transparency and write it properly into its configs.

It's a duplicate of
https://sourceforge.net/p/smplayer/feature-requests/404/
https://sourceforge.net/p/smplayer/feature-requests/526/
https://sourceforge.net/p/smplayer/feature-requests/590/

Discussion

  • Sergey Kondakov

    Sergey Kondakov - 2016-09-07

    Ah, it seems it's not always 'RGB[A]', man mpv says:

    The color is specified in the form r/g/b, where each color component is specified as number in the range 0.0 to 1.0. It's also possible to specify the transparency by using r/g/b/a, where the alpha value 0 means fully transparent, and 1.0 means opaque. If the alpha component is not given, the color is 100% opaque.

    Passing a single number to the option sets the OSD to gray, and the form gray/a lets you specify alpha additionally.

    Alternatively, the color can be specified as a RGB hex triplet in the form #RRGGBB, where each 2-digit group expresses a color value in the range 0 (00) to 255 (FF). For example, #FF0000 is red. This is similar to web colors. Alpha is given with #AARRGGBB.

    Transparent subtitle border is especially useful with native aspect videos without black borders.

     
  • Ricardo Villalba

    As far as I know the Qt color dialog doesn't allow you to set a transparency for a color. However from version r8224 SMPlayer tries to keep the alpha component internally and passes it to mpv. So you can set it in smplayer.ini.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks