mpc-hc icon indicating copy to clipboard operation
mpc-hc copied to clipboard

OSD stretching out during changing window size

Open xLn2 opened this issue 2 years ago • 3 comments

As the title mention, OSD drawing behavior is a bit weird, it scales itself by window size. It is also noticeable while View > video frame > aspect ratio > 4:3 and again revert it to default. I also noticed that Ctrl + I (show time) has a different behavior. It tries to catch true size during resize but play, pause, volume of OSD things stays stretching out until OSD display time ends.

resim resim

view > video frame > aspect ratio section: https://i.imgur.com/iDR4quw.gif

ctrl + I https://i.imgur.com/FtI4uhC.gif

play, pause and volume : https://ibb.co/YhWCMW5

mpc-be is handle OSD nicely: https://ibb.co/GT0xJpq

This stuff is just visual glitch so its not core part of software, if developers have free time can look up or maybe if it's possible, copy OSD behavior from mpc-be. I am just reporting.

xLn2 avatar Mar 30 '22 05:03 xLn2

Maybe a default font size scaled to DPI. Say 20 pointed font?

adipose avatar Mar 31 '22 00:03 adipose

BE uses a totally different way of showing the OSD afaik. Last time I checked it draws on top of the window instead of doing it through the video renderer.

clsid2 avatar Mar 31 '22 00:03 clsid2

Drawing directly onto the window might be a superior option. Less chance of video filters messing with it. And no chance of redirected output having the OSD messages. Though no idea if saving output is a use case for MPC-HC...I only play movies to my screen 😁.

Would directly writing on the video surface limit render types (maybe only newer versions like EVR)? Or acceleration options like "overlay mode"? Just trying to think ahead to possible reasons not to work on a change.

OneOfMany07 avatar Apr 12 '22 02:04 OneOfMany07

@clsid2 maybe can close.

adipose avatar May 09 '24 06:05 adipose