Reads Opus packets out of WebM and Matroska audio, the container YouTube and most streaming sites serve Opus in.
Parsing works on a stream of binary chunks. Container elements are entered rather than read whole, so live streams with clusters of unknown size work, and only the first Opus track's blocks are kept: everything else is skipped without being buffered.
Summary
Functions
Turns a stream of WebM data chunks into a stream of Opus packets.
Streams the Opus packets of a WebM or Matroska file.
Functions
@spec packets(Enumerable.t()) :: Enumerable.t()
Turns a stream of WebM data chunks into a stream of Opus packets.
@spec stream!(Path.t()) :: Enumerable.t()
Streams the Opus packets of a WebM or Matroska file.