[MEncoder-users] zoom to fit resolution

Andrew Wason rectalogic at rectalogic.com
Fri Aug 22 21:29:21 CEST 2008


RC <cooleyr <at> gmail.com> writes:
> 
> On Fri, 22 Aug 2008 02:42:54 +0000 (UTC)
> Andrew Wason <rectalogic <at> rectalogic.com> wrote:
> 
> > e.g. for 480x320 bounding box:
> > 
> >   -vf scale=0:0,scale=480:-2,scale=-2:320
> 
> Won't work with eg. 16:9 aspect videos.


Hmm, yes it exceeds the bounds.

e.g. http://samples.mplayerhq.hu/MPEG2/TITLE01-ANGLE1.VOB is 720x576 with 16:9
DAR (so normally displayed at 1024x576) and is scaled to 568x320 by the above
(too big).

What I have actually been using is:

  -vf scale=0:0,scale=480:-2:noup=1,scale=-2:320:noup=1

which works for me (above sample is scaled to 480x270) - but doesn't meet the
original posters requirement of upscaling videos that are smaller than the
bounding box - something I don't need to do.

Andrew







More information about the MEncoder-users mailing list