Commits
2026-08-10
✨ feat(library): every audio stream is a row, and the picked one plays and exportsAhmet Kaan Gümüş · ecb5e06
✨ feat(library): every audio stream is a row, and the picked one plays and exports A file with one audio track per language is one row per track now, not one row per file. The engine carries the pick end to end: a source is a (file, audio stream) pair, .edith v3 writes the stream on the source line, playback opens it and — the trap this closes — the export copies *that* stream's packets rather than always stream 0. Streams that cannot go on the timeline are listed greyed with the reason instead of hidden: a codec we cannot read, or a rate/layout that cannot share one output device and one copied AAC track with the rest of the timeline (there is no resampler here and no AAC encoder to write a join with). place_stream_at is the one door a row goes through, and it refuses those in the engine's own words. - v2 and v1 files still load: no stream field means stream 0, which is all those dialects could play; saving either writes v3. - Waveform peaks are keyed by file *and* stream, so two tracks of one file cannot draw each other's envelope. - Library swatches and clip tints follow the *file*, so a file's streams share one colour in the panel and on the lanes. - assets/test_multilang.mp4: two AAC 44.1k stereo streams (und, fra), the shape real multi-language media has and the one where a second stream is placeable.
🐛 fix(engine): NTSC frame rates survive the sample tableAhmet Kaan Gümüş · 3f81ef8
🐛 fix(engine): NTSC frame rates survive the sample table `mp4 0.14`'s `Mp4Track::frame_rate` divides the sample count by whole milliseconds before the float cast, so 24000/1001 read back as a flat 23.0: the picture the audio-sample master clock asked for was 4 % out and the drift grew with the film — five minutes of it by the end of a two-hour one. The frame rate now comes off the stts totals in f64, which is exactly `timescale / delta` for a constant table and an average for a spread one. The same truncation lived at the writing end (a 90 kHz clock cannot count 23.976 fps in whole ticks), so the muxer picks a timescale that can: 90 kHz wherever it divides exactly — every integer rate, so those exports are byte for byte what they were — and `round(fps * 1001)` over 1001 ticks otherwise, which is exact for the whole NTSC family. The hardware encoder gets that same rational instead of a rounded `fps * 1000`. The video edit list is honoured now too, the way the audio one always was — but only what it really trims: a `media_time` equal to the first `ctts` offset is the B-frame composition delay, not a cut, and reading it as one throws two real frames away. A file whose audio we cannot decode at all (an AC-3 remux) played silent with the reason on stderr; the session carries it now and the window says NO AUDIO in its notice bar.
✨ feat(timeline): right-click context menu on clipsAhmet Kaan Gümüş · 769daad
✨ feat(timeline): right-click context menu on clips A right-click on a clip selects it exactly as the left button does and hangs a menu at the pointer: Cut, Delete, Lift, Regroup, Mute and Properties, each beside the stroke that does the very same thing. Both halves come out of the keymap registry, so the menu and the keys card can never disagree about what an action is called or how it is reached. Every item goes through the new Player::act -- the same table the key handler now dispatches through -- so a menu item *is* its stroke, asked for with the mouse. Cut and Regroup act on the playhead rather than on the clicked clip, so they are dimmed where they would do nothing rather than hidden. Escape closes it through the esc row the keys menu already lists, and so does any other stroke: the menu holds a clip index and every edit moves indices. Click away on either button closes it too, and no menu opens at all while a card owns the window or an export owns the edit list.
♻️ refactor(ui): single-source shortcut registry feeds handler and keys overlayAhmet Kaan Gümüş · 8aba979
♻️ refactor(ui): single-source shortcut registry feeds handler and keys overlay The keys menu listed only the bindable actions, so the strokes the modal cards read for themselves -- escape out of a card, a digit or backspace in the export card -- worked and were nowhere on it. They join the registry as Fixed entries, every action gains a Category, and the overlay draws both halves grouped by heading. no_stroke_is_missing_from_the_keys_menu reads the key handler's own source: every key it compares against must be a binding or a Fixed entry, so a new shortcut that nobody listed fails the test instead of shipping invisible.
✨ feat(library): media panel with tint swatches, drag-to-timelineAhmet Kaan Gümüş · 5bc0cf5
✨ feat(library): media panel with tint swatches, drag-to-timeline A column beside the picture lists every source the timeline knows: name, duration and the tint its clips wear, which is what ties a row to the boxes below. A click picks a row, the button under the list drops that source in at the playhead, and a row dragged onto either lane goes through the same call, so there is one answer to what adding does. Import moves into the list it adds to. Peaks now decode on a background thread with a bed drawn meanwhile, so a long file no longer stops the window painting on its first repaint. The window finally tells the compositor its name and its app id.
✨ feat(timeline): two lanes, waveforms, group-scoped selectionAhmet Kaan Gümüş · 591afa3
✨ feat(timeline): two lanes, waveforms, group-scoped selection V1 and A1 get a fixed header column and a bed of their own, both offset by the same constants the ruler now is, so one x maps to one moment in all three rows. Clips are placed at their own start rather than queued edge to edge: a lift leaves a hole and the bare bed showing through it is how a gap looks. Audio clips paint their source's min/max envelope, cached per file and normalised to its own loudest sample -- the fixtures peak near an eighth of full scale and would otherwise draw as a flat line. A click marks the whole group and acts on the half it landed on, which is what makes a detached half separately deletable. Two actions the lane model owed a key: Regroup rejoins what a Cut split, Lift removes one half and leaves the gap. Both auto-list in the keybindings overlay and are rebindable like the rest. `PlaybackSession::lane_clips` is the one engine addition: link ids and source ranges are what a two-lane front-end draws with, and no existing accessor carries either.
🔊 feat(audio): volume and mute for the monitoring outputAhmet Kaan Gümüş · bb07bdc
🔊 feat(audio): volume and mute for the monitoring output One knob down the stack: `ao_set_volume(handle, gain)` scales the samples in the RT callback, and mute is a gain of 0.0. Not the stream's PipeWire volume control -- WirePlumber persists every Props change into its restore state (measured on this box: the bucket gains `mute:true` ~2 s later), so a mute keypress would have become "edith has no sound" in tomorrow's system mixer, which is the bug 9ab4ebd just finished removing. Volume and mute stay independent: turning the level down while muted must not be what makes sound come out. The button says both at once. Mute is not pause -- the frames are still consumed, so the device clock, and with it the picture, runs straight through. The keybindings card's row list now scrolls inside a cap, which is the upgrade path its own ponytail named: three more actions no longer fit a 360 px window, and now no number of them can stop fitting.
✨ feat(export): options card before the export startsAhmet Kaan Gümüş · 935d5f0
✨ feat(export): options card before the export starts Export no longer writes the moment it is asked: the action and the button open a card first. Quality rows (Auto/Low/Medium/High/Custom Mbps) map to engine ExportSettings and go out through export_to_with; the destination comes from the desktop save dialog, and with no chooser installed the default path beside the source still stands. Codec, container and moov placement are stated rather than offered -- they are what edith can write. One card at a time: opening either the keys overlay or this one closes the other. Escape closes the card; a running export's escape is untouched.
2026-08-09
✨ feat(app): empty start, and opening is not playingAhmet Kaan Gümüş · c5f4646
✨ feat(app): empty start, and opening is not playing With no argument the window opens empty at 720p instead of exiting: it says what it is waiting for, the whole window is already the drop target, and the first media import or .edith load becomes the timeline. Player .session is an Option and every action that needs one refuses in the notice slot or dims its button rather than acting on nothing. The first-render play() is gone with it, so a file arrives paused on its first frame -- a project on its saved playhead -- and the play binding is what starts it.
🐛 fix(keys): overlay title overlap, one row per actionAhmet Kaan Gümüş · d598c98
🐛 fix(keys): overlay title overlap, one row per action Title sat in a fixed-height slot; wrapped text painted over the first row. Title and status line are now auto-height flex_none children, rows use min_h. Rows merged to one per action showing the full chord set; a rebind replaces all of the action's chords (multi-chord stays possible via the config file). Rows grew to the 24px hit minimum. In-card notice moved to the status line under the title.
✨ feat(keys): rebindable keybindings, single source of truthAhmet Kaan Gümüş · cad8d5a
✨ feat(keys): rebindable keybindings, single source of truth Every shortcut lived in hardcoded match arms and tooltip strings. New keymap module owns all bindings: dispatch, tooltips, hint line and the Keys overlay all derive from it. Click a row, press a key to rebind; conflicts rejected naming the holder. Persists to XDG_CONFIG_HOME/edith/keybindings (strict line format, atomic write, malformed file falls back to defaults with a notice). Escape stays hardcoded as the way out of capture, overlay and export — a rebindable exit could lock the user out.
✨ feat(ui): visible file controls, labeled buttons, persistent noticesAhmet Kaan Gümüş · a981d4a
✨ feat(ui): visible file controls, labeled buttons, persistent notices Import existed only as drag-drop and export only as the bare e key; every control was an unlabeled glyph. Toolbar gains text-labeled Import/Export/Save grouped transport | edit | file, tooltips with shortcuts on every control, hover and disabled states, a dismissible full-width notice bar replacing the 2s truncated slot, 24px hit targets (WCAG 2.5.8), scissors cut glyph distinct from pause, and window title edith.
✨ feat(app): ctrl+s save, .edith load via drop and argvAhmet Kaan Gümüş · 85ac45b
✨ feat(app): ctrl+s save, .edith load via drop and argv Ctrl+s writes the timeline to the project it was loaded from, or to a new one beside the media it started as. A dropped .edith replaces the whole session -- built first, swapped only on success, so a refusal leaves what is playing alone -- and argv takes one in place of a media file, resuming at its saved playhead.
✨ feat(app): multi-file import — drag-drop, argv, per-source tintsAhmet Kaan Gümüş · 80f10f5Browse files
✨ feat(app): export UI — e to export, esc cancels, ruler as progressAhmet Kaan Gümüş · 9eac4be
✨ feat(app): export UI — e to export, esc cancels, ruler as progress `e` writes the edit list to <source>.export.mp4: playback pauses, the timecode slot becomes `EXPORT n% — esc cancels` and the ruler's accent fill doubles as the progress bar. Edit, scrub, seek and transport input is dead for the duration; the raf gate keeps repainting so progress moves while the clock is stopped. The verdict holds the slot for two seconds. `esc` gives the editor back on the keystroke, but the handle is kept until the worker settles: its last act is to delete the partial file, and a second export started in that window would be what it deleted.
✨ feat: copy/paste clips at playheadAhmet Kaan Gümüş · aae5734
✨ feat: copy/paste clips at playhead Project::paste splices a clip in at a timeline position, splitting the clip under it when the position is mid-clip and appending past the end. One history snapshot, so one undo takes a paste back. PlaybackSession::clip_at hands a clip out for copying and paste_at goes through the same edit() reseek as delete/undo. The app keeps an Option<Clip> clipboard on ctrl+c / ctrl+v.
✨ feat(app): clips lane — cut/delete/undo, drag-scrubAhmet Kaan Gümüş · 5372bfd
✨ feat(app): clips lane — cut/delete/undo, drag-scrub - clips lane: one box per clip, proportional widths, click-select, ACCENT-tinted selection; plain divs keep spacebar focus - keys c (cut at playhead) / x or delete / z (undo) + drawn buttons; is_held guards all four against auto-repeat editing - drag-scrub on the root div (gpui has no mouse capture — release outside the window is caught by clearing scrub on a moved event with no left button); throttle: seek only on frame change + 100ms, always commit on release - cached duration deleted — timeline_duration() dynamic, so delete shrinks ruler and timecode immediately
✨ feat(app): click-to-seek ruler, post-EOF restartAhmet Kaan Gümüş · 14821ab
✨ feat(app): click-to-seek ruler, post-EOF restart Ruler takes a left click and seeks to the fraction of its own box that was hit; an invisible overlay canvas records those bounds at prepaint because a mouse listener only ever sees the window position. Player::seek clears the app-side EOF flags (held/eos/done) and raises pending_seek, which keeps the repaint loop alive while paused until the target frame is displayed. Space and the transport button restart from zero once the timeline is finished.
✨ feat(engine): seek primitives — video open_at, ao_flush, audio open_atAhmet Kaan Gümüş · 96ae365
✨ feat(engine): seek primitives — video open_at, ao_flush, audio open_at Lane 1 of the seek slice; PlaybackSession orchestration comes next. - demux/decode: stss sync lookup, DecodeSession::open_at decodes from the keyframe and discards to the target; Frame.index stays absolute. HW plugin ABI: vh_open renamed vh_open_at(path, target) — discards skip the vaGetImage readback; measured seek cost 65ms HW / 222ms SW - engine-audio: ao_flush drains the ring consumer-side in the RT callback (one-shot atomic), stale PCM unplayable even when paused; played-position atomics untouched so clock math survives - audio: open_at walks stts, 2-packet AAC pre-roll (MDCT overlap reconstructed exactly — verified 0-diff before the first PNS band), sample-exact trim; priming skip and seek discard unified. AAC seek is deliberately not bit-exact: symphonia's PNS noise LCG state depends on packet history; bounded <1e-3 by test instead
✨ feat(app): editor-shell UI — transport, timecode, playhead rulerAhmet Kaan Gümüş · 1c1f5e0
✨ feat(app): editor-shell UI — transport, timecode, playhead ruler Shell C chrome around the picture: filename header, letterboxed video region, and a fixed-height bottom panel with the transport row (drawn play/pause glyph, HH:MM:SS:FF readout), a read-only playhead ruler and two empty track lanes for the clips slice. Play state is read from the clock every render -- no shadow flag -- and the readout clamps to frame_count/frame_rate, since the clock keeps running past the last frame once wall time takes over at audio EOF. The button is a plain div, so the root's own focus handler wins the click and the space bar keeps working after a press; the toggle handlers notify, which also replaces the animation frame as the thing that repaints a paused (or finished) timeline.
✨ feat(playback): A/V session — audio-master clock, real-speed video, space to pauseAhmet Kaan Gümüş · 63e6964
✨ feat(playback): A/V session — audio-master clock, real-speed video, space to pause engine::playback::PlaybackSession wires DecodeSession + AudioSession + AoSession + PlaybackClock together behind open/play/pause/toggle/now/tick. A feeder thread pours decoded chunks into the device ring; tick() polls the device position into the clock and switches to wall time at audio EOF. Every audio failure (no track, no plugin, no daemon) degrades to a wall-paced silent session. The app renders against the clock: drain every due frame, show the last (drop-when-behind), hold one that is early. Space toggles playback.
🎉 feat: MVP decode pipeline — mp4 → H.264 → gpui previewAhmet Kaan Gümüş · 0acbf8d
🎉 feat: MVP decode pipeline — mp4 → H.264 → gpui preview - engine: mp4 demux → Annex-B, rusty_h264 software decode, BT.601 I420→BGRA; decode on worker thread behind a bounded channel - engine-hw: optional VA-API decode plugin (cros-codecs) behind a C ABI, dlopen'd at runtime with silent software fallback; the app binary keeps zero libva/gbm/drm linkage so it runs on any distro - app: gpui window, per-frame RenderImage swap + drop_image - vendor/: cros-libva + cros-codecs with 3 LOCAL PATCH fixes (libva 1.23 struct init, radeonsi 64x64 min context, pub surface()) — upstream is dormant, so vendor/ is adopted code, not a temp fork - fixtures are gitignored; scripts/gen_fixtures.sh regenerates them