Skip to content

SYSTEM Cited by 1 source

moq-rs

moq-rs (github.com/cloudflare/moq-rs) is Cloudflare's open-source Rust implementation of the MoQ Transport protocol. Provides CLI tools for publishing and subscribing to MoQ relay networks.

Tools

  • moq-pub โ€” publishes a fragmented MP4 stream from ffmpeg (or any source emitting fMP4) to a MoQ relay endpoint.
  • moq-sub โ€” subscribes to a namespace on a MoQ relay and outputs the stream (e.g., to ffplay).

Usage example

# Publisher (with auth token)
ffmpeg -stream_loop -1 -re -i input.mp4 \
  -f mp4 -movflags empty_moov+frag_every_frame+separate_moof+omit_tfhd_offset - \
  | moq-pub -- --name my-namespace "https://draft-16.cloudflare.mediaoverquic.com/<token>"

# Subscriber
moq-sub --name my-namespace "https://draft-16.cloudflare.mediaoverquic.com/<token>" \
  | ffplay -hide_banner -an -

Seen in

Last updated ยท 606 distilled / 1,847 read