[MPlayer-dev-eng] [patch] auto-scaling to square pixels in mencoder

Arpi arpi at thot.banki.hu
Mon Apr 29 22:19:35 CEST 2002


Hi,

> When I convert MPGs to DivX, I have to watch the aspect ratio of the mpg,
> .and scale it appropriately (using -vop scale=w:h). As far as I can see
> the only way to do this is to calculate the w and h by hand.
> 
> With this patch you don't have to calculate w and h yourself anymore, you
> can just use "-vop scale=correctaspect".

ok, i've moved few aspect-related options to cfg-common.h, as they work wiht
mencodre too since libmpcodecs.

now you can do -vop scale -zoom  (option -zoom enables scaling, just like in
mplayer, and -vop scale inserts software scaling plugin)
to get the same effect as your patch does with -vop scale=correctaspect

now you can also use -flip/-noflip in mencoder too

and i've changed -xy to keep aspect ratio, so -xy 512 will set width to 512
and set height to something to keep correct aspect ratio (288 for my 16:9 dvd)


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list