Commits
Commits on
2b647ea0d8fa918193ee7424f4a366dffabf4b022026-08-11
✨ 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
✨ feat(ui): held keys run the sliders, silence speaks dB or dBFS up to full scaleAhmet Kaan Gümüş · 7367dd2Browse files
✨ feat(panel): the volume is a slider, and an empty timeline refuses to playAhmet Kaan Gümüş · c377b3d
✨ feat(panel): the volume is a slider, and an empty timeline refuses to play The level is a hundred steps now rather than twenty, so a drag along the bar reads as continuous; the keys still move five percent a press and mute is still the button beside it. And a timeline with nothing on it is end-of-stream from its one black frame onward, so the transport read it as "played out" and restarted a clock that had nothing to run against: the button said Pause and no press of it ever paused. Nothing to play is a message now, and the button dims -- unless it is playing, which a delete can leave it doing.
🐛 fix(timeline): a still stretches out from its left edge like its rightAhmet Kaan Gümüş · bbc3499Browse files
✨ feat(timeline): a jumpcut reaches as far as you tell it toAhmet Kaan Gümüş · 88fbed0
✨ feat(timeline): a jumpcut reaches as far as you tell it to A ripple used to be the whole timeline's business. It is a choice now: the card's first row says whether an apply reaches this take (its picture and its sound), this track alone, or every track -- and a track nobody named does not move, which is how a podcast track loses its silences while the music under it stays where it was. The engine takes an arbitrary set of lanes, not a kind or a range, so what "selected" means stays the front-end's business. It refuses, by name, a scope that would take one half of a take with it rather than quietly widening to the other half: widening would edit a track the user did not name, which is the surprise scoping exists to end. Naming the take is a row, and detaching is the other answer -- the refusal says both. The notice names what it reached: "5 SILENCES CUT on A1 — other tracks untouched".
🐛 fix(timeline): a silence refusal names the file and the frame it meansAhmet Kaan Gümüş · 564ba30
🐛 fix(timeline): a silence refusal names the file and the frame it means
A still handed to the silence card answered in the mp4 demuxer's words
("a box with a larger size than it"), which is true of a container and
useless to a person: a picture has no sound for the same reason a silent
video has none, so it is refused in the same sentence, by name.
And a rate that cannot be cut at the *end* of a silence said the start
instead -- a frame the cut would have been fine at, and the wrong place to
send anyone looking.✨ feat(timeline): silences are cut out or played fast in one pressAhmet Kaan Gümüş · d4ac3fc
✨ feat(timeline): silences are cut out or played fast in one press A scan of the selected clip's own sound (RMS dBFS over 20 ms windows, off the decode path the waveform already takes) marks every silence on the lane before anything moves; `enter` cuts them all out with a ripple, `f` plays them at 4x with the room they no longer need closed behind them. Either way it is one edit and one undo press, however many it found. Four numbers, all keyboard-driven from the card: the threshold, the quiet short enough to forgive, the padding kept either side of speech, and the kept sliver short enough to swallow -- the last of which is what stops a breath between two silences surviving as one-frame confetti. `set_speed` does not ripple, so speed mode closes the gaps itself; a clip on another lane lapping over a silence is refused by name, because the lanes would shrink by different amounts. A source with no audio track at all is refused by name too rather than read as one long silence. Output is ordinary clips: `.edith` stays v8.
🐛 fix(timeline): a hole punched into a slow clip leaves no overlapAhmet Kaan Gümüş · c892972
🐛 fix(timeline): a hole punched into a slow clip leaves no overlap `place` punches a hole with `clear`, and `clear` handed the remainder whatever source range rounding produced. At a quarter speed one source frame *is* four timeline frames, so a punch three frames into such a clip left a head that reached past the hole and overlapped what was placed -- the lane invariant, broken by the one edit that is allowed to overwrite. `Speed::fit` now answers `None` for a room nothing fits in and both remainders go through it: no fit, no remainder. The sweep that found it found a second of the same shape. `set_speed` put one rate on a whole linked group without asking whether the group still covered one span: two halves of *different source lengths* can occupy the same frames at 4x (rounding collapses neighbouring lengths onto one footprint) and re-rating them pulls the halves apart, which is a project that will not load again. Refused by name now, like the collision is. The trim walls move with it: one frame of clip always survives, and at a rate below real time one frame of clip is several frames of timeline (`Speed::room`). A trim that cannot fit refuses before it snapshots rather than writing a range wider than its room. Both fuzz sweeps go to 2000 seeds -- 200 walked straight past this, and a sweep this cheap has no business being the narrow one -- and place now lands speeded clips over speeded clips on purpose. Falsified: with the guard removed, `place`'s own `sorted_disjoint` assert fires. Grafted from the rival build of this feature, which the judge preferred on these three points: - floor/ceil pairing on `Speed`: `source_at` (floor) is what an export encodes, `timeline_at` (ceil) is the stamp playback puts on a decoded frame, and the pair makes the frame the pump is holding *exactly* the frame the export writes, at every rate (`speed_maps_both_ways`, 3751 speeds). The floor/floor this had put the preview a whole held frame off the export at slow rates. - the picture now **honours** a rate: the export walk takes the source frame each timeline frame shows and encodes a held one again rather than decoding it twice. `Span::source_len` reads the last shown frame's own source frame and not one more. - the refusal narrows to the mp4's *copied audio lane* only. AV1 has no audio to copy and honours a speeded take whole; WAV and FLAC always did. EVIDENCE: a mixed-rate mp4 (2x then 1x on one lane) reopens as 135 frames at 30 fps and its bright frames are exactly [15, 16, 75, 76, 77, 78] -- the fixture's four-frame flash halved inside the fast clip, whole inside the slow one -- read back both by the engine's own decoder and by ffmpeg.
✨ 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.
🐛 fix(timeline): a pasted still never lands on the audio laneAhmet Kaan Gümüş · b586b85
🐛 fix(timeline): a pasted still never lands on the audio lane `Project::paste` routed by `is_audio` alone, so a *copied* still clip -- the one door that does not go through `place_stream_at` -- was pasted as a grouped take across `V1` and `A1`. The A1 half is a PNG the audio worker demuxes: "file contains a box with a larger size than it", which silences the whole session rather than that clip, and the save it writes is one `open_project` then refuses by name. An `is_image` arm mirrors the audio-only one. Same-shape sweep of every clip-level door that routes by source kind: - `Project::paste` (project.rs) -- this defect, fixed. - `PlaybackSession::place_stream_at` -- already routed, image arm returns on the video lane before the audio fork. - `PlaybackSession::open`/`open_project` -- both directions refused by name at load. - `Project::move_to_lane` -- refuses a move across kinds, so no clip can cross by drag. Clean. - `Project::place`, `split`, `regroup`, `lift`, `delete_in`, `trim` -- the caller names the lane or the lane never changes. Clean, and the loader is the backstop for a hand-written file either way. - `Player::insert_source` (app) -- guarded both ways already. Falsification: with the `(_, true) => &[LaneKind::Video]` arm removed the new test fails at the lane count (A1 1 -> 2), and with that assertion lifted it fails on the WAV export with the demux error above -- the two consequences the test names, both reachable. Two doc corrections found with it: `Still::open` now says alpha is dropped by `to_rgb8` (a transparent PNG lands opaque, with the blend as the ponytail), and `first_audio_of` no longer implies an image-first timeline accepts a later audio import -- it widens which source is asked, not what "the timeline is silent" means. tests: images 7/7 (new `pasting_a_copied_still_never_reaches_the_audio_lane` asserts no A1 clip, no audio clip from a picture, the WAV export still carries the sound, and the save reopens), engine lib 155, saveload 12, audio_files 16, lanes 5 (serial), bin 56.
Merge branch 'main' into worktree-agent-ae7a2aef268502a46Ahmet Kaan Gümüş · 934361c
Merge branch 'main' into worktree-agent-ae7a2aef268502a46 # Conflicts: # crates/engine/Cargo.toml
✨ feat(timeline): still images import and place as clipsAhmet Kaan Gümüş · 30d430d
✨ feat(timeline): still images import and place as clips A PNG, JPEG or WebP is a source like any other: it imports into the library, drags onto a video lane, shows at the playhead, trims, saves and exports. `engine::is_image` is the door, beside `is_audio`, and every choice it forces is made in one place. The decisions, spelled out: - Extensions: png, jpg, jpeg, webp -- exactly what the `image` crate is built with here. Anything else is refused by the door that refuses a .txt. - Length: an image has none, so it is *held to* ten minutes (600 s at the timeline's rate) and *placed* at five seconds. The cap is finite on purpose -- a u32::MAX sentinel would hand a trim drag a wall past anything the timeline can hold -- and it is recomputed identically at load, so a clip trimmed out to it reopens. - Image-first project: its own picture is the canvas (a still *has* a resolution, unlike a song) at 30 fps, silent, one 5 s clip on V1. The A2 audio-only precedent for everything else. - Scaling: none of its own. The still is decoded once to I420 and goes through the same grade, the same `Composer` and the same conversion a decoded picture does, so a 640x360 image on a 1280x720 canvas is letterboxed by its fit policy and never stretched. - Lanes: the mirror of a song. A still goes on the video lane it was asked for or on V1, never on an audio one, and never as a grouped take -- a clip on A1 playing a PNG is a segment the audio worker cannot open. Hand-written projects are refused by name. - The timeline's audio parameters are now the first source that *could* have any, so an image as source 0 no longer holds every later import to its silence. Playback opens a still worker (one conversion, then a memcpy per frame, as the black-gap worker does); the export's `ClipDecoder` hands the same planes out for as long as the span runs, so a mixed video/still timeline encodes at the cut. tests: engine/tests/images.rs -- import registers only, placed pixels match the file's own (top/bottom bands catch a flip, RGB order catches a swap), trim walls at the cap, .edith round trip incl. the audio-lane refusal, mp4 export pixel-checked at the cut, audio-lane placement lands on V1. Fixture: scripts/gen_fixtures.sh writes assets/test_still.png.
🔀 merge(export): AV1 format meets the library-only importAhmet Kaan Gümüş · c5aa329
🔀 merge(export): AV1 format meets the library-only import Test import list resolved: format_key/format_refusal in, mp4_refusal and the deleted lane_clips/source_frames helpers out.
🔀 merge(import): library-only import meets the library row menuAhmet Kaan Gümüş · b514187
🔀 merge(import): library-only import meets the library row menu The row menu (C3) and the source lengths this branch made native meet in one place: the card's Length line and its "plays in N clips" count now read the engine's own `file_frames` and walk `session.lanes()`, since the app's clips-derived length helper and its free `lane_clips` walker are gone. Two tests assumed an import that places: `removing_a_source_takes_its_frame_ count_with_it` and `removing_a_row_is_refused_while_it_plays_and_takes_the_ row_away` both need a take on the timeline to have something to refuse, so each drags its import onto the end first. New coverage: the audio fork of `open_library` -- a song as the first import into an empty window. Empty timeline over the 1920x1080@30 song canvas, the row at its own 90 frames, not undoable, a file it never took in refused by name, and the drag that follows plays it on A1 alone.
✨ feat(export): AV1 comes back out, in a Matroska file this editor reopensAhmet Kaan Gümüş · dd3a2a8
✨ feat(export): AV1 comes back out, in a Matroska file this editor reopens
The export card's second picture format. AV1 already *arrives* here as
Matroska (`mp4 0.14` has no `av01` sample entry at all, so `demux` walks
the EBML by hand); it now leaves the same way, through an `MkvMuxer`
written beside the mp4 one -- EBML header, `Info`, one `V_AV1` track whose
`CodecPrivate` is a real `av1C` record built from the first keyframe's
sequence header OBU, then clusters that open on every keyframe. The
segment size and the duration are the only two fields patched at `finish`.
Matroska rather than AV1-in-mp4 because the reader for it already exists:
the round trip closes against this project's own `Demuxer`.
Picture only, and said so on the row before a destination is picked ("AV1
picture in .mkv — no sound: export WAV or FLAC for that"). Matroska
carries no sound this project can *write* -- no AAC or Opus encoder here
-- and an AAC track copied in would be one this engine's own reader leaves
silent (`AudioSession::open` refuses Matroska audio). A silent track
written anyway is the one failure a user would not notice.
The encoder pair mirrors H.264's: `rav1e` in software, the plugin's new
`vh_enc_av1_open` on the GPU. The hardware seat is wired, tested and
**opt-in** (`VE_HW_AV1=1`): the vendored cros-codecs AV1 encoder took the
radeonsi box this was written on into an amdgpu hard recovery, and a
driver reset is not an export. `rav1e` is not a new dependency at all --
`ravif` already locks the same 0.8.1 -- and is built with `asm` off (no
`nasm` in this build) and `threading` on: 39 s for the 5 s 720p fixture,
progress reported the whole way.
HEVC and VP9 are rows too, refused by name: no encoder in this stack and
patent-encumbered, and superseded by the AV1 row above.✨ feat(import): imported files land in the library, never on the timelineAhmet Kaan Gümüş · 5cb33d8
✨ feat(import): imported files land in the library, never on the timeline An import is not a decision about where a file plays. It registers a source, notes its native length and stops there; the timeline changes when the user drags the row onto a lane. - `PlaybackSession::import`/`import_audio` probe, check and register only, returning the source index. No clip, no reseek, and no undo step -- a library row changes nothing playable, so there is nothing for `z` to take back, and the notice no longer pretends otherwise. - `PlaybackSession::file_frames` is the native length of a file this session has taken in, so a row that has never been placed is placeable at its full length. `place_stream_at` takes it from there instead of a `frames` argument, and the app drops the clips-derived guesser that returned 0 for a source with no clips. - `PlaybackSession::open_library` is the first import into an empty window: the file's canvas, rate and clock over an empty timeline. - Doors: the Import button, a file dropped on the window and every argv argument after the first fill the library. A file *named first* at launch is an open, not an import, and still becomes the timeline. - Fixture + tests: a 25 fps H.264 file, refused by name at both video doors.