Commits
Commits on
ef5832fea151ca30db92b142c8de131c5f43fc492026-08-20
🐛 fix(engine): a moved placement clips instead of squeezing the sourceAhmet Kaan Gümüş · ef5832f
🐛 fix(engine): a moved placement clips instead of squeezing the source
transformed_dst_rect used to clamp the moved/scaled dst rect straight onto
the canvas: a negative pos_x/pos_y clamped to 0 and rendered pixel-identical
to the identity, and a positive one shrank the dst rect while the source
crop stayed full-size, so place_transformed squeezed the whole picture into
whatever survived the clamp instead of moving it. Real translation now keeps
the box's own size (aspect stays put) and clips it to the canvas, trimming
the matching fraction off the source rect on the same side -- both axes,
chroma-grid aligned. Marked-pixel tests (not uniform fills, which cannot
tell a squeeze from a shift) cover +/- pos_x, +/- pos_y, fully off-canvas,
and position combined with scale.
Same pass fixes the transform card's ~3-4s settle lag: place_transformed
always paid rotate_i420_90s's full-picture copy even at zero rotation steps
(the common case, since most edits are a move or a scale), unlike the grade
path which never copies the picture. Skipped now when there is nothing to
rotate.
Also gives the clip menu's Transform row a truncating, shrinkable label so
its long text ("Transform — position, scale, rotation, crop") stops running
the shortcut hint off the fixed-width menu -- it now shows ctrl+k like every
other row.🐛 fix(engine): stale dialect asserts learn the current magicAhmet Kaan Gümüş · 6b8d7dd
🐛 fix(engine): stale dialect asserts learn the current magic Six integration-test asserts still pinned "edith 16" on freshly saved projects; the suite had not compiled since that dialect.
✨ feat(app): a transform card moves, scales, rotates and crops a clip (ctrl+k)Ahmet Kaan Gümüş · aace3b7Browse files
✨ feat(app): a transform card moves, scales, rotates and crops a clip (ctrl+k)Ahmet Kaan Gümüş · 85d3928Browse files
🐛 fix(engine): a paused preview blends the dissolve instead of hanging on plain AAhmet Kaan Gümüş · 7456e34
🐛 fix(engine): a paused preview blends the dissolve instead of hanging on plain A B's decoder opened only on the tick that first landed inside the window, so a seek or pause that landed there before B's first frame arrived showed pure A forever -- the clock is frozen, so no later tick ever came to correct it. B now opens eagerly at the span's own start (options (c)+(b) combined), well before the window is reached, and try_frame bounds a wait on B's first frame (200ms) for the rare case a seek lands in the window before that head start pays off -- bounded so a source B cannot decode never freezes the preview.
🐛 fix(engine): the dissolve's B decoder carries B's own transformAhmet Kaan Gümüş · b89ef3aBrowse files
✨ feat(engine): clips can be moved, scaled, rotated and cropped (edith 20)Ahmet Kaan Gümüş · 684b8a4
✨ feat(engine): clips can be moved, scaled, rotated and cropped (edith 20) Per-clip TransformParams (position, scale, 90-degree rotation, crop) shared through a colour-style table, applied in both the playback preview and the export compositor, persisted as the edith 20 dialect; v19 files load untransformed.
2026-08-19
✨ feat(engine): a dissolve renders in the playback preview tooAhmet Kaan Gümüş · c90e425Browse files
🐛 fix(engine): fades reach exported and played-back audioAhmet Kaan Gümüş · 9ec26f6
🐛 fix(engine): fades reach exported and played-back audio Two bugs: `forces_encode` never checked a clip's own fade, so the default Web MP4 copy path silently dropped fades from the exported AAC track. Worse, `Fade`'s frame counts are timeline (fps) frames but `Fade::apply` multiplies audio-rate sample blocks; unconverted, a fade's threshold was crossed a few milliseconds into any clip, so a fade-out muted the rest of the segment outright and a fade-in finished before an ear (or a 100ms RMS window) could catch it. `Fade::scaled` now re-counts a fade at the mix's own sample rate the moment the audio session learns it, which also fixes the same bug in live preview.
wip(engine): transform table threads through project/playback/proxy, .edith v20Ahmet Kaan Gümüş · 621274eBrowse files
✨ feat(engine): a dissolve renders in the playback preview tooAhmet Kaan Gümüş · 3e66b40
✨ feat(engine): a dissolve renders in the playback preview too The preview used to hard-cut where an export blends -- try_frame now opens B's own decoder (graded and placed at B's own start, mirroring export's Dissolve) once the playhead reaches the tail's dissolve window, and blends its BGRA picture over A's with the same dissolve_weight ramp export uses. One choke point covers both playing and scrubbed/seeked frames, since both drain try_frame the same way.
🐛 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.