No-reference blockiness detector

A small, self-contained Python script that finds the block grid (macroblocking) in a single frame without a reference image, using the Wang-Bovik frequency-domain method: it takes the average gradient across rows and columns, runs an FFT, and measures the peak at the block-grid frequency and its harmonics. Works on live and UGC where no original exists. Includes a built-in --demo self-test. Needs numpy; Pillow optional for image input. Triage tool, not a calibrated metric. (ZIP containing 1 file

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 no-reference blockiness detector finds the macroblocking grid in a single frame with the Wang-Bovik frequency method, useful for live and UGC. Our seven-volume handbook covers the full video stack; start with Volume 1 for compression artifacts and metrics, then Volume 3 for delivery and Volume 6 for AI quality models. Written by Nikolay Sapunov, CEO at Fora Soft.

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

Seeing blockiness in live streams with no reference to compare against?

Send us sample streams, and we will measure blockiness and trace it to bitrate, encoder or network causes. 250+ video products shipped since 2005.

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