Expand description
Unix-socket H.264 recording fan-out for external capture tools. Unix-socket H.264 fan-out for external recording.
Frames are intercepted at the delivery layer (not inside each encoder), so the tap works uniformly for every full-frame encoder. The 10-byte pixelflux wire header is skipped so consumers receive a plain Annex-B elementary stream that is directly muxable.
The tap must never perturb the live viewer transport, and it never copies frame bytes:
stripe payloads are Arc-shared, so the encode thread only clones a handle into a bounded
per-client channel drained by a dedicated writer thread. A slow or stalled recorder blocks
nothing but itself and is dropped once its queue overflows. A newly connected client arms
[RecordingSink::should_force_idr] so the next encode emits an IDR it can decode from.
Structsยง
- Recording
Sink - Unix-socket fan-out that broadcasts every encoded H.264 frame to connected consumers.