vmaf
映像品質評価するやつ。 #ffmpeg で使える
ffmpeg v4
code:sh
ffmpeg -i encoded.mp4 -i moto.mp4 -filter_complex libvmaf=vmaf_v0.6.1.json:n_threads=4 -an -f null -
json を https://github.com/Netflix/vmaf/tree/master/model からDL
threads数は指定しないとシングルスレッドになることがある
ffmpeg v5
code:sh
ffmpeg -i encoded.mp4 -i moto.mp4 -filter_complex "libvmaf=model=name=vmaf\\:version=vmaf_v0.6.1:feature=name=psnr:n_threads=4:shortest=1:repeatlast=0" -an -f null -
versionのみ指定かname,version両方指定の必要があった
docker経由だと \ が4つ要る
ffmpeg v7
code:sh
ffmpeg -hide_banner -i encoded.mp4 -i moto.mp4 -lavfi libvmaf=log_path=/dev/null:n_threads=4 -f null -
ソース:
新しい映像の品質評価 libvmaf | ニコラボ https://nico-lab.net/libvmaf_with_ffmpeg/
iPhoneSE2で撮った1080p60の映像をvmafした速度
Ryzen 5 3600 (n_threads=4) で0.6xくらい
Ryzen 5 3600 (n_threads=12) で1.1xくらい
OCI ARM Ampere A1 3core (n_threads=3) で0.11xくらい
1080p30の映像をvmafした速度
M2 Macbook Pro (n_threads=4) で0.77xくらい