A deblocking filter is the cleanup step every modern video codec runs to hide the squares. Codecs compress video by breaking each frame into small blocks (16×16, 32×32, 64×64 pixels) and processing each block somewhat independently. When compression gets aggressive, the boundaries between those blocks start to show — you see a faint grid pattern across the picture, especially on smooth surfaces like skin, sky or walls. That visible grid is called "blocking", and it's the most common compression artefact in cheap or over-squeezed video.
The deblocking filter looks at every block boundary and gently smooths it out — softening the difference between adjacent blocks just enough to make the seam invisible without blurring the actual image content. The smoothing strength is adaptive: stronger on flat areas where the seam would stand out, lighter on textured or detailed areas where over-smoothing would erase real detail.
What makes deblocking special is that it runs inside the decoding loop, before the frame is used as a reference for predicting later frames. Cleaner reference frames mean cleaner predictions, which means smaller files. The filter is mandatory in H.264, HEVC, VP9 and AV1; turning it off in test encodes drops both visual quality and compression efficiency by several percent. For a product team, deblocking is one of those invisible features you only notice if it's missing: when you see videos with a visible "checkerboard" pattern on calm scenes, that's a sign the codec or encoder skipped or weakened the deblocking stage.
The book · Volume 1 of 7
Video Encoding: A Complete Guide to Video Compression — From Pixels and Color to H.264, HEVC, AV1, Quality Metrics, and AI
A deblocking filter hides the square edges that quantization leaves behind, and setting it too strong smears fine detail. Volume 1 covers the deblocking filter in detail: in-loop filtering in H.264, HEVC and AV1, how deblocking works with SAO, ALF and CDEF, and how to measure its effect with quality metrics. Written by Nikolay Sapunov, CEO at Fora Soft.
Seeing blocking artefacts or blur and suspect your deblocking filter settings?
Send us sample encodes and settings: we tune deblocking and other in-loop filter parameters on your content and show the quality gain with metric scores. 250+ video products shipped since 2005.