forge
Explore
Log in

Don't you dare go Hollow

Report + 14-row sweep (all rows >= baseline -.0003)

Browse files at this commit

aba8fb2d81899b6ef8d456714b38fb5d9d1c1fb8Ahmet Kaan GümüşParent: 698943d
  • docs
    • report + 14-row sweep (all rows >= baseline -.0003)
Show full message
docs(opus-sb/r1): report + 14-row sweep (all rows >= baseline -.0003)
lanes/opus-reell-r2.sweep.txtdeleted+0 -17
@@ -1,17 +0,0 @@
1-# ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1)
2-# both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo
3-# source kbps ours_kbps ref_kbps rate% corr_ours corr_ref gap Q_ours Q_ref err_ratio minsec_ours minsec_ref drop_ours drop_ref
4-nik 64 69.2 69.2 +0.0 0.9876 0.9864 -0.0012 -399.22 -154.78 2.764 0.9759 0.9745 0 0
5-nik 96 100.8 101.0 -0.2 0.9944 0.9940 -0.0003 -227.79 -31.55 3.239 0.9881 0.9888 0 0
6-reelo 64 63.5 63.6 -0.0 0.9883 0.9866 -0.0017 -335.73 -123.36 2.618 0.9644 0.9686 0 0
7-reelo 96 93.8 93.9 -0.0 0.9946 0.9937 -0.0009 -265.38 -125.18 1.966 0.9862 0.9854 0 0
8-her 64 67.3 67.9 -0.9 0.9827 0.9794 -0.0033 -839.84 -339.00 4.650 0.9472 0.9406 0 0
9-her 96 100.9 101.5 -0.6 0.9913 0.9902 -0.0011 -899.99 -191.50 10.126 0.9730 0.9728 0 0
10-reell 64 71.3 71.3 -0.0 0.9903 0.9880 -0.0024 -222.24 -128.39 1.603 0.9700 0.9644 0 0
11-reell 96 105.3 105.4 -0.0 0.9954 0.9948 -0.0007 -229.13 -29.16 3.328 0.9852 0.9804 0 0
12-reelm 64 62.6 63.3 -1.1 0.9816 0.9859 +0.0043 -389.15 -392.46 0.988 0.9151 0.9100 0 0
13-reelm 96 84.0 84.8 -1.0 0.9920 0.9920 -0.0001 -303.07 -231.16 1.346 0.9661 0.9511 0 0
14-dl8a 64 65.4 65.8 -0.6 0.9879 0.9865 -0.0015 -386.87 -378.84 1.029 0.9744 0.9723 0 0
15-dl8a 96 96.0 96.8 -0.9 0.9939 0.9934 -0.0006 -340.97 -423.47 0.747 0.9858 0.9864 0 0
16-hein 64 64.5 64.9 -0.6 0.9853 0.9874 +0.0020 -426.68 -388.31 1.141 0.9209 0.9148 0 0
17-hein 96 86.3 86.9 -0.7 0.9937 0.9930 -0.0006 -376.12 -246.46 1.653 0.9675 0.9499 0 0
lanes/opus-sb-r1.report.mdadded+32 -0
@@ -0,0 +1,32 @@
1+# lane-opus-sb r1 — short-block coding at 64k: dynalloc was the divergence
2+
3+## Instrument
4+`CeltDecDiag` now exposes the allocation as decoded (alloc_trim, pulses, fine_quant, intensity,
5+dual_stereo, coded_bands, balance, dynalloc offsets). New ignored test
6+`short_block_bits_vs_libopus` (SWEEP_ONLY, SWEEP_KBPS) decodes both streams with our decoder and
7+tabulates per-band means for long vs short frames, ours vs libopus → lanes/opus-sb-r1.bits.txt.
8+
9+## Finding (reelm/hein @64k, before)
10+- Dynalloc boost on the top coded band 14.4–18.7 kHz: ours 219–260 1/8-bit per frame, libopus 3.
11+- libopus boosts 240–3000 Hz on short frames (720 Hz: 98 vs ours 4); ours never.
12+- Net: top band +164..+455 pulses, 720 Hz band −73..−76 pulses vs libopus on short frames.
13+- Cause: our dynalloc was the old second-difference spike heuristic; the near-empty band above
14+ 14.4 k makes the top band a "spike" every frame.
15+
16+## Fix
17+Port of libopus `dynalloc_analysis` (noise floor, follower + median-of-5 masking over long-window
18+`bandLogE2` — second MDCT pass on transient frames —, stereo cross-talk, CVBR steady-frame halving,
19+i<8 ×2 / i≥12 ×½, width-scaled boost units, 2/3 cap). The coding loop already matched.
20+
21+## After (bits table, short frames): 720 Hz boost ours 100 / ref 98; top band 4.6 / 3.4.
22+
23+## Gate (reelm,hein,her,reell; lanes/opus-sb-r1.gate4.txt) vs lanes/opus-64-r5.sweep.txt
24+reelm@64 gap +.0046 → +.0037 (Q −389 → −293, err_ratio .99 → .69), hein@64 +.0031 → +.0022,
25+reell@64 −.0024 → −.0028, reell@96 err_ratio 3.33 → 2.35; worst row change −.0003 corr (her@96 gap
26+−.0011 → −.0008); drops 0; rate within ±5%. Verdict KEEP. 14-row gate: lanes/opus-sb-r1.sweep.txt.
27+
28+## Rejected on top of this (r2): `trim -= 2*tf_estimate` → reelm +.0040, hein +.0025, reell worse.
29+
30+## Residue
31+Remaining short-frame trim histogram: ours 0–2, libopus ≈0; top band still +20..+40 pulses on
32+long frames. reelm@64 +.0037 / hein@64 +.0022 remain the largest ref-better rows.
lanes/opus-sb-r1.sweep.txtadded+16 -0
@@ -0,0 +1,16 @@
1+nik@64k: ref 69.2 ours 68.7 kbps (-0.7%), corr o=0.9883 r=0.9864 gap=-0.0020, Q o=-103.97 r=-154.78, err_ratio 0.748, minsec o=0.9766 r=0.9745, drop o=0 r=0
2+nik@96k: ref 101.0 ours 100.6 kbps (-0.4%), corr o=0.9947 r=0.9940 gap=-0.0006, Q o=-27.70 r=-31.55, err_ratio 0.966, minsec o=0.9887 r=0.9888, drop o=0 r=0
3+reelo@64k: ref 63.6 ours 63.5 kbps (-0.1%), corr o=0.9884 r=0.9866 gap=-0.0017, Q o=-215.43 r=-123.36, err_ratio 1.600, minsec o=0.9633 r=0.9686, drop o=0 r=0
4+reelo@96k: ref 93.9 ours 93.8 kbps (-0.1%), corr o=0.9945 r=0.9937 gap=-0.0008, Q o=-110.95 r=-125.18, err_ratio 0.919, minsec o=0.9855 r=0.9854, drop o=0 r=0
5+her@64k: ref 67.9 ours 67.4 kbps (-0.8%), corr o=0.9826 r=0.9794 gap=-0.0031, Q o=-375.10 r=-339.00, err_ratio 1.140, minsec o=0.9452 r=0.9406, drop o=0 r=0
6+her@96k: ref 101.5 ours 100.6 kbps (-0.9%), corr o=0.9911 r=0.9902 gap=-0.0008, Q o=-233.83 r=-191.50, err_ratio 1.214, minsec o=0.9715 r=0.9728, drop o=0 r=0
7+reell@64k: ref 71.3 ours 71.3 kbps (-0.1%), corr o=0.9907 r=0.9880 gap=-0.0028, Q o=-323.58 r=-128.39, err_ratio 2.429, minsec o=0.9703 r=0.9644, drop o=0 r=0
8+reell@96k: ref 105.4 ours 105.3 kbps (-0.0%), corr o=0.9956 r=0.9948 gap=-0.0008, Q o=-156.54 r=-29.16, err_ratio 2.349, minsec o=0.9859 r=0.9804, drop o=0 r=0
9+reelm@64k: ref 63.3 ours 62.3 kbps (-1.6%), corr o=0.9822 r=0.9859 gap=+0.0037, Q o=-292.53 r=-392.46, err_ratio 0.690, minsec o=0.9098 r=0.9100, drop o=0 r=0
10+reelm@96k: ref 84.8 ours 83.6 kbps (-1.5%), corr o=0.9920 r=0.9920 gap=-0.0001, Q o=-152.68 r=-231.16, err_ratio 0.685, minsec o=0.9618 r=0.9511, drop o=0 r=0
11+dl8a@64k: ref 65.8 ours 65.6 kbps (-0.3%), corr o=0.9881 r=0.9865 gap=-0.0016, Q o=-300.05 r=-378.84, err_ratio 0.746, minsec o=0.9746 r=0.9723, drop o=0 r=0
12+dl8a@96k: ref 96.8 ours 96.1 kbps (-0.8%), corr o=0.9940 r=0.9934 gap=-0.0006, Q o=-307.06 r=-423.47, err_ratio 0.657, minsec o=0.9859 r=0.9864, drop o=0 r=0
13+hein@64k: ref 64.9 ours 63.8 kbps (-1.7%), corr o=0.9851 r=0.9874 gap=+0.0022, Q o=-296.64 r=-388.31, err_ratio 0.712, minsec o=0.9144 r=0.9148, drop o=0 r=0
14+hein@96k: ref 86.9 ours 85.4 kbps (-1.8%), corr o=0.9934 r=0.9930 gap=-0.0003, Q o=-120.45 r=-246.46, err_ratio 0.536, minsec o=0.9639 r=0.9499, drop o=0 r=0
15+RATE GATE: all rows within ±5%
16+DROPOUT GATE: passed (no ours-only dropouts)