mpv-player / mpv-player/mpv

Subtitle under or outside the Video frame/borrder/screen Not Working with video-align and video scale

Open
#12,918 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:linux
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

without the video-scale and video-align option the simple --sub-pos=115 would suffice

but with my setup:

--video-scale-x=0.43
--video-scale-y=0.43
--video-align-x=1
	# left right
--video-align-y=0.40
	# top bottom

ss_

as you can see it's off-centered but, with:

--sub-use-margins=no

ss 01
it's 'centered now but i wanted the subs to be under or outside the video frame let's try:

--sub-pos=115

ss 04

as you can see, it's cut off. and if i put sub-pos=125 or above, the subs would be even further below rendering it as invisible.

so i tried this instead:

---sub-align-x=right
---sub-align-y=bottom

or

---sub-align-x=right
--sub-margin-y=60
	# vertical

or

--sub-align-x=right
 --sub-pos=115

results:
ss 03
as you can see it is "centered", but it can't handle long subtitle. i even mess with the sub-justify=, but no luck. I suspect

--sub-margin-x=size
	# horizontal

would fix it but it does not work. no visual difference


this is my desired results:
ss
'centered' and can handle and wrap subtitle.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the subtitle placement with video-scale-x/y, video-align-x/y, sub-pos, sub-use-margins, sub-align-x/y, sub-margin-y, and sub-justify using the configurations and screenshots in the issue. Trace how scaled video geometry and subtitle margins interact, then verify that centered subtitles remain visible, wrap long lines, and can render below the video frame.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.