FFmpeg + libvmaf measurement script

Cross-cutting asset B1. A dependency-free (pure standard-library) Python wrapper that measures video quality with FFmpeg + libvmaf the right way. It builds the command with the input order ([dist][ref], distorted first) and the scale-to-reference (bicubic) rule already correct, runs libvmaf for VMAF + PSNR + SSIM + MS-SSIM in one pass, parses the JSON log, and prints a report that refuses a bare 'VMAF 93' — every number is stamped with the model, the measurement resolution, and the pooling metho

Download free PDF
Book cover: Video Streaming, Volume 3 of the Fora Soft Video Engineering HandbookBook cover: Video Encoding, Volume 1 of the Fora Soft Video Engineering HandbookBook cover: AI for Video, Volume 6 of the Fora Soft Video Engineering Handbook

The handbook · 7 volumes

Fora Soft Video Engineering Handbook

This script runs FFmpeg with libvmaf the right way, distorted input first and scaled to reference, and stamps every VMAF, PSNR and SSIM score with model and resolution. Our seven-volume handbook covers the video stack; start with Volume 1 on quality metrics and encoding, then Volume 3 for QoE monitoring and Volume 6 for AI models. Written by Nikolay Sapunov, CEO at Fora Soft.

Browse the handbook on Amazon →7 volumes · 9,000+ pages · Kindle & paperback

Getting VMAF scores from FFmpeg that your team can compare and trust?

Share your measurement setup, and we will audit your libvmaf pipeline and fix the settings that skew your quality scores. 250+ video products shipped since 2005.

Book a 30-min call →WhatsApp →Email us →