Merge branch 'lane-table' (aac8268b): the one-base standing table of 152996c8 (12-frame, long-GOP, preset 6)
Browse files at this commit1 changed file +77 -0
- lanes/table-20260908.md +77 -0
lanes/table-20260908.mdadded+77 -0
| @@ -0,0 +1,77 @@ | |||
| 1 | +# Standing quality table of main 152996c8 (measured 2026-09-08, lane-table) | ||
| 2 | + | ||
| 3 | +One re-measurement of every native BD row on ONE base, so the lanes merged today | ||
| 4 | +(ARF temporal filter, 128x128 superblocks by default, per-level delta_q, motion | ||
| 5 | +search rate weight, pricer contexts) are read off the same binary instead of five | ||
| 6 | +different lane bases. MEASUREMENT ONLY -- no encoder change is in this lane. | ||
| 7 | + | ||
| 8 | +Binary: `cargo test -p ec-av1 --release --lib` at 152996c8, one tile, one thread. | ||
| 9 | +Anchors: libaom `cpu-used 6` (crf 5/20/35/45), rav1e `speed=6` (quantizer | ||
| 10 | +50/100/150/200). Every BD number below is read off the log's own table line. | ||
| 11 | +`fps` = coded frames / our ladder wall (48 = 4 points x 12 frames on the 12-frame | ||
| 12 | +arm, 192 = 4 x 48 on the long-GOP arm), single thread. | ||
| 13 | + | ||
| 14 | +## 12-frame arm (`encode::tests::bd_rate_screen_native`, gop=12) | ||
| 15 | + | ||
| 16 | +| clip | vs libaom | vs rav1e | wall ours:libaom:rav1e | ours:rav1e | fps | log | | ||
| 17 | +|---|---|---|---|---|---|---| | ||
| 18 | +| bars 1080p | -3.4% | -19.0% | 177.0s:7.5s:17.5s | 10.1x | 0.27 | ~/.cache/table/f12a.log | | ||
| 19 | +| film A (1080p) | +18.1% | -6.2% | 167.3s:9.8s:14.1s | 11.9x | 0.29 | ~/.cache/table/f12a.log | | ||
| 20 | +| bars 2160p | +8.6% | -13.8% | 152.0s:6.0s:16.8s | 9.0x | 0.32 | ~/.cache/table/f12b.log | | ||
| 21 | +| film B (2160p HDR) | +23.8% | -2.8% | 136.2s:21.5s:19.8s | 6.9x | 0.35 | ~/.cache/table/f12b.log | | ||
| 22 | +| screen capture | +14.4% | -33.2% | 107.8s:8.5s:11.5s | 9.4x | 0.45 | ~/.cache/table/s12.log | | ||
| 23 | + | ||
| 24 | +The bars rows are NOT film: `EC_AV1_NATIVE_FILM=1` selects both 1080p rows (bars | ||
| 25 | ++ film A) and `EC_AV1_NATIVE_FILM4K=1` both 2160p rows, so the bars rows come | ||
| 26 | +inside the film arms -- there is no separate bars arm to run. | ||
| 27 | + | ||
| 28 | +## 12-frame arm at `EC_AV1_SPEED=6` (the software fast preset) | ||
| 29 | + | ||
| 30 | +| clip | vs libaom | vs rav1e | wall ours:libaom:rav1e | ours:rav1e | fps | vs preset 0 wall | log | | ||
| 31 | +|---|---|---|---|---|---|---|---| | ||
| 32 | +| bars 1080p | +61.9% | +35.6% | 115.2s:8.9s:20.5s | 5.6x | 0.42 | 1.54x faster | ~/.cache/table/s6a.log | | ||
| 33 | +| film A (1080p) | +20.5% | -4.7% | 77.7s:10.7s:14.9s | 5.2x | 0.62 | 2.15x faster | ~/.cache/table/s6a.log | | ||
| 34 | +| bars 2160p | +61.7% | +27.8% | 98.6s:8.0s:22.0s | 4.5x | 0.49 | 1.54x faster | ~/.cache/table/s6b.log | | ||
| 35 | +| film B (2160p HDR) | +27.0% | -0.2% | 65.2s:21.7s:17.2s | 3.8x | 0.74 | 2.09x faster | ~/.cache/table/s6b.log | | ||
| 36 | +| screen capture | +22.7% | -28.7% | 48.0s:9.2s:12.7s | 3.8x | 1.00 | 2.25x faster | ~/.cache/table/s6s.log | | ||
| 37 | + | ||
| 38 | +Preset 6 buys 2.1-2.25x of wall on the three real rows for +2.4 (film A), +3.2 | ||
| 39 | +(film B) and +8.3 (screen) BD points against libaom. The two bars rows lose | ||
| 40 | +~65 points each: colour bars are exactly the content the pruned partition/tx | ||
| 41 | +search cannot serve, and no decision is taken on them. | ||
| 42 | + | ||
| 43 | +## Long-GOP arm (`encode::tests::bd_rate_film_long_gop`, 48 pictures, gop=48) | ||
| 44 | + | ||
| 45 | +| clip | vs libaom | vs rav1e | wall ours:libaom:rav1e | ours:rav1e | fps | log | | ||
| 46 | +|---|---|---|---|---|---|---| | ||
| 47 | +| film A (1080p) | +22.6% | -8.1% | 568.2s:36.2s:67.0s | 8.5x | 0.34 | ~/.cache/table/lgop.log | | ||
| 48 | +| film B (2160p HDR) | +78.4% | +2.4% | 422.5s:69.3s:50.9s | 8.3x | 0.45 | ~/.cache/table/lgop.log | | ||
| 49 | + | ||
| 50 | +Pyramid effective on all four film rows: `mini_gop 8, arf -32, leaf +12, mid -8, | ||
| 51 | +key -48` (the capture is gated flat, effective `None`). | ||
| 52 | + | ||
| 53 | +## Rows against the merged lanes' own expectations | ||
| 54 | + | ||
| 55 | +Expected (each lane's own base): 12f film A +18.3/-6.0, film B +24.3/-2.2, | ||
| 56 | +screen +14.4/-33.2; long-GOP film A +22.7/-7.9, film B +79.0/+2.7. | ||
| 57 | + | ||
| 58 | +| row | expected | measured | delta | note | | ||
| 59 | +|---|---|---|---|---| | ||
| 60 | +| 12f film A | +18.3/-6.0 | +18.1/-6.2 | -0.2/-0.2 | within noise | | ||
| 61 | +| 12f film B | +24.3/-2.2 | +23.8/-2.8 | -0.5/-0.6 | MOVED (better): the only row whose rav1e column moves more than 0.5; 128x128 superblocks fire hardest on 4K film (1927 search / 3018 writer 128-roots on this row vs 530/1389 on film A), and this lane measures them stacked on the per-level delta_q instead of beside it | | ||
| 62 | +| 12f screen | +14.4/-33.2 | +14.4/-33.2 | 0.0/0.0 | exact; the capture takes no 128-root pyramid (gated flat), so no merged lever touches it | | ||
| 63 | +| long-GOP film A | +22.7/-7.9 | +22.6/-8.1 | -0.1/-0.2 | within noise | | ||
| 64 | +| long-GOP film B | +79.0/+2.7 | +78.4/+2.4 | -0.6/-0.3 | MOVED (better) on the libaom column, same cause as the 12f film B row; the "near +2 with 128 SB on top" prediction lands at +2.4 | | ||
| 65 | + | ||
| 66 | +No row moved in the LOSING direction by more than 0.5: the five lanes compose. | ||
| 67 | + | ||
| 68 | +## Invariants at this base | ||
| 69 | + | ||
| 70 | +- `encoder::tests::every_speed_preset_decodes_sample_exact_through_both_decoders` | ||
| 71 | + -- ok (11 presets, sample-exact through ffmpeg and our decoder), | ||
| 72 | + `~/.cache/table/presets.log`. | ||
| 73 | +- `encode::tests::the_encoders_own_streams_are_byte_identical_to_their_pins` -- ok | ||
| 74 | + at default (`~/.cache/table/pins.log`) and under `EC_AV1_SPEED=6` | ||
| 75 | + (`~/.cache/table/pins6.log`); the test encodes at speed 0 whatever the env says | ||
| 76 | + (process-global write guard), so the two runs are the same assertion, and it | ||
| 77 | + holding under the env proves the guard. | ||