mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Sub-Pos Doesn't Work As Intended

Open george-emerald opened this issue 3 years ago • 8 comments

Important Information

Provide following Information:

  • mpv version: latest
  • macOS Version: 12.4
  • Source of the mpv binary or bundle: mpv.io
  • If known which version of mpv introduced the problem: this one
  • Possible screenshot or video of visual glitches

If you're not using git master or the latest release, update. Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

Try to reproduce your issue with --no-config first. If it isn't reproducible with --no-config try to first find out which option or script causes your issue.

Describe the reproduction steps as precise as possible. It's very likely that the bug you experience wasn't reproduced by the developer because the workflow differs from your own.

Expected behavior

sub-pos only affects srt sub with no styling or when sub-ass-override is seto to force. only sub-ass-pos should affect ass subtitles

Actual behavior

All subs are affected. There's also no way to restore the placement that's in the ass settings. Removing the line puts them at the bottom of the frame. I want it to only work for srt subs or when sub-ass-override=force is enabled, like sub-font.

Log file

https://pastebin.com/ybY6QJNU

george-emerald avatar Aug 03 '22 01:08 george-emerald

It's already in the doc https://mpv.io/manual/master/#options-sub-pos

Warning

Text subtitles (as opposed to image subtitles) may be cut off if the value of the option is above 100. This is a libass restriction.

This affects ASS subtitles as well, and may lead to incorrect subtitle rendering in addition to the problem above.

Using can achieve this in a better way.--sub-margin-y

hooke007 avatar Aug 03 '22 09:08 hooke007

So, how do I make it so that the ass subs are rendered nromally and only the srt subs are affected? sub-margin-y? How do I use that?

george-emerald avatar Aug 03 '22 21:08 george-emerald

https://mpv.io/manual/master/#options-sub-margin-y I don't understand, is there anything unclear in the doc?

hooke007 avatar Aug 03 '22 21:08 hooke007

But it says if I wanna raise the subtitles I should use sub-pos. I just want my ass subs to be rendered according to their own styling. If I remove sub-pos now, they're all rendered at the bottom of the screen.

george-emerald avatar Aug 04 '22 13:08 george-emerald

So use it. --sub-margin-y Don't be shame to try, it would not waste your time.

hooke007 avatar Aug 04 '22 14:08 hooke007

The problem is that removing sub-pos places all subs at the bottom of the screen.

george-emerald avatar Aug 04 '22 21:08 george-emerald

Did you really try? why not set a huge value to make it top? sub-margin-y=600 You should give a more specific description. I can't understand your true demand.

hooke007 avatar Aug 04 '22 21:08 hooke007

the ass subs are rendered nromally and only the srt subs are affected

From your previous comment, sub-margin-y is the answer.

removing sub-pos places all subs at the bottom of the screen.

Is there any issue here? ASS's rendering follow the ass file's script info, which works properly.

hooke007 avatar Aug 04 '22 21:08 hooke007