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

Centered subtitles #3008

Open
2V3EvG4LMJFdRe opened this issue Mar 31, 2016 · 5 comments
Open

Centered subtitles #3008

2V3EvG4LMJFdRe opened this issue Mar 31, 2016 · 5 comments

Comments

@2V3EvG4LMJFdRe
Copy link

subtitle

Would anyone be interested on adding support for this? Right now subtitles are rendered the way it's displayed on the top of the image (being built from a reference point, to the top, with all lines of dialogues, single or double, being rendered above the reference point), but I believe there's no objection against them looking better on the bottom example (being rendered at the center of the reference point, and distributing one line of dialogue to the top, and one to the bottom, in case of double-line dialogues).

It looks more properly aligned. Rather than imposing double-line metric to single-lines, it recognizes the single-line as a different entity that requires different positioning.

And, yes, I also believe this would, too, look better on the cases in which the aspect ratio would force the user to position the subtitles on top of the picture due to lack of black space.

@kevmitch
Copy link
Member

I think the main problem is that you need to know the maximum vertical extent over all subtitles in advance, otherwise if you run into one that is too tall, it will fall off the bottom of the screen. There is nothing restricting subtitles to two lines.

@2V3EvG4LMJFdRe
Copy link
Author

Thought it may happen, in my experience, the standard is two lines maximum. I've actually never seen three lines, though, to my surprise, the BBC guidelines do allow for it.

In any case, one could avoid this issue by adjusting the subtitle as needed. My input.conf file has a couple of lines that allow for one to change the position and size:

Alt+DOWN no-osd add sub-pos +1
Alt+UP no-osd add sub-pos -1
Alt+Q no-osd add sub-scale -0.01
Alt+q no-osd add sub-scale -0.01
Alt+E no-osd add sub-scale +0.01
Alt+e no-osd add sub-scale +0.01

@ghost
Copy link

ghost commented Mar 31, 2016

This would have to be implemented in libass. Last time I tried I failed, and I'm not interested in looking at it again.

@ghost ghost added the meta:feature-request label Mar 31, 2016
@haasn
Copy link
Member

haasn commented Mar 31, 2016

@kevmitch This seems like an issue of center-alignment vs bottom-alignment to me, which is something that doesn't inherently require knowledge of subtitles in advanced.

(As for what happens if a subtitle gets too big, it would be very doable to just push up the location as far as necessary to keep it on the screen)

@nnuel
Copy link

nnuel commented Jan 15, 2022

Is there any update that libass would and could support this in the near future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants