fifonik / FFMetrics

Visualizes Video Quality Metrics (PSNR, SSIM & VMAF) calculated by ffmpeg.exe
570 stars 22 forks source link

New FFmpeg custom compiles not detected by FFmetrics? #80

Closed ls-milkyway closed 2 years ago

ls-milkyway commented 2 years ago

Hi I am using a compiled non-free version of ffmpeg with libvmaf enabled ....but FFmetrics refuses to detect the built ffmpeg with vmaf (only psnr+ssim are available)....what could be the reason? ..I wish to use only my custom compiled FFmpeg. I have some idea, FYI:

1) Compiled FFmpeg is running flawlessly in windows cmd with vmaf:

ffmpeg -i output.mkv -i ready.mkv -filter_complex "[0:v]scale=3840:1608:flags=bicubic[main];[main][1:v]libvmaf=model=path=vmaf_v0.6.1.json:log_path=VMAF_out.json:n_threads=2:log_fmt=json" -f null -

2) Vmaf is now using built in models check here ...in json format hence this may be an issue...

3) I am using switches -Denable_float=true -Denable_tests=false -Denable_docs=false --buildtype=release --default-library=static -Dbuilt_in_models=true for compiling from git master........any modifications needed here to make it compatible to FFmetrics.

Plz suggest.

fifonik commented 2 years ago

I noticed that a new format is used in the most recent ffmpeg manual (model + path instead of model_path for example). Unfortunately, I have not had a chance to try such versions yet, so unable to suggest anything at this stage.

You can ask ffmetrics to save ffpmeg commands into log, run it with -log-level=debug as suggested on main page and investigate log.

  1. I see you are trying to use the new format I mentioned. As ffmetrics uses old format, you have to check if the old format still works fine. When logging enabled, you should see all ffmpeg commants that ffmetrics issuing in log.
  2. If you do not currently have external vmaf models in vmaf-models folder, ffmetrics feature detection will not even check if vmaf is supported by the ffmpeg.
  3. I never compiled ffmpeg by myself so cannot suggest anything.
ls-milkyway commented 2 years ago

There are only few repos on github whose authors are really helpful & sincere in their replies...rest all try to escape the real questions or are not at all bothered about providing feasible, working,.. solutions....great work ...keep it up!