欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

x265 2.8 enabled VMAF

程序员文章站 2022-07-07 12:28:46
...

18-05-21发布的x265 v2.8中已经加入VMAF指标的计算,通过cmake选项ENABLE_LIBVMAF 可以打开此功能,拿到帧级和序列的vmaf分数。

x265 2.8 enabled 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.

相关标签: VMAF