forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on cdccbc2f662cc4e4dda0e2d99d7faf0ca5577064Filtered to crates/ec-av1/src/encoder/mod.rsClear filter

Today

ec-av1 rate loop: restore main's comment text in level model (no prose added)Ahmet Kaan Gümüş · a8e773b
ec-av1 rate loop: restore main's comment text in level model (no prose added)

Root cause (unverified by ffmpeg here): flat path slot() returned 0 for every
level, so the key frame's unclamped seed step drove the shared q to the rail.
Fix maps flat onto the pyramid's run plan (key slot 0, leaf slot 2, gop budget).
Comment-only follow-up: restores main's wording, removes added prose.
ec-av1 rate loop: flat path key frame no longer slams shared qAhmet Kaan Gümüş · f61cd97
ec-av1 rate loop: flat path key frame no longer slams shared q

Root cause: RateLoop::slot() returned 0 for every level on the flat path,
so the key frame's unclamped seed step drove the single q to 255 and inter
frames ramped back at STEP_CLAMP (12/frame). Fix: flat path runs the same
per-level plan as the pyramid (key slot 0, leaf slot 2, gop budget, replan).
gop=1 and pyramid output unchanged. Comments removed, struct doc updated.
Tests not run here; orchestrator to verify against ffmpeg 9.0.2.
ec-av1 rate loop: key frame no longer slams the flat path's shared qAhmet Kaan Gümüş · 4b94175
ec-av1 rate loop: key frame no longer slams the flat path's shared q

Root cause (encoder/mod.rs RateLoop): the flat path (no pyramid) had one
shared q slot for key and leaves (slot() returned 0 for all levels) and no
key budget. The key frame's first update takes the unclamped seed step
(q += ln(22289/4000)/0.0154 ~ +111), so q hit 255 right after the key;
the following inter frames then ramped down at STEP_CLAMP=12/frame, which
matches the reported sizes ramp 45,109,219,272,428,550,... on Sintel
640x384 (derived from the code path, not yet checked with ffprobe).
Fix: the flat path builds the same run plan as the pyramid (key plan + leaf
plan, gop budget, replan over the GOP), each level steers its own q, and
per_level is gone. The key overshoot is spread over the GOP instead of the
leaves' quantizer. gop=1 output is unchanged.

2026-11-08

Encoder fixes from round-trip sweep follow-upAhmet Kaan Gümüş · f849ee9
Encoder fixes from round-trip sweep follow-up

- ec-opus: 40/60 ms CELT/Hybrid as code-3 packets of 20 ms frames; self-delimited framing for code-3 packets (multistream 40/60 ms); multistream buffer sized for 60 ms
- ec-image GIF: pixels turning transparent re-emit the previous frame with disposal 2 over the cleared area
- ec-mp3: padding bit at 44.1/22.05/11.025 kHz
- ec-aac: refuse bitrate 0
- ec-vorbis: refuse non-finite quality
- ec-h264: refuse non-positive frame rate instead of clamping to 1
- ec-av1: with_pyramid doc matches behaviour (mini_gop > gop is clamped)
Encoder parameter-path fixes found by ffmpeg round-trip sweepsAhmet Kaan Gümüş · c561bfe
Encoder parameter-path fixes found by ffmpeg round-trip sweeps

- ec-truehd: set nonrestart_substr on access units without major sync;
  ffmpeg rejected every AU after the first
- ec-mp3: write the Xing/Info frame at a bitrate that holds the whole tag;
  at low bitrates the truncated tag made ffmpeg read gapless fields from
  audio frames (16 kHz/8 kbps decoded as noise, others shifted)
- ec-aac: cap a frame at 6144 bits per channel; high bitrate per channel
  overflowed the decoder buffer and the 13-bit ADTS length
- ec-av1: validate tiles against the superblock size actually coded (128),
  no shift overflow on huge log2, refuse base_q_idx 0 (lossless) up front
- ec-ac3: 0 Hz no longer panics
- ec-alac: refuse frame_length outside 1..=2^20 (0 hung) and 0 Hz

2026-10-23

Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.