r/AV2 • • Oct 30 '26

AV2's reference encoder (AVM) got up to 2x faster in two weeks

Post image

Image: Encode time vs BD-rate (PSNR) for both builds, relative to 14 Oct s1. Left: 3 low-res clips, right: 720p. Down and left is better; the 30 Oct build is faster at every preset.

I ran AVM's av2-enc branch from 14 Oct (89eae123d) and from 30 Oct (97e8004e4) side by side on the same i7-12700H laptop. Both builds encoded 4 AV2 CTC clips (three low-res, one 720p) at presets --cpu-used 1-9 and 4 QPs, single-threaded, for 288 encodes in total. The 77 commits in between are mostly encoder speed work: pruning in the partition, compound, warp and transform-type searches, plus SIMD.

At the same preset, the new build takes 0.70-0.82x the time at s1-s3 with about the same BD-rate, and 0.44-0.63x the time at s4-s9 for about 3-5% more bits. Comparing whole curves is more useful than comparing preset by preset. At 720p, the new s4 matches the old s4's BD-rate (+6.2% vs the old s1) in 0.095x of s1's time instead of 0.158x. The new s5 beats the old s6 on both time and bits. On the low-res clips the curves overlap up to s3, and the gains show up only at the faster presets. One more change: on the new build, s6-s9 now write byte-identical streams, so they're effectively one preset.

Limits: the clips are short (33/65 frames), there's only one 720p clip, no 1080p, and everything is single-threaded, so the new multithreading commits don't show up here.

New (30 Oct) vs old (14 Oct) at the same preset (time ratio, BD-rate PSNR; negative = new needs fewer bits):

Preset Low-res time Low-res BD 720p time 720p BD
s1 0.78x +0.8% 0.70x +0.7%
s2 0.75x +0.8% 0.78x -0.4%
s3 0.82x -0.1% 0.72x +0.3%
s4 0.62x +3.2% 0.60x +0.0%
s5 0.60x +2.5% 0.55x +0.8%
s6 0.62x +2.9% 0.54x +2.9%
s7 0.54x +3.1% 0.48x +4.8%
s8 0.56x +3.9% 0.44x +4.4%
s9 0.55x +3.8% 0.45x +4.6%

Full report: https://github.com/EwoutH/AV2/tree/main/perf/2026-10-30-av2-enc-two-weeks

26 Upvotes

5 comments sorted by

1

u/bartekplus Oct 30 '26

u/Balance- would you be interested in adding https://github.com/splotlabs/splot both the decoder (mostly finished) and encoder (still WIP), to your tests? I'll be happy to help with the test suite and set up everything if needed.

2

u/Balance- Oct 30 '26

Sure, I will include it in an upcoming decoding conformance and speed test

1

u/bartekplus Oct 30 '26

Awesome, just ping me if you hit any bugs or integration issues

1

u/Desistance 22d ago

I'd imagine that AI is assisting with these speedy improvements.

1

u/plonk420 21d ago

u/Balance-, any idea "back of napkin" experimentation level if speeds have improved notably since end of Oct?