Commits
2026-09-06
🐛 fix(engine): a QuickTime .mov keeps its AAC — read v1/v2 sound descriptionsAhmet Kaan Gümüş · 7fbbd0f
🐛 fix(engine): a QuickTime .mov keeps its AAC — read v1/v2 sound descriptions A Resolve export (qt brand) opened with no sound: mp4 0.14 reads the mp4a sample entry as ISO only, skipping the 8 bytes QuickTime uses for version/revision/vendor, so a version-1 SoundDescription's 16-byte tail was taken for the first child box and the wave-wrapped esds behind it never seen -- "trak[2].stbl.esds not found", and with it every Resolve / Final Cut / `ffmpeg -f mov` file. Vendored mp4 0.14 under vendor/mp4 (patch table entry, workspace exclude): Mp4aBox::read_box now reads the version, skips the v1 tail or takes rate/channels from the v2 block, and finds the esds directly or inside `wave`; the crate's ten lint warnings cleaned with it. New fixture assets/test_qt.mov (ffmpeg -f mov, same 440/880 tone) and a test in audio_decode that fails on stock 0.14 and passes here. Verified in the harness on a Resolve export: opens with picture and waveform, plays (sink RMS -26.9 dBFS), seeks to 00:10 and plays the right audio (captured peak -11.109 dBFS = source's own). Workspace suite 981/987; the six failures are five load flakes that pass serially and one pre-existing failure on clean main (audio_multi layout refusal), logged.
2026-08-22
🐛 fix(engine): H.264 level_idc from Table A-1 on the software seat tooAhmet Kaan Gümüş · 4a00a35
🐛 fix(engine): H.264 level_idc from Table A-1 on the software seat too rusty_h264 left level_idc at its default 3.0, out of spec above 720p30. The Table A-1 lookup moves from the plugin into engine::export so both seats write the same byte; the plugin maps it onto the vendored enum. Verified: a 2560x1440@30 software export now carries level 5.0. Also vendors proc-macro-error2 2.0.1 with its `pub use proc_macro;` re-export dropped (E0365 future-incompat, the one warning left on a workspace build; nothing names that re-export).
2026-08-14
✨ feat(engine): the driver that aborts kills a process nobody was editing inAhmet Kaan Gümüş · c0a1847
✨ feat(engine): the driver that aborts kills a process nobody was editing in Mesa's radeonsi calls libc abort() from its own C worker thread when the video ring resets under it -- amdgpu_ctx_set_sw_reset_status, mesa 26.1.6, vcn_unified_0 hung during an AV1 encode submission on 2026-08-13. A foreign thread's abort is not an unwind, so every catch_unwind in the plugin was structurally unable to see it: the editor died with the driver and took the session's work with it. So the encoder is not in the editor's address space any more. HwEncoder is a handle on a `hw-encode-child` process that dlopens the plugin, and its death -- by abort, by any signal, or by going quiet past VE_HW_TIMEOUT_MS -- comes back as an error the export answers by writing the file again in software. A person who picked the GPU by name still gets the refusal in words rather than an encoder nobody chose. Isolation that cost the speed would not be worth having, so pictures do not travel down a pipe: in-memory ones go through a memfd mapped in both processes, and pictures still on the GPU never move at all -- their DRM-PRIME descriptors cross as file descriptors over SCM_RIGHTS, so the zero-copy export path stays zero-copy across the boundary. Measured on this box at 1080p: 430 fps in-process, 384 isolated, 89% of it, worst case (every export of an untouched clip takes the descriptor path instead). The proof does not need a wedged ring, which is the one thing a wedged machine cannot supply: VE_HW_TEST_FAKE opens a stand-in seat in the child and VE_HW_TEST_ABORT / VE_HW_TEST_HANG say where it dies or stops, so the containment paths are exercised on any machine, GPU or no GPU. Decode is still in the editor's process, where the same abort would still be fatal; the seam to move it is now the one this built.
2026-08-13
⚡ perf(engine): the Opus decoder gets the transform it was written aroundAhmet Kaan Gümüş · edbb3e3
⚡ perf(engine): the Opus decoder gets the transform it was written around `ruopus` was asked for `std` alone, and its default `spectrograms` feature -- read here as "its own analysis tools" -- is the FFT backend of the CELT synthesis MDCT. Without it the crate evaluates an O(n²) DFT in f64 per block, and a 5.1 soundtrack decoded at 0.95x realtime: slower than playing it. Measured on the project's own fixtures, release: test_tone.opus 10.44x -> 135.01x realtime test_opus_51.mka 0.95x -> 103.80x test_opus_71.mka 0.93x -> 112.04x Not bit-identical -- FFT summation order differs -- but the two builds agree to 144 dB SNR (max |Δ| 3.7e-8) while both sit 93 dB from ffmpeg's libopus decode of the same file, so the change is 40 dB below the decoder's existing distance to the reference.
2026-08-12
🐛 fix(engine): the codec stops replacing the whole program's allocatorAhmet Kaan Gümüş · c8f62cb
🐛 fix(engine): the codec stops replacing the whole program's allocator `rusty_h264-common` declares `rusty_alloc` as the `#[global_allocator]` of whatever links it, and its sibling decoder and encoder turn that feature on from their own defaults -- so no downstream feature choice could decline it. Sustained scrubbing churns decode-worker threads, and that allocator faulted on both ends of a thread's life: on a new one's very first allocation, and in `Heap::collect_inner` from the `thread_done` TSD destructor. Three cores. `common` is vendored (the fifth, same idiom as the other four): the feature stays declared so the sibling manifests still resolve, but it is empty and the six-line declaration is gone. Not one line of codec code differs from 0.9.1 -- 360 decoded pictures across three fixtures still match ffmpeg's `framemd5` exactly -- and the process gets glibc's malloc back.
🔊 feat(export): an edited Opus source leaves an mkv as OpusAhmet Kaan Gümüş · 76ede8e
🔊 feat(export): an edited Opus source leaves an mkv as Opus Opus could be read here since `ruopus` landed and could not be written at all, so every cut of an Opus film came out as AAC in a Matroska file: a codec downgrade nobody asked for, paid on every edit. `opus-rs 0.1.26` is the encoder half -- a pure-Rust port of libopus 1.6, BSD-3, no `build.rs`, not one `.c` in the crate and no dependencies at all (checked, not read off the README) -- and a Matroska export now writes `A_OPUS` with an `OpusHead` in its `CodecPrivate`, `CodecDelay` and the codec's fixed 80 ms `SeekPreRoll` beside it. An mp4 still says AAC and the mp4 writer now refuses an Opus track by name rather than declaring `mp4a` over it. Only where an *encode* was going to happen anyway. An untouched timeline still copies its packets, bit for bit, into the same container: Opus is what an edit costs, never what a passthrough costs. The envelope is measured and it is narrow, which is the whole story of this crate. On three one-second spans of a 5.1 Opus film, encoded here and decoded with `ruopus` -- not the suspect, it reads ffmpeg's libopus at 256 kbps back at correlation 1.00000 -- the encoder is usable to 128 kbps (0.937/0.989/0.994) and ruined by 136 (0.452/0.697/0.951), against libopus at 0.997/0.998 on the same material. Pure-tone fixtures put that cliff at 165 kbps, so its edge moves with the content and no constant is safe on its own: the cap is 128 kbps *and* every track is decoded again and correlated with the mix before it is written. Below 0.95 the export writes AAC instead, and the encoder line the export publishes says AAC, so the fallback is visible rather than silent. Mono keeps AAC outright -- this encoder mis-codes it at every rate asked for here -- and so does any timeline that is not 48 kHz, since Opus has one rate and resampling a whole timeline to reach it is a bigger change to the sound than the codec is. Two delays, both measured rather than hoped for. The pre-skip is 1080 samples: the encoder's 2.5 ms lookahead plus one warm-up frame, because a cold first frame comes out ramped and out of phase (the head of the fixture went 0.9788 -> 0.988 correlated once it was fed its own first 20 ms first), and one silent frame is pushed in at the end so the last 2.5 ms leave the encoder instead of ending the track short under a picture that is not. ffmpeg's decode of the file agrees with this project's own reader sample for sample, which is what says the header describes the stream. `tests/opus_export.rs` exports a cut and reads it back through symphonia's mkv reader and `ruopus` -- 0.9948 left and 0.9825 right against the source, 0.997/0.993 past the first frame -- proves the AAC copy still wins where it applies and that a mono mix takes the AAC path, and, with `EDITH_OPUS_FILM` pointing at a real-library Opus mkv, cuts a span out of the film itself: correlation 0.9914 at a lag of one sample. The unit test in `export.rs` pins the 256 kbps failure, so the day the crate fixes it this suite fails and the cap can be raised.
⬆️ deps(h264): the software decoder now agrees with ffmpeg, picture for pictureAhmet Kaan Gümüş · 1d9b2f4
⬆️ deps(h264): the software decoder now agrees with ffmpeg, picture for picture `rusty_h264` 0.8 was not bit-exact. Across a 1080p High and a 720p Main clip -- 750 pictures, both with B-frames -- it reproduced ffmpeg's own decode byte-for-byte on 26 of them and drifted on the other 724, worst case 69.8 dB PSNR. That is invisible on a monitor and still wrong: it is the picture a grade is measured on, the picture a still is exported from, and the picture a software export re-encodes. 0.9.1 matches ffmpeg on all 750, which is the property the manifest already demands of `ruopus` and `oxideav-ac3` and had never actually checked here. Pinned exactly for the same reason they are. It is faster by the same stroke: 247 Mpx/s against 171 decoding the 1080p clip, 256 against 176 on the 720p one -- 1.44x, single-threaded, min of 20 interleaved rounds on a loaded box (a second binary built from the same 0.9.1 sources came within 1%, which is what the interleaving is for). Software encode is a wash at 1.04x and 0.97x, so nothing about an export's speed changes; what changes is what it encodes *from*. The challenger measured against it, `rust_h264` 0.4.0 (MIT/Apache-2, pure Rust, decode only), does not take the seat on either axis: 1.00x and 0.88x of 0.8's decode rate, so 0.69x of this crate's, and it is not bit-exact either -- 256 of the same 750 pictures, worst 39.2 dB, and the mismatches are pixels ffmpeg never emitted rather than a reordering. The gate wanted 1.25x and no correctness regression; it returned neither. `default-features = false` stays, and keeps the vendored openh264 SIMD kernels (`asm`, `nasm` at build time) out of a build this project promises needs no tools. It does not keep out `rusty_alloc`: the facade pulls its sub-crates with their own defaults and `rusty_h264-common` installs that allocator process-wide for the whole app. Nothing downstream can switch it off. Measured at 0.104 s against glibc's 0.142 s on 2M mixed allocations, so it is a gift rather than a tax -- but it is a gift nobody asked for, and the manifest now says so.
🔊 feat(audio): an Opus film is heard, not refusedAhmet Kaan Gümüş · 699950a
🔊 feat(audio): an Opus film is heard, not refused The refusal was the bug again. `is_audio` said "no opus, ac3 or dts, for which no pure-Rust decoder exists" while symphonia's own mkv and ogg readers have always mapped `A_OPUS` and `OpusHead` to `CODEC_ID_OPUS`: the containers read the format, only the decoder was missing. Symphonia genuinely has none at any version -- its feature list stops at vorbis and there is no `symphonia-codec-opus` crate -- so the decoder is `ruopus`, pure Rust, MIT, no dependencies of its own, and the film plays. Which crate is not a coin toss. A 5.1 track is four elementary Opus streams in one packet, all but the last self-delimited (RFC 6716 App. B). `rusty-opus 0.9.1` -- the sibling of `rusty_aac`/`rusty_mp3` already here -- hands each self-delimited slice to a decoder that parses it as an ordinary packet, so every stream but the last reads the length prefix as payload: it was measured on a 5.1 Opus remux as full-scale noise at -13 dBFS over a passage where the film is silent, which is exactly the failure that "the decoder returns samples" would have shipped. `ruopus` matches ffmpeg's decode of the same file to a correlation of 1.00000 on all six channels. Two things that are Opus's alone: it is stored in Vorbis channel order (FL, FC, FR, BL, BR, LFE) and the 5.1 fold reads the film order every other decoder here hands back, so the frame is permuted before it folds; and its encoder delay lives in the stream (`OpusHead`'s pre-skip, 312 samples) where neither reader drops it, so that is this track's priming -- sample-exact against ffmpeg afterwards, 6.5 ms late before. `.opus` and `.mka` join `is_audio`, `unsupported` asks the other reader before naming a codec (a refusal that fires on a track which decodes is the same defect wearing the other face), and `capability_matrix` covers Opus per container with DTS left as the one live refusal row.
2026-08-11
🔀 merge(subtitles): a PGS cue is a picture the timeline carriesAhmet Kaan Gümüş · 1bee319
🔀 merge(subtitles): a PGS cue is a picture the timeline carries Conflicts, both in the demux lane's territory: - matroska_subtitles wanted-track filter: PGS joins S_TEXT, and both still skip a track whose ContentEncoding the demuxer cannot undo. - mkv_subtitle_blocks: the demux lane's laced walk stands; A's single-payload read and its refusal of lacing are dropped. A laced block's cues share a start, so end_of's strict > still finds the next real block. - cues_of: A's &mut signature and PGS doc, with the demux lane's unsupported early return that is the source of the refusal text.
✨ feat(demux): a header-stripped or laced Matroska track plays instead of refusingAhmet Kaan Gümüş · 5d028c2
✨ feat(demux): a header-stripped or laced Matroska track plays instead of refusing Two features every disc rip and streaming remux carries and this demuxer had no reader for: - `ContentEncodings`: header stripping (`ContentCompAlgo` 3) puts the bytes the muxer cut off the front of every frame back, and zlib (algo 0) inflates. bzlib, lzo1x, an unknown algorithm and encryption are refused *by name*, and per track -- a film whose sound cannot be read still shows its picture, and a subtitle track that cannot be read is listed with the reason like a bitmap one. - Lacing: all three headers (Xiph, fixed, EBML) read into one `Block` per frame. The frames of a lace get a timestamp each, interpolated across the gap to the block after, because six E-AC-3 frames stacked on one instant is a sound track that walks away from the picture inside a cluster. The two films this was cut for: a BluRay remux whose H.264 track is stripped of one zero byte per block (no picture at all before this), and a WEB remux whose every E-AC-3 block is fixed-laced (no sound at all before this). Both are existence-gated tests beside the hand-built EBML fixtures. zlib is `miniz_oxide`, which `image` already pulls into this build through `png`: no new crate tree and nothing new to compile.
✨ feat(subtitles): a PGS cue is a picture the timeline carries, not a row that says noAhmet Kaan Gümüş · c45b18e
✨ feat(subtitles): a PGS cue is a picture the timeline carries, not a row that says no The four S_HDMV/PGS tracks of a BluRay remux were listed and greyed: pictures, and nothing here could draw one. Now the cue IR carries a picture beside its text -- `Cue::image`, a `CueImage` holding the display set the Matroska block held -- and the rows are rows a click can pick. The decoding is `oxideav-sub-image`: the run-length walk, the palette, the YCbCr and the object fragmentation are not this project's to re-derive. What is written here is the framing between the two -- a Matroska block is a `.sup`'s segments with the `PG` magic and the timestamps taken off, so they go back on -- and the pairing PGS needs and text does not: half the blocks compose nothing, which is the disc clearing the screen, and that is where the cue before them ends. `BlockDuration` is zero on every one of them, so `end_of` now reads a zero the way it reads a missing one. Kept encoded, decoded when something is about to draw it: this film's canvas is 8 MB of RGBA and its four tracks carry eleven thousand display sets, so the IR holds the thirty megabytes the file already spends and the front-end keeps one decoded picture for as long as its cue is up. An export still writes a text track, so a track of pictures writes none and the card says "drawn, not written" before the button. A `.edith` is unchanged: it held a file and a track number and never a cue, which is why a bitmap track round-trips without the format knowing it exists.
✨ feat(export): OGG Vorbis is a row you can pick, not a note about missing encodersAhmet Kaan Gümüş · 17d7d99
✨ feat(export): OGG Vorbis is a row you can pick, not a note about missing encoders The export card said "no pure-Rust Vorbis or Opus encoder" and that had stopped being true. `rusty_vorbis` 0.1.1 (Apache-2.0, zero dependencies, same family as the h264/aac/mp3 encoders already here) is the first permissively-licensed pure-Rust Vorbis *encoder*; `oxideav-ogg` 0.1.8 pages it, and its only dependency is the `oxideav-core` the AC-3 decoder already pulls in. No C, no FFI, no new runtime system dependency -- `ldd` on the binary is unchanged, name for name. The row is live, keyed `o`, and names its encoder like every other live row does. VP9 stays refused with the reason it always had: AV1 replaces it. What the bench found, and what the code does about it. Every number below was measured by encoding this suite's own fixtures and decoding them back with symphonia -- an independent decoder, and the one this engine reopens exports with: * The encoder numbers its granules a full block ahead of the samples it codes, so written straight through, every sample lands ~1024 early: a marker signal came back with its head at 36% amplitude and a full-scale burst 1500 samples before the real one, in silence. One hop of silent pre-roll puts it back -- head 0.86 against an input peak of 0.80, the phantom burst down to 0.04. * Its block grid overshoots the last sample, so the stream is padded and the last page's granule declares the timeline's own frame count. An `.ogg` is now exactly as long as the WAV of the same timeline, which is the promise every other audio row here keeps. * Below quality 0.50 the encoder is *quiet*, not merely coarse (1-1.6 dB of level error, near-silence at 0.10), and the whole usable band tops out around 200 kbps. So the file is written at one measured quality, 0.85, and the Sound row is refused by name rather than mapping 128/192/256/320 onto quality steps: the top two are rates this encoder cannot reach, and a card that printed them would be lying. * The embedded setup header is a stereo profile -- a mono push is refused outright -- so a mono mix is written as dual mono, both channels bit-identical. And one defect the round trip turned up on the way in: `SymTrack` subtracted `Track::delay` on top of symphonia, which already drops those frames itself. Every `.mp3` import was losing its first 1105 samples (25 ms) and reading 25 ms short, every `.ogg` its first 128. Measured against `test_tone.flac` -- lossless, and the only one of the three declaring no delay -- which the mp3 and the ogg of the same tone now align with. WAV, FLAC and AAC-in-mp4 read hash-identical across the change; only those two formats move, and both move to the length their own container declares.
✨ 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.
✨ 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.
✨ feat(export): every video format carries sound, AV1 picks its box, MP3 is a rowAhmet Kaan Gümüş · 5ebd3ac
✨ feat(export): every video format carries sound, AV1 picks its box, MP3 is a row Three asks, one seam — the export's audio path was a packet copy, and everything it could not copy was a refusal. - MkvMuxer gains an A_AAC track (CodecPrivate = AudioSpecificConfig, CodecDelay one packet) and interleaves it into the clusters: an AV1 export carries the timeline's sound instead of naming it as left out. - Mp4Muxer::create_av1 writes AV1 into an mp4 — the `av01` + `av1C` sample entry `mp4 0.14` cannot spell is patched into the finished moov (layout cribbed from OxideAV's oxideav-mp4, MIT); Mp4Demuxer reads that entry back. - Format::Mp3 through `rusty_mp3` at 256 kbps CBR, and Format::Av1Mp4 beside Format::Av1: the export card has a row and a key for each. - copy_audio lifts every "cannot copy" refusal into a route to encode_audio — a second audio lane, a speeded clip, a Matroska source, an mp3 or a png timeline. A copy nothing forces stays a bit-exact copy. Round trips per container, through this project's own readers: mkv + mp4 AV1 with a tone (mux unit tests), an AV1 export in either box (tests/av1.rs), a still under a song as an mp4 with sound and an MP3 of the timeline (tests/audio_export.rs), two lanes summed into an mp4 (tests/lanes.rs), a speeded lane resampled into one (tests/speed.rs).
2026-08-10
✨ feat(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 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.
✨ 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(audio): AC3 tracks decode with a built-in stereo downmixAhmet Kaan Gümüş · 8c7bf80Browse files
✨ feat(engine): common audio files import and playAhmet Kaan Gümüş · fe53979
✨ feat(engine): common audio files import and play mp3, wav, flac, ogg-vorbis, ALAC and ADTS join a timeline as sources with no picture: symphonia's own probe reads them, the audio lane holds them, and the video lane refuses them by name. The mp4/AAC path is untouched -- it is still the only one that yields packets an export can copy, so a timeline carrying anything else is refused at export with the file and its format named rather than exported silent. A source with no picture is as long as it plays, rounded up to whole frames; import, load and the library row all derive its length from that.
2026-08-09
✨ feat(engine): audio decode, PipeWire output plugin, playback clockAhmet Kaan Gümüş · 229a569
✨ feat(engine): audio decode, PipeWire output plugin, playback clock Wave 1 of the audio slice — three independent modules, app wiring comes next: - audio.rs: AAC-LC via standalone symphonia AacDecoder over the existing mp4 demuxer; priming trim read from the container elst (verified against ffprobe); channel identity pinned by zero-crossing tests on the 440/880 Hz fixture - engine-audio: dlopen'd PipeWire cdylib (ao_* C ABI). App binary keeps zero libpipewire linkage; daemon absent fails open() in ~1ms. Fill capped at 1024 frames/callback: uncapped, PipeWire hands the sink-sized buffer and the position clock steps 256ms at a time. Stream time rate is 1/48000 regardless of stream rate — position is rescaled or the clock runs 8.8% fast on 44.1k content - clock.rs: PlaybackClock, audio-driven with wall fallback; audio positions relative to last re-anchor so restarted streams re-sync; paused == frozen exactly, all re-anchoring through one path
🎉 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