[domistream] Video packetizer: frame header, FEC blocks with Cauchy parity over whole packets, sequence numbers, optional AES-GCM sealing (VideoCipher::encrypt)
This commit is contained in:
@@ -468,6 +468,12 @@ Reed-Solomon erasure code over GF(2^8), polynomial `0x11D` [F] [W5]:
|
||||
`P = [[8e f4 47 a7], [f4 8e a7 47]]`; `k = 3, m = 1`: `P = [[01 8e f4]]`.
|
||||
The capture settles it without any loss: parity packets are always sent, so our encoder must reproduce the
|
||||
captured parity bytes (offset 32 on) of every block.
|
||||
- **Host side (Lumen, `video::packetizer`).** Our own choices, not from a source, until a capture compares them
|
||||
with a real host: the fewest blocks (at most 4) in which every block can carry the requested parity within
|
||||
`k + m <= 255`, every block but the last carrying `k = ceil(n / blocks)` data shards; per block the least
|
||||
percentage, at or above the requested one, whose `m` reaches `minRequiredFecPackets`; a frame too big for that
|
||||
gets the most parity that still fits (counted in the packetizer's stats). Data shards in order, then the block's
|
||||
parity, block by block; RTP sequence numbers run on across frames, one per packet.
|
||||
- The audio code is **not** this matrix (section 6.4).
|
||||
|
||||
### 5.4 Feedback
|
||||
|
||||
Reference in New Issue
Block a user