MoQ is under active development. APIs and protocols may change between releases.

Skip to content

moq-mux

crates.iodocs.rs

Turns existing container formats into hang broadcasts and back. This is what moq import/export and the gateways are built on.

FormatImportExportNotes
fMP4 / CMAFyesyesPassthrough as cmaf or repackaged as legacy.
MPEG-TSyesyesH.264/H.265; AAC, MP2, AC-3, E-AC-3; SCTE-35 and subtitle PIDs carried as tracks; service tables round-trip; paced export.
FLV / RTMPyesyesLegacy H.264 + AAC + MP3, plus enhanced-RTMP HEVC, AV1, VP9, Opus, AC-3, E-AC-3, and multitrack.
Matroska / WebMyesyes
Annex-B (H.264, H.265)yesyesParameter sets extracted to the catalog or re-injected per keyframe.

Importers parse the bitstream to fill the catalog (resolution, codec string, description), split groups at keyframes, and stamp timestamps. Exporters do the inverse and skip stalled groups past a latency budget. Per-codec producers (import::Opus, H.264, and so on) are available for feeding frames you already have.

bash
cargo add moq-mux

API: docs.rs/moq-mux. Real-world usage: rs/moq-cli.

Licensed under MIT or Apache-2.0