#ogg #decoder #encoder #xiph


Ogg container decoder and encoder written in pure Rust

13 unstable releases (6 breaking)

0.7.0 Oct 28, 2018
0.6.0 Aug 16, 2018
0.5.1 Sep 3, 2017
0.5.0 May 30, 2017
0.3.0 Jul 30, 2016

#1 in Multimedia

Download history 1311/week @ 2018-10-11 1885/week @ 2018-10-18 1169/week @ 2018-10-25 1710/week @ 2018-11-01 1382/week @ 2018-11-08 1846/week @ 2018-11-15 1501/week @ 2018-11-22 1692/week @ 2018-11-29 1369/week @ 2018-12-06 2001/week @ 2018-12-13 1301/week @ 2018-12-20 1487/week @ 2018-12-27 1377/week @ 2019-01-03

6,717 downloads per month
Used in 12 crates (3 directly)


1.5K SLoC


An Ogg decoder and encoder. Implements the xiph.org Ogg spec in pure Rust.


If the async feature is disabled, Version 1.12.0 of Rust is the minimum supported one.

Note: .ogg files are vorbis encoded audio files embedded into an Ogg transport stream. There is no extra support for vorbis codec decoding or encoding in this crate, so you need additional functionality in order to decode them. For example, you can use the lewton crate.

Also note that the encoder part of the Crate isn't as well tested as the decoder part, in fact it was only written in order to write compact testing code for the decoder.


Licensed under the three clause BSD license. For details, see the LICENSE file.


Ogg container decoder and encoder

The most interesting structures for in this mod are PacketReader and PacketWriter.