[MPlayer-users] [RFC] aspect scaling, panscan etc. in windowed mode

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Sep 12 23:46:15 CEST 2012


Hello,
this is a long-standing issue and I'd like to resolve it, but I am unsure what is most user-friendly.
Currently, when MPlayer plays in windowed mode, we rely only on the windowing system to keep the aspect, i.e. we do not add borders.
As a side-effect, panscan and also zooming (with negative panscanrange values) does not work either.
In addition, some window managers do not support forcing a fixed aspect.
For most vos, it is trivial to switch this behaviour, just by changing the aspect_scaling function in libvo/video_out.h
So the option I have been thinking of is changing this condition to vo_fs || vo_keepaspect
This would then enable adding borders/panscan in windowed mode as long as the -nokeep-aspect isn't used.
So far I think that should not cause issues for anyone.
However, that still would leave no way to configure it to allow scaling the window any way you want _and_ adding borders as necessary.
I'm not particularly keen on adding yet another command-line option either.
Any suggestions? Any opinions on what would be a good way to do handle this whole aspect handling in windowed mode?

Reimar

P.S.: Sorry if I get impatient and make changes before everyone had a chance to reply, it is easy to change later, but it blocks my cleanup work for vo_corevideo, which in turn blocks my code that extracts parts of it and uses it for -vo gl (which I think once done should mean nobody should have a reason to use corevideo any more except for the shared buffer feature).


More information about the MPlayer-users mailing list