[MPlayer-users] why does scale ignore the command line??

D Richard Felker III dalias at aerifal.cx
Tue Nov 4 23:34:29 CET 2003


On Tue, Nov 04, 2003 at 10:25:04PM +0000, Chris Phillips wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
> hi,
> 
> if i do this:
> 
> mplayer -vf scale=264:227 dvd://1
> 
> mplayer does this:
> 
> Opening video filter: [scale w=264 h=227]
> 
> but then does this:
> 
> VO: [xv] 264x227 => 403x227 Planar YV12
> 
> why does mplayer rescale the movie? what erm.. "rite" does it have to do 
> this? if i say I want those scale values surely it should enforce that!
> 
> i've tried also adding -noaspect but that then simply enforces the default 
> 720x576 ratio!

The scale filter preserves the aspect because this is normally the
correct thing to do. Why are you using the scale filter at all if you
have hardware scaling?? Just use -x and -y to set the size you want it
to be hardware-scaled to, or use -vf dsize=w:h to control this. Or use
-aspect.

Also keep in mind that odd width or height values are _invalid_ for
4:2:0 video (you will probably see glitched lines at the edges!).

Rich



More information about the MPlayer-users mailing list