Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
libvmaf-rs intends to be an ergonomic wrapper around the raw library bindings for Netflix's libvmaf from libvmaf-sys.
VMAF is an Emmy-winning perceptual video quality assessment algorithm developed by Netflix. It is a full-reference metric, meaning that it is calculated on pairs of reference/distorted pictures
Getting started:
First, construct Videos from video files for both your reference and distorted(compressed) video files.
This example uses the same file for both reference and distorted, but normally distorted would be a compressed video while reference would point to the original, uncompressed video
let reference: Video = new.unwrap;
let distorted: Video = new.unwrap;
Now, you need to load a model,
let model: Model = default;
Optionally, you may define a callback function. This is useful if you want updates on the progress of VMAF score calculation
let callback = ;
Now we construct a Vmaf context
let vmaf = new
To get a vector of scores for every frame, we may use the following method on our new Vmaf context:
let scores = vmaf
.get_vmaf_scores
.unwrap;