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:
- Builds the VMAF command
- Executes it
- Parses the result
- Cleans up the log file
§Arguments
source_path- Original source videoencoded_path- Encoded test windowwindow_start- Start time in secondswindow_duration- Duration in secondsoutput_height- Output height for model selectionn_subsample- Frame subsampling ratetemp_dir- Directory for temporary VMAF log
§Returns
The pooled mean VMAF score as f32