我正在尝试计算原始文件中已处理视频的VMAF分数。
我用过的命令:
ffmpeg -y -loglevel info -stats -i original.mp4 -i processed.mp4 -lavfi "[0]null[refdeint];[refdeint]scale=1920:1080:flags=neighbor[ref];[1]setpts=PTS+0.0/TB[b];[b]scale=1920:1080:flags=neighbor[c];[c][ref]libvmaf=log_fmt=json:phone_model=1:model_path={model_path_here}/vmaf_v0.6.1.json:n_subsample=1:log_path=log.json" -f null -
现在根据vmaf with ffmpeg
found here的官方文档,它说source/reference
文件后跟encoded/distorted/processed
文件。
但是我遇到的几乎所有博客,它们都使用相反的 args 顺序,即processed
文件后跟original
文件。
几个例子:
https://medium.com/@eyevinntechnology/keep-an-eye-on-the-video-quality-b9bcb58dd5a1:在其中搜索“在 FFMPEG 中使用 VMAF”。
https://websites.fraunhofer.de/video-dev/calculating-vmaf-and-psnr-with-ffmpeg/:在其中搜索“使用 FFmpeg 进行度量计算”。
编辑
注意:更改顺序确实会更改 VMAF 分数。