Commits
Commits on
7cb30bf3c8f789c839dad16c2b013c15ecab4fa2Filtered to crates/engine/src/export.rsClear filter2026-09-19
💄 ui(settings,export): settings is a centred modal; the budget goes below a megabitAhmet Kaan Gümüş · 9085e57
💄 ui(settings,export): settings is a centred modal; the budget goes below a megabit - settings page reframed from the full-width below-picture sheet to a centred modal card (480px plate of one tabbed column's measure, viewport-capped with the rows scrolling, click-away/esc close unchanged) — the sheet covered the timeline; new layout guard pins the geometry - export budget floor drops from 1 Mbps to 100 kbps in both the engine (MIN_BITRATE) and the app (BPS_MIN), so a typed '600k' travels as 0.6 Mbps instead of being silently rewritten to 1.0; pins re-seated at the new floor, wheel steps unchanged, no-session fallback keeps its 6 Mbps meaning as a literal - DESIGN.md §11.6 names the settings modal as an accepted occlusion exception, per its own 'the document changes explicitly' rule
2026-09-18
🐛 fix(media): audio routing, session audio re-arm, hw trailing-zero NALs, display-matrix rotationAhmet Kaan Gümüş · bc8b82e
🐛 fix(media): audio routing, session audio re-arm, hw trailing-zero NALs, display-matrix rotation - is_audio admits .mpeg/.mpg so mp3-with-cover files import (was fed to Mp4Demuxer) - session audio walks past trackless leading sources and re-arms when a sounding file joins a silent timeline (fixes add/remove/add silence) - engine-hw pump clears trailing cabac_zero_word bytes instead of dying with code -2; export falls back to software decode before first frame - tkhd display matrix read for mp4; 90/180/270 turns baked into preview and export pixels; other angles refused by name (UnsupportedRotation)
2026-09-17
⚡ perf(audio): the preview paints at its own size, not the project'sAhmet Kaan Gümüş · 62b680e
⚡ perf(audio): the preview paints at its own size, not the project's The visualizer rebuilt the picture at the project resolution (1920x1080) for a preview displayed at ~584x328, so every look edit paid 4-5x what it needed. `PlaybackSession::set_view_size`/`view_size` now feed every composer the playback path opens (span, dissolve-B, black) and the app pushes the Contain-fitted display box from a probe on the picture area, with an 8 px deadband so a resize drag does not thrash. The export keeps its own seat at the project resolution and is untouched. Ring, a test song, ms per painted frame, glow 2/4/8/12/16: 18.5/35.7/64.7/93.2/117.1 -> 5.7/5.9/9.6/12.9/15.9 "Save frame as PNG" would otherwise have followed the preview down to that size, so it now asks the seat for one frame at the project's own size and writes the PNG when it lands (keyed to the session that asked, with a 2 s bound), and the preview's size comes back on the next repaint. The painter's per-frame buffers (VizScratch) are owned by the painting thread: 27 Vecs a frame -> 8, and none on later frames.
2026-09-16
✨ feat(audio): the waveform look carries a strand colour, and a hex/rgb doorAhmet Kaan Gümüş · 1973da2
✨ feat(audio): the waveform look carries a strand colour, and a hex/rgb door viz_paint widens to one packed u64: hue/sat/strands/glow in the low bytes exactly as v22 wrote them, the strand's own hue and sat above, and bit 63 saying the strand colour was chosen rather than left to the +128 complement. Dialect v23. viz_color_hex/viz_color_from_text read and write the colour a person would type. set_viz_paint_live joins its colour/transform/speed twins so a drag is one undo step.
2026-09-15
✨ feat(audio): stable envelope height, full hue/sat, strands and glowAhmet Kaan Gümüş · 7ebfc44
✨ feat(audio): stable envelope height, full hue/sat, strands and glow The 2s window no longer rescales to its own peak, so a bump keeps its height as it enters and leaves. Colour is a 64-stop hue bar plus sat (white→full). Strands and glow go from one line to the dense ring. Packed on Clip.viz_paint; dialect v22.
2026-09-14
✨ feat(audio): waveform styles, any soundtrack, keys search, group on the clip menuAhmet Kaan Gümüş · dfcec06
✨ feat(audio): waveform styles, any soundtrack, keys search, group on the clip menu Visualizer is no longer wav-only: h on a video clip with sound paints that file's soundtrack. Style bits live on the clip (outline, smooth, fast, colour) and toggle from CLIP. `?` type-to-filters the keys list. Group / Ungroup / Regroup are clip-menu rows, not chords-only.
✨ feat(audio): create a waveform visualizer as a video clipAhmet Kaan Gümüş · 735b90e
✨ feat(audio): create a waveform visualizer as a video clip Select an audio clip and press h (or the clip menu). The sound's envelope is painted as a sliding mirrored waveform onto a video lane, so preview and export both show it. Paste still never drops a song on V1.
2026-09-13
Merge branch 'lane-mp3vorbis-swap' (f68f46d): MP3 and Vorbis encode seats are ec-mp3 / ec-vorbis -- rusty_mp3 and rusty_vorbis leave the tree. Vorbis: strictly better operating point (r 0.9968 vs 0.9947, +3.1 dB, same size, par with ffmpeg q5), pre-roll/granule corrections obsolete (lag-0 sample-exact through symphonia), encode ~1.2-1.5x faster. MP3: gapless-exact (incumbent was +648 samples), quality reproduced equal-or-better. DISCLOSED TRADE: MP3 encode is ~7x realtime stereo (428.6ms/3s music, 4188.5ms/30s real) vs rusty_mp3's 147-283x -- a 2h film's stereo track exports in ~17 min vs ~48s, and MP3 is an audio-only export so encode IS the wall; single-thread vs single-thread (rusty_mp3 is thread_local-only). lane-ecmp3-perf armed in the same batchAhmet Kaan Gümüş · 423536a
Merge branch 'lane-mp3vorbis-swap' (f68f46d): MP3 and Vorbis encode seats are ec-mp3 / ec-vorbis -- rusty_mp3 and rusty_vorbis leave the tree. Vorbis: strictly better operating point (r 0.9968 vs 0.9947, +3.1 dB, same size, par with ffmpeg q5), pre-roll/granule corrections obsolete (lag-0 sample-exact through symphonia), encode ~1.2-1.5x faster. MP3: gapless-exact (incumbent was +648 samples), quality reproduced equal-or-better. DISCLOSED TRADE: MP3 encode is ~7x realtime stereo (428.6ms/3s music, 4188.5ms/30s real) vs rusty_mp3's 147-283x -- a 2h film's stereo track exports in ~17 min vs ~48s, and MP3 is an audio-only export so encode IS the wall; single-thread vs single-thread (rusty_mp3 is thread_local-only). lane-ecmp3-perf armed in the same batch # Conflicts: # Cargo.lock # crates/engine/Cargo.toml # crates/engine/src/caps.rs # crates/engine/src/export.rs
Merge branch 'lane-h265enc-swap' (4808c4a): the HEVC encode seat is ec-h265 and oxideav-h265 leaves the tree (47+ vendor files, conformance-window patch with them -- ec-h265 self-pads and writes the crop) -- reviewer-executed validity: +1.22 dB PSNR-Y at -25.6% bytes vs the old seat at qp40 (+1.02 dB at -11.1% qp27), export wall 1.07-1.10x, mkv+mp4 decode back through the VA-API plugin seat, frame-parallel batching preserved byte-identicallyAhmet Kaan Gümüş · 49b300a
Merge branch 'lane-h265enc-swap' (4808c4a): the HEVC encode seat is ec-h265 and oxideav-h265 leaves the tree (47+ vendor files, conformance-window patch with them -- ec-h265 self-pads and writes the crop) -- reviewer-executed validity: +1.22 dB PSNR-Y at -25.6% bytes vs the old seat at qp40 (+1.02 dB at -11.1% qp27), export wall 1.07-1.10x, mkv+mp4 decode back through the VA-API plugin seat, frame-parallel batching preserved byte-identically # Conflicts: # Cargo.toml # crates/engine/src/caps.rs
🔁 feat(video): the HEVC encode seat is the native ec-h265 — oxideav-h265 leaves the treeAhmet Kaan Gümüş · 4808c4a
🔁 feat(video): the HEVC encode seat is the native ec-h265 — oxideav-h265 leaves the tree
The vendored OxideAV intra encoder is replaced by the project's own ec-h265,
intra-only by construction: every picture an IDR carrying its own
VPS/SPS/PPS, so the seat's contract — an intraframe master, every frame a
cut point, even dimensions, a bitrate row mapped to a constant QP through the
same 0.6 bpp anchor — is unchanged. Named headroom deliberately not taken:
the encoder's per-picture target-bits correction pass, 64x64 CTBs and the
chroma rate-distortion mode search.
The seat keeps the frame-parallel shape of the one it replaces: a batch of
display-size planes codes on one lane encoder each, and each encoder's WPP
wavefront splits the cores the lanes leave over. Coding one picture at a
time on every core was measured at 0.63x the old export wall — the batching
is what keeps decode and render fed while a batch codes.
Quality, identical 300-frame 1920x792 film window, matched constant QP,
ffmpeg-decoded, ffmpeg PSNR/SSIM against the source:
QP 40: 38.05 dB PSNR-Y / 0.9434 SSIM-Y at 2.14 MB
(was 36.83 dB / 0.9286 at 2.88 MB — +1.22 dB for 25.6% fewer bytes)
QP 27: 45.10 dB / 0.9811 at 8.35 MB
(was 44.08 dB / 0.9773 at 9.40 MB — +1.02 dB for 11.1% fewer bytes)
libx265 intra control at the same QPs: 39.87 dB / 46.37 dB
Perf: export wall over a 300-frame 1080p30 window, 5-sample bench, quiet
box: 12.6-13.0 fps against the old seat's 11.8 (1.07-1.10x).
Bitstream validity: the exports reopen through this project's demuxer in
both containers and decode back to pictures through the VA-API plugin's
HEVC seat (mkv and hvc1); ffmpeg decodes every witness without a complaint
and the 1080p conformance-window export still states 1920x1080 through the
SPS. Suites green: hevc, hevc_export (incl. the hardware and software
roundtrip witnesses), hevc_mkv, hevc_hvc1, export, export_color, backends,
opus_export, lib (373); cargo check -p engine --all-targets with zero
warnings.🔁 feat(audio): the MP3 and Vorbis encode seats are the native ec-mp3 / ec-vorbisAhmet Kaan Gümüş · f68f46d
🔁 feat(audio): the MP3 and Vorbis encode seats are the native ec-mp3 / ec-vorbis The two registry-crate encoder seats (rusty_mp3 0.6, rusty_vorbis 0.1.1) leave the tree; both formats encode through the codec family's own crates (path deps, same boundary ec-opus/ec-ac3 already cross). MP3 (CBR per the card's rate rows): same seat contract, same Mp3EncoderConfig field names, call sites unchanged. A/B on identical 16-bit PCM (suite fixtures + a 30 s 44.1 kHz stereo music decode), outputs decoded through symphonia: correlation 0.9994-0.9998 against the incumbent's 0.9980-0.9991 at the same 192 kbps, PSNR +5..+7 dB, and the decoded length lands exactly on the mix (the old seat ran 180 samples long with a 1057-sample shift the gapless tag only partly hid). Vorbis: the seat's quality knob alone saturates below the incumbent's operating band, so write_ogg drives the encoder the way its own rate gates are measured -- rate loop started at quality 0.85 and held to a 128 kbps target. At the incumbent's own 0.85 operating point (123.8 kbps actual on the music clip, correlation 0.9947) the new seat reads 129.0 kbps actual at correlation 0.9968, +3.1 dB PSNR; against ffmpeg's libvorbis -q 5 it is par at the same rate (0.9968 vs 0.9973). Every export decodes to exactly the timeline's frame count, correlation peak at lag zero. That measurement retires write_ogg's workaround: the old seat advanced its granule a hop early and overran the tail, so the function carried a 1024-sample pre-roll and two granule corrections around it. ec-vorbis reports spec granules and clamps its final one to the sample count fed, so the pre-roll, the per-packet shift and the manual tail declaration are deleted. Mono stays dual mono (bit-identical L/R, worst |L-R| = 0 measured) because the format row promises stereo, not because the encoder refuses mono as the old seat's did. Perf, named: MP3 encode wall is 0.05x the old seat on the 30 s clip (4.3 s vs 0.20 s CBR; the old shim encoded blocks across all cores, the new seat is single-threaded sequential) -- the price of the quality and gapless-exactness above; Vorbis at the seat's operating point is 1.4x faster than the old seat (49 ms vs 69 ms per 30 s). audio_export and backends suites green (14 + 8), export lib tests green, cargo check -p engine --all-targets zero warnings; lock carries no rusty_mp3/rusty_vorbis stanza.
2026-09-12
♻️ refactor(engine): the AAC encode seat is ec-aac -- export.rs's encode_audio and the muxer's tone harness speak ec_aac::AacEncoder on the seat's old contract (interleaved f32 push_pcm, raw raw_data_block packets one frame long, the sf_index_for_rate refusal the export turns into a user-facing message, ASC rebuilt from AacTrackParams), the caps row and both SW-encode labels read ec-aac, and a new mux witness round-trips seat-encoded mono, stereo and 5.1 through the project's own decode door (symphonia's reader for the pair, the family decoder for 5.1, folded to stereo as the door's contract states). A/B on identical synthetic program -- mono 44.1k 128k, stereo 44.1/48k 256k, stereo 48k 96k, 5.1 48k 512k, every output ADTS-framed and ffmpeg-decoded, alignment by envelope correlation with an ffmpeg-native control column: ec-aac correlates at or above the incumbent on every row (mono 0.9674 vs 0.9564, stereo 96k 0.9445 vs 0.8458, 5.1 0.6050 vs 0.6007) and matches or beats ffmpeg's own encoder at matched actual rate; cost is +4-6% actual bits at the same target and a slower encode wall (single-threaded vs rusty_aac's frame-parallel finish: 2.0-3.7x on one core, 5.9-10.2x as-shipped on this box) -- named here per the perf bar. rusty_aac itself leaves in the next commit. Export and capability suites green, -p engine --all-targets 0 warningsAhmet Kaan Gümüş · 7ed056a
♻️ refactor(engine): the AAC encode seat is ec-aac -- export.rs's encode_audio and the muxer's tone harness speak ec_aac::AacEncoder on the seat's old contract (interleaved f32 push_pcm, raw raw_data_block packets one frame long, the sf_index_for_rate refusal the export turns into a user-facing message, ASC rebuilt from AacTrackParams), the caps row and both SW-encode labels read ec-aac, and a new mux witness round-trips seat-encoded mono, stereo and 5.1 through the project's own decode door (symphonia's reader for the pair, the family decoder for 5.1, folded to stereo as the door's contract states). A/B on identical synthetic program -- mono 44.1k 128k, stereo 44.1/48k 256k, stereo 48k 96k, 5.1 48k 512k, every output ADTS-framed and ffmpeg-decoded, alignment by envelope correlation with an ffmpeg-native control column: ec-aac correlates at or above the incumbent on every row (mono 0.9674 vs 0.9564, stereo 96k 0.9445 vs 0.8458, 5.1 0.6050 vs 0.6007) and matches or beats ffmpeg's own encoder at matched actual rate; cost is +4-6% actual bits at the same target and a slower encode wall (single-threaded vs rusty_aac's frame-parallel finish: 2.0-3.7x on one core, 5.9-10.2x as-shipped on this box) -- named here per the perf bar. rusty_aac itself leaves in the next commit. Export and capability suites green, -p engine --all-targets 0 warnings
🛡️ feat(engine): the software H264 export refuses sub-macroblock pictures by nameAhmet Kaan Gümüş · 0e9d3b7
🛡️ feat(engine): the software H264 export refuses sub-macroblock pictures by name H.264 codes 16x16 macroblocks and ec-h264's floor is the macroblock itself, where the retired encoder took any positive even size. Named at the seat where a card can show it -- the same shape as the odd-dimension refusal -- instead of surfacing the encoder's error from inside a running export. Found by review during the seat swap.
⚡ perf(engine): the software H264 export codes Main-profile CABAC, 8x8 offAhmet Kaan Gümüş · 02e2308
⚡ perf(engine): the software H264 export codes Main-profile CABAC, 8x8 off Measured at the swap, 720p, all cores: the 8x8 transform is half the pure encode (35.1 ms/frame against 17.2), worth at most 0.7 dB BD-PSNR the Constrained-Baseline seat it replaced never had; CABAC stays (faster than CAVLC here -- fewer tokens to code -- and smaller). Export wall on a 300-frame 720p window, hardware decode both sides, idle machine: rusty 65.2 fps against ec-h264 57.6 -- 0.877x as re-measured by review (0.884x in-lane), still short of the 0.9x gate and reported as such; the rest of the delta is the encoder's sub-pel motion and CABAC decision cost, which is the encoder lane's to reclaim, not a knob left unpulled here (threads swept 4/6/8/12, CABAC/CAVLC, both presets' cheaper arm already picked). Quality at the seat's ~2.7 Mbps CBR, 300-frame window (reviewer-reproduced, both seats driven directly, ffmpeg-decoded): PSNR-Y 41.58 against rusty's 40.51, SSIM 0.9903 against 0.9842, ~2% fewer bits and tighter rate fidelity (rusty overshot to 3.0 Mbps on hard content).
♻️ refactor(engine): the software H.264 export seat encodes with ec-h264Ahmet Kaan Gümüş · 0bc3a6b
♻️ refactor(engine): the software H.264 export seat encodes with ec-h264 The last rusty_h264 seat in the tree moves to the project's own encoder: Enc::Sw drives ec_h264::Encoder (CABAC Main/High, 8x8 transform, threaded slices) where it drove rusty's Constrained-Baseline CAVLC encoder, and the export's second decode site (SwDecoder) follows the playback seat onto ec_h264::H264Decoder in true display order, flushed at end of stream. Feature mapping: same fps/bitrate/GOP knobs (the level the seat used to compute by hand the encoder now derives from the same Table A-1); Fast stays the preset; intra-only exports stay all-IDR through gop_size 1. Named gaps: odd dimensions are now refused by name like the HEVC seat (4:2:0 cannot crop back to an odd picture; the old encoder silently coded them); the seat no longer forces level_idc. One honest flag rise: the Matroska-facing key mark is now what the bitstream says, not a constant false. One contract tightening, held rather than papered over: ec-h264 buffers nothing, so drain is structurally empty and the old lookahead corner-cut note is closed. tests/sw_backends' independent witness becomes ffmpeg byte-for-byte (the rusty oracle retired with the crate); hw_encode and the mp4 repack test decode through ec-h264; caps and the card label say ec-h264. Quality, same 300-frame 720p window at the seat's own ~2.76 Mbps CBR, both seats driven directly on identical frames and the outputs decoded by ffmpeg (reviewer-reproduced numbers; an earlier in-lane harness measured rusty at 25 dB through a stale-plane A/B bug -- frame-0 luma riding under fresh chroma, which rate control hides in the byte count -- so its rusty row was noise, while the ec row reproduced to the digit): rusty PSNR-Y 40.51 / SSIM 0.9842 at 3.46 MB against ec-h264 PSNR-Y 41.58 / SSIM 0.9903 at 3.39 MB -- about +1.1 dB-Y and +0.006 SSIM for ~2% fewer bits, with tighter rate fidelity (rusty overshot to 3.0 Mbps on hard content).
Merge branch 'lane-opus-swap' (597e096): both Opus seats are ec-opus natives -- ruopus/opus-rs/spectrograms leave the tree, the 128 kbps cap (an opus-rs bug workaround) rises to 320 and mono is proven end to end; known-accepted: ~1.5x slower absolute encode/decode vs the FFT-built incumbents at >=88x realtime floor, lane-ecopus-perf queued to close itAhmet Kaan Gümüş · 3d8112aBrowse files
✨ feat(engine): both Opus seats are ec-opus natives — the library pair is goneAhmet Kaan Gümüş · 597e096
✨ feat(engine): both Opus seats are ec-opus natives — the library pair is gone The decode seat (SymDecoder::Opus) and the encode seat (encode_opus) move off ruopus 0.1.2 / opus-rs 0.1.26 onto the codec family's own ec-opus, the first path dependency across into the sibling edith_codecs workspace. Both replaced crates leave Cargo.lock with everything they pulled in. What the swap is measured to do, not hoped to do: * decode equivalence: a real 5.1 stream decodes to correlation 1.000000 between the two decoders, and the film seek witness lands on the same samples it always did — the 312-sample pre-skip corrections hold unchanged, so no constant moved. * the 128 kbps cap goes to 320, the Sound row's top: opus-rs's packets above ~165 kbps were noise to every decoder but its own (re-measured: 0.011 correlation at 320 through BOTH decoders), and that cliff is the only thing the old ceiling stood on. ec-opus's 320 kbps packets read back identically through ruopus and through ec-opus. Fidelity at the top of the new band: 0.9999 (stereo 320), mono 0.9999-1.0000 (was 0.9983-0.9987 at 128). * mono leaves as Opus now. opus-rs mis-encoded mono at every rate, which is what kept a mono mix on the AAC path; a_mono_mix_leaves_as_opus_too pins the new behavior and the export.rs unit suite round-trips mono at 96 and 256. The muxer's family-0 OpusHead needed no change: it already wrote mono. * performance, measured honestly (release, min-of-7 alternating, against ruopus WITH the spectrograms/FFT backend the product actually shipped): ec-opus is ~1.4-1.7x SLOWER on every path — 5.1 decode 246x realtime where ruopus managed 407x; the export seat (encode plus its mandatory fidelity decode) 0.27 s against the old seat's 0.18 s per 30 s of stereo. Both stay far past realtime (>=88x), so nothing is user-perceptible, but the >10% bar is not met numerically; the swap stands on the dependency-freedom goal, and the family decoder has the headroom to close the gap. KNOWN-OPEN, not silently accepted.
✨ feat(engine): software VP8 decode via dlopen'd libvpx seat in the pluginAhmet Kaan Gümüş · ba33df0
✨ feat(engine): software VP8 decode via dlopen'd libvpx seat in the plugin
VP8 was refused by a stale UNSUPPORTED claim ('no VP8 decoder'); the
vendored cros-codecs VP8 decoder is VA-API-only and the test GPU
exposes no VP8 VA-API profile, so the real seat is software: libvpx.so.9
dlopen'd inside libengine_hw.so (vpx.rs), routed before any GPU device
opens, seek = destroy+re-init on the demuxer's keyframe contract,
CAP_VP8 reported as the plugin's seat. Codec::Vp8 plumbed through
demux (V_VP8 + mp4 vp08), colorspace, refusals; export UI gains a
truthful read-only VP8 row; test_vp8.{webm,mp4} fixtures + capability
row + tests/vp8.rs decode/export twins. Verified by the authoring
session: headless playloop 270 frames 0 dropped, 50/50 seeks, live
harness-driven UI playback, cross-provider review PASS (FFI layouts
against shipped libvpx DWARF, valgrind-clean).2026-08-27
✨ feat(export): Exact quality row copies the source's own coded pictureAhmet Kaan Gümüş · 49dbed8
✨ feat(export): Exact quality row copies the source's own coded picture Adds Quality::Exact to the export card: wherever CopyPlan already says a copy is exactly what the timeline says, the file leaves as the source's own bytes. exact_refusal names why not (wrong container, edit forces a re-encode) before the button is pressed and again inside run(), so the card and the worker can never disagree.
2026-08-26
🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweepAhmet Kaan Gümüş · b05a649
🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweep Twelve debts paid in one batch: - engine: NoVideoTrack fallback at every video door — open_stream, open_project scaffold, and import() now route a video-extension file whose header holds no picture to the audio-only path instead of refusing (argv open, saved-project reload, and library import). - engine: proxy/export worker wrapped in catch_unwind — a decoder panic settles the shared slot with Err instead of stranding Making/Cancelling. - vendor/cros-codecs: AV1 setup_shear multiplies checked — malformed warp params are a parse error, not a process abort (live-proven on an AV1 film: clean PROXY FAILED notice, slot released, app alive). - engine: startup sweep of orphan proxy .part files. - app: Player::has_video probe cache — lane_refuses gates drops on the probed kind, not the extension; Silences hidden on soundless clips; audio import toast names rate/channels/length; stale no-session proxy label cleared. - tests: audio-only mp4 fixture + gen_fixtures.sh line, 2 engine NoVideoTrack tests, toast/lane/view cases (246 bin + 14 audio_files). Harness-proven this batch (runs 20260826-2306..2315): split-at-playhead with undo, lane-remove mouse door, fade-out drag, argv audio-only open, AV1 proxy clean failure.
✨ feat(engine): interleave the overlapped mp4 audio pass under the pictureAhmet Kaan Gümüş · 4ba4015
✨ feat(engine): interleave the overlapped mp4 audio pass under the picture Mp4Muxer holds ~2s of pictures and releases them merged by pts against landed sound instead of writing whole-picture-then-whole-track; feed_late_audio hands the mix over the moment it lands.
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-20
2026-08-19
✨ feat(engine): a dissolve renders in the playback preview tooAhmet Kaan Gümüş · c90e425Browse files
🐛 fix(engine): fades reach exported and played-back audioAhmet Kaan Gümüş · 9ec26f6
🐛 fix(engine): fades reach exported and played-back audio Two bugs: `forces_encode` never checked a clip's own fade, so the default Web MP4 copy path silently dropped fades from the exported AAC track. Worse, `Fade`'s frame counts are timeline (fps) frames but `Fade::apply` multiplies audio-rate sample blocks; unconverted, a fade's threshold was crossed a few milliseconds into any clip, so a fade-out muted the rest of the segment outright and a fade-in finished before an ear (or a 100ms RMS window) could catch it. `Fade::scaled` now re-counts a fade at the mix's own sample rate the moment the audio session learns it, which also fixes the same bug in live preview.
✨ feat(engine): a dissolve renders in the playback preview tooAhmet Kaan Gümüş · 3e66b40
✨ feat(engine): a dissolve renders in the playback preview too The preview used to hard-cut where an export blends -- try_frame now opens B's own decoder (graded and placed at B's own start, mirroring export's Dissolve) once the playhead reaches the tail's dissolve window, and blends its BGRA picture over A's with the same dissolve_weight ramp export uses. One choke point covers both playing and scrubbed/seeked frames, since both drain try_frame the same way.
✨ feat(engine): a dissolve renders in export, blended frame by frameAhmet Kaan Gümüş · fc86f32
✨ feat(engine): a dissolve renders in export, blended frame by frame The last transition_out frames of a clip that still abuts its successor on the same video lane decode B's head on a second, parallel decoder and blend it into A's tail with blend_i420, ramping 0->1 across the window; adjacency is re-checked at render time so a transition_out left stale by a trim or a delete plays as the hard cut it now is. A live dissolve forces the whole video track through the encoder -- CopyPlan's stream-copy path is all-or-nothing already, so one dissolve on the timeline costs the encode CopyPlan would otherwise have skipped. Playback preview and the fixture-backed encode test are follow-up work; this lands the plan-level tests (dissolve_weight, the window's own source/in_frame/start, and the stale-adjacency hard-cut) since the worktree has no assets/ to build a decodable fixture from.
🐛 fix(app): the export card tells the truth about a ranged exportAhmet Kaan Gümüş · 906e7de
🐛 fix(app): the export card tells the truth about a ranged export The size estimate and the audio-codec label both ignored the marked range (a ranged export re-encodes; the card said copy and quoted the whole timeline's size). The RANGE duration is computed from the frame count instead of float seconds, and the speed card's row joins it — same truncation class. The range band gets 2px boundary ticks so it reads over the played fill. bench.rs learns export::start's fifth argument, closing the arity sweep over examples.
✨ feat(engine): per-clip audio fades and adjacency crossfade (edith 18)Ahmet Kaan Gümüş · 4e4ec16
✨ feat(engine): per-clip audio fades and adjacency crossfade (edith 18) # Conflicts: # crates/engine/src/export.rs
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18Ahmet Kaan Gümüş · 6d0747c
✨ feat(engine): per-clip audio fades, adjacency crossfade, and edith 18 Clip carries fade_in/fade_out, an equal-power gain envelope mixed into playback and export, a crossfade() op that sets both edges of two adjacent audio clips, and split's rule that only the kept edge keeps its fade. The project file format bumps to edith 18 to carry the two new fields; a v17 (or older) file loads with every clip's fades at zero. Fixes a stray fade_in/fade_out struct-literal fragment left outside any Clip literal in Player::trimmed (crates/app/src/player/timeline_edit.rs), which was a syntax error breaking the whole app crate's build. Adds unit coverage for Fade::gain_at's boundary/midpoint curve, the split edge rule, crossfade's adjacency refusal, the Clip size-lock test (40 -> 48 bytes), and a v17-loads-zero-fades / v18-round-trips edith.rs test.
✨ feat(export): mark an in/out range and export just thatAhmet Kaan Gümüş · a5c0bc7
✨ feat(export): mark an in/out range and export just that i marks the in point and o the out, on the playhead; ctrl+u clears the mark. The ruler shows the marked stretch as a translucent band and the export card states it above the button. Session state only, never saved to a .edith. The engine side finishes what a capped predecessor started: run_audio (the WAV/FLAC/MP3/OGG path) now offsets its segments and clips its frame count to the range the same way encode_audio already did.
✨ feat(engine): a project can name its own sample rateAhmet Kaan Gümüş · 31981de
✨ feat(engine): a project can name its own sample rate .edith goes to v17 with an optional samplerate line; the session carries it, save/load round-trip it, and the one audio-open seam every consumer shares (open_multi_streams_speed_at) conforms all segments to the named rate — playback rebuild and both export encoders inherit it for free. Proxies keep their film's own rate. A v16 file loads with the rate unset, meaning derived-from-source as before.
2026-08-14
🐛 fix(engine): a bar that has been filled is not taken back when the GPU diesAhmet Kaan Gümüş · 197d1e2
🐛 fix(engine): a bar that has been filled is not taken back when the GPU dies The hardware encoder's process dying puts the whole export through the software encoder again, and the bar was put back to zero to do it: a person watching 93% of a film written suddenly saw 5%, at the one moment they most needed to believe the editor was still working. The mark holds instead, and the re-run moves it on once it passes it -- which needed the copied-picture path to publish with `fetch_max` like everything else. With it, the rest of that same seam: * the audio pass is joined however `run` leaves, not detached. The mp4 path runs the sound beside the picture, and a picture that failed left that thread running: the re-run then started a second pass, so a machine that had just lost its GPU mixed the same film's sound twice at once. * a dead child is a *type* (`hwproc::Lost`) and not a phrase. `is_lost` commits an export to being written again from the first frame, and a substring match handed that decision to any future error whose wording happened to mention the child. * a wedged child is waited out by its own measure. The 15 s ceiling is what an encoder opening on a 4K frame may need, and it is also fifteen seconds an export spends on a child that will never answer again, before the software encoder it is owed can begin. Once a child has answered its first frames it has said what its frames cost, and eight times the slowest of them (never under two seconds) contains a wedge in two or three rather than fifteen -- while a slow open still gets the whole ceiling and is never killed for being slow. The editor is live throughout either way: the wait is on the export's own thread. * the countdown cannot be handed a rate below zero or a division by nothing: a bar that went backwards read as "~0:00 left" over six minutes of encoding, and the estimate is a guess, never a lie.
🐛 fix(engine): the seat a test cycles is one no other test is sitting inAhmet Kaan Gümüş · 88ce23e
🐛 fix(engine): the seat a test cycles is one no other test is sitting in The stand-in encoder seat was armed by a process-wide variable and read by `hw_seat`, so a software test that had already opened its own export picked it up mid-flight, met the hang injection, and stalled: `cargo test -p engine --test export` was green or five-failed depending on the interleaving. The progress reset the fallback does made it worse -- one cancel test hot-spins on progress reaching 1.0 and a regression there never ends. The seat is process state, so it is borrowed rather than assumed: the whole software suite shares a read guard, exactly as parallel as it always was, and the encoder-death family takes it exclusively, lifting the software encode pin only for its own exports and putting it back before it lets go. Which lets `hw_seat` go back to being production policy with no test flag in it. Also: a child that does not answer `vh_enc_dma_geometry` is now reaped there instead of costing the next picture a second whole timeout; the plugin's own note no longer claims the editor never loads the encode half, when what it never does is *call* it -- the availability check is a dlopen and opens no VA-API display; and the guard that refuses to write an export again in software when a person picked the GPU by name now has the test it was shipped without.
🐛 fix(engine): the export stops with the last picture, caption or no captionAhmet Kaan Gümüş · 64e09f9
🐛 fix(engine): the export stops with the last picture, caption or no caption A caption hanging past the media held the timeline open and the picture loop walked it: 312 encoded frames under a 240-frame delivery, 72 of them black, the copied sound padded to match, and the plan card saying cues were "cut off there" of a file three seconds longer than it said. `export_spans` is now the one place that end is decided -- the composite walk cut to `media_frames` -- and both the encoding loop and the copy plan take it; `copy_audio` drops the trailing gap the same walk leaves on its play list. Playback still walks `timeline_frames`, so the transport parks on the tail.
✨ 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.
✨ feat(engine): the words a timeline places are the tracks its file carriesAhmet Kaan Gümüş · 0f135a8
✨ feat(engine): the words a timeline places are the tracks its file carries An export of a project with subtitle placements writes one track per subtitle lane, in lane order, from the lane's own cues (`Project::sub_lane_cues`) -- language and title from the palette row its first placement plays. The pick list stays in charge of a project with nothing placed anywhere, which is every project the app can make today; the card's line goes lane by lane the same way. A caption hanging past the last picture holds the timeline open but has nothing under it to write, so an export now ends with the last picture or sound (`Project::media_frames`): a cue straddling the end keeps the half inside, a lane wholly past it writes no track, and the plan line says so before the button is pressed -- and the sound is no longer padded with silence out to the caption. A lane of pictures is refused in words and written nowhere: both muxers write text and neither has a bitmap path. Past `MAX_SUB_TRACKS` lanes the card refuses by name, and the muxer refuses again.
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pinAhmet Kaan Gümüş · 50af5b5
✨ feat(app): the seat that writes the picture is picked on the card, not by an env pin The export card gains an Encoder row: Auto, Hardware or Software, three rows in a list like every other setting with more than two values -- `e` steps it, a click opens the list, and the planned line under the rows re-probes and says which seat it measured. Auto is what every export did before (the GPU where there is one). Hardware is the GPU or a refusal in words -- `Enc::open` refuses before the muxer exists, so nothing is written -- and it is now the only door to the plugin's AV1 seat, which `VE_HW_AV1=1` used to guard: an env pin nobody exporting a film would ever find. A person who picks it for AV1 gets a plain row naming what happened on this box's driver, and the pick still stands. Software forces the CPU encoder, which also takes the zero-copy path off the table by construction (`Enc::dma_want` answers only for the two hardware seats). Kept with the project: `.edith` gains an `encoder` line at v14, written only when it is not Auto, and a v13 file loads as Auto. - engine: `ExportSettings::force_sw` -> `seat: EncoderSeat`; `hw_seat` returns the refusal instead of falling back; `planned_video` says `NO_HW_SEAT` where it would - app: `Pick::Encoder`/`Choice::Encoder`, card row, `e` in the card's own keyboard and in the keys menu (`FIXED`) - tests: the backends sweep runs all three seats (the AV1 hardware seat excepted, as before), and asserts the refusal is only what a missing seat produces
🐛 fix(engine): the seat line finishes the sentence about the soundAhmet Kaan Gümüş · aa6d699
🐛 fix(engine): the seat line finishes the sentence about the sound An mp4 mixes its sound on a thread beside the picture, so the encoders line is published half-written -- "HW encode (VA-API) · working out the sound…" -- and completed once the pass is collected. The frame loop does that where the sound lands under the picture; where the *picture* finishes first the pass is collected under the muxer instead, and that path never published again: a card left saying it was still working out a track it had already written. The tests read the line the same way now. They took the first one published, which since hardware encode got fast enough to beat the mix was the half-line, and `a_mixed_timeline_says_it_re_encodes_and_then_does` and `the_planned_encoders_are_the_ones_the_job_opens` failed on it every run; `published_encoders` waits for the line a card settles on instead, and the mixed timeline runs to the end to read that settled line twice.
🐛 fix(engine-hw): the hardware HEVC seat says what its samples meanAhmet Kaan Gümüş · 9fdee6f
🐛 fix(engine-hw): the hardware HEVC seat says what its samples mean The plugin's HEVC encoder wrote no VUI at all, so libavcodec read the stream's colour as "unspecified" and rendered a 709 export through the 601 matrix -- the HEVC decoder takes the bitstream's answer and overwrites the container's with it, which is why the mp4's `colr` box and the Matroska's Colour element could not cover for it (`export_color::every_format_signals_its_space_in_the_bitstream`, both HEVC containers, whenever the plugin is on the path). The three H.273 code points and the range flag now go in at the open, from the same `ColorDescription::output` rule the software intra seat's VUI and both muxers' tags come from, through the vendored `SpsBuilder`'s own `video_signal_type`/`colour_description`. A symbol of its own, `vh_enc_hevc_open_colour`, rather than four more arguments under the old name: a plugin that predates it is then simply missing the seat and the export falls back to the software encoder, which has always written the VUI, instead of being called with a signature it does not have.
2026-08-13
🔀 merge(engine): the stand-in decides one path, and the intra file keeps its marksAhmet Kaan Gümüş · eff035e
🔀 merge(engine): the stand-in decides one path, and the intra file keeps its marks Lane P's proxy workflow meets a main that had taken S's persistent decode workers, E's pipelined export and E4's zero-copy encode. * `start_span` keeps S's reuse door and P's single substitution point at once: `picture_path(source)` is resolved *before* the door and handed to both halves of it. A worker holding the film is then asked for a span of the stand-in, declines on the path it already has (`Worker::reseek`), and `set_proxies`' seek becomes a respawn on the other file -- while a span that did not change files still costs no thread and no VA-API init. Asking the project for the path at the door, as main did, would have left every proxied span opening a worker from scratch. * `Enc::encode_dma` takes P's `intra` flag, which is not symmetry: a proxy of a file already small enough is coded at that file's own size (`proxy::size_for` -- `wanted` is true for HEVC and AV1 at any size), so an intraframe export's decoder and encoder can agree on a surface and the buffer goes straight across. Marked `false` there, an all-intra stand-in would have carried no sync point at all, which is the exact bug `gop_limit` was written against, reached by the other door. * The five other conflicts were both sides adding a field: `drop_late` and `proxies` next to each other, in the struct and in all three opens. * `enc_depth` is keyed by codec, so the intra seat takes H.264's two. Said in its doc rather than left to be re-derived: that seat is the same entrypoint with every inter dependency removed, so a picture there is finished no later than one on the seat the two was measured on. `nm -D libengine_hw.so` lists sixteen: P's `vh_enc_open_intra` beside E4's `vh_next_frame_dma`, `vh_enc_dma_geometry`, `vh_enc_frame_dma` and main's `vh_seek`. `picture_path` still has exactly one call site outside the tests, and it is in `playback` -- an export reads the film. The intra seat and the zero-copy path are read, not run: every test that would reach either is hardware-gated and the GPU is wedged.
🔀 merge(engine-hw): the encoder that skips the CPU keeps the two it holdsAhmet Kaan Gümüş · 9717151
🔀 merge(engine-hw): the encoder that skips the CPU keeps the two it holds Lane E4's zero-copy encode path meets lane E's two-picture encoder. Both touched the same file at the same place and neither knew of the other. * `vh_seek` and `vh_next_frame_dma` were the textual conflict and nothing more: two different symbols added at one spot. Both kept. * `EncSession::encode_dma` submits a picture like `encode` does, so it counts one in `in_flight` -- one session takes both kinds of picture (an untouched clip hands buffers over while a graded one or a gap goes through the pixel path), and a submission missing from that count is an input buffer the pixel path would believe free one picture too early. * No deferred poll on the dma path, said in a comment where it would go: the depth exists to overlap the *next* picture's CPU interleave with this one's encode, and a picture arriving on the GPU has no interleave to overlap. Draining every call is also what keeps the decoder's own hold on the buffer short. * Per-codec `enc_depth` therefore governs both kinds: the pixel gate is the only one there is, and the dma path leaves `in_flight` at its floor. `nm -D libengine_hw.so` lists both lanes' optional symbols: vh_seek, vh_next_frame_dma, vh_enc_dma_geometry, vh_enc_frame_dma. The refusal fallback is untouched -- a buffer the plugin cannot hand over comes back as pixels, never as a failure. The dma path itself is read, not run: every test that would exercise it is hardware-gated and the GPU is wedged.
🐛 fix(export): one bar, two threads, and it may only ever go forwardsAhmet Kaan Gümüş · e5b7da5
🐛 fix(export): one bar, two threads, and it may only ever go forwards Moving the audio pass onto a thread of its own put two stages on one progress number, and `encode_audio` still wrote its share of the band with `store`: every chunk of the mix pulled the bar back to the sound's small figure while the picture was publishing a large one. Measured on the film's AC-3 track, 12,000 frames: 4,489 backward steps, the worst of them from 5% to 0%. `fetch_max`, and 0 backward steps over the same run. The rule is written on `Shared::progress` rather than only at the call site, because it is the class and not the instance: any stage that can run beside another writes that field with `fetch_max`, never `store`. A `store` is left only where nothing else can be publishing at all -- the terminal `PROGRESS_SCALE`, and the audio-only export that has no second thread. `encode_audio` also had no cancellation checkpoint anywhere in it, which nobody could see while it ran in front of the picture: cancelling an export then left a detached thread mixing the whole timeline behind a job whose outcome was already settled, still writing into its `Shared`. Measured before the fix, cancelling a 12,000-frame export one second in: the mixer went on to finish all 500 s of sound and the process was still busy 1.45 s after the export reported itself finished -- minutes, on a feature film. With the poll in the mix loop, and two more before the encoders that have no checkpoint of their own, the same cancel leaves no thread behind at all (quiet in 0.00 s, and the "mixed ... s of sound" line the mixer prints on completion never appears). And the mp4 muxer's fps on a capped bench run is derived from the highest progress the poll loop saw rather than from one read at the end, which is the same fragility one layer up.
🐛 fix(engine): the GPU's stand-in was one starting point long, not every frameAhmet Kaan Gümüş · 60ae56c
🐛 fix(engine): the GPU's stand-in was one starting point long, not every frame A proxy asked the ordinary hardware seat for a key frame on every picture, which is not the same thing as an intra-only file and does not make one: cros-codecs' low-delay predictor takes the keyframe branch with `idr` false for a forced key frame, writes no SPS or PPS with it, and `fix_slice_nal_headers` -- which reads the parameter sets to know what a slice is -- then marks it a plain I slice. A 60-picture hardware proxy came back with **one** frame a decoder could start on, so its seeks were the film's own seeks and the whole point of it was gone. Software was right all along (150 of 150), which is what hid it. The thing that decides this is the predictor's group limit, and a group of one picture is what an intra seat is: the counter is then pinned at zero, every picture takes the keyframe branch as an IDR, and every access unit carries its own parameter sets. That is the HEVC seat's own mechanism, now the H.264 one's as well. Its own plugin symbol (`vh_enc_open_intra`) rather than a flag on the existing one, matching the AV1 and HEVC seats: a plugin built before it exists has no intra seat, and the caller then takes the software encoder -- which codes one frame a GOP and writes what was asked for -- instead of being handed a long-GOP file under a name that promises otherwise. `intra_only` on anything but the mp4 pair is now refused by name. Checked without a GPU: the group limit and the IDR-marking rule are both unit tests in the plugin. The hardware end-to-end twin (`sync_points` == frame count) is written and `#[ignore]`d, for a machine whose GPU is not wedged.
⚡ perf(export): the sound is worked out under the picture, not in front of itAhmet Kaan Gümüş · cd31ad1
⚡ perf(export): the sound is worked out under the picture, not in front of it An export mixed, encoded and held its whole audio track before a single frame was decoded, because the muxer was handed the track when it was created. On a feature film that is minutes of nothing visible happening, and it was pure waiting: an mp4 writes its audio samples after the last picture anyway. So the mp4 muxer declares its audio track where it writes it. `mp4 0.14` builds the movie box at the end from the tracks in the order they were added, and the samples go into `mdat` in the order the caller writes them, so a track added before the first picture and a track added after the last one produce the same file -- which is checked and not argued: a ten-second span of the film exported before and after this is byte-identical, md5 73f1a9ca9b2eb1c4a7a8f8d467e7635e either way. With that gone, the audio pass runs on a thread from the top of `run` and the picture starts immediately. Where it is *waited* for is the whole design: a Matroska file interleaves audio into its clusters from the header on, so that path still collects the pass before the first coded picture (nothing there to overlap, and the copied-picture path is the same muxer); an mp4 collects it at the frame where the thread happens to have finished, and failing that after the last one. Collecting inside the loop is not tidiness -- a mix this engine cannot decode used to refuse in seconds, and an overlapped pass that reported only at the end would spend the whole encode first. Measured on the film, 600 s span, AC-3 5.1 re-encoded to AAC: the audio pass now completes 4.5 s and 7.0 s into the picture on two runs (`export audio: done N s into the picture`), where before it stood in front of it. The wall clock says 214-229 fps against 199-268 for the serial build -- this box was running four other agents' benchmarks and its noise (±30%) is wider than the 10% this is worth on that path, so the stage lines are the evidence and the fps numbers are not. Two smaller things fall out. The progress bar advances with `fetch_max`, so the audio's share of the band cannot pull it backwards while the picture pushes it forwards. And the encoder line says "working out the sound…" until the pass is collected -- the half-line the copied-picture path already used -- so what it publishes is still never a codec that did not run.
⚡ perf(export): the picture the GPU decoded is the picture it encodesAhmet Kaan Gümüş · 366171b
⚡ perf(export): the picture the GPU decoded is the picture it encodes An untouched clip's frames never leave the card: the decode session hands its DRM-PRIME buffer over and the encoder imports it, so an export of a clip with no grade, no tone map, no matrix remap and no canvas to place on costs neither the `vaGetImage` read-back nor the NV12 interleave back up -- both of which used to run once per frame, per side. Three optional plugin symbols carry it (`vh_next_frame_dma`, `vh_enc_dma_geometry`, `vh_enc_frame_dma`), so an older `libengine_hw.so` reads back exactly as it did, and any refusal at all -- another coded size, another fourcc, a driver whose export the plugin will not take, a software decoder on the other end -- hands the pixels over instead of failing. The decode session keeps six pictures out of its pool while they are outstanding, and reserves six extra buffers the moment a caller asks, so a decoder is never robbed of its own. Measured on the film, 60s span, hardware H.264 both ways: 94.58 -> 276.46 fps median, 46.9s -> 15.6s wall, and 37.6s -> 0.5s of user CPU. SSIM against the source frames is 0.964490 where the read-back path scores 0.964506 -- the same picture, coded by the same encoder.
✨ feat(engine): the picture may come off the stand-in, the delivery never doesAhmet Kaan Gümüş · 79c69dd
✨ feat(engine): the picture may come off the stand-in, the delivery never does One switch for the project, saved with it as the v12 `proxy` line, and one place that reads it: the span open asks `picture_path`, which hands back the stand-in where the cache has one and the film itself everywhere else. The sound is opened elsewhere and is always the film's; `export` reads the project's own sources and knows nothing of proxies, so a delivery cannot come off one -- and both sides now say out loud which file they read (`export source:` / `picture: proxy`), so that is a grep rather than a belief. *Which* films have a stand-in is deliberately not saved: a proxy is found by the film's own path, length and modification time, so the cache is the single answer and a project file cannot go stale about it. A v11 project loads unchanged and is cut on its films, which is all it could ever do.
✨ feat(engine): a big film gets a small stand-in to cut withAhmet Kaan Gümüş · 83e561d
✨ feat(engine): a big film gets a small stand-in to cut with A proxy is the film at 1280 on its long edge, every frame an IDR, no sound in it at all: a seek lands on the frame asked for instead of on the nearest one a decoder can start from, and the mix stays the original's. Generation is the export walk given a one-clip project and a smaller canvas, so the hardware seat, the progress and the cancel are the ones a file export already had. Two switches were wanted for it: `intra_only` (one frame a GOP on the H.264 pair) and `keep_source_colour`, which carries the film's own space into the stand-in instead of converting it -- that conversion ran on the source's full 4K, cost 48 ms a frame and was the whole of a proxy's price, and leaving it to the screen means the tone-map preset can still be changed after the stand-in was made. The cache is keyed on the source's path, length and modification time, so a re-encoded original misses rather than reading a stale stand-in. A 4K HDR film: 2.35x realtime on the VA-API seat, against 0.59x before the colour switch; a cancel leaves neither the file nor its .part.