forge
Explore
Log in

Don't you dare go Hollow

ec-vorbis: band-error + bit-split oracle vs libvorbis, 7 sources x {96,128}k

Browse files at this commit

2f04c6e3f5c22fe5466b121383e52fb356e87c98Ahmet Kaan GümüşParent: 427c236
Instrument test (ignored) folding the bit-split oracle into one pass:
band NSR/E vs source through our decoder, ours vs ffmpeg libvorbis at
matched rate. All 14 rows: bits/nonzero 1.48-2.12x ref on ~half the
nonzeros, dNSR concentrated 300-1080 Hz (+9..+15 dB), HF droop on
nik/reelm/hein only. Lanes files + report + round-3 handoff.
crates/ec-vorbis/tests/oracle.rsmodified+244 -0
@@ -1230,3 +1230,247 @@ fn real_library_sweep_vs_reference() {
1230 );1230 );
1231 assert!(failures.is_empty(), "sweep failures: {failures:?}");1231 assert!(failures.is_empty(), "sweep failures: {failures:?}");
1232 }1232 }
1233+
1234+/// In-place radix-2 FFT. Only magnitudes and differences of identically
1235+/// transformed spectra are used, so the twiddle sign convention is irrelevant.
1236+fn fft(re: &mut [f64], im: &mut [f64]) {
1237+ let n = re.len();
1238+ assert!(n.is_power_of_two());
1239+ let bits = n.trailing_zeros();
1240+ for i in 0..n {
1241+ let j = ((i as u32).reverse_bits() >> (32 - bits)) as usize;
1242+ if j > i {
1243+ re.swap(i, j);
1244+ im.swap(i, j);
1245+ }
1246+ }
1247+ let mut len = 2;
1248+ while len <= n {
1249+ let half = len / 2;
1250+ let step = std::f64::consts::TAU / len as f64;
1251+ for start in (0..n).step_by(len) {
1252+ for k in 0..half {
1253+ let angle = step * k as f64;
1254+ let (wr, wi) = (angle.cos(), angle.sin());
1255+ let i = start + k;
1256+ let j = i + half;
1257+ let tr = re[j] * wr - im[j] * wi;
1258+ let ti = re[j] * wi + im[j] * wr;
1259+ re[j] = re[i] - tr;
1260+ im[j] = im[i] - ti;
1261+ re[i] += tr;
1262+ im[i] += ti;
1263+ }
1264+ }
1265+ len *= 2;
1266+ }
1267+}
1268+
1269+/// Per-Bark-band spectral error, ours vs libvorbis, both decoded through our
1270+/// decoder (so the gap measures encoders, not decoders): every 2048-sample
1271+/// Hann frame (hop 1024) of the 48 kHz source, band edges in Hz (25 edges →
1272+/// 24 bands), energies summed over frames and both channels.
1273+/// NSR = 10log10(Σ|X_sig−X_src|²/Σ|X_src|²), E = 10log10(Σ|X_sig|²/Σ|X_src|²).
1274+/// The same pass records the bit split of both streams (the decode-side
1275+/// capture `decode_capture_with_bits` provides), so the bits table covers the
1276+/// same rows without a second encode pass. Writes
1277+/// `lanes/vorbis-psy-r1.bands.txt` and `lanes/vorbis-psy-r1.bits.txt`.
1278+#[test]
1279+#[ignore = "slow: encodes 7 full sources × 2 rates, needs ffmpeg/libvorbis"]
1280+fn band_error_vs_reference() {
1281+ use std::io::Write;
1282+
1283+ let sources: &[(&str, &str)] = &[
1284+ ("nik", "~/Music/reeln.mp4"),
1285+ ("reelo", "~/Music/reelo.mp3"),
1286+ ("her", "~/Music/reeli.mp3"),
1287+ ("reell", "~/Music/reell.mp4"),
1288+ ("reelm", "~/Music/reelm.wav"),
1289+ ("dl8a", "~/Downloads/8a3b6d1d19.mp3"),
1290+ ("hein", "~/Downloads/reelm.mp3"),
1291+ ];
1292+ let rate = 48_000u32;
1293+ let max_samples = rate as usize * 600;
1294+ let out_dir = scratch().join("vorbis7-bands");
1295+ std::fs::create_dir_all(&out_dir).expect("out dir");
1296+
1297+ const FRAME: usize = 2048;
1298+ const HOP: usize = 1024;
1299+ const EDGES: [f64; 25] = [
1300+ 100.0, 200.0, 300.0, 400.0, 510.0, 630.0, 770.0, 920.0, 1080.0, 1270.0, 1480.0, 1720.0,
1301+ 2000.0, 2320.0, 2700.0, 3150.0, 3700.0, 4400.0, 5300.0, 6400.0, 7700.0, 9500.0, 12000.0,
1302+ 15500.0, 24000.0,
1303+ ];
1304+ let band_of: Vec<Option<usize>> = (0..=FRAME / 2)
1305+ .map(|bin| {
1306+ let hz = bin as f64 * f64::from(rate) / FRAME as f64;
1307+ EDGES.windows(2).position(|w| hz >= w[0] && hz < w[1])
1308+ })
1309+ .collect();
1310+ let window: Vec<f64> = (0..FRAME)
1311+ .map(|i| 0.5 - 0.5 * (std::f64::consts::TAU * i as f64 / FRAME as f64).cos())
1312+ .collect();
1313+
1314+ let mut bands = String::from("# Band error: ours vs libvorbis, both via our decoder\n\n");
1315+ let mut bits = String::from("# Bit split over full sources, same rows as the band error\n\n");
1316+ let only = std::env::var("SWEEP_ONLY").ok();
1317+ for &(name, src_path) in sources {
1318+ if only.as_deref().is_some_and(|o| !o.split(',').any(|n| n == name)) {
1319+ continue;
1320+ }
1321+ let src = PathBuf::from(shellexpand(src_path));
1322+ if !src.exists() {
1323+ bands.push_str(&format!("## {name}: SKIP (missing)\n\n"));
1324+ continue;
1325+ }
1326+ let Some((source_pcm, _)) = ffmpeg_decode_limited(&src, rate, max_samples) else {
1327+ bands.push_str(&format!("## {name}: SKIP (decode)\n\n"));
1328+ continue;
1329+ };
1330+ let seconds = source_pcm[0].len() as f64 / f64::from(rate);
1331+ let bytes = |p: &Path| std::fs::metadata(p).expect("size").len() as f64;
1332+ for &kbps in &[96i32, 128] {
1333+ let t0 = std::time::Instant::now();
1334+ let reference = out_dir.join(format!("ref-{name}-{kbps}k.ogg"));
1335+ let status = Command::new("ffmpeg")
1336+ .args(["-y", "-v", "error", "-i"])
1337+ .arg(&src)
1338+ .args(["-vn", "-t", "600", "-ac", "2", "-ar", "48000", "-c:a", "libvorbis", "-b:a", &format!("{kbps}k")])
1339+ .arg(&reference)
1340+ .status()
1341+ .expect("ffmpeg runs");
1342+ assert!(status.success(), "libvorbis encode of {name} at {kbps}k");
1343+ let ref_kbps = bytes(&reference) * 8.0 / seconds / 1000.0;
1344+ // Ours at the size libvorbis actually produced, exactly as the sweep.
1345+ let ours = encode_to_file(
1346+ &source_pcm,
1347+ rate,
1348+ (ref_kbps * 1000.0).round() as i32,
1349+ &format!("vorbis7-bands/ours-{name}-{kbps}k.ogg"),
1350+ );
1351+ let ours_kbps = bytes(&ours) * 8.0 / seconds / 1000.0;
1352+
1353+ // PCM through our decoder for the band error; bit split from the
1354+ // same file's residue-domain capture (decode twice — the capture
1355+ // path returns no PCM).
1356+ let (ours_pcm, ours_split) = {
1357+ let (residue, split) = decode_capture_with_bits(&ours);
1358+ (our_decode(&ours).0, bit_split_summary(&split, &residue))
1359+ };
1360+ let (ref_pcm, ref_split) = {
1361+ let (residue, split) = decode_capture_with_bits(&reference);
1362+ (our_decode(&reference).0, bit_split_summary(&split, &residue))
1363+ };
1364+
1365+ // Bit-split block: (floor, residue, packet, non-zero) per stream.
1366+ let (of, ores, op, onz) = ours_split;
1367+ let (rf, rres, rp, rnz) = ref_split;
1368+ bits.push_str(&format!(
1369+ "## {name} @ {kbps}k (ours {ours_kbps:.1} vs ref {ref_kbps:.1} kbps)\n"
1370+ ));
1371+ for (who, f, r, p, nz) in [("ours", of, ores, op, onz), ("ref ", rf, rres, rp, rnz)] {
1372+ bits.push_str(&format!(
1373+ "{who} floor {fb:>10.1}/s ({fpc:5.1}%) residue {rb:>10.1}/s ({rpc:5.1}%) other {ob:>8.1}/s nz {nz:>10} bits/nz {bnz:.2}\n",
1374+ fb = f as f64 / seconds,
1375+ fpc = 100.0 * f as f64 / p.max(1) as f64,
1376+ rb = r as f64 / seconds,
1377+ rpc = 100.0 * r as f64 / p.max(1) as f64,
1378+ ob = p.saturating_sub(f + r) as f64 / seconds,
1379+ bnz = r as f64 / nz.max(1) as f64,
1380+ ));
1381+ }
1382+ bits.push_str(&format!(
1383+ "ratio floor {:.3} residue {:.3} bits/nz {:.3}\n\n",
1384+ of as f64 / rf.max(1) as f64,
1385+ ores as f64 / rres.max(1) as f64,
1386+ (ores as f64 / onz.max(1) as f64) / (rres as f64 / rnz.max(1) as f64),
1387+ ));
1388+
1389+ // Band error: align to the source exactly as the sweep does —
1390+ // common length from sample 0 (pre-roll trim inside `our_decode`).
1391+ let n = source_pcm[0]
1392+ .len()
1393+ .min(ours_pcm[0].len())
1394+ .min(ref_pcm[0].len());
1395+ let nb = EDGES.len() - 1;
1396+ let (mut e_src, mut e_ours, mut e_ref) =
1397+ (vec![0f64; nb], vec![0f64; nb], vec![0f64; nb]);
1398+ let (mut err_ours, mut err_ref) = (vec![0f64; nb], vec![0f64; nb]);
1399+ let mut spec: Vec<(Vec<f64>, Vec<f64>)> =
1400+ (0..3).map(|_| (vec![0.0; FRAME], vec![0.0; FRAME])).collect();
1401+ let mut start = 0;
1402+ while start + FRAME <= n {
1403+ for ch in 0..2 {
1404+ for (sig, pcm) in [&source_pcm, &ours_pcm, &ref_pcm].iter().enumerate() {
1405+ let s = &mut spec[sig];
1406+ for i in 0..FRAME {
1407+ s.0[i] = f64::from(pcm[ch][start + i]) * window[i];
1408+ s.1[i] = 0.0;
1409+ }
1410+ fft(&mut s.0, &mut s.1);
1411+ }
1412+ for k in 0..=FRAME / 2 {
1413+ let Some(b) = band_of[k] else { continue };
1414+ let (sr, si) = (spec[0].0[k], spec[0].1[k]);
1415+ e_src[b] += sr * sr + si * si;
1416+ let (ur, ui) = (spec[1].0[k], spec[1].1[k]);
1417+ e_ours[b] += ur * ur + ui * ui;
1418+ let (dr, di) = (ur - sr, ui - si);
1419+ err_ours[b] += dr * dr + di * di;
1420+ let (vr, vi) = (spec[2].0[k], spec[2].1[k]);
1421+ e_ref[b] += vr * vr + vi * vi;
1422+ let (er, ei) = (vr - sr, vi - si);
1423+ err_ref[b] += er * er + ei * ei;
1424+ }
1425+ }
1426+ start += HOP;
1427+ }
1428+ let db = |e: f64, s: f64| if s > 0.0 { 10.0 * (e / s).log10() } else { f64::NAN };
1429+ bands.push_str(&format!(
1430+ "## {name} @ {kbps}k (ours {ours_kbps:.1} vs ref {ref_kbps:.1} kbps)\n"
1431+ ));
1432+ bands.push_str("band NSR_ours NSR_ref dNSR E_ours E_ref\n");
1433+ for b in 0..nb {
1434+ if e_src[b] == 0.0 {
1435+ continue; // no source energy: NSR/E undefined
1436+ }
1437+ let (nsr_o, nsr_r) = (db(err_ours[b], e_src[b]), db(err_ref[b], e_src[b]));
1438+ bands.push_str(&format!(
1439+ "{:<8} {:7.1} {:7.1} {:6.1} {:7.1} {:7.1}\n",
1440+ format!("{}-{}", EDGES[b] as usize, EDGES[b + 1] as usize),
1441+ nsr_o,
1442+ nsr_r,
1443+ nsr_o - nsr_r,
1444+ db(e_ours[b], e_src[b]),
1445+ db(e_ref[b], e_src[b]),
1446+ ));
1447+ }
1448+ let corr = |pcm: &[Vec<f32>]| {
1449+ (0..2)
1450+ .map(|c| correlation(&pcm[c][..n], &source_pcm[c][..n]))
1451+ .sum::<f64>()
1452+ / 2.0
1453+ };
1454+ bands.push_str(&format!(
1455+ "broadband corr: ours {:.4} ref {:.4}\n\n",
1456+ corr(&ours_pcm),
1457+ corr(&ref_pcm),
1458+ ));
1459+ eprintln!(
1460+ "{name}@{kbps}k: ours {ours_kbps:.1} ref {ref_kbps:.1} kbps, {:.1} s",
1461+ t0.elapsed().as_secs_f32()
1462+ );
1463+ }
1464+ }
1465+ for (text, file) in [
1466+ (&bands, "vorbis-psy-r1.bands.txt"),
1467+ (&bits, "vorbis-psy-r1.bits.txt"),
1468+ ] {
1469+ let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
1470+ .join("../../lanes")
1471+ .join(file);
1472+ let mut f = File::create(&path).expect("create report");
1473+ f.write_all(text.as_bytes()).expect("write report");
1474+ println!("{file}: {}", path.display());
1475+ }
1476+}
lanes/vorbis-psy-r1.bands.txtadded+394 -0
@@ -0,0 +1,394 @@
1+# Band error: ours vs libvorbis, both via our decoder
2+
3+## nik @ 96k (ours 84.0 vs ref 84.5 kbps)
4+band NSR_ours NSR_ref dNSR E_ours E_ref
5+100-200 -15.5 -21.8 6.3 -0.0 -0.1
6+200-300 -12.4 -19.6 7.2 -0.1 -0.1
7+300-400 -13.3 -22.8 9.5 -0.2 -0.1
8+400-510 -10.6 -20.2 9.6 -0.3 -0.1
9+510-630 -9.9 -19.5 9.5 -0.3 -0.1
10+630-770 -12.2 -23.3 11.0 -0.2 -0.0
11+770-920 -11.4 -21.3 9.8 -0.3 -0.1
12+920-1080 -12.6 -22.2 9.6 -0.1 -0.0
13+1080-1270 -8.3 -13.9 5.6 -0.5 -0.2
14+1270-1480 -9.5 -15.4 5.9 -0.4 -0.2
15+1480-1720 -8.9 -13.0 4.2 -0.5 -0.3
16+1720-2000 -8.1 -12.8 4.8 -0.7 -0.3
17+2000-2320 -6.5 -10.1 3.6 -0.9 -0.3
18+2320-2700 -8.6 -12.1 3.6 -0.5 -0.4
19+2700-3150 -8.6 -11.0 2.4 -0.6 -0.3
20+3150-3700 -9.5 -12.9 3.4 -0.4 -0.3
21+3700-4400 -7.9 -11.5 3.6 -0.6 -0.3
22+4400-5300 -7.0 -10.6 3.6 -0.4 -0.3
23+5300-6400 -3.8 -6.6 2.8 -1.1 -0.2
24+6400-7700 -4.9 -6.7 1.7 -1.0 -0.0
25+7700-9500 -5.7 -5.8 0.1 -0.6 0.2
26+9500-12000 -6.5 -6.2 -0.3 -0.4 0.0
27+12000-15500 -4.5 -4.5 -0.1 -1.2 0.5
28+15500-24000 0.1 2.0 -1.9 -19.0 -2.3
29+broadband corr: ours 0.9690 ref 0.9903
30+
31+## nik @ 128k (ours 115.5 vs ref 115.8 kbps)
32+band NSR_ours NSR_ref dNSR E_ours E_ref
33+100-200 -19.5 -24.8 5.3 -0.0 -0.1
34+200-300 -15.9 -23.5 7.6 -0.1 -0.1
35+300-400 -16.8 -26.6 9.8 -0.1 -0.0
36+400-510 -13.6 -24.5 10.9 -0.1 -0.0
37+510-630 -12.7 -24.1 11.5 -0.1 -0.0
38+630-770 -15.4 -27.5 12.1 -0.1 0.0
39+770-920 -14.3 -25.9 11.6 -0.1 -0.0
40+920-1080 -15.5 -27.3 11.8 -0.0 0.0
41+1080-1270 -10.3 -19.2 8.9 -0.3 -0.1
42+1270-1480 -12.0 -20.3 8.3 -0.2 -0.1
43+1480-1720 -11.4 -17.4 6.0 -0.2 -0.1
44+1720-2000 -10.5 -16.0 5.5 -0.4 -0.2
45+2000-2320 -8.8 -12.9 4.2 -0.5 -0.2
46+2320-2700 -11.2 -15.1 3.9 -0.3 -0.2
47+2700-3150 -11.6 -14.0 2.4 -0.3 -0.2
48+3150-3700 -12.6 -15.6 3.0 -0.2 -0.2
49+3700-4400 -10.4 -14.1 3.7 -0.2 -0.2
50+4400-5300 -8.7 -13.8 5.1 -0.1 -0.2
51+5300-6400 -5.3 -9.8 4.5 -0.4 -0.3
52+6400-7700 -7.0 -9.9 3.0 -0.3 -0.4
53+7700-9500 -7.2 -7.5 0.3 -0.0 -0.3
54+9500-12000 -8.0 -8.1 0.0 0.1 -0.4
55+12000-15500 -6.4 -6.4 0.1 -0.4 -0.3
56+15500-24000 0.1 2.2 -2.2 -19.0 -1.8
57+broadband corr: ours 0.9838 ref 0.9951
58+
59+## reelo @ 96k (ours 81.5 vs ref 81.8 kbps)
60+band NSR_ours NSR_ref dNSR E_ours E_ref
61+100-200 -14.6 -18.8 4.3 -0.1 -0.1
62+200-300 -14.5 -21.5 7.0 -0.1 -0.1
63+300-400 -11.7 -21.0 9.3 -0.2 -0.1
64+400-510 -11.0 -20.2 9.3 -0.3 -0.1
65+510-630 -12.8 -23.8 11.0 -0.1 -0.0
66+630-770 -10.4 -20.6 10.2 -0.3 -0.0
67+770-920 -10.0 -19.5 9.5 -0.3 -0.1
68+920-1080 -8.8 -15.8 7.0 -0.4 -0.2
69+1080-1270 -11.0 -16.3 5.4 -0.3 -0.2
70+1270-1480 -10.8 -14.0 3.2 -0.3 -0.3
71+1480-1720 -10.3 -12.2 2.0 -0.3 -0.3
72+1720-2000 -8.1 -11.4 3.3 -0.6 -0.4
73+2000-2320 -6.3 -9.8 3.6 -1.0 -0.4
74+2320-2700 -5.7 -9.9 4.3 -1.2 -0.3
75+2700-3150 -7.2 -11.4 4.2 -0.8 -0.4
76+3150-3700 -6.0 -9.9 3.9 -1.1 -0.4
77+3700-4400 -6.8 -11.0 4.2 -0.7 -0.4
78+4400-5300 -5.4 -8.9 3.5 -1.0 -0.4
79+5300-6400 -7.6 -9.1 1.4 -0.6 -0.2
80+6400-7700 -7.5 -9.0 1.5 -0.6 -0.1
81+7700-9500 -6.4 -7.2 0.8 -0.9 0.2
82+9500-12000 -6.4 -7.1 0.7 -1.0 0.2
83+12000-15500 -4.7 -5.5 0.8 -1.6 0.6
84+15500-24000 -4.1 -8.2 4.0 -1.6 -0.2
85+broadband corr: ours 0.9739 ref 0.9922
86+
87+## reelo @ 128k (ours 109.1 vs ref 108.6 kbps)
88+band NSR_ours NSR_ref dNSR E_ours E_ref
89+100-200 -18.3 -22.7 4.4 -0.0 -0.1
90+200-300 -18.2 -25.3 7.1 -0.0 -0.0
91+300-400 -15.1 -25.0 9.9 -0.1 -0.1
92+400-510 -13.9 -24.8 10.9 -0.1 -0.0
93+510-630 -15.9 -28.4 12.5 -0.0 0.0
94+630-770 -13.0 -25.1 12.1 -0.1 -0.0
95+770-920 -12.7 -23.5 10.8 -0.2 -0.0
96+920-1080 -11.3 -19.0 7.7 -0.2 -0.1
97+1080-1270 -13.9 -19.5 5.5 -0.1 -0.1
98+1270-1480 -13.7 -16.9 3.2 -0.1 -0.2
99+1480-1720 -12.9 -14.5 1.5 -0.1 -0.3
100+1720-2000 -10.7 -13.3 2.6 -0.3 -0.3
101+2000-2320 -8.6 -11.2 2.6 -0.5 -0.3
102+2320-2700 -7.9 -11.4 3.4 -0.7 -0.3
103+2700-3150 -9.7 -13.1 3.4 -0.4 -0.3
104+3150-3700 -8.4 -11.6 3.2 -0.6 -0.3
105+3700-4400 -9.2 -12.4 3.3 -0.3 -0.4
106+4400-5300 -7.7 -10.2 2.5 -0.4 -0.4
107+5300-6400 -10.1 -10.5 0.3 -0.2 -0.4
108+6400-7700 -10.2 -10.6 0.4 -0.2 -0.4
109+7700-9500 -9.0 -8.3 -0.7 -0.4 -0.3
110+9500-12000 -9.0 -8.4 -0.7 -0.4 -0.3
111+12000-15500 -6.7 -7.6 0.9 -0.9 -0.3
112+15500-24000 -5.6 -12.3 6.7 -1.2 -0.3
113+broadband corr: ours 0.9868 ref 0.9955
114+
115+## her @ 96k (ours 89.9 vs ref 89.9 kbps)
116+band NSR_ours NSR_ref dNSR E_ours E_ref
117+100-200 -13.9 -21.6 7.7 -0.0 -0.1
118+200-300 -11.4 -20.8 9.4 -0.2 -0.1
119+300-400 -10.5 -21.8 11.3 -0.4 -0.1
120+400-510 -8.5 -20.3 11.8 -0.6 -0.1
121+510-630 -7.6 -17.9 10.2 -0.7 -0.1
122+630-770 -9.5 -21.6 12.1 -0.5 -0.1
123+770-920 -6.5 -15.2 8.7 -1.0 -0.2
124+920-1080 -11.1 -20.8 9.7 -0.2 -0.1
125+1080-1270 -6.1 -12.6 6.5 -1.1 -0.4
126+1270-1480 -5.6 -10.3 4.7 -1.2 -0.4
127+1480-1720 -6.2 -9.9 3.7 -1.1 -0.4
128+1720-2000 -5.9 -9.4 3.5 -1.2 -0.5
129+2000-2320 -5.3 -7.7 2.4 -1.3 -0.5
130+2320-2700 -5.9 -8.5 2.5 -1.2 -0.5
131+2700-3150 -5.8 -9.1 3.4 -1.2 -0.5
132+3150-3700 -4.7 -7.8 3.1 -1.7 -0.5
133+3700-4400 -3.6 -7.5 4.0 -1.6 -0.5
134+4400-5300 -2.8 -6.7 3.9 -1.8 -0.5
135+5300-6400 -3.1 -4.2 1.1 -1.3 -0.2
136+6400-7700 -3.7 -3.1 -0.7 -0.9 -0.1
137+7700-9500 -3.1 -1.3 -1.8 -1.2 0.6
138+9500-12000 -3.0 -1.3 -1.7 -1.6 0.7
139+12000-15500 -3.0 -1.6 -1.4 -1.6 0.7
140+15500-24000 -2.3 -0.9 -1.4 -2.4 -3.0
141+broadband corr: ours 0.9668 ref 0.9867
142+
143+## her @ 128k (ours 123.5 vs ref 124.9 kbps)
144+band NSR_ours NSR_ref dNSR E_ours E_ref
145+100-200 -17.5 -25.0 7.4 -0.0 -0.1
146+200-300 -14.7 -24.7 10.0 -0.1 -0.0
147+300-400 -13.5 -25.6 12.1 -0.2 -0.0
148+400-510 -11.6 -24.3 12.7 -0.2 -0.1
149+510-630 -10.2 -22.5 12.2 -0.3 -0.1
150+630-770 -12.4 -25.4 13.0 -0.2 -0.0
151+770-920 -8.8 -19.8 11.0 -0.5 -0.1
152+920-1080 -13.9 -24.6 10.8 -0.1 -0.0
153+1080-1270 -8.5 -16.3 7.8 -0.6 -0.3
154+1270-1480 -7.7 -14.1 6.4 -0.7 -0.3
155+1480-1720 -8.5 -13.9 5.4 -0.6 -0.3
156+1720-2000 -8.1 -13.2 5.1 -0.6 -0.3
157+2000-2320 -7.5 -11.0 3.5 -0.7 -0.4
158+2320-2700 -8.3 -11.6 3.3 -0.6 -0.4
159+2700-3150 -8.2 -12.0 3.8 -0.6 -0.4
160+3150-3700 -6.8 -10.3 3.4 -0.9 -0.4
161+3700-4400 -4.9 -10.1 5.2 -0.9 -0.4
162+4400-5300 -3.8 -9.8 5.9 -0.9 -0.4
163+5300-6400 -3.5 -10.1 6.6 -0.5 -0.4
164+6400-7700 -4.0 -10.9 6.9 -0.2 -0.5
165+7700-9500 -3.4 -2.7 -0.6 -0.3 -0.1
166+9500-12000 -3.6 -2.1 -1.5 -0.6 -0.0
167+12000-15500 -3.9 -2.8 -1.2 -0.8 -0.1
168+15500-24000 -3.4 -6.3 2.8 -1.5 -0.4
169+broadband corr: ours 0.9810 ref 0.9927
170+
171+## reell @ 96k (ours 85.4 vs ref 85.5 kbps)
172+band NSR_ours NSR_ref dNSR E_ours E_ref
173+100-200 -15.4 -20.2 4.7 -0.1 -0.1
174+200-300 -14.2 -20.5 6.3 -0.1 -0.1
175+300-400 -14.7 -22.9 8.2 -0.1 -0.1
176+400-510 -14.0 -22.5 8.4 -0.1 -0.0
177+510-630 -11.0 -20.1 9.1 -0.3 -0.1
178+630-770 -9.5 -18.2 8.7 -0.4 -0.1
179+770-920 -14.2 -22.8 8.7 -0.1 -0.0
180+920-1080 -11.7 -19.0 7.3 -0.2 -0.1
181+1080-1270 -8.6 -13.3 4.7 -0.5 -0.2
182+1270-1480 -11.6 -15.6 4.0 -0.2 -0.2
183+1480-1720 -10.6 -13.1 2.5 -0.2 -0.2
184+1720-2000 -12.8 -15.4 2.6 -0.2 -0.2
185+2000-2320 -7.9 -9.6 1.7 -0.6 -0.4
186+2320-2700 -7.9 -10.1 2.2 -0.6 -0.4
187+2700-3150 -9.5 -11.5 1.9 -0.4 -0.3
188+3150-3700 -8.5 -10.2 1.6 -0.5 -0.3
189+3700-4400 -8.6 -10.3 1.7 -0.2 -0.3
190+4400-5300 -8.4 -10.5 2.0 0.1 -0.3
191+5300-6400 -5.4 -7.0 1.6 -0.6 -0.3
192+6400-7700 -5.0 -4.7 -0.2 -0.8 0.1
193+7700-9500 -8.0 -5.8 -2.2 -0.2 0.3
194+9500-12000 -7.0 -5.7 -1.3 -0.5 0.0
195+12000-15500 -1.9 -1.5 -0.4 -2.4 0.8
196+15500-24000 -1.5 -5.9 4.3 -3.1 -0.1
197+broadband corr: ours 0.9792 ref 0.9923
198+
199+## reell @ 128k (ours 121.3 vs ref 120.9 kbps)
200+band NSR_ours NSR_ref dNSR E_ours E_ref
201+100-200 -20.6 -23.6 3.1 -0.0 -0.1
202+200-300 -19.2 -24.5 5.3 -0.0 -0.1
203+300-400 -19.3 -27.3 8.0 -0.0 -0.0
204+400-510 -18.4 -27.2 8.8 -0.0 -0.0
205+510-630 -14.9 -25.1 10.1 -0.1 -0.0
206+630-770 -13.1 -23.3 10.2 -0.1 -0.0
207+770-920 -18.1 -28.0 9.9 -0.0 0.0
208+920-1080 -15.1 -24.6 9.5 -0.1 -0.0
209+1080-1270 -11.3 -18.8 7.5 -0.2 -0.1
210+1270-1480 -14.8 -21.1 6.3 -0.1 -0.1
211+1480-1720 -13.8 -18.7 5.0 -0.1 -0.1
212+1720-2000 -16.2 -20.3 4.2 -0.1 -0.1
213+2000-2320 -11.0 -14.0 3.1 -0.3 -0.2
214+2320-2700 -11.1 -14.4 3.3 -0.3 -0.2
215+2700-3150 -12.6 -15.5 2.9 -0.2 -0.1
216+3150-3700 -11.7 -14.6 2.9 -0.2 -0.2
217+3700-4400 -11.0 -14.6 3.6 0.1 -0.2
218+4400-5300 -10.5 -14.5 4.0 0.2 -0.2
219+5300-6400 -7.3 -11.0 3.7 -0.1 -0.3
220+6400-7700 -6.7 -9.3 2.6 -0.2 -0.4
221+7700-9500 -9.8 -7.5 -2.3 0.0 -0.3
222+9500-12000 -8.7 -7.2 -1.5 -0.1 -0.3
223+12000-15500 -2.8 -2.8 0.0 -1.6 -0.1
224+15500-24000 -2.6 -9.3 6.7 -2.7 -0.2
225+broadband corr: ours 0.9914 ref 0.9968
226+
227+## reelm @ 96k (ours 80.5 vs ref 79.3 kbps)
228+band NSR_ours NSR_ref dNSR E_ours E_ref
229+100-200 -19.2 -29.7 10.5 -0.0 0.0
230+200-300 -18.7 -30.8 12.2 0.0 0.0
231+300-400 -17.4 -27.9 10.5 0.0 0.0
232+400-510 -17.7 -28.5 10.8 0.0 0.0
233+510-630 -16.6 -28.0 11.4 -0.0 0.0
234+630-770 -14.0 -24.1 10.1 -0.1 -0.0
235+770-920 -14.9 -23.0 8.1 -0.1 -0.1
236+920-1080 -13.4 -19.3 5.8 -0.1 -0.2
237+1080-1270 -13.4 -17.1 3.6 -0.1 -0.2
238+1270-1480 -14.0 -15.7 1.7 -0.1 -0.3
239+1480-1720 -13.4 -13.8 0.4 -0.1 -0.4
240+1720-2000 -13.2 -14.0 0.8 -0.1 -0.4
241+2000-2320 -11.7 -12.7 0.9 -0.2 -0.4
242+2320-2700 -12.0 -11.9 -0.1 -0.2 -0.4
243+2700-3150 -12.7 -12.2 -0.5 -0.2 -0.5
244+3150-3700 -10.0 -10.6 0.5 -0.4 -0.5
245+3700-4400 -10.4 -11.3 1.0 -0.4 -0.4
246+4400-5300 -9.9 -9.6 -0.3 -0.4 -0.4
247+5300-6400 -11.7 -9.8 -1.9 -0.2 -0.3
248+6400-7700 -8.5 -9.4 0.9 -0.6 -0.1
249+7700-9500 -8.8 -8.0 -0.8 -0.5 0.1
250+9500-12000 -8.2 -9.6 1.4 -0.6 -0.3
251+12000-15500 -1.8 -5.6 3.8 -3.2 0.6
252+15500-24000 -0.7 -5.5 4.8 -7.0 -0.1
253+broadband corr: ours 0.9796 ref 0.9865
254+
255+## reelm @ 128k (ours 93.5 vs ref 91.0 kbps)
256+band NSR_ours NSR_ref dNSR E_ours E_ref
257+100-200 -22.4 -34.2 11.8 -0.0 0.0
258+200-300 -21.5 -35.3 13.9 0.0 0.1
259+300-400 -20.2 -32.9 12.8 0.0 0.0
260+400-510 -20.5 -33.3 12.8 0.0 0.0
261+510-630 -19.7 -32.2 12.5 0.0 0.0
262+630-770 -16.8 -27.5 10.7 -0.0 0.0
263+770-920 -17.7 -26.1 8.3 -0.0 -0.0
264+920-1080 -16.0 -22.1 6.1 -0.0 -0.1
265+1080-1270 -16.2 -19.8 3.6 -0.0 -0.1
266+1270-1480 -16.9 -18.2 1.3 -0.0 -0.2
267+1480-1720 -16.2 -15.7 -0.5 -0.0 -0.2
268+1720-2000 -15.8 -15.9 0.1 -0.0 -0.3
269+2000-2320 -14.3 -14.0 -0.3 -0.1 -0.3
270+2320-2700 -14.7 -13.1 -1.6 -0.1 -0.4
271+2700-3150 -15.6 -13.2 -2.3 -0.1 -0.4
272+3150-3700 -12.5 -11.0 -1.5 -0.2 -0.4
273+3700-4400 -13.0 -11.7 -1.3 -0.2 -0.4
274+4400-5300 -12.6 -10.5 -2.1 -0.2 -0.4
275+5300-6400 -14.5 -11.2 -3.3 -0.1 -0.4
276+6400-7700 -11.0 -11.0 0.0 -0.3 -0.4
277+7700-9500 -11.3 -9.7 -1.6 -0.3 -0.3
278+9500-12000 -10.4 -11.2 0.8 -0.3 -0.4
279+12000-15500 -2.7 -7.4 4.6 -2.5 -0.2
280+15500-24000 -1.0 -7.8 6.8 -5.3 -0.2
281+broadband corr: ours 0.9890 ref 0.9906
282+
283+## dl8a @ 96k (ours 86.9 vs ref 86.9 kbps)
284+band NSR_ours NSR_ref dNSR E_ours E_ref
285+100-200 -12.7 -21.2 8.5 -0.1 -0.1
286+200-300 -13.3 -22.7 9.5 -0.2 -0.1
287+300-400 -10.2 -20.8 10.7 -0.3 -0.1
288+400-510 -9.9 -21.1 11.2 -0.4 -0.1
289+510-630 -11.1 -23.8 12.7 -0.2 -0.0
290+630-770 -12.2 -24.1 11.9 -0.2 -0.0
291+770-920 -11.1 -21.1 10.0 -0.2 -0.1
292+920-1080 -7.9 -15.7 7.9 -0.6 -0.2
293+1080-1270 -9.2 -15.3 6.2 -0.5 -0.2
294+1270-1480 -10.5 -14.6 4.1 -0.3 -0.3
295+1480-1720 -9.2 -12.1 2.9 -0.5 -0.3
296+1720-2000 -7.9 -11.5 3.6 -0.7 -0.3
297+2000-2320 -6.6 -9.7 3.1 -0.9 -0.3
298+2320-2700 -6.6 -9.8 3.2 -1.0 -0.4
299+2700-3150 -6.1 -9.8 3.7 -1.1 -0.4
300+3150-3700 -6.7 -9.7 3.0 -1.0 -0.4
301+3700-4400 -6.4 -9.1 2.7 -0.7 -0.4
302+4400-5300 -7.1 -9.5 2.4 -0.1 -0.4
303+5300-6400 -5.7 -7.8 2.1 -0.6 -0.2
304+6400-7700 -5.4 -7.1 1.7 -0.8 0.0
305+7700-9500 -5.7 -6.6 0.8 -0.8 0.2
306+9500-12000 -6.2 -7.3 1.1 -0.7 0.0
307+12000-15500 -4.3 -5.6 1.3 -1.2 0.4
308+15500-24000 -3.4 -1.9 -1.5 -2.1 -3.3
309+broadband corr: ours 0.9655 ref 0.9916
310+
311+## dl8a @ 128k (ours 118.7 vs ref 117.8 kbps)
312+band NSR_ours NSR_ref dNSR E_ours E_ref
313+100-200 -16.2 -24.7 8.6 -0.0 -0.1
314+200-300 -16.9 -26.2 9.3 -0.1 -0.0
315+300-400 -13.2 -24.9 11.7 -0.1 -0.0
316+400-510 -12.9 -25.7 12.8 -0.2 -0.0
317+510-630 -13.9 -28.5 14.6 -0.1 0.0
318+630-770 -15.1 -28.7 13.6 -0.1 0.0
319+770-920 -14.0 -25.7 11.6 -0.1 -0.0
320+920-1080 -10.4 -20.0 9.6 -0.3 -0.1
321+1080-1270 -12.0 -19.6 7.6 -0.3 -0.1
322+1270-1480 -13.2 -18.9 5.7 -0.2 -0.2
323+1480-1720 -11.9 -15.8 3.9 -0.2 -0.2
324+1720-2000 -10.3 -14.6 4.3 -0.3 -0.2
325+2000-2320 -9.1 -12.3 3.2 -0.4 -0.3
326+2320-2700 -9.2 -12.5 3.3 -0.5 -0.3
327+2700-3150 -8.8 -12.1 3.3 -0.5 -0.4
328+3150-3700 -9.3 -11.8 2.5 -0.5 -0.3
329+3700-4400 -8.9 -11.2 2.3 -0.2 -0.3
330+4400-5300 -9.3 -11.7 2.5 0.2 -0.4
331+5300-6400 -8.1 -10.0 1.9 -0.0 -0.3
332+6400-7700 -7.8 -9.2 1.4 -0.1 -0.4
333+7700-9500 -8.2 -7.8 -0.4 -0.2 -0.3
334+9500-12000 -8.9 -8.5 -0.4 -0.2 -0.4
335+12000-15500 -6.2 -6.6 0.4 -0.5 -0.3
336+15500-24000 -4.8 -9.9 5.0 -1.4 -0.4
337+broadband corr: ours 0.9826 ref 0.9957
338+
339+## hein @ 96k (ours 80.3 vs ref 79.1 kbps)
340+band NSR_ours NSR_ref dNSR E_ours E_ref
341+100-200 -17.8 -26.8 8.9 -0.0 0.0
342+200-300 -17.9 -28.2 10.3 0.0 0.0
343+300-400 -16.4 -26.2 9.8 -0.0 -0.0
344+400-510 -17.4 -27.6 10.2 -0.0 -0.0
345+510-630 -15.9 -26.8 10.9 -0.0 -0.0
346+630-770 -13.3 -23.6 10.4 -0.1 -0.0
347+770-920 -14.0 -22.5 8.6 -0.1 -0.1
348+920-1080 -12.7 -19.3 6.6 -0.1 -0.1
349+1080-1270 -12.8 -17.1 4.3 -0.2 -0.2
350+1270-1480 -13.5 -15.1 1.5 -0.1 -0.4
351+1480-1720 -13.7 -12.9 -0.8 -0.1 -0.4
352+1720-2000 -11.9 -12.3 0.4 -0.2 -0.4
353+2000-2320 -11.2 -11.7 0.5 -0.3 -0.4
354+2320-2700 -9.9 -11.3 1.3 -0.4 -0.4
355+2700-3150 -12.3 -11.9 -0.4 -0.2 -0.5
356+3150-3700 -9.9 -11.4 1.5 -0.4 -0.5
357+3700-4400 -9.5 -11.0 1.5 -0.4 -0.5
358+4400-5300 -10.0 -9.8 -0.1 -0.4 -0.4
359+5300-6400 -11.1 -9.6 -1.4 -0.3 -0.3
360+6400-7700 -8.6 -9.3 0.8 -0.6 -0.1
361+7700-9500 -9.2 -8.1 -1.1 -0.5 0.1
362+9500-12000 -8.3 -9.4 1.1 -0.6 -0.2
363+12000-15500 -2.1 -5.8 3.6 -2.9 0.5
364+15500-24000 -0.7 -4.9 4.2 -6.8 -0.0
365+broadband corr: ours 0.9789 ref 0.9869
366+
367+## hein @ 128k (ours 92.8 vs ref 90.7 kbps)
368+band NSR_ours NSR_ref dNSR E_ours E_ref
369+100-200 -20.5 -30.4 9.8 0.0 0.0
370+200-300 -20.7 -32.2 11.6 0.0 0.0
371+300-400 -19.1 -30.6 11.5 0.0 0.0
372+400-510 -20.2 -31.8 11.6 0.0 0.0
373+510-630 -18.7 -30.6 11.9 -0.0 0.0
374+630-770 -15.9 -26.6 10.8 -0.0 -0.0
375+770-920 -16.4 -25.1 8.7 -0.0 -0.0
376+920-1080 -15.2 -21.8 6.6 -0.1 -0.1
377+1080-1270 -15.5 -19.5 4.0 -0.1 -0.1
378+1270-1480 -16.3 -17.0 0.7 -0.1 -0.3
379+1480-1720 -16.6 -14.4 -2.2 -0.1 -0.3
380+1720-2000 -14.7 -13.7 -1.0 -0.1 -0.3
381+2000-2320 -14.0 -12.8 -1.1 -0.1 -0.4
382+2320-2700 -12.4 -12.1 -0.4 -0.2 -0.3
383+2700-3150 -15.1 -12.6 -2.4 -0.1 -0.4
384+3150-3700 -12.3 -12.0 -0.4 -0.2 -0.4
385+3700-4400 -11.7 -11.4 -0.3 -0.2 -0.5
386+4400-5300 -12.5 -10.6 -1.9 -0.2 -0.4
387+5300-6400 -13.6 -10.9 -2.6 -0.2 -0.4
388+6400-7700 -10.8 -10.9 0.1 -0.3 -0.4
389+7700-9500 -11.5 -9.8 -1.6 -0.2 -0.3
390+9500-12000 -10.4 -11.0 0.7 -0.3 -0.4
391+12000-15500 -3.2 -7.6 4.4 -2.2 -0.3
392+15500-24000 -1.0 -6.6 5.6 -5.3 -0.3
393+broadband corr: ours 0.9883 ref 0.9906
394+
lanes/vorbis-psy-r1.bits.txtadded+72 -0
@@ -0,0 +1,72 @@
1+# Bit split over full sources, same rows as the band error
2+
3+## nik @ 96k (ours 84.0 vs ref 84.5 kbps)
4+ours floor 9723.2/s ( 11.7%) residue 72917.0/s ( 87.9%) other 355.3/s nz 2560721 bits/nz 5.42
5+ref floor 10286.2/s ( 12.3%) residue 73047.7/s ( 87.3%) other 388.4/s nz 4760782 bits/nz 2.92
6+ratio floor 0.945 residue 0.998 bits/nz 1.856
7+
8+## nik @ 128k (ours 115.5 vs ref 115.8 kbps)
9+ours floor 9645.0/s ( 8.5%) residue 103989.2/s ( 91.2%) other 353.9/s nz 3814314 bits/nz 5.19
10+ref floor 10077.0/s ( 8.8%) residue 104124.4/s ( 90.9%) other 389.7/s nz 5632447 bits/nz 3.52
11+ratio floor 0.957 residue 0.999 bits/nz 1.475
12+
13+## reelo @ 96k (ours 81.5 vs ref 81.8 kbps)
14+ours floor 9806.9/s ( 12.2%) residue 70346.3/s ( 87.4%) other 355.5/s nz 2986413 bits/nz 5.29
15+ref floor 9941.3/s ( 12.3%) residue 70612.8/s ( 87.2%) other 398.4/s nz 5777660 bits/nz 2.74
16+ratio floor 0.986 residue 0.996 bits/nz 1.927
17+
18+## reelo @ 128k (ours 109.1 vs ref 108.6 kbps)
19+ours floor 9691.2/s ( 9.0%) residue 97679.6/s ( 90.7%) other 353.8/s nz 4295299 bits/nz 5.11
20+ref floor 9747.6/s ( 9.1%) residue 97310.8/s ( 90.6%) other 403.0/s nz 6673503 bits/nz 3.27
21+ratio floor 0.994 residue 1.004 bits/nz 1.560
22+
23+## her @ 96k (ours 89.9 vs ref 89.9 kbps)
24+ours floor 9524.9/s ( 10.7%) residue 78889.0/s ( 88.9%) other 354.8/s nz 1787297 bits/nz 6.60
25+ref floor 10153.8/s ( 11.4%) residue 78231.6/s ( 88.1%) other 424.2/s nz 3760403 bits/nz 3.11
26+ratio floor 0.938 residue 1.008 bits/nz 2.122
27+
28+## her @ 128k (ours 123.5 vs ref 124.9 kbps)
29+ours floor 9533.5/s ( 7.8%) residue 112062.4/s ( 91.9%) other 352.8/s nz 2722388 bits/nz 6.16
30+ref floor 10767.4/s ( 8.7%) residue 112414.2/s ( 90.9%) other 440.5/s nz 4510184 bits/nz 3.73
31+ratio floor 0.885 residue 0.997 bits/nz 1.652
32+
33+## reell @ 96k (ours 85.4 vs ref 85.5 kbps)
34+ours floor 9711.2/s ( 11.5%) residue 74235.7/s ( 88.1%) other 352.0/s nz 1543184 bits/nz 6.13
35+ref floor 10298.1/s ( 12.2%) residue 73899.0/s ( 87.4%) other 385.7/s nz 3052428 bits/nz 3.09
36+ratio floor 0.943 residue 1.005 bits/nz 1.987
37+
38+## reell @ 128k (ours 121.3 vs ref 120.9 kbps)
39+ours floor 9566.1/s ( 8.0%) residue 109816.9/s ( 91.7%) other 355.4/s nz 2371325 bits/nz 5.91
40+ref floor 9762.0/s ( 8.2%) residue 109419.2/s ( 91.5%) other 383.9/s nz 3707113 bits/nz 3.76
41+ratio floor 0.980 residue 1.004 bits/nz 1.569
42+
43+## reelm @ 96k (ours 80.5 vs ref 79.3 kbps)
44+ours floor 11985.8/s ( 15.1%) residue 66845.4/s ( 84.3%) other 478.7/s nz 8155330 bits/nz 4.92
45+ref floor 13236.4/s ( 16.9%) residue 64513.7/s ( 82.4%) other 554.2/s nz 16100264 bits/nz 2.40
46+ratio floor 0.906 residue 1.036 bits/nz 2.046
47+
48+## reelm @ 128k (ours 93.5 vs ref 91.0 kbps)
49+ours floor 11796.9/s ( 12.8%) residue 79906.7/s ( 86.7%) other 478.6/s nz 9867445 bits/nz 4.86
50+ref floor 15532.3/s ( 17.3%) residue 73887.6/s ( 82.1%) other 577.2/s nz 17166019 bits/nz 2.58
51+ratio floor 0.760 residue 1.081 bits/nz 1.881
52+
53+## dl8a @ 96k (ours 86.9 vs ref 86.9 kbps)
54+ours floor 9898.8/s ( 11.5%) residue 75451.0/s ( 88.0%) other 361.4/s nz 1070509 bits/nz 5.22
55+ref floor 10220.4/s ( 11.9%) residue 75065.3/s ( 87.6%) other 450.2/s nz 2007693 bits/nz 2.77
56+ratio floor 0.969 residue 1.005 bits/nz 1.885
57+
58+## dl8a @ 128k (ours 118.7 vs ref 117.8 kbps)
59+ours floor 9770.3/s ( 8.3%) residue 106984.6/s ( 91.3%) other 362.3/s nz 1586225 bits/nz 5.00
60+ref floor 10898.1/s ( 9.4%) residue 104859.0/s ( 90.2%) other 461.9/s nz 2355540 bits/nz 3.30
61+ratio floor 0.897 residue 1.020 bits/nz 1.515
62+
63+## hein @ 96k (ours 80.3 vs ref 79.1 kbps)
64+ours floor 11754.1/s ( 14.8%) residue 66934.3/s ( 84.6%) other 464.2/s nz 8280099 bits/nz 4.85
65+ref floor 13269.0/s ( 17.0%) residue 64324.4/s ( 82.3%) other 542.5/s nz 16037649 bits/nz 2.41
66+ratio floor 0.886 residue 1.041 bits/nz 2.015
67+
68+## hein @ 128k (ours 92.8 vs ref 90.7 kbps)
69+ours floor 11598.0/s ( 12.7%) residue 79463.3/s ( 86.8%) other 463.7/s nz 9964341 bits/nz 4.78
70+ref floor 15672.4/s ( 17.5%) residue 73426.1/s ( 81.9%) other 577.8/s nz 17055459 bits/nz 2.58
71+ratio floor 0.740 residue 1.082 bits/nz 1.852
72+
lanes/vorbis-psy-r1.report.mdadded+88 -0
@@ -0,0 +1,88 @@
1+byte-identity: IDENTICAL (reelm 120 s 128k, main 4b007cd vs 689cdc9)
2+
3+# vorbis-psy r3 — band error + bit split, 7 sources × {96k, 128k}
4+
5+Instrument: `band_error_vs_reference` (`crates/ec-vorbis/tests/oracle.rs`), run in
6+release, full 14 rows (no `SWEEP_ONLY` fallback needed; 163 s total, 3–25 s/row).
7+Ref = ffmpeg libvorbis `-t 600 -ac 2 -ar 48000`; ours encoded at the ref's measured
8+kbps; both decoded through **our** decoder, so the gap measures encoders only.
9+Bands: 2048-pt Hann, hop 1024, 25 edges 100 Hz–24 kHz → 24 bands, both channels
10+summed. NSR/E in dB vs the source per band; dNSR = NSR_ours − NSR_ref (positive =
11+we're worse). Raw tables: `vorbis-psy-r1.bands.txt`, `vorbis-psy-r1.bits.txt`.
12+
13+## Bit split (floor / residue / bits-per-nonzero, ours vs ref, ratio)
14+
15+| row | floor ours/ref b/s | residue ours/ref b/s | nz ours/ref | bits/nz ours vs ref | ratio bits/nz |
16+|---|---|---|---|---|---|
17+| nik 96k | 9723 / 10286 | 72917 / 73048 | 2.56M / 4.76M | 5.42 vs 2.92 | **1.86** |
18+| nik 128k | 9645 / 10077 | 103989 / 104124 | 3.81M / 5.63M | 5.19 vs 3.52 | **1.48** |
19+| reelo 96k | 9807 / 9941 | 70346 / 70613 | 2.99M / 5.78M | 5.29 vs 2.74 | **1.93** |
20+| reelo 128k | 9691 / 9748 | 97680 / 97311 | 4.30M / 6.67M | 5.11 vs 3.27 | **1.56** |
21+| her 96k | 9525 / 10154 | 78889 / 78232 | 1.79M / 3.76M | 6.60 vs 3.11 | **2.12** |
22+| her 128k | 9534 / 10767 | 112062 / 112414 | 2.72M / 4.51M | 6.16 vs 3.73 | **1.65** |
23+| reell 96k | 9711 / 10298 | 74236 / 73899 | 1.54M / 3.05M | 6.13 vs 3.09 | **1.99** |
24+| reell 128k | 9566 / 9762 | 109817 / 109419 | 2.37M / 3.71M | 5.91 vs 3.76 | **1.57** |
25+| reelm 96k | 11986 / 13236 | 66845 / 64514 | 8.16M / 16.10M | 4.92 vs 2.40 | **2.05** |
26+| reelm 128k | 11797 / 15532 | 79907 / 73888 | 9.87M / 17.17M | 4.86 vs 2.58 | **1.88** |
27+| dl8a 96k | 9899 / 10220 | 75451 / 75065 | 1.07M / 2.01M | 5.22 vs 2.77 | **1.89** |
28+| dl8a 128k | 9770 / 10898 | 106985 / 104859 | 1.59M / 2.36M | 5.00 vs 3.30 | **1.52** |
29+| hein 96k | 11754 / 13269 | 66934 / 64324 | 8.28M / 16.04M | 4.85 vs 2.41 | **2.02** |
30+| hein 128k | 11598 / 15672 | 79463 / 73426 | 9.96M / 17.06M | 4.78 vs 2.58 | **1.85** |
31+
32+Residue totals land within ±4% of ref at matched rate (ratios 0.996–1.082), but
33+we spend them on 45–57% as many non-zero coefficients at 1.5–2.1× the bits each.
34+Floor ratio 0.74–0.99 — ref outspends us on floor most where it wins HF (reelm/
35+hein 128k: ref floor 15.5–15.7k b/s vs our 11.6k).
36+
37+## Bands summary (per row: 3 largest dNSR bands; E-attenuated bands)
38+
39+`E −x.x` = encoder output band energy vs source; "attenuated" lists bands with
40+E_ours ≤ −3 dB while E_ref > −3 dB.
41+
42+| row | top-3 dNSR bands | attenuated bands | corr ours/ref |
43+|---|---|---|---|
44+| nik 96k | 630-770 +11.0; 770-920 +9.8; 400-510 +9.6 | 15500-24000 E −19.0 (ref −2.3) | 0.9690 / 0.9903 |
45+| nik 128k | 630-770 +12.1; 920-1080 +11.8; 770-920 +11.6 | 15500-24000 E −19.0 (ref −1.8) | 0.9838 / 0.9951 |
46+| reelo 96k | 510-630 +11.0; 630-770 +10.2; 770-920 +9.5 | none | 0.9739 / 0.9922 |
47+| reelo 128k | 510-630 +12.5; 630-770 +12.1; 400-510 +10.9 | none | 0.9868 / 0.9955 |
48+| her 96k | 630-770 +12.1; 400-510 +11.8; 300-400 +11.3 | none | 0.9668 / 0.9867 |
49+| her 128k | 630-770 +13.0; 400-510 +12.7; 510-630 +12.2 | none | 0.9810 / 0.9927 |
50+| reell 96k | 510-630 +9.1; 630-770 +8.7; 770-920 +8.7 | 15500-24000 E −3.1 (ref −0.1) | 0.9792 / 0.9923 |
51+| reell 128k | 630-770 +10.2; 510-630 +10.1; 770-920 +9.9 | none | 0.9914 / 0.9968 |
52+| reelm 96k | 200-300 +12.2; 510-630 +11.4; 400-510 +10.8 | 12000-15500 E −3.2 (ref +0.6); 15500-24000 E −7.0 (ref −0.1) | 0.9796 / 0.9865 |
53+| reelm 128k | 200-300 +13.9; 300-400 +12.8; 400-510 +12.8 | 15500-24000 E −5.3 (ref −0.2) | 0.9890 / 0.9906 |
54+| dl8a 96k | 510-630 +12.7; 630-770 +11.9; 400-510 +11.2 | none | 0.9655 / 0.9916 |
55+| dl8a 128k | 510-630 +14.6; 630-770 +13.6; 400-510 +12.8 | none | 0.9826 / 0.9957 |
56+| hein 96k | 510-630 +10.9; 630-770 +10.4; 200-300 +10.3 | 15500-24000 E −6.8 (ref −0.0) | 0.9789 / 0.9869 |
57+| hein 128k | 510-630 +11.9; 200-300 +11.6; 400-510 +11.6 | 15500-24000 E −5.3 (ref −0.3) | 0.9883 / 0.9906 |
58+
59+Every row's top-3 dNSR sits in **300–1080 Hz** (dNSR +8.6 to +14.6); in that
60+region ref reaches NSR −20 to −30 dB while we sit at −8 to −20.
61+
62+## Diagnosis (numbers only)
63+
64+(a) **Coding efficiency: yes, every row.** bits/non-zero ours/ref = 1.48–2.12,
65+all 14 rows ≥ 1.3×; we code 45–57% as many non-zeros (e.g. her 96k 1.79M vs
66+3.76M) at 4.8–6.6 bits each vs ref's 2.4–3.8, from identical residue budgets.
67+(b) **HF droop: partial.** nik 15500-24000 E −19.0 dB (effective lowpass at both
68+rates, ref −1.8/−2.3); reell 96k −3.1; reelm −7.0/−5.3 (plus 12000-15500 −3.2 at
69+96k); hein −6.8/−5.3. reelo, her, dl8a: no band below −3 dB. (c) **Not flat.**
70+dNSR is frequency-shaped, not broadband: +9 to +15 at 300–1080 Hz, +2 to +8 at
71+1–5 kHz, ≤ +1.3 (often negative, we win) above 7.7 kHz; broadband corr gap is
72+0.0016–0.0131 at 128k and 0.0069–0.0261 at 96k, driven by the low bands.
73+(d) **Tonal mid 1–5 kHz on her/reelo/dl8a: present but secondary** — her 96k
74+1080-1270 +6.5 / 1270-1480 +4.7 / 1480-1720 +3.7; reelo 96k 2320-2700 +4.3 /
75+3150-3700 +3.9; dl8a 96k 2700-3150 +3.7 / 1720-2000 +3.6 — each 5–8 dB below the
76+same row's 510-770 Hz peak. Conclusion: the dominant gap is (a) residue coding
77+efficiency concentrated at 300–1080 Hz — ref encodes roughly twice the non-zeros
78+at half the per-coefficient cost there — with (b) HF droop a separate, source-
79+dependent contributor (nik/reelm/hein), and (d) minor.
80+
81+## Deviations from the charter
82+
83+- Bit-split oracle folded into `band_error_vs_reference` instead of the existing
84+ 12 s × 128k-only `residue_histogram_vs_reference`: same `decode_capture_with_bits`
85+ + `bit_split_summary` measurement on the same files, one encode pass instead of
86+ two, and extended to all 14 rows (600 s, both rates).
87+- Task text said "25 Bark bands" but listed 25 edges; edges taken as authoritative
88+ → 24 bands (noted in the test's doc comment).
lanes/vorbis-psy-r3.handoff.mdadded+60 -0
@@ -0,0 +1,60 @@
1+# lane-vorbis-psy — round 3 handoff (2026-08-23)
2+
3+Branch `lane-vorbis-psy` @ 689cdc9 + this commit. No merge, no push.
4+
5+## What this round did
6+
7+- Added `band_error_vs_reference` (ignored instrument test) to
8+ `crates/ec-vorbis/tests/oracle.rs` — 2048-pt Hann STFT, 24 bands from 25 edges
9+ (100 Hz–24 kHz), band NSR + band-energy-vs-source for ours vs ffmpeg libvorbis,
10+ both decoded through our decoder. Bit-split oracle folded into the same pass
11+ (see deviations).
12+- Ran all 14 rows (7 sources × {96,128} kbps, 600 s each), release mode, 163 s.
13+- `cargo test -p ec-vorbis` non-ignored: green (13 lib + 8 oracle, 3 ignored).
14+- Encoder output byte-identical to main — established at 689cdc9 in round 2
15+ (reelm 120 s 128k, 4b007cd vs 689cdc9), not re-proven this round; this round
16+ touches only `tests/oracle.rs` + lanes files.
17+
18+## Findings (numbers in `vorbis-psy-r1.report.md`)
19+
20+1. **Residue coding efficiency is the dominant gap.** bits/non-zero = 1.48–2.12×
21+ ref on all 14 rows; we emit 45–57% as many non-zeros at 4.8–6.6 bits each vs
22+ ref's 2.4–3.8, from near-identical residue budgets (±4%).
23+2. **The error is concentrated at 300–1080 Hz** — dNSR +8.6 to +14.6 dB; ref hits
24+ NSR −20 to −30 there, we sit at −8 to −20. Mid 1–5 kHz +2 to +8. Above 7.7 kHz
25+ we win or tie on most rows.
26+3. **HF droop is source-dependent, not universal**: nik 15500-24000 E −19 dB
27+ (hard lowpass, both rates; ref −1.8/−2.3), reelm −7.0/−5.3, hein −6.8/−5.3,
28+ reell@96 −3.1. reelo/her/dl8a none.
29+4. Floor spend: ours 0.74–0.99× ref; ref outspends us most on reelm/hein 128k
30+ (15.5–15.7 k b/s vs 11.6k) — same sources where HF droop shows.
31+
32+## Next-round candidates (ranked by measured impact)
33+
34+- (1)+(2) Residue: encode ~2× non-zeros at ~half bits each in low bands —
35+ suspect book selection / dimension / amplitude-bit allocation, not psy
36+ (budget already matches).
37+- (3) nik 15.5 kHz cutoff: look for a frequency-limit or floor1 cutoff in the
38+ psy/floor path that engages on that source; reelm/hein droop likely floor
39+ underspend (finding 4).
40+- (4) Tonal 1–5 kHz on her/reelo/dl8a — minor (+3.1 to +6.5), fix after (1).
41+
42+## Deviations from this round's charter
43+
44+- Bit-split oracle measured inside `band_error_vs_reference` rather than the
45+ 12 s × 128k-only `residue_histogram_vs_reference`: same
46+ `decode_capture_with_bits` + `bit_split_summary` on the same files, one encode
47+ pass instead of two, extended to all 14 rows.
48+- "25 Bark bands" in the charter vs 25 edges listed → 24 bands; edges taken as
49+ authoritative.
50+
51+## Files
52+
53+- `crates/ec-vorbis/tests/oracle.rs` — new test (+ fft helper), 244 lines.
54+- `lanes/vorbis-psy-r1.bands.txt` — 394 lines, per-row band tables.
55+- `lanes/vorbis-psy-r1.bits.txt` — 71 lines, per-row bit split.
56+- `lanes/vorbis-psy-r1.report.md` — verdict, tables, diagnosis.
57+- Scratch oggs under `$CARGO_TARGET_DIR/.../scratch/vorbis7-bands/` (not
58+ committed).
59+
60+Worktree intentionally live for round 4.