forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 978e6857d64772912559c8d8a4e6ee7cd309bdccFiltered to crates/engine/src/caps.rsClear filter

2026-08-14

🐛 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

✨ feat(export): the GPU takes the HEVC export, and it is the same fileAhmet Kaan Gümüş · bacbe9f
✨ feat(export): the GPU takes the HEVC export, and it is the same file

`HwEncoder::open_hevc` on the plugin's new symbol, and `hw_seat`'s HEVC
arm goes from a flat `None` -- "the plugin has no HEVC encoder" was true
and is not any more -- to a real probe. Unlike the AV1 seat it is **not**
behind an opt-in, and what makes that safe is that both HEVC seats code
intra-only: preferring the GPU changes how long an export takes and not
what comes out of it, which is the whole reason AV1's `VE_HW_AV1` exists
and does not apply here.

`Enc::HevcHw` beside `Enc::Hevc`, and every unit it hands back is marked
a sync point, because that is this encoder's configuration rather than a
driver's choice. Falling back is silent and covers all of it: no
entrypoint, a plugin too old to carry the symbol, a picture under the
driver's 384x384 floor, `VE_SW_ENC=1`, or the export card's own "software
only" -- `hw_seat` answers `None` before it probes for the last two, as
it always has.

The caps line stops saying HEVC is decode-only on this GPU.

Measured on this box, both against the software seat's 4.30 fps at 1080p:
1440p at 74 fps, 1080p at 117 fps, output decoding frame for frame.

2026-08-11

✨ 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(caps): the card says what this machine and this build can really doAhmet Kaan Gümüş · 0f37a18
✨ feat(caps): the card says what this machine and this build can really do

The hardware half was never asked for: the plugin decoded what it was
handed and the front-end had nothing to show before a file arrived. Now
an optional `vh_caps` symbol asks the driver -- profiles, entrypoints and
whether a P010 image exists for a 10-bit read-back -- and intersects that
with the codecs the plugin actually implements, so a GPU with an HEVC
encode entrypoint is not reported as an HEVC encoder edith can reach.

Optional exactly as `vh_enc_av1_open` is: a plugin built before this
still loads and still decodes, and the listing degrades to "none" for it,
for a missing plugin and for a machine with no driver alike.

The software half is a table -- what this build was compiled with is a
question the manifest already answered -- and both halves land at the
foot of the export card, where a user asks them.