Expand description
Media muxers and demuxers for MoQ.
Sits between [moq_net] (pub/sub transport) and hang (media
catalog). Takes containerized media in, produces a moq broadcast,
and the other way around.
containerholds one submodule per container format. Each describes how media frames are packaged on the wire, and some also handle the corresponding file or stream format.codecholds one submodule per codec. Each parses the codec’s configuration record and provides an importer that publishes a raw bitstream to a broadcast.catalogpublishes and subscribes to the broadcast catalog, the JSON manifest listing every track and how to decode it.importis the front door for callers who only have a format string. It picks the right concrete importer for you.selectpicks which renditions of a broadcast to keep, on either the import or the consume side.Pacermaps each exported frame’s media timestamp to the wall-clock instant it should be delivered at, for byte streams whose spacing is part of the format (MPEG-TS).syncholds a broadcast’s tracks on one playout clock without letting a slow one stall the rest.rateturns bandwidth grants into stable media bitrate targets shared by audio, video, and transcode senders.followfollows a broadcast across the publisher identities that serve it, for a reader that restarts on each one.Lingerkeeps a cleanly ended broadcast up for a fixed time, so a subscriber that arrives after the end still gets its tail.Ingestis how a protocol gateway publishes what it ingests: max age, allocator, and linger.
The poll_* methods are always available. Enable the async feature for their generated
async wrappers and the async constructors with no poll of their own; it is off by default.
Modules§
- catalog
- Catalog publish/subscribe.
- codec
- Codecs.
- container
- Container formats.
- follow
- Following a catalog rendition’s broadcast across the publisher identities that serve it.
- import
- Import media into a moq broadcast.
- json
- JSON track publish/subscribe.
- rate
- Shared rate control for media senders.
- select
- Track selection.
- sync
- One playout clock shared by a broadcast’s tracks.
Structs§
- Binding
- A held broadcast or the retained result of one eagerly issued broadcast request.
- Clock
- A clock for stamping media frames so that tracks produced concurrently, e.g. an audio and a video capture running on separate threads, land on a single timeline.
- Ingest
- How a gateway publishes what it ingests: the media tracks’ max age, the allocator they claim on, how long a cleanly ended broadcast stays up, and the cap on what the source sends.
- Linger
- Keeps cleanly ended broadcasts announced, serving their finished tracks, for a fixed duration, then closes them.
- Pacer
- Maps each export frame’s media timestamp to the wall-clock instant it should be delivered at, re-anchored to the live edge.
- Source
- The subscription side of an export: an origin and the catalog broadcast that drives it.
Enums§
- Error
- Errors from moq-mux operations.
Type Aliases§
- Result
- A Result type alias for moq-mux operations.