mpv-player / mpv-player/mpv

Centered subtitles

Open
#3,008 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core:subtitle down-upstream:libass meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

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.

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

Use the reference image and issue description as the visual specification for centered subtitle placement, including single- and double-line dialogue. Start by locating mpv's subtitle-rendering entry point; done means subtitles match the requested alignment in both normal placement and cases where aspect ratio moves them above the picture.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.