[Paper Review] Daala: A Perceptually-Driven Next Generation Video Codec
Daala is a royalty-free, perceptually driven video codec that replaces traditional video coding tools with novel techniques emphasizing visual quality over objective metrics like PSNR. It uses lapped transforms, perceptual vector quantization (PVQ), and a directional deringing filter to reduce blocking and ringing artifacts, achieving competitive performance with HEVC on still images and strong results on perceptual metrics like SSIM and PSNR-HVS-M.
The Daala project is a royalty-free video codec that attempts to compete with the best patent-encumbered codecs. Part of our strategy is to replace core tools of traditional video codecs with alternative approaches, many of them designed to take perceptual aspects into account, rather than optimizing for simple metrics like PSNR. This paper documents some of our experiences with these tools, which ones worked and which did not, and what we've learned from them. The result is a codec which compares favorably with HEVC on still images, and is on a path to do so for video as well.
Motivation & Objective
- To develop a royalty-free video codec that competes with patent-encumbered codecs like HEVC and VP9 in visual quality without relying on traditional PSNR-optimized tools.
- To address perceptual artifacts such as blocking and ringing by integrating perceptual modeling into core coding components like transform, prediction, and quantization.
- To enable efficient, scalable rate-distortion optimization in a block-based video codec by restructuring lapped transform and OBMC processing to remove dependency on neighbor block sizes.
- To improve coding efficiency for complex textures and edges by explicitly modeling perceptually meaningful parameters such as contrast and activity masking via PVQ.
- To reduce visual artifacts in high-motion or directional content through a two-stage directional deringing filter that preserves edges while suppressing ringing.
Proposed method
- Employs lapped transforms with fixed 8-point lapping (4 pixels per side) on $32\times32$ superblocks, using recursive filtering order to decouple block size decisions and enable dynamic programming search.
- Applies OBMC (Overlapped Block Motion Compensation) with a novel structure that uses actual prediction for efficient partition size selection, reducing blocking artifacts in inter-prediction.
- Implements Perceptual Vector Quantization (PVQ) to encode gain and prediction match for AC coefficient bands, enabling perceptually adaptive coding such as activity masking and chroma-from-luma prediction.
- Uses a two-stage directional deringing filter: first a 7-tap filter along dominant edge directions with a threshold based on local variance difference, then a 5-tap horizontal/vertical filter with position-dependent threshold to minimize edge blur.
- Applies the deringing filter only to superblocks that are not skipped and are not in inter frames unless neighbors are also skipped, ensuring parallel processing and avoiding inter-superblock dependencies.
- Uses a threshold function $\mathrm{thresh}(d,T) = \mathrm{sign}(d) \cdot \max(0, |d| - T)$ to limit filtering to significant ringing components, with adaptive thresholds based on local image content and superblock statistics.
Experimental results
Research questions
- RQ1How can lapped transforms be made scalable and efficient in a variable-block-size video codec without introducing NP-hard block size decisions?
- RQ2To what extent can perceptual modeling via PVQ improve visual quality compared to traditional transform and quantization in low-bitrate video coding?
- RQ3Can a directional deringing filter effectively suppress ringing artifacts without blurring edges or introducing new artifacts in complex textures?
- RQ4How does the combination of perceptual vector quantization and chroma-from-luma prediction affect coding efficiency and visual quality in still images and video?
- RQ5What is the impact of removing dependency on neighbor block sizes in lapped transform processing on rate-distortion performance and implementation complexity?
Key findings
- Daala achieves superior performance on perceptual metrics such as PSNR-HVS-M and multiscale FastSSIM compared to x265 1.6 and libvpx-vp9 1.4.0, especially at high bitrates.
- On still images, Daala outperforms HEVC and other state-of-the-art codecs like BPG and VP9 in subjective evaluations, particularly on textured regions like skin and hair.
- The worst subjective result occurred on the 'bike' image due to limited directional intra prediction, highlighting a weakness in handling strong directional edges.
- The prototype deringing filter used in the 2015 PCS evaluation was less effective than the final version, indicating that filter refinement significantly improves visual quality.
- Daala's use of PVQ enables automatic activity masking, preserving detail in low-contrast regions that are typically over-quantized in conventional codecs.
- Despite strong perceptual performance, Daala still has room for improvement at low bitrates and lacks B-frames or alternate references, limiting its video coding efficiency compared to modern codecs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.