We reached the aforementioned +0.82 dB PSNR gains by adding the following features to the encoder:
- Improved encoding decisions and added more coding options at macroblock level
- Enabled multiple motion vectors per macroblock (Split MV mode)
- Added preference of “nearest”, “near” and “zero” type macroblocks that are less expensive to code than others
- Added support for up to two reference frames in motion search (immediately previous and Golden frame)
- Added deblocking filter macroblock mode adaptivity support
- Added ¼ pixel precision motion estimation at 1080p resolution (previously supported only up to 720p)
- Increased the amount of token probability tracking counters (enables more efficient entropy coding)
In terms of silicon usage, Blueberry costs 13% more logic gates than Anthill, while the internal memory requirement remains unchanged. We optimized the maximum attainable clock frequency from Anthill’s 376 MHz to 392 MHz (TSMC 65nm, LP), which allows the chip manufacturer to get some more fps, which can be useful if you are doing multiple simultaneous encodes or running in a slow-motion mode (i.e. VGA 200 fps).
Comparing the quality difference between Anthill and Blueberry, we measured their average PSNR and SSIM quality over 46 test sequences and at a wide quantizer range. A few example results are shown below (positive numbers mean Blueberry was better):
As our focus in the improvement work has been on the video conferencing use case, let’s dig a bit deeper there. The following graph shows PSNR quality metrics for a 720p video call, comparing the H1 Blueberry release to Anthill and libvpx Bali release in different complexity modes (higher is better).
From the graph it can be seen that the Blueberry release encodes the video conference content at the same quality using up to 30% less bits than Anthill. It also beats libvpx’s simplest real-time setting at a much lower bitrate than before.
While more improvements are on the way for the third release of the H1 encoder, the current performance is already very competitive - and the hardware now comes with hooks for further software-based optimizations.
Aki Kuusela is Engineering Manager of the WebM Project hardware team in Oulu, Finland.