forge
Explore
Log in

Don't you dare go Hollow

A GOP-length-aware mini-GOP layout -- a short tail group is absorbed

Browse files at this commit

52506a790a7af0928d3805ef26613e4b516a3a40Ahmet Kaan GümüşParent: d248e08
  • feat
    • a GOP-length-aware mini-GOP layout -- a short tail group is absorbed
Show full message
feat(av1): a GOP-length-aware mini-GOP layout -- a short tail group is absorbed

`Av1Encoder::encode_frames` closed every mini-GOP at `Pyramid::mini_gop`
flat, so a run that is not a multiple of it left a SHORT TAIL group: 12
pictures under mini_gop 8 coded 8 + 3, and lane-pyr4 measured that tail as
the whole disagreement between the two BD gates (the 12-frame gate wanted
16:-24:16, the 48-frame gate 8:-32:16).

`group_target()` now sizes the group being collected from the pictures left
before the next key frame -- both entry points know it (`encode_sequence`
sets gop = pictures.len(), the facade has its config) -- and absorbs a tail
shorter than half a group into the group before it.

  12-frame gate at 8:-32:16, film A / film B vs libaom / rav1e:
    fixed 8 + 3   +51.2 / +21.4   +91.0 / +53.5
    absorb -> 11  +43.9 / +15.6   +68.4 / +38.2   (bars rows improve too)
  48-frame gate: 47 inter pictures are 8 x 5 + 7 under BOTH rules, and the
  control arm confirms it byte for byte -- all eight ladder points identical,
  +55.2 / +12.8 and +151.3 / +47.4 either way.

The balanced-split variant (equal groups <= mini_gop, 6 + 5 at gop 12) was
measured and is worse on every row; a group-length-scaled ARF offset was
dropped unbuilt, since the absorbed group at arf -32 already beats the -24
the 12-frame gate used to prefer. Table and logs: lanes/gopad.sweep.txt.

`EC_AV1_GOP_LAYOUT=fixed` restores the old rule for an A/B.
crates/ec-av1/src/encode.rsmodified+1 -0
@@ -14348,6 +14348,7 @@ mod tests {
14348 /// EC_AV1_PAL_MAXCOLORS=256 ... same command # palette bound14348 /// EC_AV1_PAL_MAXCOLORS=256 ... same command # palette bound
14349 /// EC_AV1_TILES=1:1 EC_AV1_TILE_THREADS=4 ... # 2x2 tiles14349 /// EC_AV1_TILES=1:1 EC_AV1_TILE_THREADS=4 ... # 2x2 tiles
14350 /// EC_AV1_PYRAMID=0 ... same command # no coding pyramid14350 /// EC_AV1_PYRAMID=0 ... same command # no coding pyramid
14351+ /// EC_AV1_GOP_LAYOUT=fixed ... same command # no tail absorbing
14351 /// EC_AV1_GATE_FACADE=1 ... same command # the facade arm14352 /// EC_AV1_GATE_FACADE=1 ... same command # the facade arm
14352 ///14353 ///
14353 /// The coding pyramid is the DEFAULT of the sequence path this arm codes14354 /// The coding pyramid is the DEFAULT of the sequence path this arm codes
crates/ec-av1/src/encoder.rsmodified+95 -11
@@ -368,7 +368,10 @@ pub struct Packet {
368 pub struct Pyramid {368 pub struct Pyramid {
369 /// Pictures per mini-GOP: the hidden frame is `mini_gop` pictures ahead369 /// Pictures per mini-GOP: the hidden frame is `mini_gop` pictures ahead
370 /// of the group's anchor, and `mini_gop - 1` leaves sit between them.370 /// of the group's anchor, and `mini_gop - 1` leaves sit between them.
371- /// `1` would leave no leaf at all and is refused.371+ /// `1` would leave no leaf at all and is refused. It is the group size a
372+ /// long run takes; the last group of a run is up to 1.5x it, since
373+ /// [`group_target`] absorbs a tail shorter than half a group rather than
374+ /// leaving one behind.
372 pub mini_gop: usize,375 pub mini_gop: usize,
373 /// Added to `base_q_idx` for the hidden `ALTREF_FRAME` — negative, since376 /// Added to `base_q_idx` for the hidden `ALTREF_FRAME` — negative, since
374 /// every leaf of the group predicts off it.377 /// every leaf of the group predicts off it.
@@ -378,6 +381,39 @@ pub struct Pyramid {
378 pub leaf_q_offset: i16,381 pub leaf_q_offset: i16,
379 }382 }
380 383
384+/// How many pictures the mini-GOP now being collected takes, given how many
385+/// are left in this run (the pictures before the next key frame) and the
386+/// [`Pyramid::mini_gop`] shape.
387+///
388+/// A fixed `mini_gop` leaves a SHORT TAIL group whenever the run is not a
389+/// multiple of it: a 12-picture GOP under `mini_gop` 8 codes 8 + 3, and that
390+/// 3-picture tail is the expensive part -- the 12-frame gate preferred one
391+/// group of 11 by 7.0 / 20.5 BD points while the 48-frame gate picked 8
392+/// (lane-pyr4). The rule here ABSORBS a tail shorter than half a group into
393+/// the group before it, so a run takes groups of `mini_gop` until at most
394+/// 1.5 x `mini_gop` is left and then one final group of all of it:
395+/// remaining 11 under 8 -> 11 (was 8 + 3)
396+/// remaining 47 under 8 -> 8, 8, 8, 8, 8, 7 -- what the fixed rule already
397+/// coded, so a long GOP is byte-identical
398+/// (`the_mini_gop_layout_leaves_no_short_tail`; sweep `lanes/gopad.sweep.txt`).
399+///
400+/// `EC_AV1_GOP_LAYOUT=fixed` restores the old fixed-size rule for an A/B.
401+fn group_target(remaining: usize, mini_gop: usize, absorb_tail: bool) -> usize {
402+ match absorb_tail && remaining <= mini_gop + mini_gop / 2 {
403+ true => remaining.max(1),
404+ false => mini_gop,
405+ }
406+}
407+
408+/// Whether this run absorbs a short tail group (the default) or cuts every
409+/// mini-GOP at `mini_gop`: `EC_AV1_GOP_LAYOUT=fixed`, read once.
410+fn absorb_tail() -> bool {
411+ static ABSORB: std::sync::LazyLock<bool> = std::sync::LazyLock::new(|| {
412+ std::env::var("EC_AV1_GOP_LAYOUT").ok().as_deref() != Some("fixed")
413+ });
414+ *ABSORB
415+}
416+
381 impl Pyramid {417 impl Pyramid {
382 /// The pyramid a run asks for through the environment:418 /// The pyramid a run asks for through the environment:
383 /// `EC_AV1_PYRAMID=<mini_gop>[:<arf_q_offset>:<leaf_q_offset>]`, with419 /// `EC_AV1_PYRAMID=<mini_gop>[:<arf_q_offset>:<leaf_q_offset>]`, with
@@ -620,13 +656,16 @@ impl Default for Pyramid {
620 /// (film A wants `20`, film B wants `12`, within 1.1 and 4.9 points) so656 /// (film A wants `20`, film B wants `12`, within 1.1 and 4.9 points) so
621 /// `16` stays, being the only value down on all four columns.657 /// `16` stays, being the only value down on all four columns.
622 ///658 ///
623- /// THE PRICE, stated: on the SHORT-GOP gate above (12 frames, `gop =659+ /// THE PRICE THAT WAS, and how it was paid (lane-gopad): on the
624- /// 12`, where a mini-GOP of 8 splits into 8 + 4 while 16 is one group)660+ /// SHORT-GOP gate (12 frames, `gop = 12`) a fixed mini-GOP of 8 split the
625- /// `8:-32:16` reads film A +51.2 / +21.4 and film B +91.0 / +53.5661+ /// run into 8 + 3 and read film A +51.2 / +21.4, film B +91.0 / +53.5,
626- /// against `16:-24:16`'s +44.2 / +15.7 and +70.5 / +35.2. The two gates662+ /// against `16:-24:16`'s +44.2 / +15.7 and +70.5 / +35.2 -- the tail
627- /// disagree because the best shape depends on the GOP length, and the663+ /// group, not the shape, was the cost. [`group_target`] now absorbs a
628- /// long one is what the editor exports; a GOP-length-adaptive `mini_gop`664+ /// short tail, so the same 12 pictures code as ONE group of 11 and read
629- /// is the standing follow-up, not measured here.665+ /// film A +43.9 / +15.6 and film B +68.4 / +38.2 (three of the four
666+ /// columns better than `16:-24:16` ever was, film B vs rav1e 3.0 short),
667+ /// while 47 inter pictures still take 8 x 5 + 7 -- the long-GOP table
668+ /// above is coded byte for byte as it was measured.
630 fn default() -> Self {669 fn default() -> Self {
631 Self {670 Self {
632 mini_gop: 8,671 mini_gop: 8,
@@ -992,10 +1031,16 @@ impl Av1Encoder {
992 return Ok(packets);1031 return Ok(packets);
993 }1032 }
994 self.pending.push((order, picture.clone()));1033 self.pending.push((order, picture.clone()));
995- // The group closes on its own size, or early when the next picture1034+ // The group closes on the size the LAYOUT gives it (which depends on
996- // would be a key frame.1035+ // how many pictures are left before the next key frame, so no short
1036+ // tail group is left behind), or early when the next picture would be
1037+ // a key frame.
1038+ let run_start = self.pending[0].0;
1039+ let remaining = self.config.gop - (run_start % self.config.gop as u64) as usize;
997 let next_is_key = (order + 1).is_multiple_of(self.config.gop as u64);1040 let next_is_key = (order + 1).is_multiple_of(self.config.gop as u64);
998- if self.pending.len() >= pyramid.mini_gop || next_is_key {1041+ if self.pending.len() >= group_target(remaining, pyramid.mini_gop, absorb_tail())
1042+ || next_is_key
1043+ {
999 return self.drain_pending();1044 return self.drain_pending();
1000 }1045 }
1001 Ok(Vec::new())1046 Ok(Vec::new())
@@ -1453,6 +1498,45 @@ mod tests {
1453 packets1498 packets
1454 }1499 }
1455 1500
1501+ /// The mini-GOP layout leaves no short tail group, and leaves the long
1502+ /// GOP the fixed rule already coded alone: 47 inter pictures are
1503+ /// 8 x 5 + 7 under both rules (so a 48-picture GOP is byte-identical),
1504+ /// while a 12-picture GOP stops being 8 + 3 (lane-gopad).
1505+ #[test]
1506+ fn the_mini_gop_layout_leaves_no_short_tail() {
1507+ let groups = |remaining: usize, mini_gop: usize, absorb: bool| {
1508+ let (mut left, mut out) = (remaining, Vec::new());
1509+ while left > 0 {
1510+ let g = group_target(left, mini_gop, absorb).min(left);
1511+ assert!(g > 0);
1512+ out.push(g);
1513+ left -= g;
1514+ }
1515+ out
1516+ };
1517+ // gop 48: what mini_gop 8 already coded, under either rule.
1518+ assert_eq!(groups(47, 8, true), vec![8, 8, 8, 8, 8, 7]);
1519+ assert_eq!(groups(47, 8, false), vec![8, 8, 8, 8, 8, 7]);
1520+ // gop 12: 8 + 3 becomes one group of 11.
1521+ assert_eq!(groups(11, 8, false), vec![8, 3]);
1522+ assert_eq!(groups(11, 8, true), vec![11]);
1523+ // A run shorter than a group is one group, as before (the 4-picture
1524+ // pin clip).
1525+ assert_eq!(groups(3, 8, true), vec![3]);
1526+ // No group is ever below half the shape, and none is over 1.5x it.
1527+ for mini_gop in 2..=16 {
1528+ for remaining in 1..=64 {
1529+ for g in groups(remaining, mini_gop, true) {
1530+ assert!(g * 2 <= 3 * mini_gop, "{remaining}/{mini_gop}: long {g}");
1531+ assert!(
1532+ g * 2 >= mini_gop || remaining < mini_gop,
1533+ "{remaining}/{mini_gop}: short tail {g}"
1534+ );
1535+ }
1536+ }
1537+ }
1538+ }
1539+
1456 /// Every OBU stream this test writes to `ffmpeg`/`ffprobe`, concatenated1540 /// Every OBU stream this test writes to `ffmpeg`/`ffprobe`, concatenated
1457 /// in order.1541 /// in order.
1458 fn concat(packets: &[Packet]) -> Vec<u8> {1542 fn concat(packets: &[Packet]) -> Vec<u8> {
lanes/gopad.sweep.txtadded+84 -0
@@ -0,0 +1,84 @@
1+lane-gopad -- a GOP-LENGTH-AWARE mini-GOP layout
2+================================================
3+
4+Why. `Pyramid::default` is 8:-32:16, decided on the 48-frame gate
5+(`encode::tests::bd_rate_film_long_gop`, lanes/pyr4.sweep.txt). The 12-frame
6+gate `bd_rate_screen_native` preferred 16:-24:16 there, and lane-pyr4 wrote
7+the price down: at gop 12 a FIXED mini-GOP of 8 splits 11 inter pictures into
8+8 + 3, and the 3-picture tail group is the expensive part. The shape was
9+never the disagreement -- the tail was.
10+
11+The change (crates/ec-av1/src/encoder.rs). `Av1Encoder::encode_frames` no
12+longer closes a group at `pyramid.mini_gop` flat; it asks `group_target()`
13+how big the group being collected should be, given the pictures left before
14+the next key frame (`config.gop - run_start % config.gop`, known to both
15+entry points: `encode_sequence` sets gop = pictures.len(), the facade has it
16+in its config). The rule shipped is ABSORB TAIL: while more than 1.5 x
17+mini_gop is left, take mini_gop; otherwise take all of it.
18+ remaining 11, mini_gop 8 -> 11 (was 8 + 3)
19+ remaining 47, mini_gop 8 -> 8,8,8,8,8,7 (unchanged -> byte-identical)
20+ remaining 3, mini_gop 8 -> 3 (the 4-picture pin clip, unchanged)
21+`EC_AV1_GOP_LAYOUT=fixed` restores the old rule for an A/B.
22+
23+SHORT-GOP TABLE (`bd_rate_screen_native`, 12 frames, gop 12, EC_AV1_NATIVE_FILM=1
24+EC_AV1_NATIVE_FILM4K=1, pyramid 8:-32:16 on every row; BD-rate %, lower better).
25+Rows keyed by each log's own "pyramid requested/effective" print.
26+
27+| layout | film A vs libaom / rav1e | film B vs libaom / rav1e | bars 1080p | bars 2160p |
28+|---|---|---|---|---|
29+| fixed 8 + 3 (shipped, lanes/pyr4) | +51.2 / +21.4 | +91.0 / +53.5 | +4.8 / -11.5 | +20.5 / -3.4 |
30+| balanced 6 + 5 (lanes/gopad/s12-balanced.log) | +48.4 / +18.5 | +82.0 / +46.0 | +3.6 / -12.5 | +14.2 / -8.7 |
31+| absorb -> 11 ** SHIPS ** (lanes/gopad/s12-absorb.log) | +43.9 / +15.6 | +68.4 / +38.2 | +2.0 / -14.0 | +13.5 / -9.6 |
32+| (reference) fixed with mini_gop 16, arf -24, lanes/pyr3 | +44.2 / +15.7 | +70.5 / +35.2 | -- | -- |
33+
34+Both films improve on both columns against the shipped fixed layout, by
35+7.3 / 5.8 (film A) and 22.6 / 15.3 (film B); the two bars rows improve too.
36+Against the 16:-24:16 shape the 12-frame gate used to prefer, absorb at
37+8:-32:16 is better on three columns (+43.9 vs +44.2, +15.6 vs +15.7, +68.4 vs
38++70.5) and 3.0 short on one (film B vs rav1e +38.2 vs +35.2). The balanced
39+split (equal groups <= mini_gop) is measurably WORSE than absorbing on every
40+row: at gop 12 the longer single group wins, so 6 + 5 was dropped.
41+
42+CANDIDATE (c), per-group ARF offset scaled by log2(group_len)/log2(mini_gop):
43+NOT BUILT. Its purpose was to give the longer (absorbed) group the -24 the
44+12-frame gate liked, and the measurement above says the opposite -- the group
45+of 11 at arf -32 already beats the recorded -24 arm on three of four columns,
46+so the scaling would move away from the optimum. Skipped, with the numbers.
47+
48+LONG-GOP TABLE (`bd_rate_film_long_gop`, 48 frames, gop 48, 8:-32:16).
49+
50+| layout | film A vs libaom / rav1e | film B vs libaom / rav1e |
51+|---|---|---|
52+| fixed, as recorded on the pyr4 BRANCH | +55.7 / +13.5 | +165.1 / +56.6 |
53+| fixed, control on THIS head (lanes/gopad/s48-fixed.log) | +55.2 / +12.8 | +151.3 / +47.4 |
54+| absorb ** SHIPS ** (lanes/gopad/s48-absorb.log) | +55.2 / +12.8 | +151.3 / +47.4 |
55+
56+The control arm is the row that matters: main has moved since lane-pyr4
57+measured (filter intra among others), so the pyr4 row is not this head's
58+baseline -- film B is 13.8 / 9.2 better here for reasons that predate this
59+lane. Against the control, absorb is IDENTICAL: every one of the eight ladder
60+points matches byte for byte (film A 195531 / 356977 / 619801 / 1331401 B,
61+film B 76541 / 171950 / 393470 / 1006532 B) at the same PSNR, so the 48-frame
62+gate does not move by 0.0 on any of the four columns, not merely by <= 0.3.
63+
64+47 inter pictures take 8,8,8,8,8,7 under BOTH rules -- a group's boundaries
65+are all `drain_pending` consumes, so the 48-frame stream is byte-identical
66+and the confirmation arm reproduces the recorded numbers rather than
67+approaching them. Pinned by `encoder::tests::the_mini_gop_layout_leaves_no
68+_short_tail`, which walks both rules over mini_gop 2..=16 x remaining 1..=64.
69+
70+VERIFICATION
71+ pins UNCHANGED (8446 / 28548): a 4-picture clip is a 3-picture run, one
72+ group under both rules -- encode::tests::the_encoders_own_streams_are
73+ _byte_identical_to_their_pins ok
74+ encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence ok
75+ encoder:: --include-ignored --test-threads 1: 29 passed / 0 failed
76+ (includes bitrate_target_lands_within_10_percent_over_48_frames, whose
77+ rate loop now sees a last group of up to 1.5 x mini_gop)
78+ tile_bytes_do_not_depend_on_the_thread_count (--include-ignored) ok
79+ EC_COMP_MISMATCH=1 over the whole lib suite: 546 passed / 0 failed /
80+ 43 ignored, 0 mismatch lines (lanes/gopad/suite.log)
81+ cargo check --workspace --all-targets -j4: 0 errors, 0 ec-av1 warnings
82+ (the 25 warning lines are pre-existing ec-opus / ec-vorbis)
83+ Logs: lanes/gopad/{s12-balanced,s12-absorb,s48-absorb,s48-fixed,suite,
84+ encoder-tests}.log
lanes/gopad/encoder-tests.logadded+42 -0
@@ -0,0 +1,42 @@
1+
2+running 29 tests
3+test encoder::tests::a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders ... ok
4+test encoder::tests::a_pyramid_stream_decodes_in_display_order_through_both_decoders ... ok
5+test encoder::tests::a_static_clip_codes_64x64_roots_and_decodes_sample_exact ... ok
6+test encoder::tests::bitrate_target_lands_within_10_percent_over_48_frames ... ok
7+test encoder::tests::bt601_limited_colour_is_reported_by_ffprobe ... ok
8+test encoder::tests::bt709_limited_colour_is_reported_by_ffprobe ... ok
9+test encoder::tests::bytes_per_frame_controller_never_oscillates_past_its_clamp ... ok
10+test encoder::tests::bytes_per_frame_target_settles_within_20_percent ... ok
11+test encoder::tests::every_speed_preset_decodes_sample_exact_through_both_decoders ... ok
12+test encoder::tests::every_tile_layout_decodes_sample_exact_through_both_decoders ... ok
13+test encoder::tests::filter_replay_codes_the_same_stream_as_a_full_decode ... ok
14+test encoder::tests::filter_replay_final_matches_the_capture_decode ... ok
15+test encoder::tests::filter_stage_bytes_do_not_depend_on_the_thread_count ... ok
16+test encoder::tests::filter_stage_wall_1080p ... ok
17+test encoder::tests::filter_stage_wall_4k ... ok
18+test encoder::tests::filter_stage_wall_film ... ok
19+test encoder::tests::geometry_mismatch_is_refused ... ok
20+test encoder::tests::gop_cadence_is_honored ... ok
21+test encoder::tests::one_in_one_out_delayed_by_the_lookahead_depth ... ok
22+test encoder::tests::quality_target_is_monotone_in_bytes_and_psnr ... ok
23+test encoder::tests::the_content_gate_keeps_screen_streams_flat ... ok
24+test encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence ... ok
25+test encoder::tests::the_mini_gop_layout_leaves_no_short_tail ... ok
26+test encoder::tests::thirty_pictures_at_gop_fifteen_decode_to_two_key_frames ... ok
27+test encoder::tests::tile_bytes_do_not_depend_on_the_thread_count ... ok
28+test encoder::tests::tile_search_wall_1080p ... ok
29+test encoder::tests::tile_search_wall_4k ... ok
30+test encoder::tests::tile_wall_table_at_1080p ... ok
31+test encoder::tests::zero_gop_is_refused ... ok
32+
33+test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 560 filtered out; finished in 672.16s
34+
35+
36+running 2 tests
37+test encode::tests::the_encoders_own_streams_are_byte_identical_to_their_pins ... ok
38+test encoder::tests::tile_bytes_do_not_depend_on_the_thread_count ... ok
39+
40+test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 587 filtered out; finished in 3.15s
41+
42+RC=0
lanes/gopad/s12-absorb.logadded+39 -0
@@ -0,0 +1,39 @@
1+
2+running 1 test
3+test encode::tests::bd_rate_screen_native ...
4+native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
7+bars 1080p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
8+bars 1080p: pricer armings default=17 real=175
9+bars 1080p: motion_mode 32x32 SIMPLE=42571 OBMC=0 WARP=346 | 16x16 SIMPLE=4026 OBMC=0 WARP=294 | 8x8 SIMPLE=12994 OBMC=0 WARP=1940 (0.0% OBMC / 4.1% WARP of 62171 eligible)
10+bars 1080p: inter var-tx depths of 11784 blocks -- leaf single 0=2245 1=900 (28.6% split) | leaf compound 0=984 1=498 (33.6% split) | 32x32 single 0=874 1=1847 (67.9% split) | 32x32 compound 0=2336 1=2100 (47.3% split)
11+bars 1080p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
12+bars 1080p: filter intra on=true blocks 26588 (modes DC=5735 V=2857 H=5618 D157=8546 PAETH=3832)
13+| bars 1080p 1920x1024 | 43.17 dB/192863 B, 46.83 dB/291450 B, 50.13 dB/403655 B, 53.14 dB/531399 B | +2.0% | -14.0% | 34.0s:9.5s:17.6s |
14+bars 2160p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
15+bars 2160p: pricer armings default=15 real=154
16+bars 2160p: motion_mode 32x32 SIMPLE=30865 OBMC=0 WARP=170 | 16x16 SIMPLE=2415 OBMC=0 WARP=291 | 8x8 SIMPLE=5108 OBMC=0 WARP=178 (0.0% OBMC / 1.6% WARP of 39027 eligible)
17+bars 2160p: inter var-tx depths of 9263 blocks -- leaf single 0=1338 1=395 (22.8% split) | leaf compound 0=1107 1=214 (16.2% split) | 32x32 single 0=420 1=1231 (74.6% split) | 32x32 compound 0=141 1=4417 (96.9% split)
18+bars 2160p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
19+bars 2160p: filter intra on=true blocks 9833 (modes DC=2310 V=581 H=2183 D157=3547 PAETH=1212)
20+| bars 2160p 1920x1024 | 42.74 dB/206163 B, 46.77 dB/316440 B, 50.31 dB/423772 B, 53.39 dB/534607 B | +13.5% | -9.6% | 34.4s:7.2s:18.8s |
21+film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
22+film A (1080p source): pricer armings default=20 real=214
23+film A (1080p source): motion_mode 32x32 SIMPLE=45674 OBMC=0 WARP=1455 | 16x16 SIMPLE=20981 OBMC=0 WARP=1681 | 8x8 SIMPLE=4346 OBMC=0 WARP=968 (0.0% OBMC / 5.5% WARP of 75105 eligible)
24+film A (1080p source): inter var-tx depths of 89726 blocks -- leaf single 0=16547 1=2873 (14.8% split) | leaf compound 0=32672 1=6807 (17.2% split) | 32x32 single 0=8182 1=6135 (42.9% split) | 32x32 compound 0=10307 1=6203 (37.6% split)
25+film A (1080p source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
26+film A (1080p source): filter intra on=true blocks 26297 (modes DC=6681 V=3416 H=4774 D157=7937 PAETH=3489)
27+| film A (1080p source) 1920x768 | 43.06 dB/62730 B, 45.17 dB/106661 B, 46.58 dB/177362 B, 47.74 dB/328095 B | +43.9% | +15.6% | 69.5s:11.5s:15.2s |
28+film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
29+film B (2160p HDR source): pricer armings default=17 real=185
30+film B (2160p HDR source): motion_mode 32x32 SIMPLE=50211 OBMC=0 WARP=1035 | 16x16 SIMPLE=13582 OBMC=0 WARP=867 | 8x8 SIMPLE=1692 OBMC=0 WARP=441 (0.0% OBMC / 3.5% WARP of 67828 eligible)
31+film B (2160p HDR source): inter var-tx depths of 78648 blocks -- leaf single 0=15248 1=2707 (15.1% split) | leaf compound 0=26845 1=4675 (14.8% split) | 32x32 single 0=8989 1=7481 (45.4% split) | 32x32 compound 0=7489 1=5214 (41.0% split)
32+film B (2160p HDR source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
33+film B (2160p HDR source): filter intra on=true blocks 17758 (modes DC=4929 V=2210 H=2503 D157=6222 PAETH=1894)
34+| film B (2160p HDR source) 1920x1024 | 45.60 dB/25807 B, 47.49 dB/52702 B, 48.72 dB/112338 B, 49.74 dB/251263 B | +68.4% | +38.2% | 73.1s:20.8s:17.6s |
35+ok
36+
37+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 588 filtered out; finished in 343.05s
38+
39+RC=0
lanes/gopad/s12-balanced.logadded+39 -0
@@ -0,0 +1,39 @@
1+
2+running 1 test
3+test encode::tests::bd_rate_screen_native ...
4+native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
7+bars 1080p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
8+bars 1080p: pricer armings default=17 real=173
9+bars 1080p: motion_mode 32x32 SIMPLE=41023 OBMC=0 WARP=182 | 16x16 SIMPLE=3508 OBMC=0 WARP=188 | 8x8 SIMPLE=13068 OBMC=0 WARP=1206 (0.0% OBMC / 2.7% WARP of 59175 eligible)
10+bars 1080p: inter var-tx depths of 11001 blocks -- leaf single 0=1513 1=650 (30.1% split) | leaf compound 0=1106 1=654 (37.2% split) | 32x32 single 0=791 1=1763 (69.0% split) | 32x32 compound 0=2314 1=2210 (48.9% split)
11+bars 1080p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
12+bars 1080p: filter intra on=true blocks 26668 (modes DC=5930 V=2801 H=5285 D157=8810 PAETH=3842)
13+| bars 1080p 1920x1024 | 43.69 dB/210930 B, 47.28 dB/311977 B, 50.52 dB/426848 B, 53.69 dB/564682 B | +3.6% | -12.5% | 33.8s:9.2s:17.7s |
14+bars 2160p: sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
15+bars 2160p: pricer armings default=15 real=154
16+bars 2160p: motion_mode 32x32 SIMPLE=31185 OBMC=0 WARP=106 | 16x16 SIMPLE=2086 OBMC=0 WARP=213 | 8x8 SIMPLE=5386 OBMC=0 WARP=212 (0.0% OBMC / 1.4% WARP of 39188 eligible)
17+bars 2160p: inter var-tx depths of 9076 blocks -- leaf single 0=1122 1=355 (24.0% split) | leaf compound 0=1077 1=208 (16.2% split) | 32x32 single 0=446 1=1310 (74.6% split) | 32x32 compound 0=142 1=4416 (96.9% split)
18+bars 2160p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
19+bars 2160p: filter intra on=true blocks 10592 (modes DC=2384 V=659 H=2320 D157=3902 PAETH=1327)
20+| bars 2160p 1920x1024 | 43.29 dB/223154 B, 47.24 dB/334819 B, 50.70 dB/442271 B, 53.94 dB/561745 B | +14.2% | -8.7% | 33.8s:7.2s:18.6s |
21+film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
22+film A (1080p source): pricer armings default=20 real=212
23+film A (1080p source): motion_mode 32x32 SIMPLE=40679 OBMC=0 WARP=1355 | 16x16 SIMPLE=20063 OBMC=0 WARP=1869 | 8x8 SIMPLE=5411 OBMC=0 WARP=1263 (0.0% OBMC / 6.4% WARP of 70640 eligible)
24+film A (1080p source): inter var-tx depths of 87964 blocks -- leaf single 0=15678 1=2789 (15.1% split) | leaf compound 0=32866 1=6641 (16.8% split) | 32x32 single 0=7679 1=5321 (40.9% split) | 32x32 compound 0=10234 1=6756 (39.8% split)
25+film A (1080p source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
26+film A (1080p source): filter intra on=true blocks 33181 (modes DC=8294 V=4745 H=5828 D157=9682 PAETH=4632)
27+| film A (1080p source) 1920x768 | 43.49 dB/70635 B, 45.47 dB/121308 B, 46.80 dB/202538 B, 48.00 dB/420365 B | +48.4% | +18.5% | 69.1s:11.2s:14.5s |
28+film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
29+film B (2160p HDR source): pricer armings default=17 real=189
30+film B (2160p HDR source): motion_mode 32x32 SIMPLE=49192 OBMC=0 WARP=1217 | 16x16 SIMPLE=14299 OBMC=0 WARP=993 | 8x8 SIMPLE=2554 OBMC=0 WARP=564 (0.0% OBMC / 4.0% WARP of 68819 eligible)
31+film B (2160p HDR source): inter var-tx depths of 78962 blocks -- leaf single 0=15858 1=2849 (15.2% split) | leaf compound 0=26409 1=4745 (15.2% split) | 32x32 single 0=8645 1=7202 (45.4% split) | 32x32 compound 0=7799 1=5455 (41.2% split)
32+film B (2160p HDR source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
33+film B (2160p HDR source): filter intra on=true blocks 24074 (modes DC=6172 V=3353 H=3522 D157=8455 PAETH=2572)
34+| film B (2160p HDR source) 1920x1024 | 46.05 dB/30689 B, 47.68 dB/64682 B, 48.87 dB/138697 B, 49.93 dB/318772 B | +82.0% | +46.0% | 77.2s:20.7s:17.3s |
35+ok
36+
37+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 588 filtered out; finished in 344.16s
38+
39+RC=0
lanes/gopad/s48-absorb.logadded+25 -0
@@ -0,0 +1,25 @@
1+
2+running 1 test
3+test encode::tests::bd_rate_film_long_gop ...
4+native crop, 48 frames, gop=48; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
7+film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
8+film A (1080p source): pricer armings default=20 real=902
9+film A (1080p source): motion_mode 32x32 SIMPLE=185695 OBMC=0 WARP=9574 | 16x16 SIMPLE=103597 OBMC=0 WARP=14650 | 8x8 SIMPLE=25938 OBMC=0 WARP=4652 (0.0% OBMC / 8.4% WARP of 344106 eligible)
10+film A (1080p source): inter var-tx depths of 355412 blocks -- leaf single 0=74879 1=15303 (17.0% split) | leaf compound 0=117796 1=24157 (17.0% split) | 32x32 single 0=32956 1=25513 (43.6% split) | 32x32 compound 0=38871 1=25937 (40.0% split)
11+film A (1080p source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
12+film A (1080p source): filter intra on=true blocks 114341 (modes DC=27493 V=15938 H=22401 D157=32033 PAETH=16476)
13+| film A (1080p source) 1920x768 | 43.63 dB/195531 B, 45.54 dB/356977 B, 46.80 dB/619801 B, 47.94 dB/1331401 B | +55.2% | +12.8% | 266.8s:33.0s:53.4s |
14+film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
15+film B (2160p HDR source): pricer armings default=17 real=799
16+film B (2160p HDR source): motion_mode 32x32 SIMPLE=211469 OBMC=0 WARP=6377 | 16x16 SIMPLE=71374 OBMC=0 WARP=6009 | 8x8 SIMPLE=13929 OBMC=0 WARP=1672 (0.0% OBMC / 4.5% WARP of 310830 eligible)
17+film B (2160p HDR source): inter var-tx depths of 302583 blocks -- leaf single 0=65620 1=15157 (18.8% split) | leaf compound 0=87859 1=17247 (16.4% split) | 32x32 single 0=33387 1=32493 (49.3% split) | 32x32 compound 0=27556 1=23264 (45.8% split)
18+film B (2160p HDR source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
19+film B (2160p HDR source): filter intra on=true blocks 66685 (modes DC=17151 V=9527 H=9562 D157=23412 PAETH=7033)
20+| film B (2160p HDR source) 1920x1024 | 46.16 dB/76541 B, 47.65 dB/171950 B, 48.72 dB/393470 B, 49.76 dB/1006532 B | +151.3% | +47.4% | 241.3s:70.2s:52.6s |
21+ok
22+
23+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 588 filtered out; finished in 731.74s
24+
25+RC=0
lanes/gopad/s48-fixed.logadded+26 -0
@@ -0,0 +1,26 @@
1+
2+running 1 test
3+test encode::tests::bd_rate_film_long_gop ...
4+native crop, 48 frames, gop=48; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128
5+| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) |
6+|---|---|---|---|---|
7+film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
8+film A (1080p source): pricer armings default=20 real=902
9+film A (1080p source): motion_mode 32x32 SIMPLE=185695 OBMC=0 WARP=9574 | 16x16 SIMPLE=103597 OBMC=0 WARP=14650 | 8x8 SIMPLE=25938 OBMC=0 WARP=4652 (0.0% OBMC / 8.4% WARP of 344106 eligible)
10+film A (1080p source): inter var-tx depths of 355412 blocks -- leaf single 0=74879 1=15303 (17.0% split) | leaf compound 0=117796 1=24157 (17.0% split) | 32x32 single 0=32956 1=25513 (43.6% split) | 32x32 compound 0=38871 1=25937 (40.0% split)
11+film A (1080p source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
12+film A (1080p source): filter intra on=true blocks 114341 (modes DC=27493 V=15938 H=22401 D157=32033 PAETH=16476)
13+| film A (1080p source) 1920x768 | 43.63 dB/195531 B, 45.54 dB/356977 B, 46.80 dB/619801 B, 47.94 dB/1331401 B | +55.2% | +12.8% | 296.1s:36.1s:61.8s |
14+film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 }) effective Some(Pyramid { mini_gop: 8, arf_q_offset: -32, leaf_q_offset: 16 })
15+film B (2160p HDR source): pricer armings default=17 real=799
16+film B (2160p HDR source): motion_mode 32x32 SIMPLE=211469 OBMC=0 WARP=6377 | 16x16 SIMPLE=71374 OBMC=0 WARP=6009 | 8x8 SIMPLE=13929 OBMC=0 WARP=1672 (0.0% OBMC / 4.5% WARP of 310830 eligible)
17+film B (2160p HDR source): inter var-tx depths of 302583 blocks -- leaf single 0=65620 1=15157 (18.8% split) | leaf compound 0=87859 1=17247 (16.4% split) | 32x32 single 0=33387 1=32493 (49.3% split) | 32x32 compound 0=27556 1=23264 (45.8% split)
18+film B (2160p HDR source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0)
19+film B (2160p HDR source): filter intra on=true blocks 66685 (modes DC=17151 V=9527 H=9562 D157=23412 PAETH=7033)
20+| film B (2160p HDR source) 1920x1024 | 46.16 dB/76541 B, 47.65 dB/171950 B, 48.72 dB/393470 B, 49.76 dB/1006532 B | +151.3% | +47.4% | 249.8s:70.4s:51.2s |
21+ok
22+
23+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 588 filtered out; finished in 781.74s
24+
25+RC=0
26+RC=0