x265 2.8 enabled VMAF
18-05-21发布的x265 v2.8中已经加入VMAF指标的计算,通过cmake选项ENABLE_LIBVMAF
可以打开此功能,拿到帧级和序列的vmaf分数。
release note
x265
Version 2.8
Release Date: May 22, 2018
VMAF (Video Multi-Method Assessment Fusion) Added VMAF support for objective quality measurement of a video sequence. Enable cmake option ENABLE_LIBVMAF to report per frame and aggregate VMAF score. The frame level VMAF score does not include temporal scores. This is supported only on linux for now.
docs
If you set the ENABLE_LIBVMAF cmake option to ON, then x265 will report per frame and aggregate VMAF score for the given input and dump the scores in csv file. The user also need to specify the --recon
in command line to get the VMAF scores.
/* x265_calculate_vmafScore:
returns VMAF score for the input video.
This api must be called only after encoding was done. */
double x265_calculate_vmafscore(x265_param*, x265_vmaf_data*);
/* x265_calculate_vmaf_framelevelscore:
returns VMAF score for each frame in a given input video. The frame level VMAF score does not include temporal scores. */
double x265_calculate_vmaf_framelevelscore(x265_vmaf_framedata*);
Note
When setting ENABLE_LIBVMAF cmake option to ON, it is recommended to also set ENABLE_SHARED to OFF to prevent build problems. We only need the static library from these builds.
Binaries build with windows will not have VMAF support.