Man / VIDEO FILTERS / dsize


超煮詰まり中


dsize[=aspect|w:h:aspect-method:r]

フィルタチェインの任意の位置でディスプレイサイズとアスペクトを変更。
アスペクトの指定は分数(4/3)か小数(1.33)で指定できる。あるいは、ディスプレイサイズの幅と高さで指定することもできる。このフィルタ自体はスケーリングを一切しない事に注意。後続のハード/ソフトスケーラによる補正に影響するものである。

<w>,<h>

幅と高さの指定。以下の特別な値も指定できる。

0: オリジナルの表示幅と高さ

-1: オリジナルの幅と高さ(de- fault)

-2: オリジナルの表示アスペクトと他の値を元にw/hを計算。

-3: オリジナル映像のアスペクトと他の値を元ににw/hを計算。

EXAMPLE:

dsize=800:-2

アスペクト比 4/3 のビデオの場合はディスプレイサイズ 800x600、16/9 のビデオの場合は 800x450 を指定することになる。

<aspect-method>

オリジナルのアスペクト比に従って幅と高さを変更する

-1: オリジナルのアスペクト比を無視(デフォルト)。

0: 解像度が <w> と <h> を超えないよう表示アスペクト比を保つ。

1: 解像度が <w> と <h> を超えるように表示アスペクト比を保つ。

2: 解像度が <w> と <h> を超えないようにビデオアスペクト比を保つ。

3: 解像度が <w> と <h> を超えるようにビデオアスペクト比を保つ。

表示アスペクト比(display aspect ratio - DAR)とビデオアスペクト比(video aspect ratio - VAR)について

前者は(特に mpeg の)再生時の表示域のアスペクト比を指定するもの(DVD の場合は 4:3 か 16:9 いずれか)、後者は表示における実効領域(黒帯部分を除いた領域)のアスペクト比(間違ってるかも?)。縦横の画素数の比とは無関係なものらしい。
参考:http://forum.videohelp.com/viewtopic.php?p=622650

例:

dsize=800:600:0

表示解像度を最大 800x600 とした上でアスペクト比を保つ

<r>

幅と高さを <r> で割り切れるようにする(デフォルトは 1)。

原文 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 filter does not do any scaling itself; it just affects what later scalers (software or hardware) will do when auto-scaling to correct aspect.

<w>,<h>

New display width and height. Can also be these special values:

0: original display width and height

-1: original video width/height (default)

-2: Calculate w/h using the other di- mension and the original display aspect ratio.

-3: Calculate w/h using the other di- mension 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 (de- fault).

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 aspect.

<r>

Rounds up to make both width and height divisible by <r> (default: 1).




FrontPage
MPlayer
Manuals
Documents
カテゴリ

■GENERAL
MEMO
LINK
雑談所
最近の更新
popular

■Other Tools
ffmpeg
mkvmerge
mp4box
MPEG Streamclip
QTCoffee
x264cli

■About
About Wiki

edit


blog


本日1
昨日0
累積3855