Skip to main content

Module container

Module container 

Source
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.
GroupConsumer
Decode a single [moq_net::group::Consumer] into a finite stream of media Frames.
Guard
A published rendition config edited in place.
InvalidEnd
An explicit endpoint precedes a frame of the group it ends.
Join
Rolls an audio track’s groups by duration.
MissingKeyframe
A non-keyframe frame arrived with no open group.
Playout
A Consumer’s Delay and the catalog rendition’s warmup, applied together.
Producer
A producer for media tracks that manages group boundaries.
TimestampRewind
A group starts before the previous group did: the source restarted, which is a new broadcast.
Writer
Where a Container writes 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 Consumer read, in delivery order.
ReorderError
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 warmup reaches back, so a publisher cannot hold a reader’s media without bound. Mirrored by @moq/hang’s DELAY_MAX.

Traits§

Container
Encode and decode media frames over a moq-lite group.