Skip to main content

Crate moq_mux

Crate moq_mux 

Source
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.

  • container holds 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.
  • codec holds one submodule per codec. Each parses the codec’s configuration record and provides an importer that publishes a raw bitstream to a broadcast.
  • catalog publishes and subscribes to the broadcast catalog, the JSON manifest listing every track and how to decode it.
  • import is the front door for callers who only have a format string. It picks the right concrete importer for you.
  • select picks which renditions of a broadcast to keep, on either the import or the consume side.
  • timeline publishes the broadcast’s group index: one record per media group mapping it to its start timestamp, so consumers can seek or build playlists without downloading media.

Re-exports§

pub use mp4_atom;

Modules§

catalog
Catalog publish/subscribe.
codec
Codecs.
container
Container formats.
import
Import media into a moq broadcast.
select
Track selection.
timeline
Timeline publish/subscribe.

Structs§

Clock
A monotonic 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.

Enums§

Error
Errors from moq-mux operations.

Type Aliases§

Result
A Result type alias for moq-mux operations.