This is an old revision of the document!


x264 Quality

Use SSIM or PSNR to gauge differences between encoding settings.

When comparing two values, here is the formula to discern what percentage amount something has improved.

First of all, let's look at a two-pass encode of a file:

x264 -o movie.264 --ssim --tune ssim --profile high --level 3.1 --bitrate 1024 --preset medium --keyint 30 --pass 1 movie.y4m
x264 -o movie.264 --ssim --tune ssim --profile high --level 3.1 --bitrate 1024 --preset medium --keyint 30 --pass 2 movie.y4m

Find this value in the output, and use the Y variable.

x264 [info]: SSIM Mean Y:0.9613678 (14.131db)

Run the same tests, against a 2048k bitrate instead of a 1024k one:

x264 -o movie.264 --ssim --tune ssim --profile high --level 3.1 --bitrate 1024 --preset medium --keyint 30 --pass 1 movie.y4m
x264 -o movie.264 --ssim --tune ssim --profile high --level 3.1 --bitrate 1024 --preset medium --keyint 30 --pass 2 movie.y4m

With separate SSIM output:

x264 [info]: SSIM Mean Y:0.9751283 (16.043db)

Here's the formula:

(((1 - [old SSIM]) / (1 - [new SSIM])) - 1) x 100

</code>


Navigation