Commits
2026-11-15
2026-10-23
🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com The working tree as of 2026-10-23, as one commit on top of the last one here. It carries the work up to that date plus the test-slimming work: integration tests merged into one binary per crate, nextest config, doctest = false, debug line tables only, perf tests behind --ignored, and faster generators, reverse, undo, subtitle-export, hevc, stabilise and hear tests.
2026-09-15
✨ 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.
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.
2026-08-20
✨ 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): 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.
🐛 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, 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.
2026-08-15
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+aAhmet Kaan Gümüş · 66d5395
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+a The app half of manual clip grouping: the timeline's selection becomes a list of picks (Selection, click order kept, anchor = last), ctrl+click toggles a pick on every clip box, caption box and edge strip, and a right-click on a picked placement keeps the selection so the menu's Group row acts on all of it — one pick keeps the span-partner flow. SelectAll takes ctrl+a (every clip and caption, one selection) and RemoveAudioLane moves to ctrl+q beside its own letter. The oracle unhides Group and Detach over captions, words the one-clip-per-lane refusal, and the caption menu grows the group rows. marked() lights every pick and its link-mates — captions included — captions wear the grouped border, trims preview each member by the drag's delta clamped to its own room, deletes route a grouped caption through the group door, and a drag's snap excludes the group it carries. The save-format tests and every affected app suite updated with the new shapes.
2026-08-14
✨ feat(engine): the words a project places are in the file it savesAhmet Kaan Gümüş · df4020f
✨ feat(engine): the words a project places are in the file it saves The `.edith` grows a `sub` line -- `sub <lane> <start> <frames> <track> <in> <out>` -- and a bare `sub <lane>` for a subtitle lane holding nothing, written in the lane's own place among the video and audio ones so the display order a load rebuilds is the one that was saved. Both of a caption's clocks are on the line: the placement in timeline frames like everything else, the window in the microseconds its cues are timed in. MAGIC is `edith 15`. `Project::without_orphan_sources` stops filtering the subtitle lanes out of its `Parts` and `Project::lane_gains` stops filtering them out of its gains -- the two are zipped by `edith::emit`, so they were only ever allowed to filter in step, and now neither does. What is *on* those lanes travels beside them in the new `Project::lane_subs`, one list per lane exactly as the gains are, and comes back through `Project::with_subs`, which is `from_parts` for words: it refuses a caption on a lane that is not a subtitle lane, an empty span or window, a track the palette does not have, a span past the last frame there is, and a lane that overlaps itself. The parser refuses the same file by line number. A v14 project is one that named subtitle files and could place none of them: it loads with its palette whole and no subtitle lane at all, which is what it always meant, and re-saves as v15 having invented neither. Also fixes a version-bump straggler in tests/silence.rs, which asserted `edith 13` against a `edith 14` writer and was red before this change.
🐛 fix(engine): a palette row that goes takes the placements' indexes with itAhmet Kaan Gümüş · 03073e6
🐛 fix(engine): a palette row that goes takes the placements' indexes with it A `SubClip` names its subtitle track by index into the project's palette, exactly as a `Clip` names its source -- so `remove_subtitles` owed `remove_source`'s rule and did not have it: a row removed above a placement left every clip past it playing the *next* track's words. The probe that found it: three rows, the middle one placed, remove the first -- the caption on the lane silently became another language. Now it follows that rule whole. Refused, naming the lane and the frame up to three of them, while anything on a subtitle lane plays *this* row; allowed otherwise, walking every placement past it down one; and the undo history is cleared, because its snapshots hold the indexes as they were before the walk. The refusal reaches a person already -- the x on a subtitle row shows the engine's words verbatim. Five smaller things the same read turned up, each its own hunk: - a drag that changes nothing is `Ok` and no step, not a refusal: a caption picked up and put back, and an edge pulled past a wall it already stands against, are both a hand that did nothing wrong, and a front-end shows every `Err` as a notice. - `remove_lane` names the captions it still holds and the way out -- three names, a count, "or drag them to another track" -- instead of "1 subtitle(s), the first at frame 0". - its "only track" sentence gets its own arm for a subtitle lane, so the word stays true if the guard that makes it unreachable is relaxed. - `place_sub` says in words that `at` is where it lands and `sub.start` is ignored, which is `place`'s own contract for a clip. - `track_name` is the one place a refusal turns an index into the name a panel shows.
✨ feat(engine): subtitles become a third lane kind, placed like everything elseAhmet Kaan Gümüş · ec66e07
✨ feat(engine): subtitles become a third lane kind, placed like everything else `LaneKind::Subtitle` joins the lane list, holding `SubClip`s -- a `[in_us, out_us)` window of one of the project's subtitle tracks (the flat `subtitles` list stays the palette) placed at a timeline frame. A caption is therefore added, ordered, labelled `S1`, snapshotted, rippled, razored and undone by the machinery every clip already goes through: an undo step is the lane list, so subtitles joined the history without one of their own. It carries no `Clip` at all, and that is what keeps the media paths free of it: `Project::lane` hands back an empty slice, so trim/set_eq/set_color/set_fit/ set_speed/lift/delete_in refuse it by the bounds check they already had, the composite and the mix never look at it, and the three doors that could still put a picture on one -- `from_parts`, `place`, `append_clip` -- say so by name. Ops: `place_sub` (refuses an overlap rather than overwriting -- words that lost are simply gone), `move_sub`, `trim_sub`/`trim_sub_room` (clamped like a media trim; the window follows the edge), `lift_sub`, and `sub_lane_cues`, which maps a lane to cues clipped to each window and shifted onto the timeline -- the twin of `export::timeline_cues` for a track that is placed rather than carried. Ripple, paste-room, split and regroup cut the windows by *proportion*, so none of that arithmetic needs a frame rate; only a trim and the mapping take one. Not here, on purpose: persistence (`Parts` has no line for a `SubClip`, so a save leaves the lanes out -- named at the filter) and any UI.
2026-08-11
🧹 test(scratch): a fixture directory is deleted by the test that made itAhmet Kaan Gümüş · 5c39124
🧹 test(scratch): a fixture directory is deleted by the test that made it Every suite here made its own directory under /tmp with a name and a process id and then walked away from it: 2907 `ve_*` directories, 6.4G of a 16G tmpfs, none of them reclaimable by anything but a person with `rm`. `engine::scratch::Scratch` is the one place a throwaway path comes from now -- a directory, or the single file inside one -- and `Drop` is what takes it back. That is the whole reason it is a guard rather than a cleanup call at the end of a test: unwinding runs `Drop`, so the *failing* tests, which are exactly the ones that used to leave the most behind, clean up like the passing ones. It derefs to a `Path`, so the call sites did not have to change: the helpers that handed back a `PathBuf` hand back one of these. The prefixes stay what they were, so a directory is still recognisable while a test is stopped in it. Nothing about what a test *does* moved -- only where its fixtures live and when they die. Driven: the whole engine suite and the app's own tests run with the count of `/tmp/ve_*` before equal to the count after.
🐛 fix(audio): a broken Matroska track is an error, not silenceAhmet Kaan Gümüş · 941e882
🐛 fix(audio): a broken Matroska track is an error, not silence Two verifier findings, both in the same class as A5's silent-take work: a hole nobody asked for must not be indistinguishable from a hole the timeline means. Track::open's mkv arm turned every symphonia failure into Ok(None) -- silence -- with an eprintln as the only trace, so a file whose audio is broken played and exported as a quiet stretch and said nothing. Now SymTrack::open returns Ok(None) for the one honest case (the container opened and holds no audio track) and Err for the rest; a codec nothing here decodes is still silent, since that is what the decoder, not the open, reports. probe_streams follows the same split, and a standalone audio file keeps its old answer through open_required. lanes.rs: three_lane_file() handed both of its tests one pid-keyed path, so whichever finished first deleted the file the other was still using. The name is the caller's now.
✨ feat(export): every video format carries sound, AV1 picks its box, MP3 is a rowAhmet Kaan Gümüş · 5ebd3ac
✨ feat(export): every video format carries sound, AV1 picks its box, MP3 is a row Three asks, one seam — the export's audio path was a packet copy, and everything it could not copy was a refusal. - MkvMuxer gains an A_AAC track (CodecPrivate = AudioSpecificConfig, CodecDelay one packet) and interleaves it into the clusters: an AV1 export carries the timeline's sound instead of naming it as left out. - Mp4Muxer::create_av1 writes AV1 into an mp4 — the `av01` + `av1C` sample entry `mp4 0.14` cannot spell is patched into the finished moov (layout cribbed from OxideAV's oxideav-mp4, MIT); Mp4Demuxer reads that entry back. - Format::Mp3 through `rusty_mp3` at 256 kbps CBR, and Format::Av1Mp4 beside Format::Av1: the export card has a row and a key for each. - copy_audio lifts every "cannot copy" refusal into a route to encode_audio — a second audio lane, a speeded clip, a Matroska source, an mp3 or a png timeline. A copy nothing forces stays a bit-exact copy. Round trips per container, through this project's own readers: mkv + mp4 AV1 with a tone (mux unit tests), an AV1 export in either box (tests/av1.rs), a still under a song as an mp4 with sound and an MP3 of the timeline (tests/audio_export.rs), two lanes summed into an mp4 (tests/lanes.rs), a speeded lane resampled into one (tests/speed.rs).
2026-08-10
✨ feat(timeline): clips play at a speed of their ownAhmet Kaan Gümüş · f8effe8
✨ feat(timeline): clips play at a speed of their own A clip gains a rate (`Speed`, thousandths of real time, 0.25x to 4x) and every speed question is answered at the mapping seams that were already there: `Clip::frames` is the source range divided by the rate, `end` is built on it, and `map`/`span_at`/`composite_span_at` walk the offset through `Speed::source_at`. `in_frame`/`out_frame` stay *source* frames, so a trim and a split still address the file. The picture needs no new decoder: the span says how many source frames it reads, and `try_frame` brings the decoder's numbers back through the same rate -- at 2x two decoded frames land on one timeline frame and the display's drop-when-behind policy takes it from there. The sound is resampled per segment inside the worker playback and the audio export already share (linear interpolation, carried across packet seams), so the pitch moves with the rate: tape, not pitch-preserve, and the card says so. Each segment is told how much timeline it owes and pads or trims to it, which is what keeps a run of speeded cuts from drifting. Rounding is where a rate could break the lane, so it does not: `Speed::fit` never hands a trim more source than its room holds, and `Speed::split_at` refuses a cut a slow clip's rate cannot address rather than leaving two halves that no longer add up. The fuzz sweeps set_speed in with the rest. - card in the eq/colour pattern, on `j` and in the clip menu; a drag is one undo step for the whole linked group, 1.00x reachable by hand and by `r` - clip boxes carry a "2.00x" mark, and their width, waveform and details row are the timeline length - WAV/FLAC honour it; mp4 and AV1 *refuse* by name -- that path copies AAC packets and a resample is not a copy (ponytail names the upgrade path) - .edith v8 carries the rate; v7 and older load at 1.00x - `assets/test_speed_sync.mp4`: one flash, one beep, same instant. At 2x they still land together, to the frame.
✨ feat(engine): project resolution stands apart from media resolutionAhmet Kaan Gümüş · 19e294a
✨ feat(engine): project resolution stands apart from media resolution A timeline had one resolution because its first source did: import refused anything else by name, and there was nowhere to say otherwise. A project now carries its own picture size and every clip is composed onto it, so media of different resolutions share a timeline the way they do in any editor. * scale::Composer is the one definition of that composition -- fit_rect, scale_i420, compose_i420 onto a black canvas -- and both playback and export call it, so what is written is what was watched. A canvas of the picture's own size is a pass-through that allocates nothing and touches no byte. * Grade first, place second: a grade belongs to the clip's pixels at the resolution they were shot at, and the letterbox bars are not the clip. * Per-clip fit policy (fit/fill/stretch/centre), one byte inline in Clip -- it lands in padding the clip already had. * .edith v7: a `resolution <w> <h>` line and a fit word per clip line. v6..v1 still load, defaulting to source 0's picture and Fit, which is what those projects always meant. * The fps refusal stays: mixing frame rates is resampling the timeline, a different problem, and a refusal is the honest answer until it is solved. * UI: `p` cycles the fit policy of the clip on screen (and a clip-menu item), ctrl+r cycles the project resolution through the usual sizes with the media's own among them, and the export card says which size it writes.
🐛 fix(engine): the mp4 audio copy follows the lane that holds the soundAhmet Kaan Gümüş · 000621a
🐛 fix(engine): the mp4 audio copy follows the lane that holds the sound The refusal gate counted non-empty audio lanes but the copy still read A1's play list, so a project that leaves A1 empty and places everything on A2 passed the gate as "one lane", played its sound, and exported an mp4 with no audio track at all -- silently, which is the one failure nobody notices until they play the file back. The copy now takes the single list `audio_segments_from` already resolved for playback, so "which lane holds the sound" is asked once and answered the same way everywhere. The gate keeps its wording: that list is never empty, so the refusal is still exactly the >1-lane case.
✨ feat(engine): N-lane compositing in playback and exportAhmet Kaan Gümüş · 08af6bc
✨ feat(engine): N-lane compositing in playback and export Video: the topmost video lane with a clip there wins, topmost being the last lane in display order (V2 over V1, the overlay convention). No blending, so exactly one lane is visible per frame and the composite is itself a span list -- Project::composite_span_at -- which one decoder plays. N video lanes never mean N decoders; a lane change costs the one decoder reopen a cut already costs. Audio: every audio lane that holds something gets a play list (Project::audio_segments_from) and AudioSession::open_mixed_streams sums them, clamped, each lane keeping its own gap rule so the master clock counts a sample per sample of timeline. One lane skips the mixer entirely and is the byte-for- byte path it always was. Export walks the same composite and mixes the same lanes for WAV/FLAC. The mp4 path copies AAC packets and cannot mix, so a timeline whose sound is spread over two lanes is refused there by name rather than silently exported without half of it.