14.5.1. x264のエンコードオプション
まず最初に MPlayer の man page にある x264セクションを読んで下さい。以下の情報はその補助で、多くの人が関心を持つと思われるオプションのヒントが書いてあります。 man page はもっと簡潔ですが、徹底的でもあり技術的な詳細に及ぶ事もあります。
*man page -x264encopts試訳:http://agehatype0.blog50.fc2.com/blog-date-20070802.html
14.5.1.1. イントロダクション
このガイドではオプションを二つのカテゴリに分けます。
結局のところ、自分の目的にベストなオプションを決められるのは自分だけなのですが、1の分類のオプションを決めるのは簡単です。速 度低下に見合った画質向上が得られるどうか。それだけです。2の分類のオプションを決めるのは、条件がより主観的になり、またより多くの要素も絡んできま す。この分類のオプションの中にも速度や画質に大きく影響するものがあるのですが、そのオプションの主目的はそこでは無い事に注意して下さい。2の分類の オプションには、画質が良くなるという意見と悪くなるという意見の両方が存在するものすらあります。
先に進む前に、このガイドで使う唯一の画質指標「global PSNR」について。PSNRの詳細な説明は wikipedia (en) のPSNR を見て下さい。global PSNRはエンコード終了後にターミナルの末尾に出て来る数値で、オプションでpsnr計算をさせた時に出るものです。以後PSNRに言及している場合 は、常に同一ビットレートでの比較と考えて下さい。
このガイドのほぼ全文が、two pass を前提に書かれています。オプション比較において two pass エンコードを行う理由は主に二つ。第一は、 two pass はPSNRが1dBほど高くなる事。これは大きな違いです。第二は、one pass エンコードでオプションの影響を比べるのは混乱しがちな事です。エンコードの度にビットレートが大きく変わる事が多いので、画質が良くなったのがオプションを弄ったせいなのか、それともビットレートが変わったせいなのか、見極めが難しい事があるからです。
*ageha | SSIMとPSNRとは http://agehatype0.blog50.fc2.com/blog-entry-181.html
14.5.1. Encoding options of x264:http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html#menc-feat-x264-encoding-options
Please begin by reviewing the x264 section of MPlayer's man page. This section is intended to be a supplement to the man page. Here you will find quick hints about which options are most likely to interest most people. The man page is more terse, but also more exhaustive, and it sometimes offers much better technical detail.
14.5.1.1. Introduction:http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html#menc-feat-x264-encoding-options-intro
This guide considers two major categories of encoding options:
1. Options which mainly trade off
encoding time vs. quality
2. Options which may be useful for fulfilling
various personal preferences and special requirements
Ultimately, only you can decide which options are best for your purposes. The decision for the first class of options is the simplest: you only have to decide whether you think the quality differences justify the speed differences. For the second class of options, preferences may be far more subjective, and more factors may be involved. Note that some of the “personal preferences and special requirements“ options can still have large impacts on speed or quality, but that is not what they are primarily useful for. A couple of the “personal preference“ options may even cause changes that look better to some people, but look worse to others.
Before continuing, you need to understand that this guide uses only one quality metric: global PSNR. For a brief explanation of what PSNR is, see the Wikipedia article on PSNR. Global PSNR is the last PSNR number reported when you include the psnr option in x264encopts. Any time you read a claim about PSNR, one of the assumptions behind the claim is that equal bitrates are used.
Nearly all of this guide's comments assume you are using two pass. When comparing options, there are two major reasons for using two pass encoding. First, using two pass often gains around 1dB PSNR, which is a very big difference. Secondly, testing options by doing direct quality comparisons with one pass encodes introduces a major confounding factor: bitrate often varies significantly with each encode. It is not always easy to tell whether quality changes are due mainly to changed options, or if they mostly reflect essentially random differences in the achieved bitrate.