#codec #ogg-vorbis #decoder #encoder #xiph

ogg

Ogg container decoder and encoder written in pure Rust

17 unstable releases

0.9.1 Dec 10, 2023
0.9.0 Jul 6, 2022
0.8.0 Jan 20, 2021
0.7.1 Nov 21, 2020
0.3.0 Jul 30, 2016

#62 in Parser implementations

Download history 29143/week @ 2024-08-13 27831/week @ 2024-08-20 25909/week @ 2024-08-27 26309/week @ 2024-09-03 19506/week @ 2024-09-10 24015/week @ 2024-09-17 27449/week @ 2024-09-24 28481/week @ 2024-10-01 25494/week @ 2024-10-08 29379/week @ 2024-10-15 29279/week @ 2024-10-22 32276/week @ 2024-10-29 32442/week @ 2024-11-05 28895/week @ 2024-11-12 34769/week @ 2024-11-19 31123/week @ 2024-11-26

133,224 downloads per month
Used in 167 crates (22 directly)

BSD-3-Clause

78KB
1.5K SLoC

Ogg docs.rs documentation

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

If the async feature is disabled, Version 1.56.1 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.

License

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


lib.rs:

Ogg container decoder and encoder

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

Dependencies

~0–6MB
~26K SLoC