hoichoi-opensource / Video-Quality-Metrics

Get VMAF and PSNR score of a video after encoding to maintain size and quality

Home Page:https://hoichoi.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video Quality Metrics - VMAF and PSNR

This Python script calculates the Video Multi-Method Assessment Fusion (VMAF) and Peak Signal-to-Noise Ratio (PSNR) of video files in formats such as MP4, AV1, VP9, HLS, etc. It takes the file paths of the source and converted videos as user input.

Dependencies

  • Python 3
  • FFmpeg
  • FFprobe

The script will check for dependencies and install them if needed.

Getting Started

  1. Clone the repository:
git clone https://github.com/hoichoi-opensource/Video-Quality-Metrics.git
cd Video-Quality-Metrics  `

Make sure you have the VMAF model file vmaf_v0.6.1.pkl in the repository folder. 
You can download it from https://github.com/Netflix/vmaf/tree/master/model

## Run the script with the source and converted video file paths:

```bash

python check_vmaf_psnr.py <source_video> <converted_video>
`
Replace <source_video> and <converted_video> with the file paths of the source and converted videos, respectively.

The script will print the VMAF and PSNR values for the given video files.

About

Get VMAF and PSNR score of a video after encoding to maintain size and quality

https://hoichoi.tech

License:MIT License


Languages

Language:Python 100.0%