Commits
Commits on
781cdf81c5a17afa0e8bbbb8eaa0938626912e4e2026-09-24
🐛 fix(media): a block behind its cluster, a subtitle tag, an empty mp4Ahmet Kaan Gümüş · 781cdf8
🐛 fix(media): a block behind its cluster, a subtitle tag, an empty mp4 Three writer defects in one file, each with the test that proves it: - MkvMuxer: only the forward bound of a block's distance from its own cluster was checked (ts - cluster_ts >= CLUSTER_MS), so a step back wider than the signed 16-bit relative field was truncated by `as i16` into a positive offset -- a block the source put at 0 s read back at 65.536 s, silently. Both bounds are now one cluster_holds predicate, the cast is i16::try_from with the distance named in the error, and put re-checks after the drains, where a lagging track can have opened a cluster behind the picture the cluster was opened for. - Mp4Muxer: the mp4 crate's language_code masks the three UTF-16 units it is handed with 0x1F and drops the rest, so a pt-BR subtitle track was written as `ptm` and a two-letter en as `en` plus a backtick, read back off the file. The tag is turned into a code at the muxer boundary now (mp4_language): three lowercase letters pass, a BCP-47 primary subtag is mapped through the ISO 639-1 table, anything else is und. Matroska's own writer needs no change -- its Language element is raw bytes, and the same tag is normalised on the way in by demux::mkv_language. - Mp4Muxer::finish: a file nobody put a picture in was written anyway, while the Matroska twin has always refused that by name. The mp4 refuses in its own container's words; the encoded export door already refuses earlier, so this is the container contract rather than a live-door fix. Each is a mux.rs unit test that reads the file back: the mkv blocks through the project's own Demuxer, the mp4 language through the mp4 reader and the refusal by its message.
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 pin2026-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.
🔀 merge(memo): the envelope memo answers a trackless source tooAhmet Kaan Gümüş · 72e32b8Browse files
⚡ 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".
🔀 merge(colorapi): the packed look widens to u64 behind the panel workAhmet Kaan Gümüş · 7de7b97Browse files
✨ 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
Merge branch 'lane-aacenc-swap' (cbad1fe): the AAC encode seat is ec-aac and rusty_aac leaves the tree (16 vendor files, patch table clean) -- reviewer-reproduced quality \u003e= rusty on every row (96k stereo 0.9445 vs 0.8458 vs ff 0.9376), element plan 1:1, mux roundtrip witness at mono/stereo/5.1; disclosed trade: encode is 34.7x realtime always vs rusty's 81.6x single/462x at 12 threads (13.3x slower as-shipped, 2.35x single-thread) -- negligible against video-bound export walls; lane-ecaac-enc-perf queuedAhmet Kaan Gümüş · b4c6beaBrowse files
Merge branch 'lane-ac3-swap' (9fab7c9): the AC-3/E-AC-3 decode seat is ec-ac3 -- oxideav-ac3 leaves the tree; 1.64-1.66x faster, fixes the old seat's LFE level defect (0.976 vs ffmpeg -> 1.000000), 7.1 DD+ dependent substreams refuse in words (ec-ac3 b3ee1ee1 closes the silent-tail path); ffmpeg-correlated AC-3/E-AC-3 film witnesses addedAhmet Kaan Gümüş · 8a736e4Browse files
🔁 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
Merge branch 'lane-vp8-swap' (36bd0e7): the VP8 decode seat is the native ec-vp8 -- libvpx's dlopen leaves the plugin (no symbols, no strings, no DT_NEEDED); per-frame hashes identical to the libvpx seat on every witness (720p 60/60, the 2560x1321 odd-height clip 270/270, two-pass altref 90/90 shown + 6 hidden with identical seek landings); CAP_VP8 unconditionally lit, still never a GPU seat; un-parked after lane-vp8-perf put the big-obs class at ~64 fps seat-equivalent (1.4x the line)Ahmet Kaan Gümüş · 6421f59Browse files
🔒 chore: lock picks up ec-opus's rustfft tree after the opusperf mergeAhmet Kaan Gümüş · 4311444Browse files
Merge branch 'lane-audio-multi' (1e84d82): the multi-audio layout refusal test pins the CURRENT posture -- mono/other-rate sources open (widened/resampled per DEBT #46, a deliberate d7c614b change this suite missed) while wider-than-timeline stays refused on BOTH paths; pre-existing main failure closedAhmet Kaan Gümüş · b167be0Browse files
🐛 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.
Merge branch 'lane-aac-swap' (c806cad): the \u003e2-channel AAC decode seat is ec-aac native -- channel-order witness +1.00000 on all six, A/B +1.00000 over 2000 real AUs, ~3.7x faster, HE-AAC v1 SBR now reconstructed (rusty had none), 7.1 folds correctly where it mis-folded; rusty_aac stays for the encode seat only; ffmpeg-correlated 5.1 film seek witness addedAhmet Kaan Gümüş · a967453Browse files
📝 docs(engine): the 5.1 AAC waveform test doc names the seat it now rides through — ec-aac, not rusty_aacAhmet Kaan Gümüş · c806cadBrowse files
✨ 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
Merge branch 'lane-h264enc-swap' (0e9d3b7): the software H264 export seat encodes with ec-h264 and rusty_h264 leaves the tree (vendored patch and global-allocator hazard with it) -- reviewer-verified A/B +1.1 dB PSNR-Y / +0.006 SSIM / ~2% fewer bits and tighter rate fidelity at 0.877x throughput (encoder-perf lane queued); sub-macroblock pictures refused by nameAhmet Kaan Gümüş · f0a2eccBrowse files
🛡️ 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.
♻️ refactor(engine): the software H.264 export seat encodes with ec-h264Ahmet Kaan Gümüş · 0bc3a6b
♻️ refactor(engine): the software H.264 export seat encodes with ec-h264 The last rusty_h264 seat in the tree moves to the project's own encoder: Enc::Sw drives ec_h264::Encoder (CABAC Main/High, 8x8 transform, threaded slices) where it drove rusty's Constrained-Baseline CAVLC encoder, and the export's second decode site (SwDecoder) follows the playback seat onto ec_h264::H264Decoder in true display order, flushed at end of stream. Feature mapping: same fps/bitrate/GOP knobs (the level the seat used to compute by hand the encoder now derives from the same Table A-1); Fast stays the preset; intra-only exports stay all-IDR through gop_size 1. Named gaps: odd dimensions are now refused by name like the HEVC seat (4:2:0 cannot crop back to an odd picture; the old encoder silently coded them); the seat no longer forces level_idc. One honest flag rise: the Matroska-facing key mark is now what the bitstream says, not a constant false. One contract tightening, held rather than papered over: ec-h264 buffers nothing, so drain is structurally empty and the old lookahead corner-cut note is closed. tests/sw_backends' independent witness becomes ffmpeg byte-for-byte (the rusty oracle retired with the crate); hw_encode and the mp4 repack test decode through ec-h264; caps and the card label say ec-h264. Quality, same 300-frame 720p window at the seat's own ~2.76 Mbps CBR, both seats driven directly on identical frames and the outputs decoded by ffmpeg (reviewer-reproduced numbers; an earlier in-lane harness measured rusty at 25 dB through a stale-plane A/B bug -- frame-0 luma riding under fresh chroma, which rate control hides in the byte count -- so its rusty row was noise, while the ec row reproduced to the digit): rusty PSNR-Y 40.51 / SSIM 0.9842 at 3.46 MB against ec-h264 PSNR-Y 41.58 / SSIM 0.9903 at 3.39 MB -- about +1.1 dB-Y and +0.006 SSIM for ~2% fewer bits, with tighter rate fidelity (rusty overshot to 3.0 Mbps on hard content).
Merge branch 'lane-h264-swap' (e24fe61): the software H264 decode seat is ec-h264 native via the ec_core registry -- and the seat now emits true DISPLAY order (the rusty corner-cut scrambled B-picture content); byte-exact vs rusty on CAVLC and CABAC+B fixtures, perf 1.02-1.57x on the gate classes, 0.80x on B-frame CABAC (the DPB reorder price; lane-ech264-perf queued); rusty_h264 stays for the ENCODE seat onlyAhmet Kaan Gümüş · c612711
Merge branch 'lane-h264-swap' (e24fe61): the software H264 decode seat is ec-h264 native via the ec_core registry -- and the seat now emits true DISPLAY order (the rusty corner-cut scrambled B-picture content); byte-exact vs rusty on CAVLC and CABAC+B fixtures, perf 1.02-1.57x on the gate classes, 0.80x on B-frame CABAC (the DPB reorder price; lane-ech264-perf queued); rusty_h264 stays for the ENCODE seat only # Conflicts: # Cargo.lock # crates/engine/Cargo.toml # crates/engine/src/decode.rs # crates/engine/src/demux.rs