如何让mpv中的字幕默认在某个位置

如何让mpv中的字幕默认在某个位置

这是我的 mpv.conf -

$ cat ~/.config/mpv/mpv.conf
alang=eng,en,english
slang=en,eng, english
sub-scale=1.00
save-position-on-quit

现在我希望在播放媒体文件时字幕应该出现在某个位置。我确信这是可配置的。

答案1

只要那个“特定位置”不是屏幕的最底部,mpv 的手册页就会提到参数--sub-pos作为设置它的方式,至少是垂直的[sub-pos在 mpv.conf 中不使用“--”]:

--sub-pos=<0-150>
   Specify the position of subtitles on the screen.  The  value  is
          the vertical position of the subtitle in % of the screen height.
          100 is the original position, which is often  not  the  absolute
          bottom  of  the  screen, but with some margin between the bottom
          and the subtitle. Values above 100  move  the  subtitle  further
          down.

             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 --sub-margin-y can achieve this in a better way.

相关内容