From b6d1cd3f1730677ecb1b68c51fe03e797c457d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 23 Aug 2026 06:04:03 +0300 Subject: [PATCH] opus: VBR target shaping with activity cut and credit banking (celt) The reelm@64k dropout second was reservoir arithmetic: quiet frames spent the flat rate at reservoir 0, the following transient run went into debt, and the two loudest frames starved at 135 B vs libopus 252 B. Port libopus compute_vbr shaping: activity cut below .4 (peak band level proxy, no tonality analysis), tot_boost and tf terms, floor-depth and 2x caps; release reservoir debt at most 8 B/frame and floor the reservoir at -8x rate so quiet runs bank credit for attacks. 14-row library gate: 0 dropout rows, rate -1.1%..0%, 12/14 corr >= ref, worst change her@64 -0.0002. --- crates/ec-opus/src/celt_enc.rs | 117 +++++++++++- crates/ec-opus/tests/conformance.rs | 1 + lanes/opus-drop-r1.second.txt | 276 ++++++++++++++++++++++++++++ lanes/opus-drop-r2.reelm.txt | 5 + lanes/opus-drop-r2.report.md | 49 +++++ lanes/opus-drop-r2.sweep.txt | 17 ++ lanes/opus-gate-r1.sweep.txt | 20 +- 7 files changed, 461 insertions(+), 24 deletions(-) create mode 100644 lanes/opus-drop-r1.second.txt create mode 100644 lanes/opus-drop-r2.reelm.txt create mode 100644 lanes/opus-drop-r2.report.md create mode 100644 lanes/opus-drop-r2.sweep.txt diff --git a/crates/ec-opus/src/celt_enc.rs b/crates/ec-opus/src/celt_enc.rs index b7cfd7f3..c289fd67 100644 --- a/crates/ec-opus/src/celt_enc.rs +++ b/crates/ec-opus/src/celt_enc.rs @@ -275,7 +275,7 @@ struct EncBand { /// Per-frame encoder diagnostics for the dropout investigation. Captured at /// the end of [`CeltEncoder::encode`]; read via [`CeltEncoder::last_diag`]. -#[derive(Clone, Debug, Default)] +#[derive(Clone, Debug)] pub struct CeltFrameDiag { /// Transient flag as coded into the bitstream. pub is_transient: bool, @@ -309,6 +309,28 @@ pub struct CeltFrameDiag { pub fine_quant: [i32; NB_BANDS], } +impl Default for CeltFrameDiag { + fn default() -> Self { + Self { + is_transient: false, + short_blocks: 0, + intra: false, + silence: false, + lm: 0, + start: 0, + coded_bands: 0, + intensity: 0, + dual_stereo: false, + alloc_trim: 0, + vbr_reservoir: 0, + nb_compressed: 0, + band_log_e: [0.0; 2 * NB_BANDS], + pulses: [0; NB_BANDS], + fine_quant: [0; NB_BANDS], + } + } +} + /// A CELT-layer encoder for one elementary Opus stream (mono or stereo). /// CELT itself always runs at 48 kHz; slower input is zero-stuffed up to it. #[derive(Clone, Debug)] @@ -698,15 +720,86 @@ impl CeltEncoder { // --- Constrained VBR ------------------------------------------------ if vbr_rate > 0 { let lm_diff = 3 - lm as i32; - let mut target = + let base_target = vbr_rate + (self.vbr_offset >> lm_diff) - ((40 * c as i32 + 20) << BITRES); - // tf_sum is zero with tf analysis disabled, so only the transient - // boost of the reference's ladder applies. + let mut target = base_target; + // compute_vbr shaping (libopus celt_encoder.c:1605-1716), minus the + // terms that need tonality/tf analysis this encoder does not run. + let coded_bands = end - 1; + let intensity_est = if c == 2 { + // Same thresholds as the stereo section below (16 at 64k stereo). + let effective_rate = 2 * (((8 * effective_bytes - 80) >> lm) as i32) / 5; + let i = if effective_rate < 35 { + 8usize + } else if effective_rate < 50 { + 12 + } else if effective_rate < 68 { + 16 + } else if effective_rate < 84 { + 18 + } else if effective_rate < 102 { + 19 + } else if effective_rate < 130 { + 20 + } else { + 100 + }; + i.clamp(start, coded_bands) + } else { + 0 + }; + let coded_bins = + (E_BANDS[coded_bands] + if c == 2 { E_BANDS[intensity_est] } else { 0 }) << lm; + // Activity cut. libopus reads activity from tonality analysis; the + // peak-band level (dB, both channels) is a monotone stand-in: + // silence maps to ~0 (max cut), music to ~1 (no cut). + let mut peak = f32::NEG_INFINITY; + for ch in 0..c { + for i in start..end { + let lvl = self.band_log_e[i + ch * NB_BANDS] + E_MEANS[i]; + if lvl > peak { + peak = lvl; + } + } + } + let activity = ((peak * 3.0103 - 5.0) / 20.0).clamp(0.0, 1.0); + if activity < 0.4 { + target -= (coded_bins as f32 * 8.0 * (0.4 - activity)) as i32; + } + // dynalloc boost minus its calibration average. + target += total_boost - (19 << lm); + // tf boost: transient frames take the fixed 7/4 stand-in; steady + // frames take the tf-bias at the music-average estimate 0.05 + // (libopus: 2*(tf_estimate-0.044)*target). if short_blocks != 0 { target = 7 * target / 4; - } else if m > 1 { - target -= (target + 14) / 28; + } else { + target += (0.012 * target as f32) as i32; + } + // Spectral-floor cap (libopus floor_depth): binds only when every + // band sits close to the coding noise floor. + { + let bins = E_BANDS[NB_BANDS - 2] << lm; + let mut max_depth = -31.9f32 / 3.0103; + for ch in 0..c { + for i in start..end { + let noise_floor = LOG_N[i] as f32 / 385.3 + + 0.166 + - 4.983 + - E_MEANS[i] / 48.2 + + 0.00206 * (i + 5) as f32 * (i + 5) as f32; + let depth = self.band_log_e[i + ch * NB_BANDS] + E_MEANS[i] - noise_floor; + if depth > max_depth { + max_depth = depth; + } + } + } + let floor_depth = ((c * bins) as f32 * 3.0103 * 8.0 * max_depth) as i32; + let floor_depth = floor_depth.max(target >> 2); + target = target.min(floor_depth); } + // Never more than double the base rate. + target = target.min(2 * base_target); target += tell_frac; let min_allowed = ((tell_frac + total_boost + (1 << (BITRES + 3)) - 1) >> (BITRES + 3)) + 2; @@ -716,7 +809,6 @@ impl CeltEncoder { let mut delta = target - vbr_rate; target = nb_avail << (BITRES + 3); if silence { - nb_avail = 2; delta = 0; } let alpha = if self.vbr_count < 970 { @@ -731,12 +823,19 @@ impl CeltEncoder { - self.vbr_offset as f32 - self.vbr_drift as f32)) as i32; self.vbr_offset = -self.vbr_drift; + // Bound banked credit at eight frames' worth of rate. + self.vbr_reservoir = self.vbr_reservoir.max(-8 * vbr_rate); if self.vbr_reservoir < 0 { - let adjust = (-self.vbr_reservoir) / (8 << BITRES); + // Release banked credit slowly (8 bytes per frame) so it stays + // available for transient boosts; libopus CVBR re-adds all of + // it to the next frame, which would defeat banking entirely. + let adjust = ((-self.vbr_reservoir) / (8 << BITRES)).min(8); if !silence { nb_avail += adjust; + self.vbr_reservoir += adjust << (BITRES + 3); + } else { + self.vbr_reservoir = 0; } - self.vbr_reservoir = 0; } let shrunk = (nb_compressed as i32).min(nb_avail).max(2) as usize; if shrunk < nb_compressed { diff --git a/crates/ec-opus/tests/conformance.rs b/crates/ec-opus/tests/conformance.rs index ae56eb2b..8eaa1bf5 100644 --- a/crates/ec-opus/tests/conformance.rs +++ b/crates/ec-opus/tests/conformance.rs @@ -3011,3 +3011,4 @@ fn encoder_library_gate_vs_libopus() { ); println!("DROPOUT GATE: passed (no ours-only dropouts)"); } + diff --git a/lanes/opus-drop-r1.second.txt b/lanes/opus-drop-r1.second.txt new file mode 100644 index 00000000..c8fdd3de --- /dev/null +++ b/lanes/opus-drop-r1.second.txt @@ -0,0 +1,276 @@ +# reelm@64k dropout second — ref_kbps 63.3, ours frames 6000, ref packets 6001 +# sec corr_ours corr_ref +0 0.9856 0.9853 +1 0.9880 0.9949 +2 0.9951 0.9975 +3 0.9962 0.9977 +4 0.9950 0.9974 +5 0.9969 0.9967 +6 0.9617 0.9772 +7 0.9958 0.9976 +8 0.9768 0.9897 +9 0.9856 0.9900 +10 0.9787 0.9841 +11 0.9905 0.9923 +12 0.9943 0.9966 +13 0.9918 0.9933 +14 0.9980 0.9991 +15 0.9667 0.9756 +16 0.9522 0.9662 +17 0.9619 0.9750 +18 0.9736 0.9700 +19 0.9813 0.9938 +20 0.9714 0.9955 +21 0.9929 0.9963 +22 0.9940 0.9974 +23 0.9766 0.9881 +24 0.9928 0.9959 +25 0.9794 0.9871 +26 0.9746 0.9873 +27 0.9961 0.9984 +28 0.9563 0.9735 +29 0.9747 0.9879 +30 0.9688 0.9864 +31 0.9631 0.9692 +32 0.9273 0.9667 +33 0.9634 0.9778 +34 0.9928 0.9968 +35 0.9549 0.9862 +36 0.9449 0.9555 +37 0.9620 0.9766 +38 0.9801 0.9905 +39 0.9960 0.9976 +40 0.9625 0.9717 +41 0.9949 0.9969 +42 0.9947 0.9981 +43 0.9678 0.9719 +44 0.9872 0.9961 +45 0.9957 0.9983 +46 0.9902 0.9939 +47 0.9854 0.9902 +48 0.9518 0.9560 +49 0.9759 0.9762 +50 0.9967 0.9976 +51 0.9927 0.9968 +52 0.9703 0.9776 +53 0.8987 0.9172 +54 0.9799 0.9818 +55 0.9937 0.9978 +56 0.9850 0.9916 +57 0.9856 0.9928 +58 0.9908 0.9940 +59 0.9612 0.9482 +60 0.9841 0.9853 +61 0.9820 0.9827 +62 0.9970 0.9986 +63 0.9955 0.9978 +64 0.9802 0.9912 +65 0.9897 0.9927 +66 0.9950 0.9966 +67 0.9848 0.9957 +68 0.9835 0.9874 +69 0.9898 0.9940 +70 0.9953 0.9976 +71 0.9917 0.9943 +72 0.9924 0.9939 +73 0.9947 0.9978 +74 0.9916 0.9935 +75 0.9901 0.9941 +76 0.9762 0.9798 +77 0.9957 0.9972 +78 0.9908 0.9963 +79 0.9608 0.9814 +80 0.9810 0.9866 +81 0.9935 0.9969 +82 0.9722 0.9792 +83 0.9770 0.9733 +84 0.9855 0.9910 +85 0.9614 0.9772 +86 0.9912 0.9966 +87 0.9687 0.9840 +88 0.9465 0.9776 +89 0.9856 0.9921 +90 0.9975 0.9992 +91 0.9958 0.9982 +92 0.9770 0.9859 +93 0.9515 0.9100 +94 0.9820 0.9868 +95 0.9572 0.9555 +96 0.9547 0.9755 +97 0.9929 0.9951 +98 0.9788 0.9875 +99 0.9721 0.9830 +100 0.9642 0.9655 +101 0.9778 0.9857 +102 0.9647 0.9753 +103 0.9725 0.9832 +104 0.9449 0.9585 +105 0.9945 0.9968 +106 0.9892 0.9943 +107 0.9917 0.9951 +108 0.9895 0.9953 +109 0.9925 0.9935 +110 0.9615 0.9770 +111 0.9415 0.9494 +112 0.9956 0.9977 +113 0.9944 0.9950 +114 0.9966 0.9976 +115 0.9430 0.9639 +116 0.9650 0.9646 +117 0.9457 0.9739 +118 0.9871 0.9890 +119 0.9939 0.9956 +# failing seconds (ours < 0.9): [53] + +# second 53 frames: idx t_ms ours_B ref_B tr short intra sil lm start bands int dual trim reservoir rms_o0 rms_o1 rms_r0 rms_r1 +2650 53000 231 228 1 8 1 0 3 0 20 16 0 0 9572 0.0447 0.0447 0.0414 0.0414 +2651 53020 136 209 0 0 1 0 3 0 20 16 0 0 8150 0.0648 0.0648 0.0627 0.0627 +2652 53040 138 137 0 0 1 0 3 0 20 16 0 0 6856 0.0877 0.0877 0.0926 0.0926 +2653 53060 131 137 0 0 0 0 3 0 20 16 0 0 5114 0.0703 0.0703 0.0660 0.0660 +2654 53080 128 131 0 0 0 0 3 0 20 16 0 0 3180 0.0552 0.0552 0.0566 0.0566 +2655 53100 131 123 0 0 0 0 3 0 20 16 0 0 1438 0.0655 0.0655 0.0653 0.0653 +2656 53120 135 139 0 0 0 0 3 0 20 16 0 0 0 0.0814 0.0814 0.0835 0.0835 +2657 53140 158 138 0 0 0 0 3 0 20 16 0 0 0 0.0672 0.0672 0.0706 0.0706 +2658 53160 158 127 0 0 0 0 3 0 20 16 0 0 0 0.0612 0.0612 0.0595 0.0595 +2659 53180 225 236 1 8 0 0 3 0 20 16 0 0 4274 0.0238 0.0238 0.0249 0.0249 +2660 53200 128 120 0 0 0 0 3 0 20 16 0 0 2340 0.0012 0.0012 0.0012 0.0012 +2661 53220 131 102 0 0 1 0 3 0 20 16 0 0 598 0.0006 0.0006 0.0006 0.0006 +2662 53240 148 77 0 0 1 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0002 0.0002 +2663 53260 230 249 1 8 0 0 3 0 20 16 0 0 4594 0.0050 0.0050 0.0049 0.0049 +2664 53280 227 237 1 8 1 0 3 0 20 16 0 0 8996 0.0023 0.0023 0.0023 0.0023 +2665 53300 127 82 0 0 0 0 3 0 20 16 0 0 6998 0.0006 0.0006 0.0004 0.0004 +2666 53320 129 77 0 0 1 0 3 0 20 16 0 0 5128 0.0003 0.0003 0.0003 0.0003 +2667 53340 126 81 0 0 0 0 3 0 20 16 0 0 3066 0.0003 0.0003 0.0003 0.0003 +2668 53360 127 84 0 0 0 0 3 0 20 16 0 0 1068 0.0003 0.0003 0.0003 0.0003 +2669 53380 141 76 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2670 53400 158 159 0 0 0 0 3 0 20 16 0 0 0 0.0004 0.0004 0.0005 0.0005 +2671 53420 158 82 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2672 53440 158 122 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2673 53460 158 84 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2674 53480 158 79 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2675 53500 158 83 0 0 0 0 3 0 20 16 0 0 0 0.0002 0.0002 0.0002 0.0002 +2676 53520 158 80 0 0 0 0 3 0 20 16 0 0 0 0.0002 0.0002 0.0002 0.0002 +2677 53540 158 81 0 0 0 0 3 0 20 16 0 0 0 0.0002 0.0002 0.0002 0.0002 +2678 53560 158 87 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0002 0.0002 +2679 53580 158 85 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2680 53600 158 80 0 0 0 0 3 0 20 16 0 0 0 0.0002 0.0002 0.0002 0.0002 +2681 53620 158 81 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2682 53640 158 82 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2683 53660 158 80 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2684 53680 158 86 0 0 0 0 3 0 20 16 0 0 0 0.0003 0.0003 0.0003 0.0003 +2685 53700 223 197 1 8 0 0 3 0 20 16 0 0 4146 0.0005 0.0005 0.0003 0.0003 +2686 53720 230 252 1 8 1 0 3 0 20 16 0 0 8740 0.0081 0.0081 0.0082 0.0082 +2687 53740 178 233 1 8 1 0 3 0 20 16 0 0 10006 0.0051 0.0051 0.0050 0.0050 +2688 53760 159 121 1 8 0 0 3 0 20 16 0 0 10056 0.0004 0.0004 0.0004 0.0004 +2689 53780 131 128 0 0 1 0 3 0 20 16 0 0 8314 0.0004 0.0004 0.0004 0.0004 +2690 53800 129 69 0 0 1 0 3 0 20 16 0 0 6444 0.0003 0.0003 0.0003 0.0003 +2691 53820 214 254 1 8 0 0 3 0 20 16 0 0 10014 0.0063 0.0063 0.0050 0.0050 +2692 53840 136 252 0 0 1 0 3 0 20 16 0 0 8592 0.0472 0.0472 0.0449 0.0449 +2693 53860 135 159 0 0 1 0 3 0 20 16 0 0 7106 0.0660 0.0660 0.0651 0.0651 +2694 53880 132 145 0 0 0 0 3 0 20 16 0 0 5428 0.0697 0.0697 0.0660 0.0660 +2695 53900 131 148 0 0 0 0 3 0 20 16 0 0 3686 0.0727 0.0727 0.0779 0.0779 +2696 53920 129 145 0 0 0 0 3 0 20 16 0 0 1816 0.0700 0.0700 0.0695 0.0695 +2697 53940 132 143 0 0 0 0 3 0 20 16 0 0 138 0.0622 0.0622 0.0617 0.0617 +2698 53960 156 193 0 0 0 0 3 0 20 16 0 0 0 0.0319 0.0319 0.0318 0.0318 +2699 53980 158 197 0 0 1 0 3 0 20 16 0 1 0 0.0425 0.0425 0.0421 0.0421 +# second 53 band_log_e (log2 minus E_MEANS) and pulses per band, bands 0..21, ch0|ch1 +frame 2650 e: +2.80|+2.80 +0.84|+0.84 +2.69|+2.69 +0.40|+0.40 +0.67|+0.67 +0.31|+0.31 -0.15|-0.15 -0.14|-0.14 +1.43|+1.43 +1.20|+1.20 +1.78|+1.78 +2.89|+2.89 +3.49|+3.49 +5.96|+5.96 +5.18|+5.18 +5.02|+5.02 +4.16|+4.16 +3.84|+3.84 +3.07|+3.07 +2.41|+2.41 -1.45|-1.45 +frame 2650 p: 288 276 344 256 236 228 236 228 432 416 400 384 753 769 673 985 935 1194 1671 1938 0 +frame 2651 e: -1.19|-1.19 -2.14|-2.14 -1.44|-1.44 -3.60|-3.60 -3.33|-3.33 -2.85|-2.85 -1.63|-1.63 -1.97|-1.97 -2.25|-2.25 -0.80|-0.80 -0.57|-0.57 +1.32|+1.32 +1.58|+1.58 +3.98|+3.98 +5.21|+5.21 +5.49|+5.49 +5.89|+5.89 +5.70|+5.70 +3.69|+3.69 +3.61|+3.61 -0.40|-0.40 +frame 2651 p: 230 218 238 198 170 162 154 146 268 266 250 234 437 389 357 504 456 555 688 936 0 +frame 2652 e: -2.00|-2.00 -3.16|-3.16 -2.42|-2.42 -3.28|-3.28 -4.01|-4.01 -2.73|-2.73 -2.61|-2.61 -2.09|-2.09 -1.73|-1.73 -0.77|-0.77 -0.78|-0.78 -0.69|-0.69 +0.87|+0.87 +3.48|+3.48 +4.92|+4.92 +5.49|+5.49 +6.12|+6.12 +7.04|+7.04 +5.13|+5.13 +4.35|+4.35 -2.48|-2.48 +frame 2652 p: 224 212 200 192 164 156 148 140 273 257 241 225 419 371 339 476 424 622 621 1173 0 +frame 2653 e: -2.89|-2.89 -4.02|-4.02 -2.20|-2.20 -3.61|-3.61 -3.91|-3.91 -2.88|-2.88 -1.98|-1.98 -1.57|-1.57 -1.43|-1.43 -1.11|-1.11 -0.18|-0.18 +0.36|+0.36 +0.97|+0.97 +2.94|+2.94 +4.63|+4.63 +5.05|+5.05 +5.83|+5.83 +6.66|+6.66 +5.09|+5.09 +4.42|+4.42 -0.39|-0.39 +frame 2653 p: 224 212 232 192 164 156 148 140 272 256 240 224 416 366 332 466 418 617 613 1168 0 +frame 2654 e: -3.40|-3.40 -3.72|-3.72 -2.65|-2.65 -3.16|-3.16 -2.52|-2.52 -2.15|-2.15 -1.85|-1.85 -2.21|-2.21 -1.32|-1.32 -0.79|-0.79 -0.40|-0.40 +0.04|+0.04 +0.81|+0.81 +2.81|+2.81 +4.43|+4.43 +4.91|+4.91 +5.84|+5.84 +6.22|+6.22 +5.09|+5.09 +4.13|+4.13 -0.34|-0.34 +frame 2654 p: 230 218 206 198 170 162 154 146 268 268 252 236 441 393 361 506 456 555 688 936 0 +frame 2655 e: -3.95|-3.95 -4.97|-4.97 -3.42|-3.42 -4.20|-4.20 -2.94|-2.94 -2.28|-2.28 -2.61|-2.61 -1.29|-1.29 -1.53|-1.53 -1.05|-1.05 -0.55|-0.55 +0.03|+0.03 +0.85|+0.85 +2.66|+2.66 +4.26|+4.26 +5.54|+5.54 +6.06|+6.06 +6.24|+6.24 +5.20|+5.20 +4.59|+4.59 +0.04|+0.04 +frame 2655 p: 229 217 237 197 169 161 153 145 267 267 251 235 439 391 359 503 452 550 681 930 0 +frame 2656 e: -2.62|-2.62 -4.84|-4.84 -3.81|-3.81 -2.97|-2.97 -2.54|-2.54 -3.35|-3.35 -1.18|-1.18 -1.95|-1.95 -1.40|-1.40 -1.22|-1.22 -0.64|-0.64 +0.14|+0.14 +0.41|+0.41 +2.66|+2.66 +4.10|+4.10 +5.40|+5.40 +6.83|+6.83 +6.34|+6.34 +5.20|+5.20 +4.59|+4.59 +0.36|+0.36 +frame 2656 p: 232 220 208 200 172 164 204 148 273 273 255 239 447 399 367 519 471 575 718 958 0 +frame 2657 e: -3.36|-3.36 -4.25|-4.25 -3.43|-3.43 -3.84|-3.84 -3.47|-3.47 -2.99|-2.99 -2.80|-2.80 -1.24|-1.24 -1.66|-1.66 -0.79|-0.79 -0.91|-0.91 -0.25|-0.25 +0.13|+0.13 +2.44|+2.44 +3.30|+3.30 +5.85|+5.85 +6.21|+6.21 +6.05|+6.05 +5.03|+5.03 +4.52|+4.52 +0.62|+0.62 +frame 2657 p: 235 223 227 219 194 186 178 170 316 300 284 268 536 488 456 732 601 729 973 1150 0 +frame 2658 e: -3.14|-3.14 -3.78|-3.78 -3.44|-3.44 -3.58|-3.58 -3.31|-3.31 -3.01|-3.01 -2.76|-2.76 -2.05|-2.05 -2.24|-2.24 -1.72|-1.72 -0.85|-0.85 -0.83|-0.83 +0.88|+0.88 +3.01|+3.01 +4.48|+4.48 +5.88|+5.88 +5.84|+5.84 +5.89|+5.89 +4.79|+4.79 +3.82|+3.82 +0.61|+0.61 +frame 2658 p: 238 226 230 222 197 189 181 173 323 307 291 275 551 503 471 659 627 760 1018 1183 0 +frame 2659 e: -1.08|-1.08 -2.63|-2.63 -2.91|-2.91 -4.17|-4.17 -3.39|-3.39 -3.56|-3.56 -2.02|-2.02 -1.63|-1.63 -1.51|-1.51 -0.27|-0.27 +0.60|+0.60 +1.11|+1.11 +2.38|+2.38 +3.90|+3.90 +5.61|+5.61 +6.62|+6.62 +5.20|+5.20 +5.10|+5.10 +4.01|+4.01 +3.59|+3.59 +0.62|+0.62 +frame 2659 p: 289 277 265 257 237 229 237 229 435 419 403 387 758 710 678 1089 945 1205 1686 1961 0 +frame 2660 e: -4.44|-4.44 -5.14|-5.14 -5.65|-5.65 -6.02|-6.02 -6.53|-6.53 -7.20|-7.20 -6.16|-6.16 -5.60|-5.60 -4.86|-4.86 -5.05|-5.05 -4.99|-4.99 -4.50|-4.50 -3.77|-3.77 -1.94|-1.94 -0.60|-0.60 -0.25|-0.25 -0.09|-0.09 -0.25|-0.25 -1.62|-1.62 -2.69|-2.69 -4.92|-4.92 +frame 2660 p: 234 222 210 202 174 166 158 150 277 277 261 245 459 411 378 530 482 590 741 687 0 +frame 2661 e: -4.44|-4.44 -5.73|-5.73 -6.82|-6.82 -6.89|-6.89 -7.28|-7.28 -7.20|-7.20 -6.33|-6.33 -6.90|-6.90 -6.05|-6.05 -6.61|-6.61 -6.23|-6.23 -5.88|-5.88 -5.71|-5.71 -4.75|-4.75 -2.62|-2.62 -2.13|-2.13 -2.65|-2.65 -2.56|-2.56 -4.18|-4.18 -4.58|-4.58 -5.45|-5.45 +frame 2661 p: 235 223 211 203 175 167 159 151 278 278 262 246 461 413 379 534 486 595 748 693 0 +frame 2662 e: -6.42|-6.42 -7.01|-7.01 -7.84|-7.84 -7.35|-7.35 -7.36|-7.36 -7.47|-7.47 -8.53|-8.53 -7.75|-7.75 -6.97|-6.97 -6.77|-6.77 -6.44|-6.44 -6.46|-6.46 -6.20|-6.20 -6.06|-6.06 -4.70|-4.70 -4.35|-4.35 -4.35|-4.35 -4.25|-4.25 -5.10|-5.10 -5.67|-5.67 -5.55|-5.55 +frame 2662 p: 234 238 226 218 192 184 176 168 313 297 281 279 527 479 447 639 591 719 958 850 0 +frame 2663 e: -3.40|-3.40 -3.64|-3.64 -2.50|-2.50 -2.72|-2.72 -3.51|-3.51 -2.51|-2.51 -1.06|-1.06 -1.60|-1.60 -1.34|-1.34 -0.28|-0.28 +0.42|+0.42 +2.06|+2.06 +2.59|+2.59 +2.77|+2.77 +2.50|+2.50 +2.08|+2.08 +1.59|+1.59 +1.32|+1.32 +0.79|+0.79 +0.89|+0.89 -2.53|-2.53 +frame 2663 p: 290 278 266 258 238 230 238 230 437 421 405 389 763 715 683 1000 952 1220 1701 1983 0 +frame 2664 e: -2.41|-2.41 -2.90|-2.90 -4.03|-4.03 -3.25|-3.25 -3.62|-3.62 -4.00|-4.00 -4.32|-4.32 -3.22|-3.22 -1.28|-1.28 -0.51|-0.51 +0.42|+0.42 +0.78|+0.78 +1.74|+1.74 +1.80|+1.80 +0.55|+0.55 +0.80|+0.80 +0.28|+0.28 -0.01|-0.01 +0.14|+0.14 -0.39|-0.39 -3.78|-3.78 +frame 2664 p: 290 278 266 258 238 230 238 230 435 419 403 387 759 711 679 994 946 1214 1701 1983 0 +frame 2665 e: -4.68|-4.68 -6.24|-6.24 -7.99|-7.99 -7.01|-7.01 -6.24|-6.24 -6.54|-6.54 -6.97|-6.97 -7.29|-7.29 -6.32|-6.32 -5.62|-5.62 -5.55|-5.55 -4.54|-4.54 -4.38|-4.38 -3.84|-3.84 -4.65|-4.65 -4.82|-4.82 -4.70|-4.70 -5.17|-5.17 -4.83|-4.83 -4.91|-4.91 -5.47|-5.47 +frame 2665 p: 235 223 211 203 175 167 159 151 278 278 261 244 457 409 377 534 486 595 748 693 0 +frame 2666 e: -5.48|-5.48 -7.11|-7.11 -7.36|-7.36 -7.50|-7.50 -7.38|-7.38 -7.58|-7.58 -7.22|-7.22 -7.80|-7.80 -7.17|-7.17 -6.72|-6.72 -6.20|-6.20 -6.72|-6.72 -5.68|-5.68 -5.33|-5.33 -5.61|-5.61 -5.61|-5.61 -5.99|-5.99 -5.87|-5.87 -5.63|-5.63 -5.52|-5.52 -5.44|-5.44 +frame 2666 p: 235 223 211 203 175 167 159 151 276 276 260 244 457 409 377 534 486 595 748 693 0 +frame 2667 e: -5.40|-5.40 -7.37|-7.37 -7.83|-7.83 -7.25|-7.25 -7.43|-7.43 -7.63|-7.63 -7.92|-7.92 -7.57|-7.57 -7.41|-7.41 -6.53|-6.53 -6.56|-6.56 -6.75|-6.75 -6.38|-6.38 -6.47|-6.47 -6.07|-6.07 -6.17|-6.17 -5.93|-5.93 -5.89|-5.89 -5.54|-5.54 -5.57|-5.57 -5.46|-5.46 +frame 2667 p: 235 223 211 203 175 167 159 151 278 278 262 246 461 410 377 534 486 595 748 693 0 +frame 2668 e: -5.66|-5.66 -7.67|-7.67 -7.87|-7.87 -7.55|-7.55 -8.01|-8.01 -7.58|-7.58 -7.45|-7.45 -7.27|-7.27 -7.44|-7.44 -6.79|-6.79 -5.70|-5.70 -6.72|-6.72 -5.92|-5.92 -6.24|-6.24 -6.05|-6.05 -5.98|-5.98 -5.84|-5.84 -5.73|-5.73 -5.48|-5.48 -5.48|-5.48 -5.38|-5.38 +frame 2668 p: 234 222 210 202 174 166 158 150 276 276 292 244 456 405 372 526 478 585 733 682 0 +frame 2669 e: -5.62|-5.62 -6.67|-6.67 -7.58|-7.58 -8.10|-8.10 -7.48|-7.48 -7.59|-7.59 -7.40|-7.40 -7.24|-7.24 -6.97|-6.97 -6.72|-6.72 -6.52|-6.52 -6.68|-6.68 -6.24|-6.24 -5.44|-5.44 -5.82|-5.82 -6.16|-6.16 -5.89|-5.89 -5.75|-5.75 -5.99|-5.99 -6.03|-6.03 -5.35|-5.35 +frame 2669 p: 231 235 223 215 188 180 172 164 305 289 273 273 510 462 430 613 565 684 906 811 0 +frame 2670 e: -5.56|-5.56 -5.28|-5.28 -5.75|-5.75 -6.38|-6.38 -6.84|-6.84 -6.06|-6.06 -7.09|-7.09 -6.53|-6.53 -6.24|-6.24 -7.00|-7.00 -5.81|-5.81 -5.19|-5.19 -5.74|-5.74 -3.61|-3.61 -3.85|-3.85 -5.37|-5.37 -5.54|-5.54 -5.31|-5.31 -5.34|-5.34 -5.76|-5.76 -5.40|-5.40 +frame 2670 p: 241 229 233 225 201 193 185 177 330 314 298 282 560 576 480 672 640 784 1056 924 0 +frame 2671 e: -5.67|-5.67 -6.84|-6.84 -7.79|-7.79 -7.81|-7.81 -7.19|-7.19 -7.58|-7.58 -7.25|-7.25 -6.99|-6.99 -7.04|-7.04 -6.29|-6.29 -5.18|-5.18 -4.00|-4.00 -5.95|-5.95 -4.86|-4.86 -5.19|-5.19 -5.52|-5.52 -5.55|-5.55 -5.50|-5.50 -5.27|-5.27 -5.58|-5.58 -5.40|-5.40 +frame 2671 p: 241 229 233 225 201 193 185 177 329 313 297 329 562 514 482 675 643 789 1063 929 0 +frame 2672 e: -5.56|-5.56 -6.76|-6.76 -6.70|-6.70 -6.62|-6.62 -8.45|-8.45 -6.81|-6.81 -6.46|-6.46 -5.42|-5.42 -6.77|-6.77 -6.64|-6.64 -5.74|-5.74 -4.93|-4.93 -5.70|-5.70 -4.25|-4.25 -4.53|-4.53 -5.46|-5.46 -5.77|-5.77 -4.70|-4.70 -5.01|-5.01 -5.47|-5.47 -5.53|-5.53 +frame 2672 p: 240 228 232 224 200 192 184 224 328 312 296 280 561 513 480 668 636 779 1048 918 0 +frame 2673 e: -5.72|-5.72 -7.36|-7.36 -7.87|-7.87 -7.61|-7.61 -7.54|-7.54 -8.07|-8.07 -7.79|-7.79 -6.97|-6.97 -7.54|-7.54 -7.06|-7.06 -5.92|-5.92 -6.90|-6.90 -5.66|-5.66 -5.38|-5.38 -5.17|-5.17 -5.60|-5.60 -5.66|-5.66 -5.49|-5.49 -5.30|-5.30 -5.89|-5.89 -5.53|-5.53 +frame 2673 p: 242 230 234 226 202 194 186 178 333 317 349 285 571 523 491 689 657 799 1078 940 0 +frame 2674 e: -5.51|-5.51 -7.75|-7.75 -7.87|-7.87 -8.34|-8.34 -8.78|-8.78 -8.21|-8.21 -7.64|-7.64 -7.75|-7.75 -7.59|-7.59 -6.73|-6.73 -6.58|-6.58 -6.09|-6.09 -5.49|-5.49 -5.22|-5.22 -5.67|-5.67 -5.67|-5.67 -6.17|-6.17 -5.72|-5.72 -5.56|-5.56 -6.29|-6.29 -5.48|-5.48 +frame 2674 p: 243 231 235 227 204 196 188 180 336 320 304 288 576 528 496 696 660 809 1093 952 0 +frame 2675 e: -6.44|-6.44 -7.12|-7.12 -7.52|-7.52 -8.02|-8.02 -7.77|-7.77 -7.62|-7.62 -6.89|-6.89 -7.81|-7.81 -7.44|-7.44 -6.61|-6.61 -6.48|-6.48 -6.16|-6.16 -5.48|-5.48 -5.57|-5.57 -6.00|-6.00 -5.68|-5.68 -5.75|-5.75 -5.67|-5.67 -5.79|-5.79 -5.83|-5.83 -5.39|-5.39 +frame 2675 p: 243 231 235 227 202 194 186 178 333 317 301 285 570 522 490 687 655 804 1086 946 0 +frame 2676 e: -5.78|-5.78 -7.94|-7.94 -7.91|-7.91 -7.54|-7.54 -7.43|-7.43 -7.36|-7.36 -7.81|-7.81 -8.09|-8.09 -7.50|-7.50 -6.84|-6.84 -6.77|-6.77 -6.50|-6.50 -5.86|-5.86 -5.31|-5.31 -5.25|-5.25 -5.67|-5.67 -5.81|-5.81 -5.54|-5.54 -5.84|-5.84 -6.24|-6.24 -5.45|-5.45 +frame 2676 p: 243 231 235 227 203 195 187 179 333 317 301 285 570 522 490 687 655 804 1086 946 0 +frame 2677 e: -5.86|-5.86 -8.18|-8.18 -8.03|-8.03 -8.12|-8.12 -7.72|-7.72 -8.84|-8.84 -7.88|-7.88 -8.34|-8.34 -7.08|-7.08 -7.55|-7.55 -6.20|-6.20 -6.15|-6.15 -5.08|-5.08 -5.02|-5.02 -4.65|-4.65 -5.60|-5.60 -5.54|-5.54 -5.64|-5.64 -5.55|-5.55 -5.76|-5.76 -5.49|-5.49 +frame 2677 p: 243 231 235 227 204 196 188 180 336 320 304 288 576 528 496 696 648 809 1093 952 0 +frame 2678 e: -5.87|-5.87 -8.30|-8.30 -8.03|-8.03 -7.59|-7.59 -7.71|-7.71 -7.81|-7.81 -7.21|-7.21 -8.74|-8.74 -7.22|-7.22 -6.79|-6.79 -6.05|-6.05 -5.71|-5.71 -5.27|-5.27 -4.96|-4.96 -4.21|-4.21 -5.29|-5.29 -5.76|-5.76 -5.39|-5.39 -5.31|-5.31 -5.60|-5.60 -5.45|-5.45 +frame 2678 p: 241 229 233 225 201 193 233 177 331 315 299 283 562 514 482 675 643 789 1063 929 0 +frame 2679 e: -5.46|-5.46 -7.06|-7.06 -7.52|-7.52 -7.85|-7.85 -6.68|-6.68 -8.32|-8.32 -7.86|-7.86 -8.11|-8.11 -6.89|-6.89 -6.63|-6.63 -6.45|-6.45 -6.17|-6.17 -5.55|-5.55 -5.15|-5.15 -5.22|-5.22 -5.50|-5.50 -5.40|-5.40 -5.22|-5.22 -5.28|-5.28 -5.48|-5.48 -5.48|-5.48 +frame 2679 p: 242 230 234 226 234 194 186 178 333 317 301 285 568 519 487 683 651 799 1078 940 0 +frame 2680 e: -6.22|-6.22 -6.49|-6.49 -7.40|-7.40 -7.21|-7.21 -7.90|-7.90 -8.85|-8.85 -7.69|-7.69 -8.37|-8.37 -7.69|-7.69 -6.57|-6.57 -5.65|-5.65 -6.13|-6.13 -5.55|-5.55 -4.96|-4.96 -5.30|-5.30 -5.76|-5.76 -5.70|-5.70 -5.61|-5.61 -5.37|-5.37 -6.30|-6.30 -5.50|-5.50 +frame 2680 p: 243 231 235 227 204 196 188 180 336 320 304 286 572 524 492 690 658 809 1093 952 0 +frame 2681 e: -5.42|-5.42 -7.34|-7.34 -7.34|-7.34 -7.57|-7.57 -7.09|-7.09 -8.00|-8.00 -7.97|-7.97 -7.74|-7.74 -7.55|-7.55 -6.50|-6.50 -5.90|-5.90 -6.40|-6.40 -6.03|-6.03 -5.20|-5.20 -5.49|-5.49 -5.52|-5.52 -5.86|-5.86 -5.73|-5.73 -5.56|-5.56 -5.87|-5.87 -5.66|-5.66 +frame 2681 p: 244 232 235 227 203 195 187 179 335 319 303 287 575 527 495 694 662 814 1101 957 0 +frame 2682 e: -5.46|-5.46 -7.52|-7.52 -7.60|-7.60 -8.13|-8.13 -7.86|-7.86 -7.91|-7.91 -7.50|-7.50 -7.70|-7.70 -6.67|-6.67 -6.50|-6.50 -6.67|-6.67 -6.30|-6.30 -5.55|-5.55 -5.25|-5.25 -5.40|-5.40 -5.60|-5.60 -5.72|-5.72 -5.65|-5.65 -5.32|-5.32 -5.67|-5.67 -5.61|-5.61 +frame 2682 p: 244 232 236 228 204 196 188 180 337 321 305 289 579 531 498 694 662 814 1101 957 0 +frame 2683 e: -5.59|-5.59 -6.19|-6.19 -8.02|-8.02 -7.10|-7.10 -7.68|-7.68 -8.17|-8.17 -7.47|-7.47 -7.44|-7.44 -6.70|-6.70 -6.71|-6.71 -6.39|-6.39 -5.48|-5.48 -5.96|-5.96 -5.21|-5.21 -5.37|-5.37 -5.38|-5.38 -5.69|-5.69 -5.61|-5.61 -5.42|-5.42 -5.74|-5.74 -5.56|-5.56 +frame 2683 p: 243 231 235 227 203 195 187 179 335 319 303 287 574 526 494 693 655 804 1086 946 0 +frame 2684 e: -5.83|-5.83 -7.44|-7.44 -7.84|-7.84 -8.14|-8.14 -7.44|-7.44 -7.11|-7.11 -7.10|-7.10 -5.94|-5.94 -5.53|-5.53 -4.81|-4.81 -4.57|-4.57 -4.23|-4.23 -4.49|-4.49 -4.45|-4.45 -4.21|-4.21 -4.77|-4.77 -5.09|-5.09 -4.76|-4.76 -4.35|-4.35 -5.45|-5.45 -5.47|-5.47 +frame 2684 p: 243 231 235 227 203 195 187 179 335 319 303 287 572 522 490 687 655 804 1086 946 0 +frame 2685 e: -4.47|-4.47 -4.96|-4.96 -5.89|-5.89 -6.08|-6.08 -6.81|-6.81 -6.84|-6.84 -6.34|-6.34 -5.99|-5.99 -5.59|-5.59 -5.05|-5.05 -4.45|-4.45 -4.25|-4.25 -4.51|-4.51 -3.98|-3.98 -3.80|-3.80 -2.71|-2.71 -2.10|-2.10 -0.99|-0.99 -1.18|-1.18 -2.89|-2.89 -4.00|-4.00 +frame 2685 p: 294 282 270 262 242 234 226 234 445 429 413 397 776 726 694 1017 969 1244 1730 1763 0 +frame 2686 e: -4.42|-4.42 -4.11|-4.11 -5.73|-5.73 -6.04|-6.04 -4.72|-4.72 -3.31|-3.31 -2.75|-2.75 -2.28|-2.28 -1.23|-1.23 -0.95|-0.95 -0.67|-0.67 +1.53|+1.53 +0.80|+0.80 +2.19|+2.19 +3.51|+3.51 +3.67|+3.67 +3.59|+3.59 +3.96|+3.96 +4.67|+4.67 +4.05|+4.05 +0.09|+0.09 +frame 2686 p: 290 278 266 258 238 230 238 230 436 420 404 436 760 712 680 996 948 1215 1693 1972 0 +frame 2687 e: -2.01|-2.01 -3.53|-3.53 -3.75|-3.75 -3.51|-3.51 -3.71|-3.71 -3.52|-3.52 -1.26|-1.26 -0.97|-0.97 -0.94|-0.94 -0.61|-0.61 +0.03|+0.03 -0.02|-0.02 +0.47|+0.47 +1.37|+1.37 +3.23|+3.23 +3.56|+3.56 +2.52|+2.52 +3.58|+3.58 +4.26|+4.26 +2.60|+2.60 -2.44|-2.44 +frame 2687 p: 246 234 238 230 207 199 191 183 342 326 310 294 589 540 505 709 661 834 1323 1268 0 +frame 2688 e: -3.90|-3.90 -4.62|-4.62 -5.05|-5.05 -5.78|-5.78 -5.90|-5.90 -5.28|-5.28 -4.96|-4.96 -4.16|-4.16 -4.82|-4.82 -3.99|-3.99 -3.13|-3.13 -3.40|-3.40 -3.67|-3.67 -2.39|-2.39 -1.39|-1.39 -1.33|-1.33 -2.00|-2.00 -1.43|-1.43 -1.43|-1.43 -1.93|-1.93 -4.10|-4.10 +frame 2688 p: 244 232 236 228 204 196 188 180 337 321 305 289 579 531 499 700 651 814 1101 957 0 +frame 2689 e: -5.18|-5.18 -6.73|-6.73 -7.46|-7.46 -7.73|-7.73 -7.01|-7.01 -7.06|-7.06 -6.64|-6.64 -6.83|-6.83 -6.13|-6.13 -6.81|-6.81 -5.84|-5.84 -6.56|-6.56 -5.75|-5.75 -4.93|-4.93 -4.39|-4.39 -3.91|-3.91 -5.05|-5.05 -4.90|-4.90 -3.83|-3.83 -4.82|-4.82 -5.32|-5.32 +frame 2689 p: 232 220 208 200 172 164 156 148 272 271 254 238 445 397 365 515 467 570 903 665 0 +frame 2690 e: -5.42|-5.42 -7.48|-7.48 -7.63|-7.63 -7.68|-7.68 -7.39|-7.39 -7.27|-7.27 -7.81|-7.81 -7.68|-7.68 -6.84|-6.84 -6.42|-6.42 -6.07|-6.07 -5.75|-5.75 -6.17|-6.17 -6.45|-6.45 -5.79|-5.79 -5.53|-5.53 -5.62|-5.62 -5.49|-5.49 -5.12|-5.12 -5.30|-5.30 -5.50|-5.50 +frame 2690 p: 235 223 211 203 175 167 159 151 278 278 262 246 461 412 377 534 486 595 748 693 0 +frame 2691 e: -1.31|-1.31 -0.35|-0.35 -2.54|-2.54 -2.32|-2.32 -3.64|-3.64 -4.13|-4.13 -3.97|-3.97 -3.58|-3.58 -2.18|-2.18 -0.10|-0.10 +0.48|+0.48 +1.86|+1.86 +0.47|+0.47 +1.30|+1.30 +1.10|+1.10 +0.78|+0.78 +0.86|+0.86 -0.27|-0.27 -0.06|-0.06 +0.32|+0.32 -3.37|-3.37 +frame 2691 p: 269 305 245 237 233 225 217 209 395 379 363 395 678 646 614 873 825 1052 1450 1889 0 +frame 2692 e: -2.88|-2.88 -1.70|-1.70 -2.69|-2.69 -4.54|-4.54 -3.83|-3.83 -4.45|-4.45 -4.71|-4.71 -3.59|-3.59 -2.03|-2.03 +0.29|+0.29 -0.11|-0.11 +2.40|+2.40 +4.35|+4.35 +3.79|+3.79 +3.54|+3.54 +4.20|+4.20 +3.30|+3.30 +2.36|+2.36 +1.75|+1.75 +1.88|+1.88 -0.46|-0.46 +frame 2692 p: 228 248 204 196 168 160 152 144 265 297 247 231 494 382 350 493 445 540 666 919 0 +frame 2693 e: -3.23|-3.23 -3.31|-3.31 -3.97|-3.97 -4.36|-4.36 -4.72|-4.72 -3.56|-3.56 -3.94|-3.94 -3.39|-3.39 -1.73|-1.73 +0.19|+0.19 +2.31|+2.31 +4.25|+4.25 +5.23|+5.23 +5.11|+5.11 +4.76|+4.76 +5.04|+5.04 +3.56|+3.56 +3.02|+3.02 +2.44|+2.44 +2.81|+2.81 -0.89|-0.89 +frame 2693 p: 227 215 203 195 167 159 151 143 278 261 244 228 425 377 345 485 437 530 651 1196 0 +frame 2694 e: -4.77|-4.77 -4.17|-4.17 -4.80|-4.80 -4.99|-4.99 -4.61|-4.61 -3.79|-3.79 -3.35|-3.35 -2.27|-2.27 -1.22|-1.22 +0.76|+0.76 +2.49|+2.49 +3.96|+3.96 +5.06|+5.06 +4.36|+4.36 +5.30|+5.30 +5.59|+5.59 +4.74|+4.74 +3.75|+3.75 +2.92|+2.92 +3.36|+3.36 -1.26|-1.26 +frame 2694 p: 226 214 202 194 166 158 150 142 277 261 244 227 422 374 342 481 433 525 643 1190 0 +frame 2695 e: -4.11|-4.11 -4.70|-4.70 -4.56|-4.56 -4.73|-4.73 -4.42|-4.42 -3.21|-3.21 -3.20|-3.20 -2.96|-2.96 -1.55|-1.55 +0.12|+0.12 +2.47|+2.47 +4.18|+4.18 +5.08|+5.08 +4.66|+4.66 +5.24|+5.24 +5.83|+5.83 +4.19|+4.19 +3.99|+3.99 +3.33|+3.33 +3.25|+3.25 -1.03|-1.03 +frame 2695 p: 224 212 200 192 164 156 148 140 273 257 241 225 419 371 339 572 428 518 621 1173 0 +frame 2696 e: -4.65|-4.65 -4.10|-4.10 -4.71|-4.71 -3.76|-3.76 -4.16|-4.16 -3.66|-3.66 -1.83|-1.83 -1.95|-1.95 -0.46|-0.46 +1.23|+1.23 +3.40|+3.40 +5.04|+5.04 +4.75|+4.75 +4.26|+4.26 +5.00|+5.00 +5.31|+5.31 +4.52|+4.52 +4.35|+4.35 +3.76|+3.76 +3.34|+3.34 +0.32|+0.32 +frame 2696 p: 231 219 207 199 171 163 155 147 270 270 254 238 444 394 360 508 460 560 696 942 0 +frame 2697 e: -3.33|-3.33 -3.16|-3.16 -4.03|-4.03 -3.59|-3.59 -4.39|-4.39 -3.75|-3.75 -2.35|-2.35 -1.30|-1.30 -0.16|-0.16 +1.67|+1.67 +4.34|+4.34 +4.93|+4.93 +4.44|+4.44 +3.53|+3.53 +3.89|+3.89 +4.50|+4.50 +3.51|+3.51 +3.19|+3.19 +2.78|+2.78 +2.49|+2.49 -2.26|-2.26 +frame 2697 p: 226 214 202 194 166 158 150 142 277 261 277 229 422 374 342 481 433 525 643 1190 0 +frame 2698 e: -1.48|-1.48 +1.22|+1.22 -0.58|-0.58 -2.56|-2.56 -3.44|-3.44 -3.89|-3.89 -2.69|-2.69 -2.69|-2.69 -1.05|-1.05 +0.68|+0.68 +3.27|+3.27 +3.46|+3.46 +2.94|+2.94 +1.99|+1.99 +1.98|+1.98 +1.66|+1.66 +2.24|+2.24 +1.95|+1.95 +1.37|+1.37 +0.70|+0.70 -4.85|-4.85 +frame 2698 p: 228 312 220 212 184 176 168 160 297 281 313 265 499 451 419 596 543 654 861 1353 0 +frame 2699 e: -0.44|-0.44 +1.78|+1.78 +0.64|+0.64 -1.12|-1.12 -2.40|-2.40 -2.63|-2.63 -3.11|-3.11 -2.50|-2.50 -0.36|-0.36 +0.73|+0.73 +0.21|+0.21 -0.16|-0.16 +0.06|+0.06 -0.02|-0.02 -0.64|-0.64 +0.03|+0.03 -0.56|-0.56 -0.22|-0.22 +0.36|+0.36 -0.57|-0.57 -3.56|-3.56 +frame 2699 p: 263 297 235 225 211 201 191 181 335 315 295 275 543 487 447 626 566 669 849 1056 0 diff --git a/lanes/opus-drop-r2.reelm.txt b/lanes/opus-drop-r2.reelm.txt new file mode 100644 index 00000000..622021e4 --- /dev/null +++ b/lanes/opus-drop-r2.reelm.txt @@ -0,0 +1,5 @@ +# ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) +# both bitstreams decoded by ec-opus; 600s cap; VBR; 48kHz stereo +# 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 +reelm 64 62.6 63.3 -1.1 0.9816 0.9859 +0.0043 -710.78 -392.46 2.682 0.9148 0.9100 0 0 +reelm 96 84.0 84.8 -1.0 0.9921 0.9920 -0.0001 -596.93 -231.16 3.604 0.9661 0.9511 0 0 diff --git a/lanes/opus-drop-r2.report.md b/lanes/opus-drop-r2.report.md new file mode 100644 index 00000000..b31d6c18 --- /dev/null +++ b/lanes/opus-drop-r2.report.md @@ -0,0 +1,49 @@ +# opus-drop r2 — reelm@64k dropout second + +**VERDICT: reelm@64 minsec .8987→.9148, drops 1→0; 14-row: 12 rows corr≥ref; worst regression row her@64 corr −.0002 (gap −0.0033, still ≥ref)** + +Full sweep: `lanes/opus-drop-r2.sweep.txt` (baseline: committed `lanes/opus-gate-r1.sweep.txt`). Rate gate: all rows within ±5% (worst reelm@64 −1.1%). Dropout gate: 0 ours-only dropout seconds on all 14 rows. + +## Root cause (r2 finding, reverses r1 plan) + +The failing second (53; frames 2656-2705) was a **reservoir arithmetic** failure, not a floor_depth failure: + +- Ref (ffmpeg `-vbr on`) = **unconstrained** VBR: libopus celt's constrained-VBR reservoir/drift/bailout block (`celt_encoder.c:2509-2529`) is skipped entirely. Ref's quiet-frame spend (76-87B) comes from `compute_vbr()`'s **activity cut**: `if (activity < .4) target -= (coded_bins<>2))`. +5. **2·base_target cap** (faithful). +6. **Capped bailout**: reservoir debt releases ≤8B/frame into nb_avail (libopus CVBR re-adds everything next frame — would defeat banking). +7. **Credit floor**: `vbr_reservoir ≥ −8·vbr_rate`. +8. Early clamp (:505-517) untouched — with banked credit it lets transient/post-attack frames spend ~250B like ref. + +Quiet frames now target ~90-100B, banking credit the attack spends; 2692/2693 no longer starve. + +## Deviations from libopus (documented) + +- activity from peak-band-level proxy instead of TonalityAnalysis (no analysis pass in this encoder) +- tf from transient flag + fixed 0.05 estimate instead of tf_analysis +- tonality boost, stereo_saving term, temporal_vbr, CVBR 0.67 damping: skipped (no analysis data) +- lsb_depth hardcoded 24 in the noise-floor constant + +## Numbers + +| row | corr base→r2 | gap r2 | note | +|---|---|---|---| +| reelm 64 | .9793→**.9816** | +.0043 | drops 1→0, minsec .8987→.9148 | +| reelm 96 | .9911→**.9921** | −.0001 | flipped to ours≥ref; minsec .9572→.9661 | +| hein 64 | .9841→**.9854** | +.0020 | gap narrowed +.0033→+.0020 | +| her 64 | .9829→.9827 | −.0033 | worst regression −.0002 | +| other 10 | ±.0002 | ours≥ref | unchanged | + +Rate: all rows −1.1%…+0.0% vs ref. + +Instrumentation test `reelm64_dropout_instrumentation` removed (unattended default); `CeltFrameDiag`/`last_celt_diag` diag plumbing kept (pub API). Evidence: gate runs above; dump analysis in `lanes/opus-drop-r1.second.txt`. diff --git a/lanes/opus-drop-r2.sweep.txt b/lanes/opus-drop-r2.sweep.txt new file mode 100644 index 00000000..702a9ff3 --- /dev/null +++ b/lanes/opus-drop-r2.sweep.txt @@ -0,0 +1,17 @@ +# ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) +# both bitstreams decoded by ec-opus; 600s cap; VBR; 48kHz stereo +# 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 +nik 64 69.2 69.2 +0.0 0.9876 0.9864 -0.0012 -617.35 -154.78 5.525 0.9759 0.9745 0 0 +nik 96 100.8 101.0 -0.2 0.9944 0.9940 -0.0003 -385.34 -31.55 5.999 0.9881 0.9888 0 0 +reelo 64 63.5 63.6 -0.0 0.9883 0.9866 -0.0017 -423.48 -123.36 3.573 0.9641 0.9686 0 0 +reelo 96 93.8 93.9 -0.0 0.9946 0.9937 -0.0009 -265.43 -125.18 1.966 0.9862 0.9854 0 0 +her 64 67.3 67.9 -0.9 0.9827 0.9794 -0.0033 -859.15 -339.00 4.899 0.9470 0.9406 0 0 +her 96 100.9 101.5 -0.6 0.9913 0.9902 -0.0011 -900.28 -191.50 10.134 0.9728 0.9728 0 0 +reell 64 71.3 71.3 -0.0 0.9903 0.9880 -0.0024 -1058.77 -128.39 21.383 0.9701 0.9644 0 0 +reell 96 105.3 105.4 -0.0 0.9954 0.9948 -0.0007 -836.34 -29.16 23.873 0.9852 0.9804 0 0 +reelm 64 62.6 63.3 -1.1 0.9816 0.9859 +0.0043 -710.78 -392.46 2.682 0.9148 0.9100 0 0 +reelm 96 84.0 84.8 -1.0 0.9921 0.9920 -0.0001 -596.93 -231.16 3.604 0.9661 0.9511 0 0 +dl8a 64 65.4 65.8 -0.6 0.9879 0.9865 -0.0015 -483.25 -378.84 1.422 0.9745 0.9723 0 0 +dl8a 96 96.0 96.8 -0.9 0.9939 0.9934 -0.0006 -385.71 -423.47 0.878 0.9858 0.9864 0 0 +hein 64 64.5 64.9 -0.6 0.9854 0.9874 +0.0020 -656.27 -388.31 2.328 0.9210 0.9148 0 0 +hein 96 86.3 86.9 -0.7 0.9937 0.9930 -0.0007 -459.75 -246.46 2.198 0.9674 0.9499 0 0 diff --git a/lanes/opus-gate-r1.sweep.txt b/lanes/opus-gate-r1.sweep.txt index e7299760..c569ad13 100644 --- a/lanes/opus-gate-r1.sweep.txt +++ b/lanes/opus-gate-r1.sweep.txt @@ -1,17 +1,7 @@ # ec-opus encoder vs ffmpeg libopus — encoders-only gate (r1) -# both bitstreams decoded by ec-opus; 120s cap; VBR; 48kHz stereo +# both bitstreams decoded by ec-opus; 600s cap; VBR; 48kHz stereo # 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 -nik 64 68.9 69.2 -0.4 0.9875 0.9864 -0.0011 -530.65 -154.78 4.249 0.9758 0.9745 0 0 -nik 96 100.9 101.0 -0.2 0.9944 0.9940 -0.0003 -347.70 -31.55 5.240 0.9884 0.9888 0 0 -reelo 64 63.3 63.6 -0.5 0.9882 0.9866 -0.0016 -388.30 -123.36 3.165 0.9644 0.9686 0 0 -reelo 96 93.7 93.9 -0.2 0.9946 0.9937 -0.0008 -266.53 -125.18 1.975 0.9855 0.9854 0 0 -her 64 67.7 67.9 -0.4 0.9829 0.9794 -0.0035 -854.77 -339.00 4.842 0.9462 0.9406 0 0 -her 96 101.3 101.5 -0.2 0.9914 0.9902 -0.0012 -899.19 -191.50 10.105 0.9725 0.9728 0 0 -reell 64 71.2 71.3 -0.2 0.9903 0.9880 -0.0023 -1056.61 -128.39 21.263 0.9694 0.9644 0 0 -reell 96 105.2 105.4 -0.2 0.9954 0.9948 -0.0006 -832.74 -29.16 23.640 0.9850 0.9804 0 0 -reelm 64 63.3 63.3 -0.1 0.9793 0.9859 +0.0067 -767.51 -392.46 3.145 0.8987 0.9100 1 0 -reelm 96 84.8 84.8 -0.0 0.9911 0.9920 +0.0009 -603.35 -231.16 3.674 0.9572 0.9511 0 0 -dl8a 64 65.7 65.8 -0.2 0.9880 0.9865 -0.0015 -598.74 -378.84 2.032 0.9757 0.9723 0 0 -dl8a 96 96.8 96.8 -0.0 0.9940 0.9934 -0.0007 -381.94 -423.47 0.866 0.9876 0.9864 0 0 -hein 64 64.8 64.9 -0.0 0.9841 0.9874 +0.0033 -661.65 -388.31 2.364 0.9082 0.9148 0 0 -hein 96 86.9 86.9 -0.0 0.9932 0.9930 -0.0002 -461.53 -246.46 2.211 0.9600 0.9499 0 0 +reelm 64 62.6 63.3 -1.1 0.9816 0.9859 +0.0043 -710.78 -392.46 2.682 0.9148 0.9100 0 0 +reelm 96 84.0 84.8 -1.0 0.9921 0.9920 -0.0001 -596.93 -231.16 3.604 0.9661 0.9511 0 0 +hein 64 64.5 64.9 -0.6 0.9854 0.9874 +0.0020 -656.27 -388.31 2.328 0.9210 0.9148 0 0 +hein 96 86.3 86.9 -0.7 0.9937 0.9930 -0.0007 -459.75 -246.46 2.198 0.9674 0.9499 0 0