[FFmpeg-trac] #9094(avfilter:new): libvmaf filter attempts to load deprecated model file

FFmpeg trac at avcodec.org
Thu Feb 4 10:11:25 EET 2021

#9094: libvmaf filter attempts to load deprecated model file
             Reporter:  veikk0       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avfilter     |                  Version:  git-
             Keywords:  VMAF         |  master
  libvmaf                            |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:

 When built with libvmaf v2.0.0 or later, attempting to invoke the libvmaf
 filter with FFmpeg (with the vmaf_v0.6.1.pkl file in the correct location)
 will fail with the following error:

 libvmaf INFO `compute_vmaf()` is deprecated and will be removed in a
 future libvmaf version
 libvmaf WARNING could not read model from path:
 libvmaf WARNING pkl model files have been deprecated, use json
 libvmaf ERROR problem loading model file:
 [Parsed_libvmaf_0 @ 0x55f2b8286f80] libvmaf encountered an error, check
 log for details
 Error while filtering: Invalid argument
 Failed to inject frame into filter network: Invalid argument
 Error while processing the decoded data for stream #1:0

 Currently the default value for the model_path parameter in the libvmaf
 filter is "/usr/local/share/model/vmaf_v0.6.1.pkl". However, as the error
 message implies, support for .pkl models was removed in
 [https://github.com/Netflix/vmaf/releases/tag/v2.0.0 VMAF 2.0.0] and .json
 models are used instead.

 In addition, v2.0.0 added support for built-in models
 (`-Dbuilt_in_models=true` build option, enabled by default). So having a
 default model path probably wouldn't even be required.

 How to reproduce:
 ffmpeg -r 30 -i encoded.webm -r 30 -i original.mp4 -an -sn -lavfi libvmaf
 -f null -

 Version information:
 ffmpeg version N-100946-ge6254d5 Copyright (c) 2000-2021 the FFmpeg
 built with gcc 10 (Ubuntu 10.1.0-2ubuntu1~18.04)

Ticket URL: <https://trac.ffmpeg.org/ticket/9094>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list