[MEncoder-users] video filter scale (n+8)

The Wanderer inverseparadox at comcast.net
Tue Jul 11 23:12:59 CEST 2006


Jon Drukman wrote:

> i'm trying to set the scale to 640 wide and nearest multiple of 16
> high (for H.264 encoding of arbitary sized input files).  the
> documentation says:
> 
> scale[=w:h[:interlaced[:chr_drop[:param[:param2[:presize[:noup]]]]]]]
> 
> 0: scaled d_width/d_height
> -1: original width/height
> -2: Calculate w/h using the other dimension and the prescaled aspect ratio.
> -3: Calculate w/h using the other dimension and the original aspect ratio.
> -(n+8): Like -n above, but rounding the dimension to the closest 
> multiple of 16.
> 
> 
> i want the -3 option but with the rounding. i've tried -vf
> scale=-3+8, -vf scale='-(3+8)' but it always gives an error
> 
> The w option must be an integer: -3+8
> Option vf: Error while parsing scale parameter w (-3+8)
> 
> i'm using the latest SVN as of yesterday afternoon. what's the
> correct syntax?

I haven't tested it, but from the above, I would expect:

-vf scale=-11

because 11 is (3+8). That's why the parentheses are there in the
description.

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.



More information about the MEncoder-users mailing list