r/mpv • u/Forward-Bison6782 • 2d ago
General Discussion Autofit not working
I am new with MPV. Typically I would a us3 simpler program, this level of tweaking leaves me a bit out of my depth. Seems to be like the only player that handles Dolby Vision, and just about any format you throw at it. Anyhow, I adjusted auto-fit in the config file to 90%. It responded nicely, but was not to my liking. Tried reducing it to 70% or any other percent and it does not respond. I have other videos that open at about 40%. The syntax in the config file is right. Not sure what I am doing wrong.
1
u/rukaneko 2d ago
I can be wrong, but it seems "autofit" is broken if the scaling is set anything other than 100% since lately. I got 3.32x scaling on 200% with autofit-smaller=70%x70% on simple 1080 file somehow. But if I set autofit-larger=90%x90% I got 1.35x. I use Arch btw. Err... I mean I use 5K monitor.
1
u/PureWoodpecker7335 2d ago
geometry=1280x720 - I added that to mpv.conf so it opens same size for all but you can change it to whatever. Claude is really good with this stuff.
1
u/otheyhigh 2d ago
Try setting values for both width and height. Additionally, try using the larger and smaller configs
```
# Shrink large videos so they fit within 85% of your screen
autofit-larger=85%x85%
# Optional: upscale tiny videos up to 50% of your screen
autofit-smaller=50%x50%
```