Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitle Styling inside the player #46

Open
P0bo opened this issue May 17, 2024 · 0 comments
Open

Subtitle Styling inside the player #46

P0bo opened this issue May 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@P0bo
Copy link

P0bo commented May 17, 2024

Most users dont prefer / dont know how to use mpv commands , it will be handy if users can choose simple subtitle styling from inside the player through a gui rather than command line interface.

The recommended / Most used styling options are

  • Enabling subtitle styling

    1. This toggles the --sub-ass-override=yes/force (by default it should be yes rather than disabled since having yes will apply important filters such as vsfilter-blur-compat or aspect-compat it it also doesnt break subtitle styling when set to yes )
    2. when turned off it will be --sub-ass-override=yes and if someone wants to apply subtitle styling then --sub-ass-override=force
  • Subtitle color and size

    1. Sets --sub-color=
      there are 2 ways of setting color ,
      1st :
      using hex color code . ex -
      --sub-color='#C0808080' set sub to 50% gray with 75% alpha
      '#AARRGGBB' aa for opacity , rr for red gg for green and bb for blue all ranging from 00 to FF.
      2nd:
      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. Ex -
      --sub-color=1.0/0.0/0.0/0.75 set sub to opaque red with 75% alpha.

    2. Sets --sub-font-size=
      Default value is 55 , fractional values excepted.

  • Subtitle Border Color and size

    1. Sets --sub-border-color=
      Similar to --sub-color
    2. Sets --sub-border-size=
      Similar to --sub-font-size , default value=3, fractional values accepted.
  • Subtitle Shadow Color and offset

    1. Sets --sub-shadow-color=
      See --sub-color. Color used for sub text shadow.
    2. Sets --sub-shadow-offset=
      Similar to --sub-font-size , fractional values accepted,A value of 0 disables shadows.
  • Font Styling : -

    --sub-bold=<yes|no> ;--sub-italic=<yes|no>
    
  • Examples

    1. For changing color ARGB slider is recommended .
    2. Example
      Aniyomi
      In this example we cant change border size , shadow color , shadow offset from inside the player which is a downside so I hope u'll add those in AniVu

@SkyD666 SkyD666 added the enhancement New feature or request label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants