| Crates.io | oggopus-embedded |
| lib.rs | oggopus-embedded |
| version | 0.1.1 |
| created_at | 2025-05-09 10:01:41.26182+00 |
| updated_at | 2025-05-19 12:28:11.908941+00 |
| description | Parsing of oggopus files on embedded device flash |
| homepage | |
| repository | https://github.com/Tomin1/oggopus-embedded |
| max_upload_size | |
| id | 1666861 |
| size | 77,222 |
This can parse Ogg files as specified by RFC3533 and RFC7845 but only if they contain only Opus headers and data. This crate is no_std and no_alloc.
If you need a more complete Ogg parser, you should look elsewhere. There are lots of other implementations.
This code was created for my personal hobby project where I needed to store some short Opus encoded audio on flash in an embedded system. It is not intended as a general purpose Ogg parser or Opus player and you should not use it with untrusted inputs. In particular streaming or seeking is not supported and Ogg file cannot contain streams other than Opus.
Please do not make demands that this should support this or that feature, thank you! If you need something and you can write code, you can also implement it yourself.
Family 255 and Reserved channel mapping table parsing support can be enabled
with family255 feature. It is usually not needed for decoding mono or stereo
audio and it makes OpusHeader struct to take more space so it's not enabled by
default.
The parser is missing a few features you might expect although it already has more than what I actually needed myself.
These could be implemented. Feel free to submit PRs if you happen to implement something.
This crate is BSD licensed. See COPYING for more information. Dependency crates have their own licenses.