Commits
Commits on
5984e274c40bbae2705ab2f3c32f1f3eede3ae752026-08-20
2026-08-19
wip(engine): transform table threads through project/playback/proxy, .edith v20Ahmet Kaan Gümüş · 621274eBrowse files
🐛 fix(engine): the deferred-open test stops racing a thread spawnAhmet Kaan Gümüş · 77c6364
🐛 fix(engine): the deferred-open test stops racing a thread spawn Under a loaded machine the spawn a deferred open pays can cost more wall clock than a sync demux of a small fixture; the remaining two asserts pin the deferral invariant without the race. Flaked 1-in-3 during parallel builds.
✨ feat(engine): a dissolve renders in export, blended frame by frameAhmet Kaan Gümüş · 1c45bb6Browse files
✨ feat(engine): a dissolve renders in export, blended frame by frameAhmet Kaan Gümüş · fc86f32
✨ feat(engine): a dissolve renders in export, blended frame by frame The last transition_out frames of a clip that still abuts its successor on the same video lane decode B's head on a second, parallel decoder and blend it into A's tail with blend_i420, ramping 0->1 across the window; adjacency is re-checked at render time so a transition_out left stale by a trim or a delete plays as the hard cut it now is. A live dissolve forces the whole video track through the encoder -- CopyPlan's stream-copy path is all-or-nothing already, so one dissolve on the timeline costs the encode CopyPlan would otherwise have skipped. Playback preview and the fixture-backed encode test are follow-up work; this lands the plan-level tests (dissolve_weight, the window's own source/in_frame/start, and the stale-adjacency hard-cut) since the worktree has no assets/ to build a decodable fixture from.
✨ feat(app): a dissolve key and menu item join two video clips (ctrl+x)Ahmet Kaan Gümüş · 86ef2d5Browse files
✨ feat(app): the timeline draws the dissolve join as an X, ctrl+x binds itAhmet Kaan Gümüş · 270631a
✨ feat(app): the timeline draws the dissolve join as an X, ctrl+x binds it The keymap's own rebind test claims ctrl+d as a free chord to demo with, so Dissolve takes ctrl+x instead -- the shape its glyph (widgets.rs, dissolve_glyph) draws at the join. Wired into the clip context menu (menus.rs MENU_ITEMS) and the timeline (ui/timeline.rs): an X over the last transition_out frames of a clip whenever its neighbour still abuts it.
✨ feat(app): a dissolve key joins two video clips end to end (ctrl+d)Ahmet Kaan Gümüş · 474b80e
✨ feat(app): a dissolve key joins two video clips end to end (ctrl+d) Mirrors the audio crossfade: PlaybackSession::set_transition_out wraps Project::set_transition_out (Dirty::Picture), Player::dissolve_selected picks the join the same way crossfade_selected does, and a second press removes the dissolve it just made. Wired into the keymap, the dispatch table, and the clip context menu.
✨ feat(engine): clips can name a dissolve into their neighbor (edith 19, storage+format)Ahmet Kaan Gümüş · 8369d8e
✨ feat(engine): clips can name a dissolve into their neighbor (edith 19, storage+format) transition_out frames on a video clip dissolve it into the adjacent next clip; split keeps the tail's transition clamped and zeroes the head; v18 files load with hard cuts, v19 round-trips bit-exactly. Blending (playback and export) lands separately.
✨ feat(app): audio fades get wedges, drag handles and a crossfade keyAhmet Kaan Gümüş · 9ce5bf9Browse files
🐛 fix(app): the export card tells the truth about a ranged exportAhmet Kaan Gümüş · 906e7de
🐛 fix(app): the export card tells the truth about a ranged export The size estimate and the audio-codec label both ignored the marked range (a ranged export re-encodes; the card said copy and quoted the whole timeline's size). The RANGE duration is computed from the frame count instead of float seconds, and the speed card's row joins it — same truncation class. The range band gets 2px boundary ticks so it reads over the played fill. bench.rs learns export::start's fifth argument, closing the arity sweep over examples.
✨ feat(app): a crossfade key joins two audio clips end to end (ctrl+f)Ahmet Kaan Gümüş · 43b4f69Browse files
draw fades and their drag handles on the timelineAhmet Kaan Gümüş · 8cb7334
draw fades and their drag handles on the timeline Translucent wedge overlay per clip end (fade_wedge, widgets.rs, canvas+PathBuilder idiom) and a small top-corner hit zone beside each trim strip (FADE_HANDLE_W/H) that drives start_fade_drag/fade_drag_to/ commit_fade. Pixel-delta-to-frames goes through the pure fade_delta_frames helper in timeline_math.rs.
merge audio-fades engine (edith 18) and wire fade drag stateAhmet Kaan Gümüş · 55dd056
merge audio-fades engine (edith 18) and wire fade drag state Merges the fades/crossfade engine branch in, adds PlaybackSession wrappers (fade_in_of/set_fade_in/fade_out_of/set_fade_out/crossfade) and the FadeDrag gesture plumbing on the root (start/move/commit), ahead of the drawing and keymap work.
🐛 fix(engine): integration tests learn the sample-rate argumentAhmet Kaan Gümüş · c6b5eb7
🐛 fix(engine): integration tests learn the sample-rate argument cf27932 added sample_rate to export::start and edith::save but left every tests/ call site behind; cargo build -p engine --tests has been broken since. All 34 call sites pass None (source rate), preserving each test's old behavior.
✨ feat(engine): per-clip audio fades and adjacency crossfade (edith 18)Ahmet Kaan Gümüş · 4e4ec16
✨ feat(engine): per-clip audio fades and adjacency crossfade (edith 18) # Conflicts: # crates/engine/src/export.rs
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18Ahmet Kaan Gümüş · 6d0747c
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18 Clip carries fade_in/fade_out, an equal-power gain envelope mixed into playback and export, a crossfade() op that sets both edges of two adjacent audio clips, and split's rule that only the kept edge keeps its fade. The project file format bumps to edith 18 to carry the two new fields; a v17 (or older) file loads with every clip's fades at zero. Fixes a stray fade_in/fade_out struct-literal fragment left outside any Clip literal in Player::trimmed (crates/app/src/player/timeline_edit.rs), which was a syntax error breaking the whole app crate's build. Adds unit coverage for Fade::gain_at's boundary/midpoint curve, the split edge rule, crossfade's adjacency refusal, the Clip size-lock test (40 -> 48 bytes), and a v17-loads-zero-fades / v18-round-trips edith.rs test.
🐛 fix(app): autosave only arms for a project this window opened or savedAhmet Kaan Gümüş · a80334d
🐛 fix(app): autosave only arms for a project this window opened or saved A plain media open derived project_path (a guess at where a save would land) without ever arming autosave for it -- so a dirty, never-saved scratch session could write a sidecar beside a foreign .edith it never touched, and the next real open of that file offered the scratch timeline as "recovery" over the user's own saved work. autosave_armed now gates every tick: set on install_project (opened from the .edith itself) and on save_project's Ok, never on a media open's derived guess. Declining the recovery notice now deletes the stale sidecar instead of leaving it to reappear on every later open.
✨ feat(app): export can be limited to an in/out range (i, o, ctrl+u)Ahmet Kaan Gümüş · 5134b1d
✨ feat(app): export can be limited to an in/out range (i, o, ctrl+u) # Conflicts: # crates/app/src/keymap.rs
✨ 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.
🐛 fix(app): a redone edit marks the project dirty for autosaveAhmet Kaan Gümüş · c3d3346Browse files
✨ feat(app): the project autosaves to a sidecar and offers recoveryAhmet Kaan Gümüş · 5a30a67
✨ feat(app): the project autosaves to a sidecar and offers recovery A dirty timeline autosaves to <project>.edith.autosave (5s debounce, 60s period, paused during export) via the engine's atomic save. Manual save deletes the sidecar. On open, a newer sidecar appends a recovery offer to the LOADED notice: enter recovers, any other key keeps the file. The real project file is only ever written by manual save.
✨ feat(app): redo has a toolbar button beside undoAhmet Kaan Gümüş · 6dae2b4
✨ feat(app): redo has a toolbar button beside undo The toolbar only exposed undo as a click target, leaving redo (ctrl+y) reachable by keyboard alone. Add a sibling button and mention redo in the timeline hint line.
✨ feat(app): the timeline can redo, mirroring undoAhmet Kaan Gümüş · 49a1af3
✨ feat(app): the timeline can redo, mirroring undo Project grows a redo stack: undo pushes the lanes it leaves onto it, redo pops one back, and any fresh edit (snapshot) clears it since the branch undo left behind is no longer where the edit leads. Wired through PlaybackSession::redo, Player::redo and ActionId::Redo, bound to ctrl+y -- bare "y" is already SubtitleStyle's, so redo takes only the ctrl chord.
🐛 fix(app): a preview's end no longer throws the timeline playheadAhmet Kaan Gümüş · 8f0c500Browse files
🐛 fix(app): a preview's end no longer throws the timeline playheadAhmet Kaan Gümüş · 8bfbcb3
🐛 fix(app): a preview's end no longer throws the timeline playhead playhead() snapped the ruler to the timeline's duration whenever the transport read Ended — and the transport reads the preview while one is up, so a preview running out hurled the ruler to the timeline's end. The snap now asks the timeline's own session only. Driven: preview halts at 35:18 with the ruler holding 08:14.
✨ feat(app): the playhead can loop, on the timeline and in a previewAhmet Kaan Gümüş · 214ffa3
✨ feat(app): the playhead can loop, on the timeline and in a preview Driven: loop wraps a preview near its end and keeps playing; loop off halts at the end exactly as before.
✨ feat(app): the playhead can loop, on the timeline and in a previewAhmet Kaan Gümüş · 935d48b
✨ feat(app): the playhead can loop, on the timeline and in a preview A Loop toggle (transport bar button, bare r) restarts playback from zero on the end crossing instead of halting — the same restart door play-at-end already used, so loop-off semantics are untouched. One flag serves both sessions: pump loops whichever is active. The wrap reopens the decoder; a one-frame seam is the accepted cost.
🧹 chore(app): the compiler has nothing left to sayAhmet Kaan Gümüş · 47519e8
🧹 chore(app): the compiler has nothing left to say The uniform lanes_shown/rows_below pair went with their last caller (the mixed math is the render's), their pins moved onto the mixed variants, and the escape rule's re-export is the tests' alone.
🐛 fix(app): the scrub bar steps over the notices instead of on themAhmet Kaan Gümüş · 3136aa6
🐛 fix(app): the scrub bar steps over the notices instead of on them Its 24px hit area sat on the one-line notice plate, so a click meant to dismiss the notice seeked the preview instead, and the fill bisected the text. The bar now rests on top of whatever height the transient bars measured this frame.
✨ feat(app): fullscreen fills the screen with the player, not the appAhmet Kaan Gümüş · 3b02ca6
✨ feat(app): fullscreen fills the screen with the player, not the app Merge of the player-fullscreen branch over the scrub-bar branch: the picture region is one method both layouts call, and the preview scrub bar rides in it — drawn last, so the PREVIEWING notice plate no longer hides it the moment a preview starts.
✨ feat(app): the preview gets a scrub barAhmet Kaan Gümüş · 6117d24
✨ feat(app): the preview gets a scrub bar Driven: click at 50% seeks to half the file, drag scrubs, escape leaves the timeline region pixel-identical.
✨ feat(app): the preview gets a scrub barAhmet Kaan Gümüş · e9c5f4b
✨ feat(app): the preview gets a scrub bar The preview picture now carries its own seek track along its bottom: the played share drawn as a fill, a WCAG-tall hit area over a 6 px rail, and click or drag to jump anywhere in the file. It seeks through the ordinary `Player::seek`, so it lands on the preview session the way the keyboard step does and never disturbs the timeline underneath. Driven headlessly against a 100 s H.264 mp4: the fill advanced 1:35:01 -> 1:39:18 between two shots, a click at the bar's midpoint moved the clock 1:39:18 -> 0:50:02 with the picture changing, a drag 850 -> 300 px landed 0:09:01, and esc left the timeline region pixel-identical to its pre-preview shot (compare -metric AE = 0).
✨ feat(app): fullscreen fills the screen with the player, not the appAhmet Kaan Gümüş · 24cc062
✨ feat(app): fullscreen fills the screen with the player, not the app Fullscreen used to hand the OS window to the monitor with all of the chrome still on it -- a bigger editor, not a bigger picture. It now draws the picture region alone, the way every consumer player does, and asks the platform's own toggle to agree with it. Escape leaves it, and is answered before any menu or preview under it gets a look at the stroke: one stroke, one effect, so an escape with a preview open behind fullscreen leaves fullscreen first and stops the preview on the second. F11 toggles it either way. Driven live in the nested-sway harness on a 4K H.264 mp4: the click on Fullscreen left only the letterboxed picture on screen (no topbar, library, inspector or timeline pixels) with sway fullscreen_mode=1; Escape brought the whole layout back at fullscreen_mode=0; F11 in and Escape out repeated it. 174/174 app tests green.
🐛 fix(app): the project settings answer before the first fileAhmet Kaan Gümüş · f30fe44
🐛 fix(app): the project settings answer before the first file The oracle refused ActionId::Resolution with no timeline, so the Size, Rate and sound-rate rows — the whole pre-import settings surface — were dim exactly when a pending pick means the most. Joins the editor-wide always-on list; the no-timeline sweep test now pins it.
✨ feat(app): the project's sound rate joins Size and Rate in the inspectorAhmet Kaan Gümüş · 97ba514Browse files
✨ 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(engine): the project's sample rate is its own to name (.edith v17)Ahmet Kaan Gümüş · 3a2e5eaBrowse files
✨ feat(engine): a project can name its own sample rateAhmet Kaan Gümüş · 31981de
✨ feat(engine): a project can name its own sample rate .edith goes to v17 with an optional samplerate line; the session carries it, save/load round-trip it, and the one audio-open seam every consumer shares (open_multi_streams_speed_at) conforms all segments to the named rate — playback rebuild and both export encoders inherit it for free. Proxies keep their film's own rate. A v16 file loads with the rate unset, meaning derived-from-source as before.
🐛 fix(app): a preview shows neither the timeline's captions nor its hintsAhmet Kaan Gümüş · 490cfd3
🐛 fix(app): a preview shows neither the timeline's captions nor its hints The timeline's cue overlay would caption the wrong film over a preview picture, and the drop-a-file hint keyed off the timeline session alone.
🐛 fix(app): the transport clock reads the preview while one is upAhmet Kaan Gümüş · a7406daBrowse files
🐛 fix(app): the transport clock reads the preview, not the timeline, while one is upAhmet Kaan Gümüş · c60633d
🐛 fix(app): the transport clock reads the preview, not the timeline, while one is up The toolbar's timecode/duration readout took position and duration from the timeline's own playhead unconditionally, so opening a library preview kept showing the timeline's time underneath it. It now reads active_session()/active_fps() like the rest of the transport does, so the clock tracks whichever session is actually playing; Escape still hands it back to the timeline the moment the preview closes. The ruler's own clock (timeline.rs) and the timeline context-menu timecodes are untouched -- they are timeline-bed reads and must keep following self.session regardless of a preview.
🎨 style(app): timeline captions read as sentences againAhmet Kaan Gümüş · ee438f4
🎨 style(app): timeline captions read as sentences again The caption box body returns to the original strip visual (8b1d5a3): letterbox ground with a full-height rounded block per cue, so every sentence's start and end is visible. The 4px band and the in-box label go; tooltip and ghost still carry the name.