forge
Explore
Log in

Don't you dare go Hollow

Merge branch 'lane-opus-her': her@96 opus_compare error map, premise superseded

Browse files at this commit

f521fd8d9e00ae2db4cd5c15ae7ab2f37e80ac10Ahmet Kaan GümüşParent: ba7f5539b54a5f
crates/ec-opus/tests/conformance.rsmodified+241 -0
@@ -5272,3 +5272,244 @@ fn short_block_bits_vs_libopus() {
5272 fs::write(&out_path, &report).unwrap();5272 fs::write(&out_path, &report).unwrap();
5273 eprintln!("wrote {}", out_path.display());5273 eprintln!("wrote {}", out_path.display());
5274 }5274 }
5275+
5276+// ---------------------------------------------------------------------------
5277+// her@96 opus_compare error map (lane opus-her r1).
5278+//
5279+// The gate's worst err_ratio row. This localises it: both encoders run through
5280+// the gate's exact path, opus_compare's per-2.5 ms hop ef² is bucketed into
5281+// 1 s windows, and the top-10 windows (by ours/ref window ratio and by ours
5282+// error share) are printed with our encoder flags plus both encoders' coded
5283+// decisions — libopus's packets decoded with our decoder, the reell-r2 method.
5284+// Frame mapping is in source-sample time (±1 frame of codec delay).
5285+// Output: lanes/opus-her-r1.map.txt. HER_KBPS overrides the rate (default 96).
5286+// ---------------------------------------------------------------------------
5287+
5288+#[test]
5289+#[ignore]
5290+fn her_err_map_96k() {
5291+ const SECS: f64 = 120.0;
5292+ const FRAME: usize = 960;
5293+ const CH: usize = 2;
5294+ const HOP: usize = 120; // WIN_STEP: one opus_compare hop = 2.5 ms
5295+ const HOPS_PER_WIN: usize = 48_000 / HOP; // 1 s window = 400 hops
5296+ let kbps_env: u32 = std::env::var("HER_KBPS")
5297+ .ok()
5298+ .and_then(|v| v.parse().ok())
5299+ .unwrap_or(96);
5300+
5301+ let src = shellexpand("~/Music/reeli.mp3");
5302+ if !src.exists() {
5303+ eprintln!("SKIP: missing {}", src.display());
5304+ return;
5305+ }
5306+ let lanes_dir = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../lanes");
5307+ fs::create_dir_all(&lanes_dir).unwrap();
5308+ let scratch = lanes_dir.join("opus-her-r1.scratch.ogg");
5309+ let out_path = lanes_dir.join("opus-her-r1.map.txt");
5310+
5311+ let source_pcm = ffmpeg_decode_pcm(&src, SECS);
5312+ let source_frames = source_pcm.len() / CH;
5313+ let seconds = source_frames as f64 / 48000.0;
5314+ let source_i16 = to_i16(&source_pcm);
5315+
5316+ // Reference: ffmpeg libopus, VBR — the gate's path.
5317+ ffmpeg_encode_libopus(&src, kbps_env, &scratch, SECS);
5318+ let ref_bytes = fs::metadata(&scratch).map(|m| m.len() as usize).unwrap_or(0);
5319+ let ref_kbps = ref_bytes as f64 * 8.0 / seconds / 1000.0;
5320+ let (ref_dec, ref_ch) = decode_ogg(&scratch);
5321+ assert_eq!(ref_ch, CH, "ref not stereo");
5322+ let (_, ref_aligned) = align_to_source(&source_pcm, &ref_dec, CH, 2000);
5323+
5324+ // Ref per-packet decoder diag, tagged with its first source sample.
5325+ struct FD {
5326+ sample: usize,
5327+ enc: Option<ec_opus::celt_enc::CeltFrameDiag>,
5328+ dec: ec_opus::celt::CeltDecDiag,
5329+ }
5330+ let ref_pkts: Vec<Vec<u8>> = ogg_packets(&fs::read(&scratch).unwrap())
5331+ .into_iter()
5332+ .skip(2)
5333+ .collect();
5334+ let mut ref_fd: Vec<FD> = Vec::new();
5335+ {
5336+ let mut d = Decoder::new(48000, CH).unwrap();
5337+ let mut buf = vec![0f32; 5760 * CH];
5338+ let mut at = 0usize;
5339+ for p in &ref_pkts {
5340+ if p.is_empty() {
5341+ continue;
5342+ }
5343+ let toc = ec_opus::Toc::new(p[0]);
5344+ let got = d.decode_float(p, &mut buf).unwrap_or(0);
5345+ if toc.mode() != Mode::Silk {
5346+ ref_fd.push(FD { sample: at, enc: None, dec: d.last_celt_diag().clone() });
5347+ }
5348+ at += got;
5349+ }
5350+ }
5351+
5352+ // Ours at the reference's realised rate (gate path), with per-frame diags.
5353+ let mut enc = Encoder::new(48000, CH, Application::Audio).expect("encoder");
5354+ enc.set_bitrate((ref_kbps * 1000.0).round() as u32);
5355+ enc.set_vbr_constrained(true);
5356+ let mut dec = Decoder::new(48000, CH).unwrap();
5357+ let mut pkt = vec![0u8; 1500];
5358+ let mut dbuf = vec![0f32; 5760 * CH];
5359+ let mut ours_dec = Vec::new();
5360+ let mut ours_bytes = 0usize;
5361+ let mut ours_fd: Vec<FD> = Vec::new();
5362+ for (fi, block) in source_pcm.chunks(FRAME * CH).enumerate() {
5363+ let mut padded = block.to_vec();
5364+ padded.resize(FRAME * CH, 0.0);
5365+ let n = enc.encode_float(&padded, FRAME, &mut pkt).unwrap();
5366+ ours_bytes += n;
5367+ let m = dec.decode_float(&pkt[..n], &mut dbuf).unwrap();
5368+ ours_dec.extend_from_slice(&dbuf[..m * CH]);
5369+ ours_fd.push(FD {
5370+ sample: fi * FRAME,
5371+ enc: Some(enc.last_celt_diag().clone()),
5372+ dec: dec.last_celt_diag().clone(),
5373+ });
5374+ }
5375+ let (_, ours_aligned) = align_to_source(&source_pcm, &ours_dec, CH, 2000);
5376+ let ours_i16 = to_i16(&ours_aligned);
5377+ let ref_i16 = to_i16(&ref_aligned);
5378+ let ours_kbps = ours_bytes as f64 * 8.0 / seconds / 1000.0;
5379+
5380+ // Per-hop ef² for both encoders (gate numerics).
5381+ let cmp_frames = (source_i16.len() / CH)
5382+ .min(ours_i16.len() / CH)
5383+ .min(ref_i16.len() / CH);
5384+ let trim = |v: &[i16]| -> Vec<i16> { v[..cmp_frames * CH].to_vec() };
5385+ let (err_o, _, hop_o) = opus_compare_err_parts(&trim(&source_i16), &trim(&ours_i16), CH);
5386+ let (err_r, _, hop_r) = opus_compare_err_parts(&trim(&source_i16), &trim(&ref_i16), CH);
5387+
5388+ // 1 s windows.
5389+ let nwin = hop_o.len() / HOPS_PER_WIN;
5390+ let sum = |h: &[f64], w: usize| h[w * HOPS_PER_WIN..(w + 1) * HOPS_PER_WIN].iter().sum::<f64>();
5391+ let tot_o: f64 = hop_o.iter().sum();
5392+ let tot_r: f64 = hop_r.iter().sum();
5393+ let mut wins: Vec<(usize, f64, f64, f64)> = (0..nwin)
5394+ .map(|w| (w, sum(&hop_o, w), sum(&hop_r, w), 0.0))
5395+ .collect();
5396+ for w in wins.iter_mut() {
5397+ w.3 = w.1 / w.2.max(f64::MIN_POSITIVE);
5398+ }
5399+ let max_share = wins.iter().map(|w| w.1).fold(0.0f64, f64::max);
5400+
5401+ let mut out = String::new();
5402+ out.push_str(&format!(
5403+ "# her@{kbps_env}k error map: ref {ref_kbps:.1} ours {ours_kbps:.1} kbps, \
5404+ err o={err_o:.3} r={err_r:.3} ratio {:.3}, {nwin} s windows\n",
5405+ err_o / err_r
5406+ ));
5407+ out.push_str("# window time = first hop of the 1 s bucket; ratio = ours/ref window ef² sum\n");
5408+ out.push_str("# ratio table de-noised: windows with ours share < 1e-6·max excluded\n");
5409+
5410+ let fmt_fd = |f: &FD| -> String {
5411+ let e = f.enc.as_ref();
5412+ format!(
5413+ "trans{} intra{} trim{} int{} cb{} dual{} | tf_sum {:+3} tf8 {:?} sp{} ac{} bits{}",
5414+ f.dec.transient as u8,
5415+ f.dec.intra as u8,
5416+ f.dec.alloc_trim,
5417+ f.dec.intensity,
5418+ f.dec.coded_bands,
5419+ f.dec.dual_stereo as u8,
5420+ f.dec.tf_res.iter().sum::<i32>(),
5421+ &f.dec.tf_res.iter().take(8).collect::<Vec<_>>(),
5422+ f.dec.spread,
5423+ f.dec.anti_collapse as u8,
5424+ f.dec.total_bits,
5425+ ) + &e.map(|e| format!(
5426+ " | ENC sb{} vbr{}", e.short_blocks, e.vbr_reservoir
5427+ )).unwrap_or_default()
5428+ };
5429+ let ref_at = |s: usize| -> Option<&FD> {
5430+ let i = ref_fd.partition_point(|f| f.sample <= s);
5431+ i.checked_sub(1).map(|i| &ref_fd[i])
5432+ };
5433+
5434+ for (label, order) in [
5435+ ("TOP-10 WINDOWS BY ours/ref RATIO", {
5436+ let mut v: Vec<usize> = (0..nwin)
5437+ .filter(|&w| wins[w].1 >= 1e-6 * max_share)
5438+ .collect();
5439+ v.sort_by(|&a, &b| wins[b].3.total_cmp(&wins[a].3));
5440+ v
5441+ }),
5442+ ("TOP-10 WINDOWS BY ours ERROR SHARE", {
5443+ let mut v: Vec<usize> = (0..nwin).collect();
5444+ v.sort_by(|&a, &b| wins[b].1.total_cmp(&wins[a].1));
5445+ v
5446+ }),
5447+ ] {
5448+ out.push_str(&format!("\n== {label} ==\n"));
5449+ for w in order.into_iter().take(10) {
5450+ let (wo, wr, ratio) = (wins[w].1, wins[w].2, wins[w].3);
5451+ out.push_str(&format!(
5452+ "t={:5.0}s: ours {:.3e} ({:4.1}% of ours) ref {:.3e} ({:4.1}% of ref) ratio {:.1}\n",
5453+ w as f64,
5454+ wo,
5455+ 100.0 * wo / tot_o,
5456+ wr,
5457+ 100.0 * wr / tot_r,
5458+ ratio,
5459+ ));
5460+ // Worst hop in the window: flags from both encoders.
5461+ let (hw, he) = (w * HOPS_PER_WIN, (w + 1) * HOPS_PER_WIN);
5462+ let hb = hop_o[hw..he]
5463+ .iter()
5464+ .enumerate()
5465+ .max_by(|a, b| a.1.total_cmp(b.1))
5466+ .map(|(i, v)| (hw + i, *v))
5467+ .unwrap();
5468+ let mid = hb.0 * HOP + 240; // centre sample of the hop
5469+ let fi = mid / FRAME;
5470+ out.push_str(&format!(
5471+ " worst hop {:.1} ms (frame {fi}) ours_ef2 {:.3e}\n",
5472+ hb.0 as f64 * 2.5,
5473+ hb.1
5474+ ));
5475+ if let Some(f) = ours_fd.get(fi) {
5476+ out.push_str(&format!(" OUR {}/{}: {}\n", fi, f.sample, fmt_fd(f)));
5477+ }
5478+ if let Some(f) = ref_at(mid) {
5479+ out.push_str(&format!(" REF @{}: {}\n", f.sample, fmt_fd(f)));
5480+ }
5481+ if let (Some(o), Some(r)) = (ours_fd.get(fi), ref_at(mid)) {
5482+ let d0: Vec<String> = (0..ec_opus::celt::NB_BANDS)
5483+ .map(|b| format!("{:+5.1}", o.dec.old_band_e[b] - r.dec.old_band_e[b]))
5484+ .collect();
5485+ let d1: Vec<String> = (0..ec_opus::celt::NB_BANDS)
5486+ .map(|b| {
5487+ format!(
5488+ "{:+5.1}",
5489+ o.dec.old_band_e[ec_opus::celt::NB_BANDS + b]
5490+ - r.dec.old_band_e[ec_opus::celt::NB_BANDS + b]
5491+ )
5492+ })
5493+ .collect();
5494+ out.push_str(&format!(" Δlog2E L {}\n R {}\n", d0.join(" "), d1.join(" ")));
5495+ }
5496+ }
5497+ }
5498+
5499+ // The single worst ours window, frame by frame: where do decisions diverge.
5500+ let worst = (0..nwin).max_by(|&a, &b| wins[a].1.total_cmp(&wins[b].1)).unwrap();
5501+ out.push_str(&format!(
5502+ "\n== WORST WINDOW t={}..{}s, ALL FRAMES (OUR | REF) ==\n",
5503+ worst,
5504+ worst + 1
5505+ ));
5506+ for fi in worst * 50..(worst + 1) * 50 {
5507+ let our = ours_fd.get(fi).map(&fmt_fd).unwrap_or_else(|| "-".into());
5508+ let rf = ref_at(fi * FRAME + 480).map(&fmt_fd).unwrap_or_else(|| "-".into());
5509+ out.push_str(&format!("f{fi}: OUR {our}\n REF {rf}\n"));
5510+ }
5511+
5512+ fs::write(&out_path, &out).unwrap();
5513+ let _ = fs::remove_file(&scratch);
5514+ println!("wrote {}", out_path.display());
5515+}
lanes/opus-her-r1.map.txtadded+229 -0
@@ -0,0 +1,229 @@
1+# her@96k error map: ref 101.5 ours 101.0 kbps, err o=1.093 r=1.039 ratio 1.052, 119 s windows
2+# window time = first hop of the 1 s bucket; ratio = ours/ref window ef² sum
3+# ratio table de-noised: windows with ours share < 1e-6·max excluded
4+
5+== TOP-10 WINDOWS BY ours/ref RATIO ==
6+t= 0s: ours 2.829e0 ( 0.0% of ours) ref 9.296e-13 ( 0.0% of ref) ratio 3043617299726.8
7+ worst hop 95.0 ms (frame 5) ours_ef2 2.829e0
8+ OUR 5/4800: trans1 intra1 trim7 int19 cb20 dual0 | tf_sum -1 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits2848 | ENC sb8 vbr12528
9+ REF @4800: trans1 intra1 trim4 int19 cb21 dual0 | tf_sum -13 tf8 [1, 1, 1, 1, -1, -1, -1, -1] sp2 ac0 bits3496
10+ Δlog2E L +1.4 +1.0 +0.2 -0.5 -1.9 +0.4 +0.2 +1.1 +0.1 +0.4 -0.3 +0.2 +0.0 +0.0 +1.4 +1.6 +1.1 +0.6 +0.5 +0.2 +0.1
11+ R +1.2 +1.0 -0.2 +0.4 +0.9 +0.8 +0.1 +0.5 -0.0 +0.0 -0.1 +0.4 +0.0 +0.0 +1.0 +1.2 +1.2 +0.5 +0.4 +0.2 +0.2
12+t= 88s: ours 1.851e5 (93.0% of ours) ref 5.256e-2 ( 0.0% of ref) ratio 3520788.0
13+ worst hop 88277.5 ms (frame 4414) ours_ef2 1.798e5
14+ OUR 4414/4237440: trans1 intra1 trim4 int19 cb20 dual0 | tf_sum +12 tf8 [0, 0, 0, 0, 3, 3, 3, 3] sp2 ac0 bits2016 | ENC sb8 vbr16128
15+ REF @4237440: trans1 intra0 trim3 int19 cb21 dual1 | tf_sum -11 tf8 [1, 1, 1, 1, 1, -1, -1, -1] sp2 ac0 bits3536
16+ Δlog2E L +0.2 +0.5 -1.1 -0.6 -0.1 +0.3 -0.3 +0.8 -0.1 +0.7 +0.1 +0.1 +1.0 +0.7 +0.1 +0.9 +0.4 +0.9 +0.8 +1.4 +2.2
17+ R +0.2 +0.0 +0.1 -0.4 +0.1 +0.0 -0.0 +0.4 +2.1 +0.8 +0.5 +1.1 +0.7 +1.1 +1.2 +1.5 +0.5 +1.2 +1.1 +1.2 +1.1
18+t= 76s: ours 3.869e3 ( 1.9% of ours) ref 5.330e-3 ( 0.0% of ref) ratio 725916.4
19+ worst hop 76252.5 ms (frame 3812) ours_ef2 3.869e3
20+ OUR 3812/3659520: trans1 intra1 trim6 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac1 bits2120 | ENC sb8 vbr16160
21+ REF @3659520: trans1 intra0 trim6 int19 cb20 dual0 | tf_sum +15 tf8 [3, 3, 3, 3, 3, 0, 0, 0] sp2 ac1 bits2544
22+ Δlog2E L +0.9 +3.0 +1.0 -0.0 -0.1 -0.5 +0.0 -0.7 -0.1 +0.1 +0.1 -0.4 -0.1 +0.1 +0.8 -0.2 +0.4 +0.2 +0.3 +0.4 +0.5
23+ R +1.0 +0.7 +0.5 -0.0 +0.2 -0.5 +0.4 -0.2 -0.2 -0.2 +0.4 +0.1 +0.4 -0.0 +0.1 +0.0 +0.6 +0.1 +0.5 +0.6 -0.1
24+t= 83s: ours 4.209e3 ( 2.1% of ours) ref 3.216e-1 ( 0.0% of ref) ratio 13087.8
25+ worst hop 83152.5 ms (frame 4157) ours_ef2 4.206e3
26+ OUR 4157/3990720: trans1 intra1 trim5 int19 cb20 dual1 | tf_sum -1 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2496 | ENC sb8 vbr15856
27+ REF @3990720: trans1 intra0 trim4 int19 cb21 dual0 | tf_sum -1 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2624
28+ Δlog2E L +0.3 -0.1 -1.1 +0.3 +0.2 +0.5 +0.4 +0.3 +0.1 +0.2 -0.5 -0.4 -0.3 -0.6 -0.2 -0.0 -0.2 -0.2 -0.1 -0.3 +0.4
29+ R +0.8 -1.0 -0.5 +0.6 -0.1 -0.1 -0.2 -0.3 +0.7 -0.7 -0.5 +0.1 +0.4 +0.0 +0.2 -0.2 -0.6 -0.1 -0.0 -0.0 -0.2
30+t= 89s: ours 3.397e2 ( 0.2% of ours) ref 7.799e-2 ( 0.0% of ref) ratio 4355.7
31+ worst hop 89685.0 ms (frame 4484) ours_ef2 2.448e2
32+ OUR 4484/4304640: trans1 intra1 trim5 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits2024 | ENC sb8 vbr16160
33+ REF @4304640: trans1 intra0 trim4 int19 cb21 dual1 | tf_sum -1 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits3760
34+ Δlog2E L +0.0 +0.2 -0.0 -0.1 +0.2 -0.1 +0.7 +0.7 +2.2 +2.8 +1.3 +2.0 +1.3 +2.7 +2.6 +2.2 +1.8 +2.8 +2.6 +2.6 +1.5
35+ R +0.2 -0.3 +0.3 -0.1 +0.1 +0.1 +2.0 +0.7 +1.2 +1.6 +1.6 +0.9 +0.6 +0.6 +0.4 +1.1 +0.9 +1.0 +0.6 +0.7 -0.3
36+t= 80s: ours 2.138e3 ( 1.1% of ours) ref 4.332e1 ( 0.0% of ref) ratio 49.4
37+ worst hop 80957.5 ms (frame 4048) ours_ef2 2.135e3
38+ OUR 4048/3886080: trans1 intra1 trim4 int19 cb20 dual1 | tf_sum +15 tf8 [3, 3, 3, 3, 3, 0, 0, 0] sp2 ac1 bits2024 | ENC sb8 vbr16160
39+ REF @3886080: trans1 intra0 trim2 int19 cb21 dual1 | tf_sum +6 tf8 [3, 3, 0, 0, 0, 0, 0, 0] sp2 ac1 bits3792
40+ Δlog2E L +0.0 -0.4 -0.6 -0.5 -0.2 -0.4 +1.2 -0.3 +0.2 +0.6 +1.9 -0.0 +0.7 +0.4 +0.5 +0.9 +1.2 +0.8 +0.7 +0.6 +0.9
41+ R -0.1 +0.0 +0.3 -0.5 -0.0 -0.4 -0.1 -0.2 +0.4 +0.3 +0.4 +0.1 +0.5 +0.4 +0.3 +0.9 +0.1 +0.1 +0.5 +0.3 +0.3
42+t= 60s: ours 3.594e0 ( 0.0% of ours) ref 1.033e-1 ( 0.0% of ref) ratio 34.8
43+ worst hop 60280.0 ms (frame 3014) ours_ef2 2.316e0
44+ OUR 3014/2893440: trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -36 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1984 | ENC sb0 vbr-64448
45+ REF @2893440: trans0 intra0 trim5 int19 cb20 dual0 | tf_sum -16 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1784
46+ Δlog2E L -0.2 +0.4 +0.0 -0.4 +0.5 -0.4 -0.7 -0.3 +0.1 -0.0 -0.7 +0.3 +0.1 +0.9 +0.2 -0.0 +0.1 +0.2 -0.0 +0.2 +0.3
47+ R -1.0 +0.1 +0.3 -0.1 -0.1 +0.2 -0.1 -0.0 +0.1 -0.2 +0.0 -0.1 +0.1 +0.2 +0.3 +0.1 +0.1 +0.2 +0.1 -0.0 -0.1
48+t= 66s: ours 1.463e1 ( 0.0% of ours) ref 4.368e-1 ( 0.0% of ref) ratio 33.5
49+ worst hop 66315.0 ms (frame 3316) ours_ef2 7.755e0
50+ OUR 3316/3183360: trans1 intra0 trim4 int19 cb20 dual0 | tf_sum +21 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2024 | ENC sb8 vbr16160
51+ REF @3183360: trans1 intra0 trim2 int19 cb21 dual0 | tf_sum +36 tf8 [3, 3, 3, 3, 3, 3, 3, 3] sp2 ac0 bits3160
52+ Δlog2E L +0.5 +0.3 -0.2 -0.0 -0.8 +0.1 +0.4 -0.7 -0.2 -0.1 -0.0 +0.6 +0.5 +0.6 +0.9 +0.8 +0.0 +0.1 -0.1 +0.0 +0.2
53+ R +0.5 +0.4 -0.2 -0.1 -0.4 +0.3 -1.5 +0.2 -0.5 +0.1 +0.3 -0.2 +0.1 -0.2 -0.2 +0.8 +0.4 +0.8 +0.6 +0.7 +0.4
54+t= 90s: ours 2.848e3 ( 1.4% of ours) ref 1.078e2 ( 0.1% of ref) ratio 26.4
55+ worst hop 90825.0 ms (frame 4541) ours_ef2 1.771e3
56+ OUR 4541/4359360: trans1 intra1 trim5 int19 cb20 dual0 | tf_sum -11 tf8 [1, 1, 1, 1, 1, -1, -1, -1] sp2 ac0 bits2024 | ENC sb8 vbr16176
57+ REF @4359360: trans1 intra0 trim3 int19 cb21 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits3000
58+ Δlog2E L +0.8 +0.8 +0.6 -0.2 +0.0 +2.0 +0.2 +0.6 +0.4 -0.0 -0.3 -0.1 +0.0 -0.2 +0.6 +0.1 +0.2 +0.0 +0.8 +0.5 +2.6
59+ R +0.9 +0.3 -0.1 +1.3 +0.1 +1.3 +0.7 +0.7 +0.6 +0.4 +0.8 -0.3 +0.4 -0.1 +0.8 +0.1 +0.4 +0.2 +0.3 +0.2 +0.6
60+t= 82s: ours 3.432e-1 ( 0.0% of ours) ref 1.571e-2 ( 0.0% of ref) ratio 21.8
61+ worst hop 82917.5 ms (frame 4146) ours_ef2 1.871e-1
62+ OUR 4146/3980160: trans1 intra1 trim4 int19 cb20 dual0 | tf_sum +11 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits2016 | ENC sb8 vbr16128
63+ REF @3980160: trans1 intra0 trim2 int19 cb21 dual1 | tf_sum +21 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits3200
64+ Δlog2E L +0.4 +0.2 +0.3 -0.2 -0.5 -0.4 +1.0 -0.1 +0.4 +0.3 +0.2 -0.2 +0.1 +0.1 +0.2 +0.3 +0.3 +0.3 +0.5 +0.4 +0.2
65+ R +0.5 -0.2 -0.2 +0.3 +0.5 -0.5 +0.7 +0.4 +0.3 +0.7 +0.2 +1.4 +0.0 +0.4 +0.5 +0.5 +0.9 +0.8 +0.6 +0.6 +0.8
66+
67+== TOP-10 WINDOWS BY ours ERROR SHARE ==
68+t= 88s: ours 1.851e5 (93.0% of ours) ref 5.256e-2 ( 0.0% of ref) ratio 3520788.0
69+ worst hop 88277.5 ms (frame 4414) ours_ef2 1.798e5
70+ OUR 4414/4237440: trans1 intra1 trim4 int19 cb20 dual0 | tf_sum +12 tf8 [0, 0, 0, 0, 3, 3, 3, 3] sp2 ac0 bits2016 | ENC sb8 vbr16128
71+ REF @4237440: trans1 intra0 trim3 int19 cb21 dual1 | tf_sum -11 tf8 [1, 1, 1, 1, 1, -1, -1, -1] sp2 ac0 bits3536
72+ Δlog2E L +0.2 +0.5 -1.1 -0.6 -0.1 +0.3 -0.3 +0.8 -0.1 +0.7 +0.1 +0.1 +1.0 +0.7 +0.1 +0.9 +0.4 +0.9 +0.8 +1.4 +2.2
73+ R +0.2 +0.0 +0.1 -0.4 +0.1 +0.0 -0.0 +0.4 +2.1 +0.8 +0.5 +1.1 +0.7 +1.1 +1.2 +1.5 +0.5 +1.2 +1.1 +1.2 +1.1
74+t= 83s: ours 4.209e3 ( 2.1% of ours) ref 3.216e-1 ( 0.0% of ref) ratio 13087.8
75+ worst hop 83152.5 ms (frame 4157) ours_ef2 4.206e3
76+ OUR 4157/3990720: trans1 intra1 trim5 int19 cb20 dual1 | tf_sum -1 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2496 | ENC sb8 vbr15856
77+ REF @3990720: trans1 intra0 trim4 int19 cb21 dual0 | tf_sum -1 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2624
78+ Δlog2E L +0.3 -0.1 -1.1 +0.3 +0.2 +0.5 +0.4 +0.3 +0.1 +0.2 -0.5 -0.4 -0.3 -0.6 -0.2 -0.0 -0.2 -0.2 -0.1 -0.3 +0.4
79+ R +0.8 -1.0 -0.5 +0.6 -0.1 -0.1 -0.2 -0.3 +0.7 -0.7 -0.5 +0.1 +0.4 +0.0 +0.2 -0.2 -0.6 -0.1 -0.0 -0.0 -0.2
80+t= 76s: ours 3.869e3 ( 1.9% of ours) ref 5.330e-3 ( 0.0% of ref) ratio 725916.4
81+ worst hop 76252.5 ms (frame 3812) ours_ef2 3.869e3
82+ OUR 3812/3659520: trans1 intra1 trim6 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac1 bits2120 | ENC sb8 vbr16160
83+ REF @3659520: trans1 intra0 trim6 int19 cb20 dual0 | tf_sum +15 tf8 [3, 3, 3, 3, 3, 0, 0, 0] sp2 ac1 bits2544
84+ Δlog2E L +0.9 +3.0 +1.0 -0.0 -0.1 -0.5 +0.0 -0.7 -0.1 +0.1 +0.1 -0.4 -0.1 +0.1 +0.8 -0.2 +0.4 +0.2 +0.3 +0.4 +0.5
85+ R +1.0 +0.7 +0.5 -0.0 +0.2 -0.5 +0.4 -0.2 -0.2 -0.2 +0.4 +0.1 +0.4 -0.0 +0.1 +0.0 +0.6 +0.1 +0.5 +0.6 -0.1
86+t= 90s: ours 2.848e3 ( 1.4% of ours) ref 1.078e2 ( 0.1% of ref) ratio 26.4
87+ worst hop 90825.0 ms (frame 4541) ours_ef2 1.771e3
88+ OUR 4541/4359360: trans1 intra1 trim5 int19 cb20 dual0 | tf_sum -11 tf8 [1, 1, 1, 1, 1, -1, -1, -1] sp2 ac0 bits2024 | ENC sb8 vbr16176
89+ REF @4359360: trans1 intra0 trim3 int19 cb21 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits3000
90+ Δlog2E L +0.8 +0.8 +0.6 -0.2 +0.0 +2.0 +0.2 +0.6 +0.4 -0.0 -0.3 -0.1 +0.0 -0.2 +0.6 +0.1 +0.2 +0.0 +0.8 +0.5 +2.6
91+ R +0.9 +0.3 -0.1 +1.3 +0.1 +1.3 +0.7 +0.7 +0.6 +0.4 +0.8 -0.3 +0.4 -0.1 +0.8 +0.1 +0.4 +0.2 +0.3 +0.2 +0.6
92+t= 80s: ours 2.138e3 ( 1.1% of ours) ref 4.332e1 ( 0.0% of ref) ratio 49.4
93+ worst hop 80957.5 ms (frame 4048) ours_ef2 2.135e3
94+ OUR 4048/3886080: trans1 intra1 trim4 int19 cb20 dual1 | tf_sum +15 tf8 [3, 3, 3, 3, 3, 0, 0, 0] sp2 ac1 bits2024 | ENC sb8 vbr16160
95+ REF @3886080: trans1 intra0 trim2 int19 cb21 dual1 | tf_sum +6 tf8 [3, 3, 0, 0, 0, 0, 0, 0] sp2 ac1 bits3792
96+ Δlog2E L +0.0 -0.4 -0.6 -0.5 -0.2 -0.4 +1.2 -0.3 +0.2 +0.6 +1.9 -0.0 +0.7 +0.4 +0.5 +0.9 +1.2 +0.8 +0.7 +0.6 +0.9
97+ R -0.1 +0.0 +0.3 -0.5 -0.0 -0.4 -0.1 -0.2 +0.4 +0.3 +0.4 +0.1 +0.5 +0.4 +0.3 +0.9 +0.1 +0.1 +0.5 +0.3 +0.3
98+t= 87s: ours 3.778e2 ( 0.2% of ours) ref 2.406e3 ( 2.7% of ref) ratio 0.2
99+ worst hop 87352.5 ms (frame 4367) ours_ef2 1.490e2
100+ OUR 4367/4192320: trans1 intra0 trim5 int19 cb21 dual1 | tf_sum +18 tf8 [3, 3, 3, 3, 3, 3, 0, 0] sp2 ac1 bits3112 | ENC sb8 vbr15760
101+ REF @4192320: trans1 intra0 trim4 int19 cb21 dual1 | tf_sum +12 tf8 [3, 3, 3, 3, 0, 0, 0, 0] sp2 ac1 bits3344
102+ Δlog2E L +1.2 +0.2 +0.3 +0.2 +0.2 -1.6 -1.0 -0.3 -0.6 -0.9 -0.5 +0.5 +0.8 -0.2 -0.0 +0.5 -0.6 +0.0 -0.6 -0.0 +0.4
103+ R +0.9 +0.7 +0.4 +0.2 -0.2 -0.5 -0.1 -0.3 +0.9 +1.5 +1.0 +2.6 +2.1 +1.5 +0.5 +1.6 +0.4 +1.9 +1.8 +0.7 +0.3
104+t= 89s: ours 3.397e2 ( 0.2% of ours) ref 7.799e-2 ( 0.0% of ref) ratio 4355.7
105+ worst hop 89685.0 ms (frame 4484) ours_ef2 2.448e2
106+ OUR 4484/4304640: trans1 intra1 trim5 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits2024 | ENC sb8 vbr16160
107+ REF @4304640: trans1 intra0 trim4 int19 cb21 dual1 | tf_sum -1 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits3760
108+ Δlog2E L +0.0 +0.2 -0.0 -0.1 +0.2 -0.1 +0.7 +0.7 +2.2 +2.8 +1.3 +2.0 +1.3 +2.7 +2.6 +2.2 +1.8 +2.8 +2.6 +2.6 +1.5
109+ R +0.2 -0.3 +0.3 -0.1 +0.1 +0.1 +2.0 +0.7 +1.2 +1.6 +1.6 +0.9 +0.6 +0.6 +0.4 +1.1 +0.9 +1.0 +0.6 +0.7 -0.3
110+t= 81s: ours 1.321e2 ( 0.1% of ours) ref 2.777e4 (31.3% of ref) ratio 0.0
111+ worst hop 81937.5 ms (frame 4097) ours_ef2 1.003e2
112+ OUR 4097/3933120: trans1 intra1 trim4 int19 cb20 dual1 | tf_sum +6 tf8 [3, 3, 0, 0, 0, 0, 0, 0] sp2 ac0 bits2024 | ENC sb8 vbr16176
113+ REF @3933120: trans1 intra0 trim2 int19 cb21 dual1 | tf_sum -9 tf8 [1, 1, 1, 1, 1, 1, -1, -1] sp2 ac0 bits3704
114+ Δlog2E L +0.8 -0.2 +0.5 +0.2 +0.1 +0.5 -1.6 +0.0 +0.6 -0.0 +0.8 +0.5 +0.1 +0.2 +0.3 +0.1 +0.5 +0.0 +0.2 +0.2 +0.3
115+ R +0.3 -0.0 +0.4 +0.4 +1.1 -0.1 +0.6 -0.0 -0.4 +0.0 -0.1 +0.3 -0.1 -0.0 -0.1 -0.1 +0.1 +0.2 +0.3 +0.3 -0.2
116+t= 92s: ours 3.088e1 ( 0.0% of ours) ref 1.436e1 ( 0.0% of ref) ratio 2.2
117+ worst hop 92500.0 ms (frame 4625) ours_ef2 2.543e1
118+ OUR 4625/4440000: trans1 intra0 trim4 int19 cb20 dual1 | tf_sum +21 tf8 [3, 3, 3, 3, 3, 3, 3, 0] sp2 ac1 bits2440 | ENC sb8 vbr6064
119+ REF @4440000: trans1 intra0 trim3 int19 cb20 dual1 | tf_sum +57 tf8 [3, 3, 3, 3, 3, 3, 3, 3] sp2 ac1 bits2448
120+ Δlog2E L -0.7 +1.3 +0.1 -0.4 +0.1 +0.4 +0.2 +1.1 -0.0 -0.9 +0.0 +0.3 +0.1 +0.1 +0.1 +0.3 -0.2 +0.1 +0.1 +0.2 +0.7
121+ R -0.6 -0.0 +0.3 -0.3 +0.4 +1.2 +0.9 +0.4 +0.2 -0.5 +0.4 -0.4 +0.5 +0.1 +0.5 +0.2 +0.1 +0.6 +0.3 +0.3 +0.2
122+t= 93s: ours 2.976e1 ( 0.0% of ours) ref 1.068e1 ( 0.0% of ref) ratio 2.8
123+ worst hop 93817.5 ms (frame 4691) ours_ef2 2.609e1
124+ OUR 4691/4503360: trans1 intra1 trim4 int19 cb20 dual1 | tf_sum +24 tf8 [3, 3, 3, 3, 3, 3, 3, 3] sp2 ac1 bits2448 | ENC sb8 vbr12048
125+ REF @4503360: trans1 intra0 trim2 int19 cb21 dual1 | tf_sum +12 tf8 [3, 3, 3, 3, 0, 0, 0, 0] sp2 ac1 bits2888
126+ Δlog2E L -0.2 +0.4 +0.3 +0.4 +0.1 +0.3 -0.2 +0.1 +0.2 -0.4 -0.2 +0.1 +0.0 +0.2 +0.6 +0.5 +0.3 +0.7 +0.1 +0.1 -0.6
127+ R +1.4 -0.8 +0.3 -0.5 -0.5 +0.2 -0.4 -0.0 +0.4 +0.0 +0.4 +0.3 +0.0 +0.2 -0.1 -0.1 +0.2 +0.2 +0.2 +0.2 -0.4
128+
129+== WORST WINDOW t=88..89s, ALL FRAMES (OUR | REF) ==
130+f4400: OUR trans0 intra0 trim5 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1840 | ENC sb0 vbr7776
131+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -22 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1720
132+f4401: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1832 | ENC sb0 vbr6256
133+ REF trans0 intra0 trim5 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1808
134+f4402: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1832 | ENC sb0 vbr4736
135+ REF trans0 intra0 trim5 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1768
136+f4403: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -12 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1832 | ENC sb0 vbr3216
137+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -12 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1760
138+f4404: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -38 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1840 | ENC sb0 vbr1760
139+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1744
140+f4405: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1824 | ENC sb0 vbr176
141+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1736
142+f4406: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -26 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1880 | ENC sb0 vbr-960
143+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -30 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1768
144+f4407: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -14 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1872 | ENC sb0 vbr-2160
145+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -32 tf8 [0, 0, 0, 0, 0, -2, -2, -2] sp2 ac0 bits1704
146+f4408: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1864 | ENC sb0 vbr-3424
147+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -30 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1696
148+f4409: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -20 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1880 | ENC sb0 vbr-4560
149+ REF trans0 intra0 trim3 int19 cb20 dual0 | tf_sum -22 tf8 [0, 0, 0, 0, -2, -2, -2, -2] sp2 ac0 bits1688
150+f4410: OUR trans1 intra0 trim5 int19 cb20 dual1 | tf_sum +9 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2464 | ENC sb8 vbr-1024
151+ REF trans1 intra0 trim4 int19 cb20 dual1 | tf_sum +11 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2528
152+f4411: OUR trans1 intra0 trim4 int19 cb21 dual0 | tf_sum +21 tf8 [3, 3, 3, 3, 3, 3, 3, 0] sp2 ac1 bits2680 | ENC sb8 vbr4240
153+ REF trans1 intra0 trim3 int19 cb21 dual1 | tf_sum +13 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits3376
154+f4412: OUR trans1 intra0 trim5 int19 cb21 dual1 | tf_sum -3 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits3024 | ENC sb8 vbr12256
155+ REF trans1 intra0 trim3 int19 cb21 dual1 | tf_sum +21 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits3520
156+f4413: OUR trans1 intra1 trim6 int19 cb20 dual1 | tf_sum +21 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits2512 | ENC sb8 vbr16176
157+ REF trans1 intra0 trim4 int19 cb21 dual1 | tf_sum +9 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits3304
158+f4414: OUR trans1 intra1 trim4 int19 cb20 dual0 | tf_sum +12 tf8 [0, 0, 0, 0, 3, 3, 3, 3] sp2 ac0 bits2016 | ENC sb8 vbr16128
159+ REF trans1 intra0 trim3 int19 cb21 dual1 | tf_sum -11 tf8 [1, 1, 1, 1, 1, -1, -1, -1] sp2 ac0 bits3536
160+f4415: OUR trans1 intra1 trim3 int19 cb20 dual1 | tf_sum +18 tf8 [0, 0, 3, 3, 3, 3, 3, 3] sp2 ac0 bits2024 | ENC sb8 vbr16144
161+ REF trans1 intra0 trim2 int19 cb21 dual0 | tf_sum -5 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac0 bits3112
162+f4416: OUR trans0 intra1 trim3 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1856 | ENC sb0 vbr14816
163+ REF trans0 intra0 trim3 int19 cb20 dual0 | tf_sum -20 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1736
164+f4417: OUR trans0 intra1 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1840 | ENC sb0 vbr13360
165+ REF trans0 intra0 trim3 int19 cb20 dual1 | tf_sum -10 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1712
166+f4418: OUR trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -10 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1872 | ENC sb0 vbr12160
167+ REF trans0 intra0 trim3 int19 cb20 dual1 | tf_sum -8 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1776
168+f4419: OUR trans1 intra0 trim3 int19 cb21 dual0 | tf_sum +21 tf8 [0, 0, 0, 0, 3, 3, 3, 3] sp2 ac1 bits2512 | ENC sb8 vbr16080
169+ REF trans1 intra0 trim1 int19 cb21 dual0 | tf_sum +9 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits3008
170+f4420: OUR trans0 intra1 trim4 int19 cb20 dual0 | tf_sum -18 tf8 [0, 0, 0, 0, 0, 0, -2, -2] sp2 ac0 bits1872 | ENC sb0 vbr14880
171+ REF trans0 intra0 trim3 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1680
172+f4421: OUR trans0 intra1 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1856 | ENC sb0 vbr13552
173+ REF trans0 intra0 trim3 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1736
174+f4422: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -32 tf8 [0, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1840 | ENC sb0 vbr12096
175+ REF trans0 intra0 trim3 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1760
176+f4423: OUR trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1840 | ENC sb0 vbr10640
177+ REF trans0 intra0 trim3 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1904
178+f4424: OUR trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -24 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1856 | ENC sb0 vbr9312
179+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1816
180+f4425: OUR trans0 intra0 trim5 int19 cb20 dual0 | tf_sum -18 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1856 | ENC sb0 vbr7984
181+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1856
182+f4426: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -32 tf8 [0, 0, 0, 0, 0, -2, -2, -2] sp2 ac0 bits1832 | ENC sb0 vbr6464
183+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -32 tf8 [0, 0, 0, 0, 0, -2, -2, -2] sp2 ac0 bits1792
184+f4427: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1816 | ENC sb0 vbr4816
185+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -36 tf8 [0, 0, 0, -2, -2, -2, -2, -2] sp2 ac0 bits1768
186+f4428: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -32 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1840 | ENC sb0 vbr3360
187+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -42 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1728
188+f4429: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -14 tf8 [0, 0, 0, -2, -2, -2, -2, -2] sp2 ac0 bits1824 | ENC sb0 vbr1776
189+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1688
190+f4430: OUR trans0 intra0 trim5 int19 cb20 dual0 | tf_sum -38 tf8 [0, 0, -2, -2, -2, -2, -2, -2] sp2 ac0 bits2112 | ENC sb0 vbr2496
191+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -36 tf8 [0, 0, 0, -2, -2, -2, -2, -2] sp2 ac0 bits1656
192+f4431: OUR trans1 intra0 trim6 int19 cb20 dual0 | tf_sum +21 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2784 | ENC sb8 vbr8592
193+ REF trans1 intra0 trim4 int19 cb21 dual0 | tf_sum -5 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2608
194+f4432: OUR trans1 intra1 trim6 int19 cb21 dual1 | tf_sum -3 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2968 | ENC sb8 vbr16160
195+ REF trans1 intra0 trim4 int19 cb21 dual1 | tf_sum +21 tf8 [3, 3, 3, 3, 3, 3, 3, 0] sp2 ac1 bits3392
196+f4433: OUR trans1 intra0 trim5 int19 cb20 dual0 | tf_sum +24 tf8 [3, 3, 3, 3, 3, 3, 3, 3] sp2 ac0 bits2024 | ENC sb8 vbr16176
197+ REF trans1 intra0 trim4 int19 cb21 dual0 | tf_sum +27 tf8 [3, 3, 3, 3, 3, 3, 3, 3] sp2 ac0 bits2856
198+f4434: OUR trans0 intra1 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1856 | ENC sb0 vbr14848
199+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1840
200+f4435: OUR trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1832 | ENC sb0 vbr13328
201+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -20 tf8 [0, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1840
202+f4436: OUR trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1808 | ENC sb0 vbr11616
203+ REF trans0 intra0 trim3 int19 cb20 dual1 | tf_sum -22 tf8 [0, 0, 0, 0, 0, 0, 0, -2] sp2 ac0 bits1744
204+f4437: OUR trans0 intra0 trim4 int19 cb20 dual1 | tf_sum -22 tf8 [0, 0, 0, -2, -2, -2, -2, -2] sp2 ac0 bits1856 | ENC sb0 vbr10288
205+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1744
206+f4438: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1848 | ENC sb0 vbr8896
207+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1816
208+f4439: OUR trans1 intra0 trim5 int19 cb20 dual1 | tf_sum +9 tf8 [3, 3, 3, 0, 0, 0, 0, 0] sp2 ac1 bits2688 | ENC sb8 vbr14224
209+ REF trans1 intra0 trim3 int19 cb21 dual1 | tf_sum +15 tf8 [0, 0, 0, 0, 0, 0, 0, 3] sp2 ac1 bits2864
210+f4440: OUR trans1 intra0 trim6 int19 cb20 dual1 | tf_sum +24 tf8 [3, 3, 3, 3, 3, 3, 3, 3] sp2 ac1 bits2264 | ENC sb8 vbr16160
211+ REF trans1 intra0 trim4 int19 cb21 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac1 bits3688
212+f4441: OUR trans0 intra1 trim6 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1848 | ENC sb0 vbr14768
213+ REF trans0 intra0 trim7 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1800
214+f4442: OUR trans1 intra1 trim5 int19 cb20 dual0 | tf_sum -5 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2192 | ENC sb8 vbr16128
215+ REF trans1 intra0 trim6 int19 cb21 dual1 | tf_sum +15 tf8 [3, 3, 3, 3, 3, 0, 0, 0] sp2 ac1 bits3088
216+f4443: OUR trans1 intra1 trim4 int19 cb20 dual0 | tf_sum -5 tf8 [1, 1, 1, 1, 1, 1, 1, 1] sp2 ac1 bits2024 | ENC sb8 vbr16144
217+ REF trans1 intra0 trim3 int19 cb21 dual1 | tf_sum +12 tf8 [3, 3, 3, 3, 0, 0, 0, 0] sp2 ac1 bits3160
218+f4444: OUR trans0 intra1 trim4 int19 cb20 dual0 | tf_sum -42 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1872 | ENC sb0 vbr14944
219+ REF trans0 intra0 trim3 int19 cb20 dual0 | tf_sum -12 tf8 [0, 0, 0, 0, 0, 0, 0, -2] sp2 ac0 bits1760
220+f4445: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1848 | ENC sb0 vbr13552
221+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum -32 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1888
222+f4446: OUR trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1848 | ENC sb0 vbr12160
223+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1816
224+f4447: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -16 tf8 [0, 0, 0, 0, 0, 0, -2, -2] sp2 ac0 bits1848 | ENC sb0 vbr10768
225+ REF trans0 intra0 trim4 int19 cb20 dual0 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1840
226+f4448: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -42 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1848 | ENC sb0 vbr9376
227+ REF trans0 intra0 trim4 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1904
228+f4449: OUR trans0 intra0 trim5 int19 cb20 dual1 | tf_sum -20 tf8 [-2, -2, -2, -2, -2, -2, -2, -2] sp2 ac0 bits1824 | ENC sb0 vbr7792
229+ REF trans0 intra0 trim5 int19 cb20 dual1 | tf_sum +0 tf8 [0, 0, 0, 0, 0, 0, 0, 0] sp2 ac0 bits1856
lanes/opus-her-r1.report.mdadded+71 -0
@@ -0,0 +1,71 @@
1+# opus-her r1 — her@96k opus_compare error map
2+
3+**Verdict: no fix. The charter's premise (her@96 err_ratio 10.126, target < 5) is
4+superseded — `706596b` (lane-opus-64, transient_analysis port) already took her@96
5+from 10.1 → 1.05 and her@64 from 4.65 → 1.10.** This lane delivers the requested
6+error map (`lanes/opus-her-r1.map.txt`, test `her_err_map_96k`) and the certified
7+current 14-row baseline. No `src` change: the gate target is met and a change would
8+be tuning a passing row.
9+
10+## What the map is
11+
12+`her_err_map_96k` (`#[ignore]`, `crates/ec-opus/tests/conformance.rs`, 30 s): the
13+gate's exact encode path for both encoders (ffmpeg libopus ref → realised ref_kbps
14+→ ours CVBR at that rate), `opus_compare_err_parts` per-2.5 ms-hop ef² bucketed
15+into 1 s windows. Prints top-10 windows by ours/ref ratio and by ours share, with
16+our encoder flags, both encoders' coded decisions (ref packets decoded with our
17+decoder, the reell-r2 method), per-band Δlog2E on the worst hop, and all 50 frames of
18+the worst window. `HER_KBPS` overrides the rate.
19+
20+## Map findings (her@96, ref 101.5 / ours 101.0 kbps, err_ratio 1.052)
21+
22+- 93 % of our remaining error sits in **t=88 s**, the track's biggest attack burst.
23+ Ref's error there is 0.005 % of its total (window ratio 3.5 M).
24+- Frame dump f4410–f4415 (transient burst): both encoders agree on trans/sb8/ac1.
25+ Divergence: **ours fires intra coarse-energy 3 frames running (f4413–15) where
26+ libopus stays inter**, and **underspends the burst 2016–3024 bits/frame vs ref's
27+ 3112–3536 with the reservoir pegged (~16100)**. `delayed_intra` (celt_enc.rs:708)
28+ is the libopus heuristic; once rate loops diverge it fires differently.
29+- Startup window t=0 s: intra1 both (first frame), ref spends 3496 vs our 2848
30+ bits, ref codes cb21/dual on the transient — startup transient underspend, same
31+ shape as reell-r2's tf_res finding, now small (0.0 % of total error).
32+- Other windows (t=76 s, t=83 s, t=89 s): flag-level agreement, ±1 alloc_trim,
33+ Δlog2E ≤ 3 dB on isolated bands — normal two-encoder divergence, no mechanism.
34+
35+## Named residual (candidate for a future lane, not this one)
36+
37+`deferred: transient-burst VBR underspend + spurious delayed-intra at attacks
38+(t=88 s evidence above)` — would chase the last 1.05 → ~1.0. Gate is green at
39+1.052; wrong to tune a passing row.
40+
41+## Gates (this lane's certification, no `src` change so no regression risk)
42+
43+- `cargo test -p ec-opus --release` — **34 + 27 passed, 0 failed** (14 ignored as
44+ designed).
45+- 14-row gate `encoder_library_gate_vs_libopus -- --ignored` — **RATE within ±5 %,
46+ DROPOUT passed**, all rows:
47+
48+| row | ref/ours kbps | corr o / r | err_ratio |
49+|---|---|---|---|
50+| nik@64k | 69.2 / 69.1 | .9887 / .9864 | 0.708 |
51+| nik@96k | 101.0 / 100.9 | .9947 / .9940 | 0.982 |
52+| reelo@64k | 63.6 / 63.6 | .9893 / .9866 | 1.510 |
53+| reelo@96k | 93.9 / 93.4 | .9947 / .9937 | 0.940 |
54+| her@64k | 67.9 / 67.7 | .9834 / .9794 | **1.102** |
55+| her@96k | 101.5 / 101.0 | .9914 / .9902 | **1.052** |
56+| reell@64k | 71.3 / 71.3 | .9908 / .9880 | 2.697 |
57+| reell@96k | 105.4 / 105.3 | .9956 / .9948 | **4.499 (new worst)** |
58+| reelm@64k | 63.3 / 63.1 | .9866 / .9859 | 0.623 |
59+| reelm@96k | 84.8 / 84.7 | .9935 / .9920 | 0.660 |
60+| dl8a@64k | 65.8 / 65.7 | .9889 / .9865 | 0.551 |
61+| dl8a@96k | 96.8 / 96.5 | .9942 / .9934 | 0.374 |
62+| hein@64k | 64.9 / 64.8 | .9888 / .9874 | 0.855 |
63+| hein@96k | 86.9 / 86.8 | .9946 / .9930 | 0.528 |
64+
65+Worst row is now **reell@96 at 4.499** — the next gate lane's premise.
66+
67+## Files
68+
69+- `crates/ec-opus/tests/conformance.rs` — `her_err_map_96k` (commit 233d47e).
70+- `lanes/opus-her-r1.map.txt` — the map (commit 233d47e).
71+- `lanes/` gate artifacts restored via `git checkout --` after the runs.