Session video recording for vibesurfer.
Turns a sequence of RGB frames (captured from a page) into a real video. Two encoders, both cross-platform:
- [
H264Recorder]: real-time H.264 via openh264 (built from vendored source), muxed to MP4 with muxide (pure Rust). Fast enough to keep up with capture and produces a file that plays everywhere with no remux. This is the default. - [
Recorder]: pure-Rust AV1 via rav1e in an IVF container. No build tools, but far too slow for real time at screen resolution. Kept as a portable fallback.
Both are fed decoded RGB frames (see [Recorder::push_png] for the
capture path, which decodes vibesurfer's PNG captures). All frames in
one recording must share dimensions; the first fixes them.