Mpv: Videos with resolutions larger than the screen should scale down to fit

Created on 25 Apr 2014  路  7Comments  路  Source: mpv-player/mpv

When starting a video that has a resolution larger than the screen, mpv should size it to fit, in my opinion. At the moment it looks like this when I open a 1080p file on a 13" MBA (1440 x 900). First example is a movie in 4:3, the second one is 2.35:1.

screen shot 2014-04-25 at 20 24 35

screen shot 2014-04-25 at 20 38 10

This is what it looks like when opening the same files in MPlayerX, where the video is scaled to fit by height for the first file and by width for the second file. MPlayerX also takes OS X's dock into account, by the way. It changes the size of the first video depending on whether or not my dock hides automatically:

screen shot 2014-04-25 at 20 44 43

screen shot 2014-04-25 at 20 38 38

Most helpful comment

Try echo 'autofit-larger=90%x90%' >> ~/.mpv/config

All 7 comments

May I interest you for the --autofit-larger option?

Try echo 'autofit-larger=90%x90%' >> ~/.mpv/config

Sorry, that works great but what I was going for is that I think this should be a default behaviour. And also, if possible, subtracting the dock's height from the size would be awesome when the dock isn't set to hide.

One minor issue is that we can't enable this by default in general, because it will cause problems on Linux (Linux WMs usually do this on their own, and it could cause trouble with multi-monitor setups).

But maybe enabling this by default on OSX would be worth discussing.

Speaking along the same line, when I press command + 1 (100% size), I personally feel that the video should be constrained within the resolution of the monitor. As of now if the video window is beyond the screen - hiding close/minimize button. If I set autofit-larger option, then it should be in effect when I press command+1.

What do you think?

That behaviour is correct.

If you tell the player to make the window 100%, then the player should make the window 100%. If you want "zoom to fit", click the green window button, that's what it is for.

Well, closing. I don't know if OSX has a mechanism for this and mpv is accidentally or intentionally blocking it. On other platforms, the window manager should handle this. Other than that you can still use the autofit option.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thebunnyrules picture thebunnyrules  路  3Comments

WoLpH picture WoLpH  路  3Comments

ww7 picture ww7  路  3Comments

beew picture beew  路  3Comments

532910 picture 532910  路  3Comments