11 releases (5 breaking)

0.8.2 Nov 1, 2024
0.7.1 Oct 2, 2024
0.6.1 Jul 24, 2024
0.3.0 Mar 22, 2024

#40 in Multimedia

Download history 2/week @ 2024-08-09 207/week @ 2024-08-16 9/week @ 2024-08-23 6/week @ 2024-08-30 24/week @ 2024-09-13 23/week @ 2024-09-20 195/week @ 2024-09-27 34/week @ 2024-10-04 11/week @ 2024-10-11 100/week @ 2024-10-18 133/week @ 2024-10-25 211/week @ 2024-11-01 14/week @ 2024-11-08 3/week @ 2024-11-15 1/week @ 2024-11-22

331 downloads per month

MIT/Apache

220KB
6.5K SLoC

moq-pub

A command line tool for publishing media via Media over QUIC (MoQ).

Expects to receive fragmented MP4 via standard input and connect to a MOQT relay.

ffmpeg ... - | moq-pub https://localhost:4443

Invoking moq-pub:

Here's how I'm currently testing things, with a local copy of Big Buck Bunny named bbb_source.mp4:

$ ffmpeg -hide_banner -v quiet -stream_loop -1 -re -i bbb_source.mp4 -an -f mp4 -movflags empty_moov+frag_every_frame+separate_moof+omit_tfhd_offset - | RUST_LOG=moq_pub=info moq-pub https://localhost:4443

This relies on having moq-relay (the relay server) already running locally in another shell.

Note also that we're dropping the audio track (-an) above until audio playback is stabilized on the moq-js side.

Known issues

  • Expects only one H.264/AVC1-encoded video track (catalog generation doesn't support audio tracks yet)
  • Doesn't yet gracefully handle EOF - workaround: never stop sending it media (-stream_loop -1)
  • Probably still full of lots of bugs
  • Various other TODOs you can find in the code

Dependencies

~21–33MB
~618K SLoC