forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 7cb30bf3c8f789c839dad16c2b013c15ecab4fa2

2026-09-24

📝 docs(engine): the seat remembers a window that would not open, the memo does notAhmet Kaan Gümüş · 7cb30bf
📝 docs(engine): the seat remembers a window that would not open, the memo does not

The comment claimed the opposite of what the code does: a window that fails to
decode is latched in the seat's own handle -- as an empty slice, for as long as
it paints in that window -- precisely so a file that is not there is not asked
thirty times a second. The memo still keeps successes only, so the next window
and the next seek ask again. Comment only; no behaviour changed.
🐛 fix(engine): a dead audio output is re-opened instead of ending the session's soundAhmet Kaan Gümüş · b05e9ee
🐛 fix(engine): a dead audio output is re-opened instead of ending the session's sound

The feeder flags the output dead when a write returns `None` -- a PipeWire
daemon that restarted, or a sink node that was removed. Nothing ever cleared
that flag: `start_audio` skipped its whole body for it, `arm_audio` was a no-op
while `self.audio` was `Some`, and `tick` handed the clock to wall time without
a word. The stream's position is frozen, so it can never satisfy `played_out`
again either. The session was silent for the rest of its life, through every
seek and every pause/play, with nothing shown to the user about it.

`rearm_audio` opens the output again at the rate and channel count the dead
stream carried -- the device only, never the file: the feeder is `start_audio`'s
at the seek that follows -- and clears the flag and the clock anchor that belong
to the stream that died. A seek (or the play after a pause) attempts it with no
cooldown, because that is a person asking and the one moment the sound can come
back into step with the picture; `tick` attempts it once a second, because a tick
is a rendered frame and a device that is gone for good must not be opened sixty
times a second. `tick`'s dead branch now runs *before* its clock-source guard:
the death is what puts the clock on wall time, so a session that only polled
once more would never try the device again -- the attempt has to be inside the
branch that keeps running. While it is dead, the session says so through the
door a front-end already reads for a silent one (`audio_disabled_reason`), and a
re-arm that takes clears that line again. `arm_audio` treats a dead device as no
device, so an import replaces it instead of being turned away by it.

Evidence: `cargo test -p engine --lib -- --exact
playback::tests::a_dead_output_is_rearmed_and_the_sound_comes_back` -- ok.
The test stops the stream and flags it exactly as `feed` does, stamps the
cooldown as spent, and then asserts: the notice is up, died is still set and the
tap is empty after a tick (no open inside the cooldown, nothing feeding), and
after a play + seek the flag is clear, the notice is gone and the *tap* -- the
samples that reached the device -- has samples in it again.
⚡️ perf(engine): a film's visualizer reads a window of its envelope, not the whole fileAhmet Kaan Gümüş · 0cf7335
⚡️ perf(engine): a film's visualizer reads a window of its envelope, not the whole file

A look drag re-opens the visualizer seat once per pointer sample, and the seat
asks for the clip's whole envelope: two hours at the visualizer's 4000 buckets a
second is 230 MB, past `PEAKS_MEMO_BUCKETS`, so the memo refuses to hold it and
every one of those asks decoded the whole file again -- six channels through
`ec-aac`, ~7 s of four cores, per pointer sample, for a picture that shows two
seconds of sound. The cap is not the bug: one entry that size is not a memo.

The seat's ask is now the shape of what it paints. `viz_envelope` answers with
the memo's own whole-file handle when it holds one, and otherwise with a
*window* of the file's envelope about each frame's own time -- 30 s of buckets,
decoded once per window per process, held under a 4M-bucket ceiling
(VIZ_WINDOW_MEMO_BUCKETS, 32 MB, ~34 windows for every source in the session).
A window is 1.5% of the film's envelope and a drag re-asks the one it is in.

Two scalars of the whole file are still needed to draw any frame of it: the
file's loudest bucket, which every column is scaled by, and its exact length,
which is where "past the end of the file" is measured. `viz_summary` reads both
off one pass that keeps no buckets -- the same windows, threads and opens
`peaks_over` decodes an envelope with, so the peak is the envelope's own -- and
the summary is kept per stream, sixteen bytes rather than 230 MB. Both routes
are memoized; a failed ask still is not.

`VizView` is what a painter is handed: either the whole envelope
(`visualizer_i420`, unchanged for export and the tests) or a window with the
file's own `total` and `peak`. A view that is a window cannot derive either from
itself, which is why they travel with it.

Also guards the sample rate that becomes samples-per-bucket: `per_bucket_of`
floors the rate at one both ways, because `sample / 0.0` is infinite, `as usize`
saturates and the fold's `resize(bucket + 1)` is then a length that does not
exist -- a panic in debug, a wrap and an out-of-bounds index in release. The
window arithmetic is written in buckets *per second* off the same helper.

Evidence (`cargo test -p engine --lib -- --test-threads=1 waveform::`):
16 passed, including a 40-minute FLAC whose envelope is 9.6M buckets (past the
real ceiling): a window's buckets are the envelope's bucket for bucket and its
frame is byte for byte the frame the whole envelope paints, the first ask decodes
a window, and the three asks after it -- a drag, a new seat each time -- decode
nothing at all.

2026-09-20

💄 ui(settings): one plate height for every tabAhmet Kaan Gümüş · 19dcc3e
💄 ui(settings): one plate height for every tab

The rows area wore its content, so PROJECT's seven rows, EDITOR's five
and EXPORT's four resized the centred plate on every tab switch. The
area now has one fixed measure -- the tallest section's own
(SETTINGS_ROWS_H, PROJECT's rows at CONTROL_H plus the gaps) -- a tab
switch swaps the rows and the plate does not move; shorter sections
leave air below their last row, and a short window still scrolls under
the max_h cap. The modal geometry guard gains the fixed-height needle
and counts PROJECT's rows out of the source to keep the constant
honest.

2026-09-19

💄 ui(settings,export): settings is a centred modal; the budget goes below a megabitAhmet Kaan Gümüş · 9085e57
💄 ui(settings,export): settings is a centred modal; the budget goes below a megabit

- settings page reframed from the full-width below-picture sheet to a
  centred modal card (480px plate of one tabbed column's measure,
  viewport-capped with the rows scrolling, click-away/esc close
  unchanged) — the sheet covered the timeline; new layout guard pins
  the geometry
- export budget floor drops from 1 Mbps to 100 kbps in both the engine
  (MIN_BITRATE) and the app (BPS_MIN), so a typed '600k' travels as
  0.6 Mbps instead of being silently rewritten to 1.0; pins re-seated
  at the new floor, wheel steps unchanged, no-session fallback keeps
  its 6 Mbps meaning as a literal
- DESIGN.md §11.6 names the settings modal as an accepted occlusion
  exception, per its own 'the document changes explicitly' rule
💄 ui(cards,settings,dock): calmer surfaces — viz section head, quieter export card, settings tabsAhmet Kaan Gümüş · 3690c86
💄 ui(cards,settings,dock): calmer surfaces — viz section head, quieter export card, settings tabs

- dock CLIP tab groups the visualizer cluster under a VISUALIZER
  section head, the same section_head the KEYS list already wears
- export progress card drops both helper sentences ('esc alone does
  nothing…', 'cancelling deletes…'); the % line, codec/seat line and
  src → dst line stay, and the two-press cancel buttons speak for
  themselves
- settings plate is a PROJECT/EDITOR/EXPORT tab strip in the dock's
  tab look, one section at a time, replacing the three side-by-side
  columns; each tab's hover carries the section's one-line why; the
  pick persists across close/open like the dock's tab
- DESIGN.md records the tab strip; the room-head pin is repinned as
  a tab-strip pin

2026-09-18

🐛 fix(media): audio routing, session audio re-arm, hw trailing-zero NALs, display-matrix rotationAhmet Kaan Gümüş · bc8b82e
🐛 fix(media): audio routing, session audio re-arm, hw trailing-zero NALs, display-matrix rotation

- is_audio admits .mpeg/.mpg so mp3-with-cover files import (was fed to Mp4Demuxer)
- session audio walks past trackless leading sources and re-arms when a
  sounding file joins a silent timeline (fixes add/remove/add silence)
- engine-hw pump clears trailing cabac_zero_word bytes instead of dying
  with code -2; export falls back to software decode before first frame
- tkhd display matrix read for mp4; 90/180/270 turns baked into preview
  and export pixels; other angles refused by name (UnsupportedRotation)

2026-09-17

⚡ perf(audio): the preview paints at its own size, not the project'sAhmet Kaan Gümüş · 62b680e
⚡ perf(audio): the preview paints at its own size, not the project's

The visualizer rebuilt the picture at the project resolution (1920x1080)
for a preview displayed at ~584x328, so every look edit paid 4-5x what it
needed. `PlaybackSession::set_view_size`/`view_size` now feed every composer
the playback path opens (span, dissolve-B, black) and the app pushes the
Contain-fitted display box from a probe on the picture area, with an 8 px
deadband so a resize drag does not thrash. The export keeps its own seat at
the project resolution and is untouched.

Ring, a test song, ms per painted frame, glow 2/4/8/12/16:
  18.5/35.7/64.7/93.2/117.1  ->  5.7/5.9/9.6/12.9/15.9

"Save frame as PNG" would otherwise have followed the preview down to that
size, so it now asks the seat for one frame at the project's own size and
writes the PNG when it lands (keyed to the session that asked, with a 2 s
bound), and the preview's size comes back on the next repaint.

The painter's per-frame buffers (VizScratch) are owned by the painting
thread: 27 Vecs a frame -> 8, and none on later frames.
⚡ perf(audio): the envelope memo answers a trackless source tooAhmet Kaan Gümüş · 98fe25f
⚡ perf(audio): the envelope memo answers a trackless source too

peaks_shared returned early on Ok(None) and on Err, so a visualizer clip on
a source with no audio track re-opened its container on every picture
rebuild -- the per-rebuild cost the memo exists to remove. The map now holds
NoTrack as well as an envelope, and the two arithmetic paths (an envelope
over the ceiling is never held; a replaced entry's buckets come off the
count) are pinned by tests, mutation-checked against the three regressions.

2026-09-16

⚡ perf(audio): the glow pass paints a chain, not a disc per stepAhmet Kaan Gümüş · 905edda
⚡ perf(audio): the glow pass paints a chain, not a disc per step

`viz_line` stamped a full disc at every Bresenham step of the ring/wave
chain, so the cost grew as `steps * pi * glow^2`: on a 1920x1080 ring one
painted frame cost 16 ms at glow 2 and 1152 ms at glow 16, which is the
frame drop the glow stepper produced. `viz_chain` paints a whole chain per
cell -- luma is a max and every cell of one chain shares one ink, so the
nearest cell decides both planes -- with an exact lower-hull sweep for the
nearest column, and the disc pass is kept verbatim and picked by a measured
speed rule (the crossing is glow 3-4). A 16-row golden-hash test pins the
painted bytes of both arms at 1920x1080.

glow 2/4/9/16: 16/60/294/1152 -> 18/36/61/117 ms per painted frame.
⚡ perf(audio): the visualizer reads its envelope from a process memoAhmet Kaan Gümüş · dc551d7
⚡ perf(audio): the visualizer reads its envelope from a process memo

A picture rebuild called `open_visualizer`, which decoded the whole file's
audio envelope again -- ~51 ms of CPU, 598k buckets for a 150 s song -- so
every look edit, and every sample of a wheel drag, paid a whole-file decode
for an answer that had not changed. `waveform::peaks_shared` memoises it by
the file's own stat (path, stream, buckets, length, mtime), bounded in
buckets; the envelope fed to the painter is the same value as before.

The user's "dragging causes frame drop" was that decode on the frame path:
rebuild latency p50 68 -> 6-18 ms, playing frame interval p95 80 -> 48 ms,
frames over 50 ms 32/438 -> 1/496. The wheel's own 720-polygon repaint
measured ~0.9 ms and the engine write's UI-thread share ~42 us, so neither
was touched.
✨ feat(audio): the look panel picks the strand colour and reads a typed oneAhmet Kaan Gümüş · 880e8a0
✨ feat(audio): the look panel picks the strand colour and reads a typed one

The CLIP tab's look section gains a Colour | Strand target over the disk
(Strand only once the waveform has two or more strands) and a field that
shows and takes the colour as #RRGGBB or rgb()/rgba(); an unreadable string
is refused in words and changes nothing. The wheel acts on the picked slot.

Every sample after the press is a live write, so one drag is one undo step
rather than sixty. And every click door that writes the project arms
autosave -- the look family, the settings rows, the library's source
removal -- which none of them did: a colour picked and then closed was lost
with no prompt, and the ledger never said "unsaved".
✨ feat(audio): the waveform look carries a strand colour, and a hex/rgb doorAhmet Kaan Gümüş · 1973da2
✨ feat(audio): the waveform look carries a strand colour, and a hex/rgb door

viz_paint widens to one packed u64: hue/sat/strands/glow in the low bytes
exactly as v22 wrote them, the strand's own hue and sat above, and bit 63
saying the strand colour was chosen rather than left to the +128 complement.
Dialect v23. viz_color_hex/viz_color_from_text read and write the colour a
person would type. set_viz_paint_live joins its colour/transform/speed
twins so a drag is one undo step.
🐛 fix(audio): coalesce the visualizer wheel drag like the colour barsAhmet Kaan Gümüş · ed847d4
🐛 fix(audio): coalesce the visualizer wheel drag like the colour bars

One pointer sample wrote one edit(Dirty::Picture) -> start_picture: a full
picture rebuild at the playhead per sample, so a drag queued a reopen per
step and the window froze for the sum -- the shape drag_color's own comment
already names. The wheel now holds a sample while a rebuild is in flight
(stash_or_write, busy = a pending reseek), flushes it on release, and draws
its mark from the held sample so the hand leads the picture.

2026-09-15

✨ feat(audio): drag the HSV wheel like every other pickerAhmet Kaan Gümüş · f93a86c
✨ feat(audio): drag the HSV wheel like every other picker

Press stays on the disk; moves sample hue/sat on the root the same
way a 4 px colour slider does. Glow stays a width; that is the stamp.
🐛 fix(audio): ring uses the picked colour; glow 0 is 0; HSV diskAhmet Kaan Gümüş · 2ad667f
🐛 fix(audio): ring uses the picked colour; glow 0 is 0; HSV disk

One strand was always the opposite hue (`0 < 1/2`). Glow on Ring
never stamped. Glow 1 then − wrote the unset sentinel and showed 2.
Wheel is a sat×hue disk; Sat row is gone (radius is sat).
✨ feat(audio): HSV wheel, real glow, fixed-length windowAhmet Kaan Gümüş · 20ec2e7
✨ feat(audio): HSV wheel, real glow, fixed-length window

Colour is a standard HSV wheel (0° red at top, radius = sat). Glow
now expands the stroke. The 2s view no longer shrinks at file edges,
which was stretching a bump as it entered.
✨ feat(audio): stable envelope height, full hue/sat, strands and glowAhmet Kaan Gümüş · 7ebfc44
✨ feat(audio): stable envelope height, full hue/sat, strands and glow

The 2s window no longer rescales to its own peak, so a bump keeps its
height as it enters and leaves. Colour is a 64-stop hue bar plus sat
(white→full). Strands and glow go from one line to the dense ring.
Packed on Clip.viz_paint; dialect v22.
✨ feat(audio): timeline-smooth fill default, ring look, azure inkAhmet Kaan Gümüş · 92b906f
✨ feat(audio): timeline-smooth fill default, ring look, azure ink

Default visualizer is the lane envelope (fold + smooth + fill) in
#4F8FD6, not a signed-peak scribble. CLIP adds Ring (polar strands).
Ribbon stays the linear flowing look. Colour 0 is that azure.
✨ feat(audio): Audacity trace, ribbon, fill — colour is a pickerAhmet Kaan Gümüş · 70a02fb
✨ feat(audio): Audacity trace, ribbon, fill — colour is a picker

Visualizer default is a signed-peak polyline (the Audacity line), not
the filled 60 Hz bars. CLIP tab picks Waveform / Ribbon / Fill, Fast
zooms to 0.2s, and colour is 16 swatches + steppers.

2026-09-14

✨ feat(audio): waveform styles, any soundtrack, keys search, group on the clip menuAhmet Kaan Gümüş · dfcec06
✨ feat(audio): waveform styles, any soundtrack, keys search, group on the clip menu

Visualizer is no longer wav-only: h on a video clip with sound paints
that file's soundtrack. Style bits live on the clip (outline, smooth,
fast, colour) and toggle from CLIP. `?` type-to-filters the keys list.
Group / Ungroup / Regroup are clip-menu rows, not chords-only.
✨ feat(audio): create a waveform visualizer as a video clipAhmet Kaan Gümüş · 735b90e
✨ feat(audio): create a waveform visualizer as a video clip

Select an audio clip and press h (or the clip menu). The sound's envelope
is painted as a sliding mirrored waveform onto a video lane, so preview
and export both show it. Paste still never drops a song on V1.

2026-09-13

✨ feat(silence): keep-only invert — cut speech, leave the quietAhmet Kaan Gümüş · 5cd971b
✨ feat(silence): keep-only invert — cut speech, leave the quiet

Silences card gets a Keep only silence switch (k). Off is today's
jumpcut; on, cut/speed act on the complement of the scan so the
quiet stays. Empty quiet still refuses rather than cutting the
whole clip.

Also drop the second tooltip on the card maximize glyph — gpui
panics if .tooltip() is called twice, which crashed every param
card including this one.
Merge branch 'lane-mp3vorbis-swap' (f68f46d): MP3 and Vorbis encode seats are ec-mp3 / ec-vorbis -- rusty_mp3 and rusty_vorbis leave the tree. Vorbis: strictly better operating point (r 0.9968 vs 0.9947, +3.1 dB, same size, par with ffmpeg q5), pre-roll/granule corrections obsolete (lag-0 sample-exact through symphonia), encode ~1.2-1.5x faster. MP3: gapless-exact (incumbent was +648 samples), quality reproduced equal-or-better. DISCLOSED TRADE: MP3 encode is ~7x realtime stereo (428.6ms/3s music, 4188.5ms/30s real) vs rusty_mp3's 147-283x -- a 2h film's stereo track exports in ~17 min vs ~48s, and MP3 is an audio-only export so encode IS the wall; single-thread vs single-thread (rusty_mp3 is thread_local-only). lane-ecmp3-perf armed in the same batchAhmet Kaan Gümüş · 423536a
Merge branch 'lane-mp3vorbis-swap' (f68f46d): MP3 and Vorbis encode seats are ec-mp3 / ec-vorbis -- rusty_mp3 and rusty_vorbis leave the tree. Vorbis: strictly better operating point (r 0.9968 vs 0.9947, +3.1 dB, same size, par with ffmpeg q5), pre-roll/granule corrections obsolete (lag-0 sample-exact through symphonia), encode ~1.2-1.5x faster. MP3: gapless-exact (incumbent was +648 samples), quality reproduced equal-or-better. DISCLOSED TRADE: MP3 encode is ~7x realtime stereo (428.6ms/3s music, 4188.5ms/30s real) vs rusty_mp3's 147-283x -- a 2h film's stereo track exports in ~17 min vs ~48s, and MP3 is an audio-only export so encode IS the wall; single-thread vs single-thread (rusty_mp3 is thread_local-only). lane-ecmp3-perf armed in the same batch

# Conflicts:
#	Cargo.lock
#	crates/engine/Cargo.toml
#	crates/engine/src/caps.rs
#	crates/engine/src/export.rs
Merge branch 'lane-h265enc-swap' (4808c4a): the HEVC encode seat is ec-h265 and oxideav-h265 leaves the tree (47+ vendor files, conformance-window patch with them -- ec-h265 self-pads and writes the crop) -- reviewer-executed validity: +1.22 dB PSNR-Y at -25.6% bytes vs the old seat at qp40 (+1.02 dB at -11.1% qp27), export wall 1.07-1.10x, mkv+mp4 decode back through the VA-API plugin seat, frame-parallel batching preserved byte-identicallyAhmet Kaan Gümüş · 49b300a
Merge branch 'lane-h265enc-swap' (4808c4a): the HEVC encode seat is ec-h265 and oxideav-h265 leaves the tree (47+ vendor files, conformance-window patch with them -- ec-h265 self-pads and writes the crop) -- reviewer-executed validity: +1.22 dB PSNR-Y at -25.6% bytes vs the old seat at qp40 (+1.02 dB at -11.1% qp27), export wall 1.07-1.10x, mkv+mp4 decode back through the VA-API plugin seat, frame-parallel batching preserved byte-identically

# Conflicts:
#	Cargo.toml
#	crates/engine/src/caps.rs
🔁 feat(video): the HEVC encode seat is the native ec-h265 — oxideav-h265 leaves the treeAhmet Kaan Gümüş · 4808c4a
🔁 feat(video): the HEVC encode seat is the native ec-h265 — oxideav-h265 leaves the tree

The vendored OxideAV intra encoder is replaced by the project's own ec-h265,
intra-only by construction: every picture an IDR carrying its own
VPS/SPS/PPS, so the seat's contract — an intraframe master, every frame a
cut point, even dimensions, a bitrate row mapped to a constant QP through the
same 0.6 bpp anchor — is unchanged. Named headroom deliberately not taken:
the encoder's per-picture target-bits correction pass, 64x64 CTBs and the
chroma rate-distortion mode search.

The seat keeps the frame-parallel shape of the one it replaces: a batch of
display-size planes codes on one lane encoder each, and each encoder's WPP
wavefront splits the cores the lanes leave over. Coding one picture at a
time on every core was measured at 0.63x the old export wall — the batching
is what keeps decode and render fed while a batch codes.

Quality, identical 300-frame 1920x792 film window, matched constant QP,
ffmpeg-decoded, ffmpeg PSNR/SSIM against the source:

  QP 40: 38.05 dB PSNR-Y / 0.9434 SSIM-Y at 2.14 MB
         (was 36.83 dB / 0.9286 at 2.88 MB — +1.22 dB for 25.6% fewer bytes)
  QP 27: 45.10 dB / 0.9811 at 8.35 MB
         (was 44.08 dB / 0.9773 at 9.40 MB — +1.02 dB for 11.1% fewer bytes)
  libx265 intra control at the same QPs: 39.87 dB / 46.37 dB

Perf: export wall over a 300-frame 1080p30 window, 5-sample bench, quiet
box: 12.6-13.0 fps against the old seat's 11.8 (1.07-1.10x).

Bitstream validity: the exports reopen through this project's demuxer in
both containers and decode back to pictures through the VA-API plugin's
HEVC seat (mkv and hvc1); ffmpeg decodes every witness without a complaint
and the 1080p conformance-window export still states 1920x1080 through the
SPS. Suites green: hevc, hevc_export (incl. the hardware and software
roundtrip witnesses), hevc_mkv, hevc_hvc1, export, export_color, backends,
opus_export, lib (373); cargo check -p engine --all-targets with zero
warnings.
🔁 feat(audio): the MP3 and Vorbis encode seats are the native ec-mp3 / ec-vorbisAhmet Kaan Gümüş · f68f46d
🔁 feat(audio): the MP3 and Vorbis encode seats are the native ec-mp3 / ec-vorbis

The two registry-crate encoder seats (rusty_mp3 0.6, rusty_vorbis 0.1.1)
leave the tree; both formats encode through the codec family's own crates
(path deps, same boundary ec-opus/ec-ac3 already cross).

MP3 (CBR per the card's rate rows): same seat contract, same
Mp3EncoderConfig field names, call sites unchanged. A/B on identical
16-bit PCM (suite fixtures + a 30 s 44.1 kHz stereo music decode),
outputs decoded through symphonia: correlation 0.9994-0.9998 against the
incumbent's 0.9980-0.9991 at the same 192 kbps, PSNR +5..+7 dB, and the
decoded length lands exactly on the mix (the old seat ran 180 samples
long with a 1057-sample shift the gapless tag only partly hid).

Vorbis: the seat's quality knob alone saturates below the incumbent's
operating band, so write_ogg drives the encoder the way its own rate
gates are measured -- rate loop started at quality 0.85 and held to a
128 kbps target. At the incumbent's own 0.85 operating point (123.8 kbps
actual on the music clip, correlation 0.9947) the new seat reads
129.0 kbps actual at correlation 0.9968, +3.1 dB PSNR; against ffmpeg's
libvorbis -q 5 it is par at the same rate (0.9968 vs 0.9973). Every
export decodes to exactly the timeline's frame count, correlation peak
at lag zero.

That measurement retires write_ogg's workaround: the old seat advanced
its granule a hop early and overran the tail, so the function carried a
1024-sample pre-roll and two granule corrections around it. ec-vorbis
reports spec granules and clamps its final one to the sample count fed,
so the pre-roll, the per-packet shift and the manual tail declaration are
deleted. Mono stays dual mono (bit-identical L/R, worst |L-R| = 0
measured) because the format row promises stereo, not because the encoder
refuses mono as the old seat's did.

Perf, named: MP3 encode wall is 0.05x the old seat on the 30 s clip
(4.3 s vs 0.20 s CBR; the old shim encoded blocks across all cores, the
new seat is single-threaded sequential) -- the price of the quality and
gapless-exactness above; Vorbis at the seat's operating point is 1.4x
faster than the old seat (49 ms vs 69 ms per 30 s). audio_export and
backends suites green (14 + 8), export lib tests green, cargo check -p
engine --all-targets zero warnings; lock carries no rusty_mp3/rusty_vorbis
stanza.

2026-09-12

🔁 feat(audio): the AC-3/E-AC-3 decode seat is the native ec-ac3Ahmet Kaan Gümüş · 9fab7c9
🔁 feat(audio): the AC-3/E-AC-3 decode seat is the native ec-ac3

oxideav-ac3 leaves the tree. One decoder reads both syntaxes, dispatching
per packet on bsid, and hands back interleaved f32 -- the seat asks for its
own A/52 §7.8.2 stereo fold on anything wider than mono, per-position
coefficients from each frame's own acmod and mix levels, so no width is
refused any more (the 2.1-at-3ch passthrough refusal dies with the library)
and the mono digital-silence corner-cut is gone with it.

Witnesses on real content, identical packets, old seat vs new:
- AC-3 5.1 film: per-channel correlations 0.99965-0.99999, rms ratios
  1.001; the residual is the format's unspecified dither noise -- against
  ffmpeg's own decode both decoders sit equally close, and the two spots
  where they did not agree are OLD-seat deviations (the 2.0 rematrixing
  decode: 0.92/0.76 vs ffmpeg, the new seat 0.99997; the LFE: 0.976 vs
  ffmpeg, the new seat 1.000000).
- E-AC-3 5.1 film: correlations >= 0.99998 on all six channels, rms 1.000.
- Decode speed 1.64-1.68x the old seat (min-of-7, ~320x realtime 5.1).
- Named coverage edge, refused by name at open, not silently: Annex E
  dependent substreams and enhanced coupling (7.1 DD+ assembled as
  5.1-plus-dependents) -- oxideav walked those, ec-ac3 refuses them.
  Every single-substream AC-3 and E-AC-3 track decodes.

New film witness file tests/audio_ac3_film.rs (seek-landing + ffmpeg
correlation on a real AC-3 5.1 film and a real E-AC-3 5.1 film, mirroring
the Opus/AAC film witnesses), real_library.toml.example documents the
ac3_51_film key. caps row and the codec-table comment follow the seat.
🔥 chore(engine): rusty_aac leaves the tree -- the encode seat was its last job and ec-aac took it in the previous commit; vendor/rusty_aac git-rm'd, the [patch.crates-io] line and the workspace exclude row go with it, Cargo.lock carries zero rusty_aac entries (its lock stanza was dependency-free, so nothing else moves), and the manifest keeps the record in the rusty_h264-common style: a seventh vendor whose whole entry left with its last seat, its decoder IMDCT patch (N/4-point FFT through dsp::dct4, 40x the matrix version) having served the decode seat ec-aac replaced first. Seat comments read past tense. Post-removal: -p engine --all-targets 0 warnings, lib suite 375/375, export 8/8Ahmet Kaan Gümüş · cbad1fe
🔥 chore(engine): rusty_aac leaves the tree -- the encode seat was its last job and ec-aac took it in the previous commit; vendor/rusty_aac git-rm'd, the [patch.crates-io] line and the workspace exclude row go with it, Cargo.lock carries zero rusty_aac entries (its lock stanza was dependency-free, so nothing else moves), and the manifest keeps the record in the rusty_h264-common style: a seventh vendor whose whole entry left with its last seat, its decoder IMDCT patch (N/4-point FFT through dsp::dct4, 40x the matrix version) having served the decode seat ec-aac replaced first. Seat comments read past tense. Post-removal: -p engine --all-targets 0 warnings, lib suite 375/375, export 8/8
♻️ refactor(engine): the AAC encode seat is ec-aac -- export.rs's encode_audio and the muxer's tone harness speak ec_aac::AacEncoder on the seat's old contract (interleaved f32 push_pcm, raw raw_data_block packets one frame long, the sf_index_for_rate refusal the export turns into a user-facing message, ASC rebuilt from AacTrackParams), the caps row and both SW-encode labels read ec-aac, and a new mux witness round-trips seat-encoded mono, stereo and 5.1 through the project's own decode door (symphonia's reader for the pair, the family decoder for 5.1, folded to stereo as the door's contract states). A/B on identical synthetic program -- mono 44.1k 128k, stereo 44.1/48k 256k, stereo 48k 96k, 5.1 48k 512k, every output ADTS-framed and ffmpeg-decoded, alignment by envelope correlation with an ffmpeg-native control column: ec-aac correlates at or above the incumbent on every row (mono 0.9674 vs 0.9564, stereo 96k 0.9445 vs 0.8458, 5.1 0.6050 vs 0.6007) and matches or beats ffmpeg's own encoder at matched actual rate; cost is +4-6% actual bits at the same target and a slower encode wall (single-threaded vs rusty_aac's frame-parallel finish: 2.0-3.7x on one core, 5.9-10.2x as-shipped on this box) -- named here per the perf bar. rusty_aac itself leaves in the next commit. Export and capability suites green, -p engine --all-targets 0 warningsAhmet Kaan Gümüş · 7ed056a
♻️ refactor(engine): the AAC encode seat is ec-aac -- export.rs's encode_audio and the muxer's tone harness speak ec_aac::AacEncoder on the seat's old contract (interleaved f32 push_pcm, raw raw_data_block packets one frame long, the sf_index_for_rate refusal the export turns into a user-facing message, ASC rebuilt from AacTrackParams), the caps row and both SW-encode labels read ec-aac, and a new mux witness round-trips seat-encoded mono, stereo and 5.1 through the project's own decode door (symphonia's reader for the pair, the family decoder for 5.1, folded to stereo as the door's contract states). A/B on identical synthetic program -- mono 44.1k 128k, stereo 44.1/48k 256k, stereo 48k 96k, 5.1 48k 512k, every output ADTS-framed and ffmpeg-decoded, alignment by envelope correlation with an ffmpeg-native control column: ec-aac correlates at or above the incumbent on every row (mono 0.9674 vs 0.9564, stereo 96k 0.9445 vs 0.8458, 5.1 0.6050 vs 0.6007) and matches or beats ffmpeg's own encoder at matched actual rate; cost is +4-6% actual bits at the same target and a slower encode wall (single-threaded vs rusty_aac's frame-parallel finish: 2.0-3.7x on one core, 5.9-10.2x as-shipped on this box) -- named here per the perf bar. rusty_aac itself leaves in the next commit. Export and capability suites green, -p engine --all-targets 0 warnings
🐛 fix(engine): the multi-audio layout refusal test pins the width refusal that is leftAhmet Kaan Gümüş · 1e84d82
🐛 fix(engine): the multi-audio layout refusal test pins the width refusal that is left

a_source_that_disagrees_on_layout_is_refused still expected stream 1 of the
multi-audio fixture (22.05 kHz mono on a 44.1 kHz stereo timeline) to be
refused outright; d7c614b (DEBT #46) let a mono source up-mix onto a wider
timeline and updated audio_files, playback and saveload, missing this suite.
The test now pins the current posture: the decode path widens and resamples
that stream (drained for contiguity, length and non-silence), the copy path
still refuses it -- copied packets can be neither widened nor resampled and
one esds cannot declare two tracks -- and the refusal left in both paths is
a source wider than the timeline (stereo onto a mono first source), named by
'source 1' in each path's own words.
♻️ refactor(engine-hw): the VP8 decode seat is ec-vp8 native -- libvpx and its hand-written FFI are deleted, the plugin links the decoder as ordinary Rust (56 ec_vp8 symbols, no DT_NEEDED, no dlopen); VpxSession keeps its five-verb boundary (init/decode/flush/get_frame, destroy now the drop of an owned decoder) and everything above it is untouched; CAP_VP8 lights unconditionally and still never reads as a GPU seat; A/B byte-exact against the libvpx seat on the 1280x720 fixture (60/60 frames), the 2560x1321 odd-size webm (270/270) and a two-pass auto-altref stream (90/90 shown, 6 hidden produce none, seek landings identical); vp8 twins 4/4, capability_matrix+backends+caps green, --all-targets 0 warningsAhmet Kaan Gümüş · 36bd0e7
♻️ refactor(engine-hw): the VP8 decode seat is ec-vp8 native -- libvpx and its hand-written FFI are deleted, the plugin links the decoder as ordinary Rust (56 ec_vp8 symbols, no DT_NEEDED, no dlopen); VpxSession keeps its five-verb boundary (init/decode/flush/get_frame, destroy now the drop of an owned decoder) and everything above it is untouched; CAP_VP8 lights unconditionally and still never reads as a GPU seat; A/B byte-exact against the libvpx seat on the 1280x720 fixture (60/60 frames), the 2560x1321 odd-size webm (270/270) and a two-pass auto-altref stream (90/90 shown, 6 hidden produce none, seek landings identical); vp8 twins 4/4, capability_matrix+backends+caps green, --all-targets 0 warnings
Merge branch 'lane-av1-seat' (1213004): AV1 joins H264 with a native software decode seat -- ec-av1 per-chunk whole-stream decode, byte-exact against the VA-API seat on 8-bit and 10-bit fixtures (60/60 frames, 0 differing bytes), seek-landing equivalence, refusal-in-words posture, AV1 imports work with no plugin at 1.70x realtime at 1080p-classAhmet Kaan Gümüş · ccfe87c
Merge branch 'lane-av1-seat' (1213004): AV1 joins H264 with a native software decode seat -- ec-av1 per-chunk whole-stream decode, byte-exact against the VA-API seat on 8-bit and 10-bit fixtures (60/60 frames, 0 differing bytes), seek-landing equivalence, refusal-in-words posture, AV1 imports work with no plugin at 1.70x realtime at 1080p-class

# Conflicts:
#	Cargo.lock
#	crates/engine/Cargo.toml
🐛 fix(engine): the every-container seek witness sanitizes VE_SW at entryAhmet Kaan Gümüş · 1213004
🐛 fix(engine): the every-container seek witness sanitizes VE_SW at entry

The AV1 witness lane's comment rewrite dropped the remove_var the test
kept at its top, and sibling tests leak VE_SW=1 by design before it runs
alphabetically: under the leaked pin the plugin-only HEVC fixtures refuse
at open and the documented full run fails 11/1 at test_hevc.mp4. The
sanitizer is back, with the leak named and the --test-threads=1 note
that makes it safe.
✨ feat(engine): a native AV1 decode seat — ec-av1 takes AV1 sources with no plugin in the roomAhmet Kaan Gümüş · 875b31a
✨ feat(engine): a native AV1 decode seat — ec-av1 takes AV1 sources with no plugin in the room

The software arm of decode.rs grows a second seat beside ec-h264: probe(),
open_worker()'s plugin gate and run_span() all take Codec::Av1 as a
software-covered codec, falling back to ec-av1 exactly where H.264 falls
back to ec-h264. VE_SW=1 pins it, Backend::Software reports it.

The seat feeds ec-av1's whole-stream door the way the demuxer assembles
AV1 anyway: access units from the landing sync sample to the next one are
one chunk (the sequence header the demuxer injects ahead of every sync
sample is the boundary marker), and each chunk is a legal random-access
stream that decodes to its end — so hidden reference frames drain and the
reorder tail lands. A span stops decoding at its last asked-for picture
via a sink Eof sentinel; a refusal out of ec-av1 fails the span in words
mid-film, the pictures decoded so far standing, never garbage. u16 planes
narrow at the seat: 0..=255 casts, 10-bit downshifts by two — the same
truncation the plugin's P010 read-back performs, so both seats hand the
renderer byte-identical planes.

Witnesses: plugin vs seat frame-for-frame byte-exact on test_av1.mkv and
on the 10-bit twin (frame 30, 0 differing bytes both); seek-landing
equals linear on the software seat across a keyframe interval; a
crafted broken-GOP file (keyframe-flagged inter frame) is refused by
name — "no saved CDF state" — with the first GOP standing and the
channel closing clean.

Perf (release, funnel incl. demux+convert, identical config both sides):
VA-API 2.0x the seat on 720p8 (100 vs 51 fps), 1.8x on 720p10 (95 vs 53),
4.9x on a 1920x792 10-bit film (199 vs 41 fps, seat 1.70x realtime),
3.5x on a 3840x1608 10-bit film (22 vs 6.2 fps, seat 0.26x realtime —
below 1x, but so is the plugin's own 0.92x there: the BGRA conversion
dominates that funnel). 1.70x realtime at 1080p-class clears the
threads-wiring bar, so EC_AV1_THREADS stays opt-in.

demux::needs_plugin's AV1 arm now names the export path (whose software
decoder stays H.264-only) instead of claiming no software decoder exists;
bit_depth()'s doc gains its second reader.
✨ feat(engine): the multichannel AAC decode seat is an ec-aac native — rusty_aac stays encoder-onlyAhmet Kaan Gümüş · fc0891f
✨ feat(engine): the multichannel AAC decode seat is an ec-aac native — rusty_aac stays encoder-only

- the >2-channel seat (a film's 5.1/7.1 track, symphonia refusing anything
  wider than stereo) now decodes with the family's own ec-aac; the same
  construction and decode call sites, the same seat shape, the same film
  channel order FL FR FC LFE BL BR the downmix folds
- witness: fold correlation +1.00000 against the retired rusty_aac decoder on
  2000 identical AUs of a 5.1 film remux (max|diff| 5.96e-8,
  RMS ratio 1.0000, channel matrix diagonal-dominant); stereo fixture
  +1.00000 / 5.46e-4 (PNS noise seed differs); new ffmpeg-correlated film
  witness a_seek_into_real_five_one_aac_film... scores 0.929/0.858/0.922
  landing on the asked second (threshold 0.5)
- perf: 12.0-13.2 Msamples/s (250-275x realtime) vs rusty 2.8-3.6 (58-75x) at
  5.1 on identical packets; 26-32 Msamples/s (580-719x) vs 6.7-7.7 (151-174x)
  on the stereo fixture -- ~3.5x the retired decoder, bar was >=0.9x
- known behaviour delta, honest in both directions: HE-AAC v1 (SBR) now
  reconstructs at the extension rate where rusty band-limited everything to
  the core Nyquist; PS streams decode core-only at the core rate in BOTH
🛡️ feat(engine): the software H264 export refuses sub-macroblock pictures by nameAhmet Kaan Gümüş · 0e9d3b7
🛡️ feat(engine): the software H264 export refuses sub-macroblock pictures by name

H.264 codes 16x16 macroblocks and ec-h264's floor is the macroblock
itself, where the retired encoder took any positive even size. Named at
the seat where a card can show it -- the same shape as the odd-dimension
refusal -- instead of surfacing the encoder's error from inside a
running export. Found by review during the seat swap.
⚡ perf(engine): the software H264 export codes Main-profile CABAC, 8x8 offAhmet Kaan Gümüş · 02e2308
⚡ perf(engine): the software H264 export codes Main-profile CABAC, 8x8 off

Measured at the swap, 720p, all cores: the 8x8 transform is half the pure
encode (35.1 ms/frame against 17.2), worth at most 0.7 dB BD-PSNR the
Constrained-Baseline seat it replaced never had; CABAC stays (faster than
CAVLC here -- fewer tokens to code -- and smaller). Export wall on a
300-frame 720p window, hardware decode both sides, idle machine: rusty
65.2 fps against ec-h264 57.6 -- 0.877x as re-measured by review
(0.884x in-lane), still short of the 0.9x gate and reported as such; the rest of the delta is the encoder's sub-pel motion
and CABAC decision cost, which is the encoder lane's to reclaim, not a
knob left unpulled here (threads swept 4/6/8/12, CABAC/CAVLC, both
presets' cheaper arm already picked).

Quality at the seat's ~2.7 Mbps CBR, 300-frame window
(reviewer-reproduced, both seats driven directly, ffmpeg-decoded):
PSNR-Y 41.58 against rusty's 40.51, SSIM 0.9903 against 0.9842, ~2%
fewer bits and tighter rate fidelity (rusty overshot to 3.0 Mbps on hard
content).
🔥 chore(engine): rusty_h264 leaves the treeAhmet Kaan Gümüş · 17b5566
🔥 chore(engine): rusty_h264 leaves the tree

The encode seat was the last linker; the facade, its -common subcrate and
the vendored patch that declawed rusty_alloc all go with it. The SEGFAULT
history (rusty_alloc installing itself as the process global allocator and
dying on a decode worker's first allocation, 2026-08-13) stays written
down, past tense, in both manifests. Cargo.lock carries no rusty_h264,
rusty_h264-common or rusty_alloc entry.