Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,285
|
FFMpeg VMAF filter
https://ffmpeg.org/ffmpeg-filters.html#libvmaf
https://github.com/Netflix/vmaf Quote:
Is it "complete" yet ? Experiences /observations / comments ? |
|
![]() |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
I'd like to check out this FFMPEG filter, ideally on Windows 10; I'm running Zeranoe Static Windows 64-bit nightly builds currently.
If this is possible, how do you install the pre-requisite libvmaf library ? I see there is also now a VapourSynth VMAF plugin: https://forum.doom9.org/showthread.p...AF+vapoursynth But I would prefer to use commandline FFMPEG.
__________________
Nostalgia's not what it used to be |
![]() |
![]() |
![]() |
#5 | Link |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
Place the model file in the same folder and try
Code:
ffmpeg -i main -i ref -lavfi libvmaf="model_path=vmaf_v0.6.1.pkl" -f null -
__________________
Monochrome Anomaly |
![]() |
![]() |
![]() |
#6 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Ah, OK, so no need to compile/install anything - I just copy the vmaf_v0.6.1.pkl file from here ?:
https://github.com/Netflix/vmaf/tree/master/model Tried that, but still: ![]()
__________________
Nostalgia's not what it used to be Last edited by WorBry; 31st January 2019 at 16:48. |
![]() |
![]() |
![]() |
#7 | Link |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
I believe you need *.pkl and *.pkl.model in the same path as ffmpeg, not just the pkl file.
__________________
Monochrome Anomaly |
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Nope, it's still not reading vmaf_v0.6.1.pkl.
I've got the VapourSynth vmaf filter working though so I'll use that for now. I really just wanted to see how the VMAF and SSIM measures compare for x264 encoded over a range of CRF values, using a high quality uncompressed source as reference. And also how the LibVMAF derived SSIM 'aggregate' score tallies with the standard FFMPEG SSIM metric 'average' score. This series shows quite a difference: https://github.com/Netflix/vmaf/issues/22 Cheers.
__________________
Nostalgia's not what it used to be Last edited by WorBry; 1st February 2019 at 07:29. |
![]() |
![]() |
![]() |
#9 | Link |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
It works for me using a relative path.
I also tried libvmaf=model_path=vmaf_b_v0.6.3.pkl:enable_conf_interval=1 and that also works. Something must be wrong on your side, but still good to know that the vapoursynth filter works.
__________________
Monochrome Anomaly |
![]() |
![]() |
![]() |
#11 | Link | |
Registered User
Join Date: Apr 2018
Posts: 63
|
I think the "phone model" is not working for me. Am I using this incorrectly?
Quote:
|
|
![]() |
![]() |
![]() |
#14 | Link | |
Registered User
Join Date: Jun 2018
Posts: 1
|
Quote:
![]() Hey Wolfberry, I'm actually have the exact same issue. I have to punch in the path *nix style to get it work. But I'm also getting a VMAF Score = nan for some reason... :'( |
|
![]() |
![]() |
![]() |
#15 | Link | |||
Registered User
Join Date: Jul 2010
Posts: 132
|
cannot get this to work under Windows w/ latest Zeranoe ffmpeg build 4.1.1... copied both "vmaf_v0.6.1.pkl" and "vmaf_v0.6.1.pkl.model" into same folder as ffmpeg.exe... running this command:
Quote:
Quote:
Quote:
any advice ? from the posts above I assumed that simply copying the .pkl files into the correct folder would work... Thanks. |
|||
![]() |
![]() |
![]() |
#16 | Link |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
You can get my custom build of ffmpeg with libvmaf here
__________________
Monochrome Anomaly Last edited by Wolfberry; 27th February 2019 at 09:47. |
![]() |
![]() |
![]() |
#18 | Link | ||
Registered User
Join Date: Jul 2010
Posts: 132
|
Quote:
get the following error trying to run VMAF filter using your build: Quote:
Thanks. |
||
![]() |
![]() |
![]() |
#19 | Link |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
ffmpeg-4.2-N-93255-g4571c7c05d built with gcc 8.3.1 (G41) 20190222
The vapoursynth dependencies is now included. The build can also be found in my signature, future updates will be there. Code:
configuration: --disable-autodetect --disable-debug --disable-w32threads --enable-amf --enable-avisynth --enable-bzlib --enable-cuda --enable-d3d11va --enable-ffnvcodec --enable-iconv --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libmfx --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtesseract --enable-libvidstab --enable-libvmaf --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-mbedtls --enable-nvdec --enable-nvenc--enable-opencl --enable-pthreads --enable-sdl2 --enable-vapoursynth --enable-zlib --enable-gpl --enable-version3 libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 47.102 / 58. 47.102 libavformat 58. 26.101 / 58. 26.101 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Code:
w/ libfribidi liblensfun librubberband libsrt libssh libtesseract libvmaf mbedtls opencl vapoursynth w/o gmp gnutls libmp3lame libopencore-amrnb libopencore-amrwb libshine libsnappy libspeex libtheora libtwolame libvorbis libvo-amrwbenc libwavpack libxvid
__________________
Monochrome Anomaly Last edited by Wolfberry; 27th February 2019 at 09:44. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|