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

osd_libass: update the OSD bar's dent and border size #12994

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

guidocella
Copy link
Contributor

Make the OSD bar markers bigger so we can default to a smaller, better-looking border size, without sacrificing markers' visibility.

Copy link

github-actions bot commented Nov 28, 2023

Download the artifacts for this pull request:

Windows

sub/osd_libass.c Outdated
@@ -466,7 +466,7 @@ static void update_progbar(struct osd_state *osd, struct osd_object *obj)
// chapter marks
for (int n = 0; n < obj->progbar_state.num_stops; n++) {
float s = obj->progbar_state.stops[n] * width;
float dent = border * 1.3;
float dent = border * 4;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I set --osd-bar-border-size to the old default of 1, the chapter markers are now too large, and there is no way to control that separately from this option.
Instead of increasing the multiplier, why not set a minimum value instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@na-na-hi
Copy link
Contributor

The previous PR suggested a 0.5 thickness but this one suggests 0.4. It seems that a border size of 0.4 instead of 0.5 results in very different visual appearances, shown below.

At 1920x1080 output size, 0.4 border size results in uneven top and bottom horizontal line and it appears visually to be more than 20% thinner than 0.5 because the difference of the portion of saturated pixels is larger. At smaller output size of 1280x720, the side borders no longer have saturated white pixels at 0.4 thickness which is not the case for 0.5.

I would suggest keep 0.5 as the default unless it's not considered thin enough.

border

Make the OSD bar markers bigger so we can default to a smaller,
better-looking border size, without sacrificing markers' visibility.
@guidocella
Copy link
Contributor Author

The unevennes at 0.4+1080p is hard to notice but it's more noticeable at 720p. I made it 0.5 again. I think another good option is 0.3 which seems to be even at both 720p and 1080p, whichever is preferred.

Copy link
Member

@Dudemanguy Dudemanguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to have been forgotten but I think this is more aesthetically pleasing so why not

@Dudemanguy Dudemanguy merged commit 09f6f28 into mpv-player:master Feb 26, 2024
14 checks passed
@guidocella guidocella deleted the osd-bar-marker-size branch February 26, 2024 16:01
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.

3 participants