#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

#63 in Parser implementations

Download history 24015/week @ 2024-07-22 24749/week @ 2024-07-29 20656/week @ 2024-08-05 32145/week @ 2024-08-12 27418/week @ 2024-08-19 26315/week @ 2024-08-26 24986/week @ 2024-09-02 21640/week @ 2024-09-09 22481/week @ 2024-09-16 27867/week @ 2024-09-23 27963/week @ 2024-09-30 25385/week @ 2024-10-07 30513/week @ 2024-10-14 27404/week @ 2024-10-21 32593/week @ 2024-10-28 29932/week @ 2024-11-04

122,820 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