A quality gate is an automated check that compares a measurement to a threshold and fails a release when the score drops too far, so a bad encoder change is blocked before a viewer sees it. Borrowed from software CI/CD, it points the same pass-fail logic at the picture: encode a fixed test clip, score it (use a perceptual metric like VMAF, not PSNR, because an encoder can raise PSNR while the picture gets worse), and refuse to merge below the bar. A robust gate runs two checks: an absolute floor (never ship below a set score) and a regression check against a golden reference (never drop more than a small margin from the last good build). The catch is sizing that margin from the metric's own noise rather than a guess, and reading the worst frames (a low percentile), not just the mean. Decide deliberately whether each failure is a hard gate that blocks or a soft gate that only warns; deploy new checks soft, then harden.

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

A quality gate only works if the threshold is set from a metric that tracks what viewers see, otherwise it blocks good builds or waves bad ones through. Our seven-volume handbook covers the full video stack; start with Volume 1 for quality gates, where encoder settings, rate control, VMAF and other quality metrics are explained, then Volume 3 for player-side QoE. Written by Nikolay Sapunov, CEO at Fora Soft.

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

Adding a VMAF quality gate to your encoding CI without false alarms?

We will help you pick the metric, test clips and pass-fail thresholds for your quality gate and wire it into the pipeline. 250+ video products shipped since 2005.

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