From cf00a222f8b14aec7a2598f883922fb57aaf8039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 7 Sep 2026 12:25:41 +0300 Subject: [PATCH] docs(av1): the keyq sweep table --- lanes/keyq.sweep.txt | 19 +++++++++++++++++++ lanes/keyq/census-k48.log | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 lanes/keyq/census-k48.log diff --git a/lanes/keyq.sweep.txt b/lanes/keyq.sweep.txt index a8e98734..14d33320 100644 --- a/lanes/keyq.sweep.txt +++ b/lanes/keyq.sweep.txt @@ -17,3 +17,22 @@ WINNER key -48 at arf -32: both films improve on both columns against the contro (film A -8.5 / -7.1, film B -13.2 / -9.3). -64 overshoots on film B (+140.7) and a deeper ARF (-40) with the same key gives the bytes back on both films, so the anchor is what the ARFs wanted, not more ARF. + +## 12-frame gate (encode::tests::bd_rate_screen_native) at the winner +| clip | control (key 0) | key -48 | +|---|---|---| +| bars 1080p | +1.7 / -14.3 | +2.0 / -14.0 | +| bars 2160p | +13.7 / -9.5 | +13.1 / -9.6 | +| film A | +43.3 / +15.0 | +38.5 / +8.2 | +| film B | +66.9 / +35.1 | +58.2 / +26.5 | +| screen capture | +33.4 / -23.8 | +33.4 / -23.8 (pyramid gated off, byte-identical) | + +Both film rows improve on both columns at 12 frames too, so key_q_offset is NOT +gated on GOP length (unlike mid_q_offset). + +## rate loop +The key slot cannot steer the offset back (one key frame per run), so the finer key +ran bitrate_target_lands_within_10_percent_over_48_frames +10.8% over target. The +loop now prices the key's share through the calibration slope +(KEY_WEIGHT * exp(-key_q_offset / GAIN)) and takes it out of the other gop-1 +pictures: 768 kbps pyramid arm -0.3%, 1536 kbps -6.2%. diff --git a/lanes/keyq/census-k48.log b/lanes/keyq/census-k48.log new file mode 100644 index 00000000..21019891 --- /dev/null +++ b/lanes/keyq/census-k48.log @@ -0,0 +1,6 @@ + +running 1 test +test encode::tests::bd_rate_film_long_gop ... +native crop, 48 frames, gop=48; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---|