VUI 設定はエンコードに使うものではなく、デコーダ向けの補助情報。
詳細はソースコード内の doc/vui.txt 参照。自己責任で使う事。
ここの項目オプションフラグは、読めないデコーダが多い。
編集ガイドや再生ガイドにも書いてありますが(*1)、TVは映像を全部表示しているわけではありません。10~20%くらいは表示されない領域 があります。これはブラウン管にブランクスペースが出ないようにするためです。
NTSCの走査線は525ラインですが、そのうち実際の映像を含んでいるのは大体 486ラインです。もしoverscanがなかったら、TVは525ラインを全部表示するでしょう。これは上下に黒帯が出ると言う事です。映像の両サイド にも普通はブランクデータがあります。一般的に実データの横幅が 704-711 " ピクセル" のDVDでは横幅を720ピクセルにするべく黒帯が付加されます(これがMPEG-2の横幅が16の倍数でなければならない理由です)。
映像データにoverscanがなかったらどうなるでしょうか?事実上Cropされたかのように表示されます(overscanがあれば、データ があっても表示されない)。ここが--overscanオプションの使い道です。
この設定はハードウェア側の対応が必要です(ソフト側の対応も必要ですが、PCモニタにoverscanはありません)。この機能を実装していな い再生機器の場合、--overscan設定は無視。なにを設定していようとcrop表示になります。
--overscan
Usage: --overscan <string> (default=undef) [undef, show, crop]
As you should know from reading the guides, editing or viewing, a TV does not show the complete image, in fact you "lose" between 10% and 20%. The reason for this is to prevent blank space being displayed on the screen, and so giving you full use of the tube. Overscan is good in some respects since for NTSC, 525 lines are transmitted, but only approximately 486 lines contain active image data. If you didn't have overscan, your TV would display all 525 lines meaning you would have black borders at the top and bottom. The sides of the image usually contain blank data too. This is common in DVD where the active image is approximately 704-711 "pixels" wide, but black area is added in to make the resolution 720 pixels wide (this is because MPEG-2 requires resolutions divisible by 16 for the horizontal resolution). So what happens if your video does not contain overscan? Well your image will effectively appear cropped (since you lose some of the image due to overscan). This is where the --overscan switch can help out. Setting "--overscan show" will mean the image is zoomed out to show you the full image, so now it's not getting cropped. Setting this option to "crop" will mean you lose the image as you would normally do. This setting requires compatible hardware (or software, but PC screens do not overscan anyway), if the feature is not implemented, it will simply be ignored and cropped as usual regardless of what you set.
付加情報の設定。例えばファイルに付けるメタデータのようなもの。
ソースの種類を指定できる。ただの付加情報なので再生にもエンコードにも全く影響しない。
This is just an informative setting, kind of like meta data about the file. It allows you to set the source. Since it is for information only, it doesn't influence playback or encoding at all.
これもTVを主眼とする設定。TVは輝度範囲16-235、彩度範囲16-240を想定している。これはTVで見る限りは大丈夫だが、PCモニタでは黒が ダークグレイに、白はライトグレイになってしまう。PCモニタで見る積もりなら、AVISynthでレベル調整をしても良い。こうした事を知らなくても、 素材映像が16-235にならないような調整をしている場合もある(例えば、pure black, pure white, or pure saturated coloursを使っている場合)。
これに加え、DVDの中には0-255のフルレンジを使ったものもある。 ならばTVで0-255のフルレンジを使っても問題は無いのではないかという気もするが、これは規格上正しく無い。オーバーサチュレーションが起きる。
"--fullrange on"は再生時のレンジ補正(再生時に0-255 を 16-235にスケーリングする)。これでTVに映しても大丈夫(H.264デコード対応プレイヤの場合)。
PC モニタは0-255(以上)を表示できるので、ソフトウェアプレイヤはこの設定を無視する傾向にある。レンジ補正抜き、そのまま0-255で出力するとい うこと。だから "--fullrage on" はどちらで表示しても問題無い。
"--fullrange off"を使っても平気なのは素材映像のレンジが16-235の時だけです。
This is another setting primarily aimed at TV sets. TV sets assume that the luma range is 16-235, and chroma is 16-240. This looks Ok on a TV set, but on a PC screen black will appear dark grey, and white, light grey. In this case, you might choose to fix the levels in AVISynth if you intend your AMV to be viewed on a PC screen. Even if you are unaware of this fact, you might be using effects in your AMV that do not fall within 16-235 (ie if you use pure black, pure white, or pure saturated colours). Add to that, some DVDs use the full 0-255 range also. So what is the problem with using a full 0-255 range on a TV? Well in addition to it being incorrect by standards, it will look oversaturated . You can "fix" this by using "--fullrange on". It corrects the range on playback (it scales it from 0-255 to 16-235), so by using fullrange it will look correct on a TV (assuming you are using a H.264 capable hardware player). Since PC monitors are capable of 0-255 (and above), it's likely that software players will ignore this option and so it won't be rescaled; meaning you get the correct 0-255 output. The video now looks correct on both devices. You can set "--fullrange off" only if you can make sure your range is already limited to 16-235.