[domistream] Host: video and audio packetizers #9
Reference in New Issue
Block a user
Delete Branch "feature/host-packetizers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lumen L1, host side of the media streams:
video::packetizerandaudio::packetizer(sans-I/O), tests first.VideoPacketizer: access unit → RTP + NV-header datagrams (PROTOCOL.md 5.2/5.3), FEC blocks (up to 4) with Cauchy Reed-Solomon parity over whole packets, parity headers written after the parity, the client's minimum parity respected, optional video encryption mirroringVideoCipher::decrypt(U19 still unverified against a real client). The 8-byte frame header lives in one function (U13).AudioPacketizer: Opus → RTP with AES-128-CBC mirroringAudioCipher; no parity (AudioParity::None, non-exhaustive) because the audio matrix (U16) is GPL-provenance and unsettled.Evidence: 28 new tests (fixed byte vectors per field, parity against PROTOCOL's
[01 8e f4], round trips through the existingVideoDepacketizer/AudioDepacketizerwith loss up to m per block, more loss →FrameLost, reorder/duplicate, wrap-around, largest frame, cipher vectors, proptest); workspace 270 passed / 0 failed; clippy, fmt, rustdoc clean. Fuzzvideo_packetizer_roundtrip: 113,740 runs in 76 s, 0 crashes.Clean-room checklist
Self-review: checked the diff for
unsafe/unwrap/expect/panic(none in library code), that the encryption mirror only exists because the client decrypt already does, and that parity is computed before parity headers are written (5.3). Choices that are ours (block split, minimum-parity rounding) are documented as host-side notes for the capture to compare.