dsize[=aspect|w:h:aspect-method:r]
*原文:
dsize[=aspect|w:h:aspect-method:r]
Changes the intended display size/aspect at an arbitrary point
in the filter chain. Aspect can be given as a fraction (4/3) or
floating point number (1.33). Alternatively, you may specify
the exact display width and height desired. Note that this fil-
ter does not do any scaling itself; it just affects what later
scalers (software or hardware) will do when auto-scaling to cor-
rect aspect.
<w>,<h>
New display width and height. Can also be these special
values:
0: original display width and height
-1: original video width and height (default)
-2: Calculate w/h using the other dimension and the
original display aspect ratio.
-3: Calculate w/h using the other dimension and the
original video aspect ratio.
EXAMPLE:
dsize=800:-2
Specifies a display resolution of 800x600
for a 4/3 aspect video, or 800x450 for a
16/9 aspect video.
<aspect-method>
Modifies width and height according to original aspect
ratios.
-1: Ignore original aspect ratio (default).
0: Keep display aspect ratio by using <w> and <h> as
maximum resolution.
1: Keep display aspect ratio by using <w> and <h> as
minimum resolution.
2: Keep video aspect ratio by using <w> and <h> as
maximum resolution.
3: Keep video aspect ratio by using <w> and <h> as
minimum resolution.
EXAMPLE:
dsize=800:600:0
Specifies a display resolution of at most
800x600, or smaller, in order to keep as-
pect.
<r>
Rounds up to make both width and height divisible by <r>
(default: 1).