Commits
Commits on
fbc29d12fa2e194b105dd2344342fc50da4e90cdFiltered to crates/app/src/export_ui.rsClear filter2026-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
2026-09-13
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
🔁 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(engine): software VP8 decode via dlopen'd libvpx seat in the pluginAhmet Kaan Gümüş · ba33df0
✨ feat(engine): software VP8 decode via dlopen'd libvpx seat in the plugin
VP8 was refused by a stale UNSUPPORTED claim ('no VP8 decoder'); the
vendored cros-codecs VP8 decoder is VA-API-only and the test GPU
exposes no VP8 VA-API profile, so the real seat is software: libvpx.so.9
dlopen'd inside libengine_hw.so (vpx.rs), routed before any GPU device
opens, seek = destroy+re-init on the demuxer's keyframe contract,
CAP_VP8 reported as the plugin's seat. Codec::Vp8 plumbed through
demux (V_VP8 + mp4 vp08), colorspace, refusals; export UI gains a
truthful read-only VP8 row; test_vp8.{webm,mp4} fixtures + capability
row + tests/vp8.rs decode/export twins. Verified by the authoring
session: headless playloop 270 frames 0 dropped, 50/50 seeks, live
harness-driven UI playback, cross-provider review PASS (FFI layouts
against shipped libvpx DWARF, valgrind-clean).2026-09-09
🐛 fix(app): a settings value says a state, not a cut wordAhmet Kaan Gümüş · 0501b2a
🐛 fix(app): a settings value says a state, not a cut word The resolution list's checked row read "3840x2160 · the medi…" and the EDITOR row read "Subtitle font Font…": prose past MENU_W and a door's own noun in a value slot (user: "word cut"). Every picker tail is a state word now -- 'source' on the media's own size, 'unchanged' on the source sample rate -- and the settings rows carry the state behind the door: the family in force (or 'default'), the track count on Mix.
⚡️ perf(app): a wheel notch on the budget opens no encoderAhmet Kaan Gümüş · 24934ba
⚡️ perf(app): a wheel notch on the budget opens no encoder The export moment's seat probe was keyed on the whole export settings, bitrate included, so every notch of the wheel invalidated it and opened a real VA-API encoder to ask the seat again — ten opens for ten notches, 5–32 ms of GPU work each, beside the player's own decoder. The bitrate decides none of that answer, so the probe is asked and keyed without it: one probe when the moment opens, none while the wheel turns.
✨ feat(app): the export moment's row 3 is the encode optionsAhmet Kaan Gümüş · f916eb3
✨ feat(app): the export moment's row 3 is the encode options The choices were only in the Settings room and nothing on the moment pointed there (user: "couldn't find how to change encode options, simplifying doesn't mean getting rid of advanced settings"). Row 3's readout becomes the controls it was reporting: three ghost segments -- picture `c`, sound `b`, encoder `g` -- driving the very setters the Settings rows drive, plus a `settings ^,` ghost as the door to the rest. The Encoder chord moves `e` -> `g` on both surfaces, since `e` is the moment's own Export press and a ghost wears no shifted letter.
2026-08-27
🎨 style(app): rustfmt the exact_refusal signature left unwrapped by a398942Ahmet Kaan Gümüş · d880cdeBrowse files
🐛 fix(app): Exact quality derives its own format from the source codecAhmet Kaan Gümüş · 233e118
🐛 fix(app): Exact quality derives its own format from the source codec Picking Exact used to leave the format on whatever preset was active, so Export refused it with the container-mismatch message minutes later. pick_quality() now sets the container from the source's own codec (HEVC/AV1 -> the matching Matroska format) via the new exact_format() helper, and the Exact row shows exact_refusal()'s reason inline the moment it's picked (or a source manually changed away from it) rather than only at Export time.
✨ feat(export): Exact quality row copies the source's own coded pictureAhmet Kaan Gümüş · 49dbed8
✨ feat(export): Exact quality row copies the source's own coded picture Adds Quality::Exact to the export card: wherever CopyPlan already says a copy is exactly what the timeline says, the file leaves as the source's own bytes. exact_refusal names why not (wrong container, edit forces a re-encode) before the button is pressed and again inside run(), so the card and the worker can never disagree.
✨ ui(app): instructional-copy sweep — DESIGN §8 rejected pattern enforcedAhmet Kaan Gümüş · 067620b
✨ ui(app): instructional-copy sweep — DESIGN §8 rejected pattern enforced Empty states to single nouns, filter placeholder to one word, the "pick a verb above" plate removed; report strings keep state, lose instruction clauses. 250 app tests green, zero warnings.
2026-08-26
🧪 test(app): assert the bitrate refusals on the shared NumberEdit itselfAhmet Kaan Gümüş · 9dc7454
🧪 test(app): assert the bitrate refusals on the shared NumberEdit itself Lane E left commit_mbps dead in the live build (the card now commits through ui::widgets::NumberEdit) while tests still asserted the dead fn's wording — a placebo. The fn is gone; the same empty/zero/floor/ceiling refusals are asserted on the widget, the door the card actually uses.
✨ feat(ui): type-in for the transition duration row (DEBT #111)Ahmet Kaan Gümüş · 1110ca4
✨ feat(ui): type-in for the transition duration row (DEBT #111) Generalizes export_ui.rs's NumberEdit into ui/widgets.rs with a caller-owned range/digit-cap/unit instead of the hardcoded Mbps constants, adds a commit_clamped() alongside the existing refuse-on-commit commit() for rows whose stepper already clamps silently, and wires it into the Clip tab's transition duration row (click to open, digits/backspace/enter/esc through Player::param_card_key, commit through the same set_transition_frames the ± steppers now share).
🔥 remove(ui): the legacy tree — darkroom is the only roomAhmet Kaan Gümüş · 5dcc6c2
🔥 remove(ui): the legacy tree — darkroom is the only room Delete the whole legacy UI (timeline.rs, toolbar.rs, inspector.rs, legacy render body, OLD_GUI gate — the env read is gone, not a switch) and every helper only it reached: ~6,900 LOC out. Darkroom stance is the only room. Real gaps the removal flushed out, fixed here: - typed bitrate in the export card was completely dead — NumberEdit digits/backspace/enter/esc now wired in param_card_key - ActionId::CancelExport was a no-op while the progress card promised the chord — now calls cancel_export (ctrl+esc, oracle-enabled during export) - actions card had no pointer entry — "?" ghost is clickable, scrim click closes, inner list swallows - snap toggle got a button beside zoom-fit in the VIEW group Dead-by-construction machinery deleted with its tests: key rebinding (rebinding/rebind_action/capture never set live), keys_search (no search box exists), cancels_export/format_key/next_audio_kbps, 17 layout.rs consts/fns, and the rest of the 32 no-—tests dead-code warnings; both `cargo build -p edith` and `--tests` are warning-free, 245 tests green.
2026-08-21
2026-08-19
✨ feat(export): mark an in/out range and export just thatAhmet Kaan Gümüş · a5c0bc7
✨ feat(export): mark an in/out range and export just that i marks the in point and o the out, on the playhead; ctrl+u clears the mark. The ruler shows the marked stretch as a translucent band and the export card states it above the button. Session state only, never saved to a .edith. The engine side finishes what a capped predecessor started: run_audio (the WAV/FLAC/MP3/OGG path) now offsets its segments and clips its frame count to the range the same way encode_audio already did.
✨ feat(app): the project's sound rate gets a picker beside its two siblingsAhmet Kaan Gümüş · 2c88d10
✨ feat(app): the project's sound rate gets a picker beside its two siblings Resolution and rate have long had a card row and a stroke; the mix's own sample rate (engine already honours it end to end) had neither. Wires PlaybackSession::sample_rate/set_sample_rate through a third pending_settings slot, a SampleRate pick/choice, and a project-panel row next to Size and Rate -- reachable before any file is open the same way the other two are.
✨ feat(app): resolution and rate are choosable before any file opensAhmet Kaan Gümüş · dc9a2c2
✨ feat(app): resolution and rate are choosable before any file opens A pick made on an empty player waits in pending_settings and lands on the next session the moment it is built, the same way a saved project's own numbers do. The inspector rows and the Resolution keystroke work with nothing open; a .edith's saved settings still win over a stale pre-import pick. Engine test proves a later import never touches an explicit resolution or rate.
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftoversAhmet Kaan Gümüş · 4b92704
🐛 fix(app): the export card's presets pick their own bundle, not the codec row's leftovers Six judge-confirmed defects in one pane: a refused preset click still wrote a quality (checked the refusal after the write, not before), refused presets rendered bright and clickable with no reason shown, the card opened on Custom because the launch default (Mp4, Auto) matched no bundle, the five preset rows were pointer-only, and the status line still advertised g/r after they moved into Advanced. Master now bundles HEVC/High instead of H.264/High, so its own "for re-editing later" detail (intra-only, every frame a cut point) is true of what it actually writes.
♻️ refactor(app): the export card opens on a preset, not fifteen rowsAhmet Kaan Gümüş · 0d1aa32
♻️ refactor(app): the export card opens on a preset, not fifteen rows The card used to open flat: destination, seven format rows, container, five quality rows, sound, encoder, subtitles, two display switches and two machine notes, all on screen at once. Restructured around the decision flow instead -- a primary pane (destination, four named format+quality bundles plus Custom, the Export button) with everything else -- codec, container, quality, sound, encoder, subtitles, the layout switches, this machine -- behind one "Advanced" row, closed by default and driven by its own key (s) exactly as every other row is. No row was deleted, only relocated; every existing key and click still does what it did.
2026-08-15
✨ feat(timeline): tempo ops carry the captions of a groupAhmet Kaan Gümüş · b801cf5
✨ feat(timeline): tempo ops carry the captions of a group A group's caption now travels with everything that re-times it. A rate set on any member re-times the caption members by the ratio the held clip's own frames take -- the span on the timeline compresses about the held clip's head while the words keep their own window -- and a stretch that would run a caption into its neighbour is refused in the clip arm's words. The silence scan's speed-up shrinks the caption pieces inside its regions and slides the rest up with the clips; its Take scope carries the caption's lane so the cut does too; and the scope law names a caption half left outside a scoped cut, in the words it always used for a clip's. The cards stop dead-ending on a caption in hand: speed and silence resolve a caption anchor to the media half of its group (the picture and the sound respectively) and say so out loud -- with the how-to -- when there is no media behind the words; the equalizer takes the group's sound the same way. Colour and Fit are untouched: a caption anchor retargets to the playhead's picture exactly as an audio anchor always has.
2026-08-14
✨ feat(app): the export that locks the editor says so as a card, and takes two answers to stopAhmet Kaan Gümüş · ef7689f
✨ feat(app): the export that locks the editor says so as a card, and takes two answers to stop An export takes the whole editor -- nothing may touch the edit list while the worker reads it -- and until now it said that in a hint line under a panel it had just switched off. The running export is drawn as what it is: the same scrim, width and raised box the export card itself uses, so the answer arrives where the question was put, with the bar, the percentage and both clocks, the row and the seats the worker really opened, the source it reads and the file it writes. The timeline is still read around it, and the ruler keeps the fill -- the one part of the progress the card does not cover. Getting out of it now takes intent, twice over. The chord is ctrl+esc: bare escape is the stroke a hand throws at anything on screen, and thrown at an export it used to delete an hour of encoding. Bare escape now does nothing at all here -- the card is not dismissable, so there is nothing left for it to mean. And the pointer's way out is a pair, never a cycle: "Cancel export" swaps the row for "Keep exporting" beside it, both on screen at once, each saying which one it is. Rebinding still works and still adds a way out rather than replacing this one, and the card shows whatever the keymap has.
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pinAhmet Kaan Gümüş · 50af5b5
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pin The export card gains an Encoder row: Auto, Hardware or Software, three rows in a list like every other setting with more than two values -- `e` steps it, a click opens the list, and the planned line under the rows re-probes and says which seat it measured. Auto is what every export did before (the GPU where there is one). Hardware is the GPU or a refusal in words -- `Enc::open` refuses before the muxer exists, so nothing is written -- and it is now the only door to the plugin's AV1 seat, which `VE_HW_AV1=1` used to guard: an env pin nobody exporting a film would ever find. A person who picks it for AV1 gets a plain row naming what happened on this box's driver, and the pick still stands. Software forces the CPU encoder, which also takes the zero-copy path off the table by construction (`Enc::dma_want` answers only for the two hardware seats). Kept with the project: `.edith` gains an `encoder` line at v14, written only when it is not Auto, and a v13 file loads as Auto. - engine: `ExportSettings::force_sw` -> `seat: EncoderSeat`; `hw_seat` returns the refusal instead of falling back; `planned_video` says `NO_HW_SEAT` where it would - app: `Pick::Encoder`/`Choice::Encoder`, card row, `e` in the card's own keyboard and in the keys menu (`FIXED`) - tests: the backends sweep runs all three seats (the AV1 hardware seat excepted, as before), and asserts the refusal is only what a missing seat produces
2026-08-13
✨ feat(app): a Proxies switch in the panel, and the stand-ins made without being askedAhmet Kaan Gümüş · 892f813
✨ feat(app): a Proxies switch in the panel, and the stand-ins made without being asked A film this machine cannot cut at speed -- bigger than 1080p, or HEVC or AV1 at any size -- gets its stand-in started the moment it lands in the library, two at a time so ten dropped files cannot start ten encodes over one hardware seat. The library row says how far it has got and then that there is one; the PROJECT panel's Proxies button says which way the switch is set and carries the least-finished percentage beside it, so a switch thrown before anything is ready says so rather than doing nothing. The switch is an action like every other: ctrl+p, on the actions card, and a button that is both the state and the door -- the two tests that already hold every action to that pass it unchanged. A stand-in that cannot be made is a line and no more: the film itself is what plays, which is what plays until one is ready anyway.
🔧 chore(app): the window's file lets sixteen neighbourhoods keep their ownAhmet Kaan Gümüş · 963252a
🔧 chore(app): the window's file lets sixteen neighbourhoods keep their own main.rs was 10,529 lines with every constant, every helper and the window itself in one place. The geometry, the transport, the import state, the menus, the export card, the oracle, the library rows, the subtitles, the equalizer, the colour card, the viewport and the timeline's arithmetic each move out to the module they belong to; the Player and its two impls stay, which is what the file is for. Pure motion: every line is the line it was, with pub(crate) added only where a module boundary now stands between it and its caller. Player::enable still delegates to the one oracle.