run_vmaf_evaluation

Function run_vmaf_evaluation 

Source
pub fn run_vmaf_evaluation(
    source_path: &Path,
    encoded_path: &Path,
    window_start: f64,
    window_duration: f64,
    encode_fps: u32,
    output_height: u32,
    n_subsample: u32,
    temp_dir: &Path,
    hw_config: Option<&HwEncodingConfig>,
) -> Result<f32>
Expand description

Run VMAF evaluation and return the score

This is a convenience function that:

  1. Builds the VMAF command
  2. Executes it
  3. Parses the result
  4. Cleans up the log file

§Arguments

  • source_path - Original source video
  • encoded_path - Encoded test window
  • window_start - Start time in seconds
  • window_duration - Duration in seconds
  • output_height - Output height for model selection
  • n_subsample - Frame subsampling rate
  • temp_dir - Directory for temporary VMAF log

§Returns

The pooled mean VMAF score as f32