<div dir="ltr"><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">Hello X265 community,</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> </span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">When I configured x265 to
build with the VMAF lib, I got the following error messages. I could build x265 and
VMAF separately though. I think the reason was because that Netflix changed compute_vmaf()
interface (added more input arguments) but x265 was not updated for that change. I used the latest code for both x265 and VMAF
as of 10/26. </span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> </span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">/home/bchen/workspace/x265/source/encoder/api.cpp:
In function ‘double x265_calculate_vmafscore(x265_param*, x265_vmaf_data*)’:</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">/home/bchen/workspace/x265/source/encoder/api.cpp:1504:253:
error: too few arguments to function ‘int compute_vmaf(double*, char*, int,
int, int (*)(float*, float*, float*, int, void*), void*, char*, char*, char*,
int, int, int, int, int, int, int, char*, int, int, int)’</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> e_transform, vcd->phone_model,
vcd->psnr, vcd->ssim, vcd->ms_ssim, vcd->pool);</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">
^</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">In file included from
/home/bchen/workspace/x265/source/encoder/api.cpp:35:0:</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">/usr/local/include/libvmaf.h:26:5:
note: declared here</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> int compute_vmaf(double* vmaf_score, char*
fmt, int width, int height, int (*read_frame)(float *ref_data, float
*main_data, float *temp_data, int stride_byte, void *user_data),</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> ^~~~~~~~~~~~</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">/home/bchen/workspace/x265/source/encoder/api.cpp:
In function ‘double x265_calculate_vmaf_framelevelscore(x265_vmaf_framedata*)’:</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">/home/bchen/workspace/x265/source/encoder/api.cpp:1606:280:
error: too few arguments to function ‘int compute_vmaf(double*, char*, int,
int, int (*)(float*, float*, float*, int, void*), void*, char*, char*, char*,
int, int, int, int, int, int, int, char*, int, int, int)’</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> le_transform, vcd->phone_model,
vcd->psnr, vcd->ssim, vcd->ms_ssim, vcd->pool);</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> ^</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">In file included from
/home/bchen/workspace/x265/source/encoder/api.cpp:35:0:</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">/usr/local/include/libvmaf.h:26:5:
note: declared here</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> int compute_vmaf(double* vmaf_score, char*
fmt, int width, int height, int (*read_frame)(float *ref_data, float
*main_data, float *temp_data, int stride_byte, void *user_data),</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> ^~~~~~~~~~~~</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">encoder/CMakeFiles/encoder.dir/build.make:446:
recipe for target 'encoder/CMakeFiles/encoder.dir/api.cpp.o' failed</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">make[2]: *** [encoder/CMakeFiles/encoder.dir/api.cpp.o]
Error 1</span></p>
<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">CMakeFiles/Makefile2:262:
recipe for target 'encoder/CMakeFiles/encoder.dir/all' failed</span></p></div>