forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 5530fbd1db5a6fa14b3d4e5969fdbe6bc537fb03

2026-08-11

✨ fix(timeline): the preview is the commit, and the wave is drawn where it can be seenAhmet Kaan Gümüş · 5530fbd
✨ fix(timeline): the preview is the commit, and the wave is drawn where it can be seen

A trim preview handed the timeline frame count straight to a source-frame
field: a speeded clip drew its tail moving at the wrong rate and snapped on
release, and a head drag moved the clip's other edge. It now goes through the
one conversion the engine commits with (Speed::fit), so the box a hand lets go
of is the box the release writes -- at every rate, on a still, and at both
walls of the room.

A drag freezes its clip index for the whole gesture and nothing stops a stroke
from editing the lane under it; the drop then relocated whatever had slid into
that index. The payload now carries the clip itself and the drop finds it
again, or does nothing at all when it was deleted mid-drag.

A waveform, a name and a speed badge were drawn at the box's own edges, which
at a deep zoom sit thousands of pixels off screen: one envelope column per two
pixels of a box no screen can hold is a path nothing can repaint, which is the
wave that "disappeared". All three are now placed in the slice of the box that
is on the bed, and the envelope has a hard column ceiling behind that.

And the timecode reads the timeline's own length rather than the drawn one:
pressing a picture's end edge used to make the total say 10:00:00.
🔀 merge(B1): the timeline measures seconds in pixels — absolute scale, honest zoom stopsAhmet Kaan Gümüş · 0c3c476
🔀 merge(B1): the timeline measures seconds in pixels — absolute scale, honest zoom stops

Scale{pps,start}: a second of timeline is a fixed number of pixels wherever it
is, so a clip's width says how long the clip is and adding a second one does not
redraw the first one narrower. width_frac/frac_at are gone; every box, the
playhead, a seek and a trim go through the one mapping.

Composed with main: the transport state machine reads Transport, the panel and
the render loop take their state from it and their geometry from Scale. The
zoom-out tooltip stops lying about where it stops -- four hours on the bed, which
is what ZOOM_MAX_SECONDS actually is.
✨ feat(av1): 10-bit AV1 opens instead of being refusedAhmet Kaan Gümüş · 25aef8c
✨ feat(av1): 10-bit AV1 opens instead of being refused

The `av1C` record's `high_bitdepth` was an outright refusal ("10-bit AV1 is
not supported yet"), on a comment that had gone stale: the vendored decoder
takes its RT format from the stream and maps Depth10 to YUV420_10, and the
plugin's read-back pool is P010 whenever the demuxer says >8 -- which is how
HEVC Main 10 has been playing all along.

So `parse_av1c` reads the depth instead of refusing it, in both containers
(the mp4 `av1C` box and the Matroska `CodecPrivate`), and 12-bit stays
refused by name in the words HEVC's own depth check uses. Nothing else needs
the plugin any differently: AV1 has no software decoder at any depth, so a
machine without `libengine_hw.so` still refuses it as `needs_plugin` always
has.

Fixture: assets/test_av1_10.mkv (libaom, yuv420p10le), the AV1 seat of the
pair test_hevc.mkv/test_hevc10.mkv already make for HEVC.
✨ feat(engine): subtitles come in with the film or beside itAhmet Kaan Gümüş · f4b5fd8
✨ feat(engine): subtitles come in with the film or beside it

A subtitle track was a track this engine walked past: the Matroska track
walk kept video and audio and dropped type 0x11, and a `.srt` next to the
media was a file with no door. Now both arrive as the same thing -- a
list of timed cues -- and a project keeps them.

`subtitle`: the cue model plus the two ways in. Standalone `.srt`,
`.vtt` and `.ass`/`.ssa` go through `oxideav-subtitle` and `oxideav-ass`
rather than through a fresh parser here; an embedded track carries its
timing on the block and its text in it, so each codec is put back into
the shape its own parser reads -- which is what makes an embedded track
and the file it was muxed from come back as the same cues.

What cannot be read is refused by name and still listed: the four PGS
tracks of a BluRay remux are four rows saying they are pictures, not an
empty list and not a file that would not open. A `.srt` that has gone
missing since the save is the same story, and a re-save keeps its row.

`.edith` 10 writes `subtitle <track> <path>` -- the reference only, the
cues stay in the file they came from. v9 and every older dialect load as
the projects with no subtitles that they are.
🔀 merge(A2): H.264 joins AV1 and HEVC in the Matroska gateAhmet Kaan Gümüş · ae661e4
🔀 merge(A2): H.264 joins AV1 and HEVC in the Matroska gate

Both lanes rewrote mkv_track_entry. Main's shape wins -- MkvEntry, the named
refusal, the scratch buffer, bit_depth -- and the H.264 arm is one more entry
in it: parse_avcc beside parse_hvcc, 8-bit as the whole H.264 path here
assumes. The refusal now names all three codecs it does read.
🔀 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.
✨ 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.
✨ 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(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.
✨ 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.
✨ 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 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.
✨ 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 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.
✨ 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.
🔀 merge(T17): timeline zoomAhmet Kaan Gümüş · c97244fBrowse files
✨ 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.
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
🔀 merge(T9): track removalAhmet Kaan Gümüş · b631892Browse files