Expand description
Container formats.
A container decides how a media frame is laid out inside a moq-lite frame: framing overhead, whether multiple samples can share one moq frame, and whether the same encoding doubles as a file format on disk.
Each submodule implements one format. The wire-level ones implement
the Container trait, so Producer<C> and Consumer<C> can
be generic over the choice. The catalog announces a container per
track; catalog::hang::Wire
dispatches the right implementation at runtime.
Modules§
- cts
- CTS hang container: QUIC varint composition time offset (in track timescale) plus codec payload.
- flv
- FLV (Flash Video / RTMP container).
- fmp4
- Fragmented MP4 (fMP4 / CMAF).
- legacy
- The original hang wire format.
- loc
- Low Overhead Container.
- mkv
- Matroska / WebM.
- mp4
- Regular MP4 files, recorded crash-safe.
- raw
- Raw hang container: zero-byte header, presentation timestamp equals the MoQ transport timestamp.
- ts
- MPEG-TS (transport stream).
Structs§
- Consumer
- Decode a moq-lite track into a stream of media
Frames in age-bounded presentation order. - Delay
- How far behind the live edge a media reader plays: where it starts, and how late it may fall.
- Finished
- A media track whose producer finished it: every frame is written, and it can still be read or aborted, but not written to.
- Frame
- A decoded media frame: timestamp, payload bytes, keyframe flag.
- Group
Consumer - Decode a single [
moq_net::group::Consumer] into a finite stream of mediaFrames. - Guard
- A published rendition config edited in place.
- Invalid
End - An explicit endpoint precedes a frame of the group it ends.
- Join
- Rolls an audio track’s groups by duration.
- Missing
Keyframe - A non-keyframe frame arrived with no open group.
- Playout
- A
Consumer’sDelayand the catalog rendition’s warmup, applied together. - Producer
- A producer for media tracks that manages group boundaries.
- Timestamp
Rewind - A group starts before the previous group did: the source restarted, which is a new broadcast.
- Writer
- Where a
Containerwrites a group’s frames: the group, or the track whose next group the first frame creates, keyed by that frame’s timestamp.
Enums§
- Kind
- The media role that determines how a container represents frame durations.
- Read
- One item of a
Consumerread, in delivery order. - Reorder
Error - Video whose frames do not fit the reorder depth it declares, so no decode clock can be authored for it.
Constants§
- DELAY_
MAX - The longest playout delay: it caps a reader’s latency and how far catalog
warmupreaches back, so a publisher cannot hold a reader’s media without bound. Mirrored by@moq/hang’sDELAY_MAX.
Traits§
- Container
- Encode and decode media frames over a moq-lite group.