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

add --sub-ass-horizontal-scaling-compat option #12157

Closed
wants to merge 4 commits into from

Conversation

llyyr
Copy link
Contributor

@llyyr llyyr commented Aug 13, 2023

With a crop filter inserted, --sub-ass-horizontal-scaling-compat=no and --sub-ass-horizontal-scaling-compat=yes

See individual commit messages. Also not sold on the option name, please let me know if anyone has better ideas.

This will be used by the next few commits
Also add SD_CTRL_SET_OUT_PARAMS to the sd_ctrl enum. This plumbs a way
to get the necessary information about the video output for the next
commit.
libass before 0.17.0 didn't scale borders, shadows, font spacing and
explicit vector drawing coordinates in the x-axis, which used to be
inconsistent with what VSFilter used to do. This behavior was changed
to improve compatibility with the expected VSFilter behavior. However
this new behavior is problematic in some scenarios, particularly if the
video is cropped to have a different aspect ratio at the output than
what the script resolution dictates. Subtitles would end up with
too-thin or too-thick shadows and borders in the x direction, depending
on aspect ratio difference between the script resolution and the
output resolution.
We can get the PlayResX from the lavc converted ass header, so use that
instead of hardcoding 384. We also now have the output resolution
available to us through out_params, so use that instead of using the osd
dimensions.
@Dudemanguy
Copy link
Member

Do we need this since we have sub-ass-extradata now?

@llyyr
Copy link
Contributor Author

llyyr commented Aug 31, 2023

I'd still prefer this since mpv can still crop videos by itself without the help of a lua script, but I don't think this will be accepted so I'll just close this.

@llyyr llyyr closed this Aug 31, 2023
@llyyr llyyr deleted the sub-stuff branch September 18, 2024 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants