Audio metadata library
Parse, convert, and write metadata to various audio formats.
⚠️ LOOKING FOR HELP WITH DOCUMENTATION ⚠️
I'm looking for help with the refinement of the docs. Any contribution, whether it be typos, grammar, punctuation, or missing examples is highly appreciated!
| File Format | Metadata Format(s) |
|---|---|
| AAC (ADTS) | ID3v2, ID3v1 |
| Ape | APE, ID3v2*, ID3v1 |
| AIFF | ID3v2, Text Chunks |
| DSF | ID3v2 |
| FLAC | Vorbis Comments, ID3v2* |
| MP3 | ID3v2, ID3v1, APE, Lyrics3 |
| MP4 | iTunes-style ilst |
| MPC | APE, ID3v2*, ID3v1* |
| Opus | Vorbis Comments |
| Ogg Vorbis | Vorbis Comments |
| Speex | Vorbis Comments |
| WAV | ID3v2, RIFF INFO |
| WavPack | APE, ID3v1 |
* The tag will be read only, due to lack of official support
To try them out, run:
cargo run --example tag_reader /path/to/file
cargo run --example tag_stripper /path/to/file
cargo run --example tag_writer <options> /path/to/file
cargo run --example custom_resolver
Available here
As some formats are complex, Lofty makes use of test-log to get the detailed debug/trace logging for failures. To run the tests, do:
RUST_LOG=trace cargo test
There are benchmarks available here. To run them, do:
cargo bench
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
test failures on big endian.
https://github.com/Serial-ATA/lofty-rs/issues/809
Labels: bug
MP4: Incorrect audio bitrate for files with a video track or multiple mdat atoms
https://github.com/Serial-ATA/lofty-rs/issues/806
Labels: bug
ID3v2 text frames are written without the trailing NUL that mutagen or mp3tag writes for Latin-1 values (TIT2, TPE1, …)
https://github.com/Serial-ATA/lofty-rs/issues/787
Labels: enhancement
ID3v2: Stack overflow
https://github.com/Serial-ATA/lofty-rs/issues/784
Labels: bug
ASF (WMA/WMV) support
https://github.com/Serial-ATA/lofty-rs/issues/719
Labels: enhancement, low priority
[AI] Batch of bugs found by an autonomous scanner
https://github.com/Serial-ATA/lofty-rs/issues/703
Labels: bug
MPEG: Downgrade "Using bitrate to estimate duration" log from WARN to DEBUG (at least for CBR MP3)
https://github.com/Serial-ATA/lofty-rs/issues/691
Labels: enhancement
Issues serve two purposes:
For any questions, you should use the Q&A discussions page.
For major contributions:
I’m generally fine with AI being used to aid development, but I’m not able to review non-trivial contributions that are fully AI-generated or contain no significant human input. These days, my time for working on Lofty is limited, and I cannot dedicate the time I do have to reviewing AI-generated code or acting as a proxy for an LLM in my reviews.
good first issue.