Commits
Commits on
main2026-08-11
✨ feat(export): the progress line counts up, counts down and says how farAhmet Kaan Gümüş · b640c4e
✨ feat(export): the progress line counts up, counts down and says how far The percentage said what fraction was done and nothing about time. Now the line carries both clocks: elapsed, measured, and remaining, guessed from a rolling window blended with the whole run's average -- the window alone spikes eightfold on either edge of a hardware-to-software stall, the average alone never notices a segment change. Until there is a span worth measuring it says "estimating…" rather than a number it would have to take back. Order on the line puts the clocks and the escape first: at the 640 px floor truncation eats the tail, and the codec pair is the one part the card already said.
✨ feat(caps): the card says what this machine and this build can really doAhmet Kaan Gümüş · 0f37a18
✨ feat(caps): the card says what this machine and this build can really do The hardware half was never asked for: the plugin decoded what it was handed and the front-end had nothing to show before a file arrived. Now an optional `vh_caps` symbol asks the driver -- profiles, entrypoints and whether a P010 image exists for a 10-bit read-back -- and intersects that with the codecs the plugin actually implements, so a GPU with an HEVC encode entrypoint is not reported as an HEVC encoder edith can reach. Optional exactly as `vh_enc_av1_open` is: a plugin built before this still loads and still decodes, and the listing degrades to "none" for it, for a missing plugin and for a machine with no driver alike. The software half is a table -- what this build was compiled with is a question the manifest already answered -- and both halves land at the foot of the export card, where a user asks them.
🔀 merge(D1): origin/main into the transport state machineAhmet Kaan Gümüş · 33f72b4
🔀 merge(D1): origin/main into the transport state machine Five conflicts, all in main.rs and all the same shape -- main moved the transport's neighbours while this branch replaced what they read: - toggle_or_restart: main's empty-timeline guard (nothing_to_play -> notice, and pause if it is playing) kept ahead of the state machine, since an empty timeline is Ended from its first black frame and would otherwise restart a clock against nothing. - playhead(): main extracted the clamp into its own method; it now asks the transport instead of the deleted done flag. - panel(): main's zoomed view, its resolution button, its "put a clip on a lane first" tooltip and its enablement rule all kept, reading state.is_playing(). - live_decode(position, playing) takes state.is_playing(). - close_session: the two flag resets are gone with the flags -- no session is Stopped. - tests: both import lists folded, Transport and transport added.
✨ fix(waveform): a film in an mkv paints its wave, and a failure says soAhmet Kaan Gümüş · ffb3105
✨ fix(waveform): a film in an mkv paints its wave, and a failure says so A 5.1 AAC track decodes through rusty_aac, whose IMDCT ran as an 8 MB cosine matrix -- 88% of decode time and 2x realtime, so a two-hour film needed an hour of background decode before its lane had anything to draw. The same file has an N/4-point FFT already, for the encoder: the IMDCT is a DCT-IV read at an offset, so both directions now share dsp::dct4. 40x on the fixture, 141 s for the film. And a decode that fails is no longer a silent file: peaks() errors reach the lane as Wave::Failed with a band that says "audio unreadable", the reason goes to the log, and the Matroska opener logs what it swallows.
Merge remote-tracking branch 'origin/main' into worktree-agent-a6ee4ab09094ad969Ahmet Kaan Gümüş · c1ed216
Merge remote-tracking branch 'origin/main' into worktree-agent-a6ee4ab09094ad969 # Conflicts: # crates/app/src/main.rs
✨ fix(transport): the clock stops where the timeline doesAhmet Kaan Gümüş · d93bb5f
✨ fix(transport): the clock stops where the timeline does At EOF nothing stopped the clock: wall time took over and `now()` walked off the end of the timeline for as long as the window stayed open (measured live: a 5 s timeline recognised its end with the clock at 17.5 s under a slow renderer). The playhead is what a cut, a paste, an insert and the analyser all act at, so every one of them was aiming into empty space. `PlaybackSession::halt_at_end` pauses and puts the clock on the out point -- where the timecode and the playhead have been showing it all along -- and leaves end of stream set, so the transport still reads Ended and the next press still restarts from the top.
✨ feat(audio): AC-3 and E-AC-3 sound out of a Matroska fileAhmet Kaan Gümüş · a71f015
✨ feat(audio): AC-3 and E-AC-3 sound out of a Matroska file The "(AAC only)" refusal fired on every A_AC3/A_EAC3 track in an mkv because a Matroska file's sound reached no reader at all. The blocks of its first audio track are now indexed beside the picture's and handed to the oxideav-ac3 decoder the mp4 path already uses, downmix and all.
✨ feat(actions): every action is a row the pointer can reach, and one table says whether it canAhmet Kaan Gümüş · 0c264ba
✨ feat(actions): every action is a row the pointer can reach, and one table says whether it can The actions card is generated from the keymap registry -- ActionId::ALL under Category::ALL, `keys_rows` the whole of the order -- and each row is two targets: its label does the action, its stroke changes that stroke. One enablement table answers for both the card and the clip menu, and tells a class refusal from a state one, so a row that takes no click says why.
✨ refactor(timeline): a second of timeline is so many pixels, wherever it isAhmet Kaan Gümüş · 8baa710
✨ refactor(timeline): a second of timeline is so many pixels, wherever it is The bed was the whole timeline: a scale worked out from the content's own length, so the first import filled the track whatever it was, zooming out of it did nothing (the fit was the floor), and a second clip silently halved the first one's box. Scale is now absolute -- px_per_second and the moment at the bed's left edge -- and View is the thin wrapper that binds one to the bed it is drawn on, which is where the stops, the scroll clamp and the fit live. Every frac_at/width_frac/time_at site moved onto it: boxes and the playhead are placed in pixels, the pointer reads pixels, the snap drops the bed width it never needed. Zoom Fit is the one place the content's length still picks a scale, because that is a user asking for exactly that. The stops are the bed's, not the content's: eight frames across it at one end, four hours at the other -- so a five second timeline zooms like an hour long one and the eight-frame dead zone is gone. The zoom button says how much is on the bed rather than a multiple of a whole that changed on every import.
✨ feat(import): mixed codecs and silent takes join the timelineAhmet Kaan Gümüş · 9bc3bd4
✨ feat(import): mixed codecs and silent takes join the timeline The two refusals a user hits for no reason are gone: a file coded differently opens its own decoder like every clip already does, and a file with no audio track contributes silence over its span like a gap already does. What the codec gate was really protecting against stays, moved to the one place that can answer it: import asks the file for a decoder, so a machine without the VA-API plugin refuses an HEVC take by the decoder's own name rather than playing black frames with the complaint on stderr. Rate and layout stay refused -- there is no resampler. Both audio paths now read a source with no track as the silence they already synthesise for a hole: the worker plays it, the packet copy writes it, so an mp4 export of a timeline with a silent take is as long as the timeline and quiet where the take is.
✨ feat(demux): an H.264 mkv opens like any other fileAhmet Kaan Gümüş · 87953e0
✨ feat(demux): an H.264 mkv opens like any other file Matroska carried the codec this project decodes best and refused it at the door: only V_AV1 had an arm. The avcC in CodecPrivate is the same record an mp4 carries, so the parameter sets come out of it and the length-prefixed blocks are reframed to Annex-B behind them -- the H.264 dispatch below is untouched, and so is the AV1 path, whose blocks still go over as they lie.
✨ refactor(transport): one state, four names — the end of a clip is not pausedAhmet Kaan Gümüş · bb16b0d
✨ refactor(transport): one state, four names — the end of a clip is not paused
The play button read the clock, and past the last frame the clock is still
running on wall time -- so a played-out timeline drew Pause and looked like it
was playing. State was a lattice of bools (eos, done, held) that only the pump
knew how to spell.
Transport{Stopped,Playing,Paused,Ended} is now the single answer, asked of the
session rather than remembered: the engine's own end-of-stream flag (any seek
clears it) and its clock. The glyph, the label, the button's enablement, the
repaint loop, the clamped timecode, the step-back-off-the-end and both doors of
play/restart (key and button) all read it. The eos and done bools are gone.✨ merge(T15): export card speaks plainly — grouped rows, live summary, honest refusalsAhmet Kaan Gümüş · dea8a27Browse files
✨ feat(export): the card says what file it is about to writeAhmet Kaan Gümüş · 3fbef63
✨ feat(export): the card says what file it is about to write One row per codec instead of one per codec-and-box, the container asked once and only where there is more than one, the quality rows dimmed with their reason where a format has no bitrate to give, and two lines above the button that state the file itself: codec, box, size, rate, sound, name and about how big. Every row carries the key that picks it, and every row is clickable -- the typed bitrate has steppers now, which was the last control in the card a pointer could not reach. Two shapes of it behind `g` and `r` (sections or one flat list; the formats with no encoder as rows or as one footer line), so the choice between them can be made by looking rather than by argument. Grouped and collapsed is what opens. Export itself is untouched: the same settings, the same start, the same cancel, the same retarget.
✨ feat(mix): every track has its own volume and the mix has a ceilingAhmet Kaan Gümüş · dc7d07d
✨ feat(mix): every track has its own volume and the mix has a ceiling A fader per audio track and one master limiter over the sum of them, both applied where the lanes are added and nowhere else -- so what an export writes is what the room heard, by construction rather than by two call sites agreeing. A track's fader moves everything on it, every frequency: it is not the equalizer (one take, one band) and not the panel's volume (this machine's monitoring, which no file carries). The limiter is lookahead, soft-knee and per sample: the peak of an exported file is a measurement, not a hope, and the hard clamp stays behind it as the backstop. Flat settings are still the bit-exact passthrough: one lane at unity with the limiter off never opens a mixer thread, and an mp4 of such a timeline is still a packet copy. A mixed one re-encodes, and the card says so before the export starts. Both belong to the project, so `.edith` is v9: `fps`, `limiter` and `gain` lines, every older dialect still loading flat. The rate line pays an old debt with it -- a timeline of nothing but stills and songs now comes back at the rate it was cut at instead of the one its scaffold implied. UI: the mix card (f, or an audio track's own header), rows with steppers and hold-to-run arrows, and the track's level on its header.
✨ merge(T2): HEVC intra export — both containers, cropped 1080pAhmet Kaan Gümüş · 303919eBrowse files
✨ feat(export): HEVC leaves the way it came in — intra, in either boxAhmet Kaan Gümüş · 12f8cb7
✨ feat(export): HEVC leaves the way it came in — intra, in either box The one codec edith could read and never write. OxideAV's pure-Rust H.265, vendored from git master (its released 0.0.9 is pre-encoder) with one marked patch: the intra SPS writer had no conformance window and refused any dimension off the 16-sample CTB grid, so 1920x1080 could not be written at all. It is now coded padded to 1088 with the edge replicated and cropped back by the SPS, which is what ffprobe reads out of the bitstream. Intra-only, and every row says so: the inter modes code 1080p at 0.81 fps across twelve cores and the intra path does 4.30 on the same picture, so the export is an intraframe master — ProRes-shaped, large files, every frame a cut point — rather than a delivery file nobody would wait for. The AU is a stateless function of one frame, so frames fan out across twelve lanes and are collected back in display order. Two rows, `h` and `x`, because a codec and a container are two choices: the `hvcC` record built from the encoder's own VPS/SPS/PPS goes into a Matroska `CodecPrivate` and into an mp4 `hvc1` sample entry unchanged, so the two files are one stream written twice. Both re-open in edith through the plugin, sound and all.
🔀 merge(T4): every export carries its sound — mp3, av1-in-mp4, refusals liftedAhmet Kaan Gümüş · 59c74e8Browse files
🔀 merge(T4): every video format carries sound meets the hw/sw indicator and mixed fpsAhmet Kaan Gümüş · cf10a7c
🔀 merge(T4): every video format carries sound meets the hw/sw indicator and mixed fps Four seams, all kept whole: - export.rs copy_audio — T4's routing (two lanes, a speeded lane, an equalizer, an uncopyable source all fall through to encode_audio) composed with T3's conformed-lane comment, which is now the reason a *rate* is NOT one of them: a conformed lane still copies, and `tests/mixed_fps.rs an_export_of_two_rates_runs_at_the_speed_it_was_shot` is what says so. - export.rs labels — hw_seat/video_label take both AV1 containers (a container is not an encoder), audio_label gained MP3 and stopped calling AV1 soundless. It is now a *measurement*: copy_audio hands back an `ExportAudio` that says whether the packets were copied, so a progress line naming "AAC copy" is what really happened rather than what the edit predicted. - main.rs — the FORMATS key column meets export_line's seat, and an audio-only format now CLEARS the cached video seat instead of showing the last picture format's: picking MP3 after AV1 read "SW encode (rav1e) · MP3 · SW (rusty_mp3)", which named an encoder that would not run. Same shape for WAV and FLAC, which had it before this branch. - tests/backends.rs — the card==job pin now runs over all three picture formats and all three audio-only ones. Green: engine --lib, --test export/av1/backends/mixed_fps/audio_export/eq_audio (--test-threads=1), edith --bin, cargo check --workspace. No duplicate keys in the merged engine manifest.
🔀 merge(T7): clips drag anywhere, media drops where the mouse landsAhmet Kaan Gümüş · e9589fbBrowse files
✨ 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).
✨ feat(timeline): a clip goes where you drop it, along its track or across themAhmet Kaan Gümüş · cdb0c4b
✨ feat(timeline): a clip goes where you drop it, along its track or across them A clip dragged along its own lane now lands on the frame the pointer let it go on, and a library row dropped on a lane goes in under the pointer instead of at the playhead. Project::move_to_lane becomes Project::move_clip(from, idx, to, start): the whole group travels the same distance, each half on its own lane, and start is clamped to the gap every member lands in -- a clip butts up against the take next door instead of overwriting it, and the tightest member's wall wins. A drop that changes neither lane nor frame is a click and costs no undo step. The front-end reads the frame under the pointer through the same View the boxes are drawn through, so it lands where it was let go at any zoom, less the offset the hand grabbed the box at, and snaps to a neighbour edge or the playhead within a few pixels.
🔀 merge(T3): mixed-fps timelines — clips count timeline frames, exact rational conformAhmet Kaan Gümüş · d648c77Browse files
🔀 merge(T3): mixed frame rates meet mkv HEVC, zero-source survival and the zoomAhmet Kaan Gümüş · 6b5fa2e
🔀 merge(T3): mixed frame rates meet mkv HEVC, zero-source survival and the zoom `main`'s `open_project` now walks every source with the scaffold in its own slot (T6), so the per-source `rates` table is built there frame by frame beside `counts` -- one table in two vectors, grown and shortened together. The codec gate T1 leans on stays; the frame-rate gate is still gone, and a Matroska file shot at another rate imports through the very same door an mp4 does, its rate read off the demuxer's `default_duration`. Grafted from the losing branch, which had the better arithmetic: * `Rate::from_fps` is exact. Built on `mux::frame_timing` -- the pair the muxer already counts an export's frames in -- divided by that pair and reduced, so 24000/1001 over 30 is `800/1001` and stays it however far the timeline runs. The milli-fps rounding it replaces was a frame off after seven hours; that ponytail is gone rather than documented. * A rate no timescale can *name* is an `Err` in `frame_timing`'s own words rather than a silent 1:1, and `matches_timeline` is where a file carrying one is refused -- it hands back the `Rate` it accepted the file at, so the number the refusal was decided on is the number the file plays by. * `file_frames` and `file_rate` ask one `source_of`, so a path that names a length names a rate too. * Five more tests in `tests/mixed_fps.rs`, in timeline frames: the exactness of the NTSC ratio, a trim of an off-rate clip to the room it was dragged to, the neighbouring 30 fps clip still read frame for frame, the linked sound placed at its picture's length, and the exported pictures measured against the file's own frames rather than merely counted. ...and the note the next builder needs in `copy_audio`: a lane holding a clip at another rate stays a packet copy on purpose. A clip counts the *timeline's* frames, so the window the copy trims a source's sound to is whole timeline seconds and the packets are already in sync; re-encoding it would buy nothing and cost a generation of loss. A speed is different, and still refused there.
✨ feat(backends): the decoder and the encoder say which one is runningAhmet Kaan Gümüş · bdcc2fb
✨ feat(backends): the decoder and the encoder say which one is running A source names its decoder in the library row before anything plays, the transport line names the running one while it does, and the export card names the encoders it would open before the button — the progress line naming the ones it did. Every answer is measured, never promised: `decode::probe` picks a seat by the very rules `open_worker` picks one, the worker publishes what it actually opened (so a hardware session that falls back to software says so), and `export::planned_video` opens the very VA-API encoder the export would and closes it again. `hw_seat` is now the single place that choice is made, so a card and a running job cannot drift apart.
2026-08-10
🔀 merge(T1): mkv HEVC + 5.1 AAC import meets the EQ exportAhmet Kaan Gümüş · 1dc163e
🔀 merge(T1): mkv HEVC + 5.1 AAC import meets the EQ export One rusty_aac, not two: the branch's vendored 0.5.0 (patched IMDCT) is what the workspace patch table points every dependant at, so T5's encoder and this branch's decoder are the same crate. The auto-merge had left two identical `rusty_aac` keys in the engine manifest, which is a duplicate-key error -- one entry now, its comment naming both halves. The three prose conflicts were all one shape: this branch wrote 'no AAC encoder is wired here' while T5 was busy wiring one. T5's wording wins in each. Where main's Av1 doc said this engine's reader 'refuses Matroska audio' the claim is now false the other way round, so that sentence keeps main's writer half and takes this branch's reader half.
✨ feat(import): a Matroska film opens, its 10-bit picture and its 5.1 sound alikeAhmet Kaan Gümüş · b083a3b
✨ feat(import): a Matroska film opens, its 10-bit picture and its 5.1 sound alike mkv HEVC demux (Main/Main10), a P010 pool in the hardware path read back to I420, mkv audio through symphonia's Matroska reader with rusty_aac decoding what symphonia's own AAC refuses (anything wider than stereo), and a BS.775 fold of 5.1 down to the stereo the output device takes. vendor/rusty_aac is 0.5.0 with one local patch: its decoder's IMDCT caches the cosine matrix instead of calling cos() per term, 11x faster and the difference between playable and not.
🔀 merge(T6): zero-source survival + boundary-cardinality class fixesAhmet Kaan Gümüş · 5ef2783Browse files
✨ feat(timeline): a clip shot at another rate plays at the speed it was shot atAhmet Kaan Gümüş · 26af1e4
✨ feat(timeline): a clip shot at another rate plays at the speed it was shot at A frame rate of its own is no longer a refusal at import. Every frame number in the edit list counts the *timeline's* frames -- a clip's in/out included -- and a file shot at another rate is converted once, at the decoder's door: `Rate` (milli-fps rational, `Speed`'s floor/ceil pair) says which frame of the file a timeline-rate frame is. Playback opens its worker through it and stamps the pictures coming back through its inverse; the export walks its span through it after the speed, so a 2x 24 fps clip on a 30 fps timeline is exactly both. Nothing in `project.rs` changed: placement, trim, split, paste and speed are the same arithmetic on one clock, and a single-rate project takes the identity map everywhere it used to take nothing. A library row now names the *file's* rate rather than the timeline's, which was true only while every source shared it.
✨ feat(timeline): the timeline zooms in on the frame you are looking atAhmet Kaan Gümüş · 6dd5951
✨ feat(timeline): the timeline zooms in on the frame you are looking at One mapping, View, turns a moment into a place on the bed and back: the ruler, every clip box, the silence marks, the playhead, a click-seek and an edge drag all read it, so nothing can drift away from the rest when the view moves. At the fit it is the arithmetic the panel already did (start_frac is gone into it), so an unzoomed timeline is drawn exactly as it was. Zoomed, the anchor -- the playhead for a key, the pointer for ctrl+wheel -- stays where it is on screen, out stops at the whole timeline, in stops at eight frames across the bed, and a playhead that runs off the slice pulls the view after it, which is how a zoomed timeline scrolls while it plays. The keys are the chords every editor magnifies with (ctrl+= / ctrl+- / ctrl+0, the bare pair being the volume), the two steppers repeat while held, and the three buttons beside the resolution are the pointer's way to all of it.
✨ feat(ui): every setting has a button, not only a keyAhmet Kaan Gümüş · b362ed5
✨ feat(ui): every setting has a button, not only a key The audit the ask names, and what it found missing. The project resolution was ctrl+r and nothing else, undo was a stroke, an export could only be cancelled with escape, copy and paste had no door at all, the silence card was seven settings a pointer could pick but never move, and the scan itself was a key with no menu item. Each of them now has the pointer path its stroke always had -- the resolution cycles on a button that says where it is, the export button becomes the cancel while one runs, the clip menu carries the clipboard pair and the silence card, and every silence row has its own two steppers, on the same nudge the arrows call. The clip menu's list scrolls past twelve items so a longer menu cannot hang its last item off the window, and the toolbar scrolls sideways for the same reason: at 640 px it was already wider than the panel, and Keys was off the edge before any of this was added. every_action_is_reachable_without_the_keyboard keeps the audit from rotting: no ActionId may be a stroke and nothing else.
🔀 merge(T6): the last media leaves, and nothing assumes source 0 stayedAhmet Kaan Gümüş · 7e4ead7
🔀 merge(T6): the last media leaves, and nothing assumes source 0 stayed Both sides kept: the library-removal slice (a project may name no file, the audio reference is never a still, the clipboard follows its file down the list, a silence edit drops the selection) and main's EQ audio export, image left-trim, track removal, volume slider, hold-repeat and EQ spectrum. The one textual conflict was the test import list; close_session now also drops the gestures and caches those slices added.
🐛 fix(library): the last media leaves and nothing assumes it stayedAhmet Kaan Gümüş · 96c9fbeBrowse files
🐛 fix(export): an equalized mp4 re-encodes the sound the copy could not carryAhmet Kaan Gümüş · 33f7a15Browse files
🔀 merge(T13): EQ graph — live spectrum, gridlines, band readoutAhmet Kaan Gümüş · 6686ecdBrowse files
Merge branch 'main' into worktree-agent-a46e3271de2d17ff3Ahmet Kaan Gümüş · 700a973
Merge branch 'main' into worktree-agent-a46e3271de2d17ff3 # Conflicts: # crates/app/src/keymap.rs # crates/app/src/main.rs