| Crates.io | ratag |
| lib.rs | ratag |
| version | 0.1.0 |
| created_at | 2025-11-23 12:50:22.601948+00 |
| updated_at | 2025-11-23 12:50:22.601948+00 |
| description | Simple, fast and reliable audio tag reader. |
| homepage | |
| repository | https://github.com/BonnyAD9/ratag |
| max_upload_size | |
| id | 1946492 |
| size | 201,024 |
Rust Audio TAG library.
Library for reading metadata from audio files.
Unlike other more specialized libraries, this library doesn't prioritize support for everything the tagging formats have to offer but it prioritizes to supporting the basic metadata in as formats as possible. In short it won't read everyting from the file, but it aims to read the essentials from every file.
On the other it is made in a extensible way, so if you would like to create your own reader for some specific tag format, it is simple to integrate it alongside with the readers supported in this library.
Data that this library aims to be capable of reading:
Recognized file extensions: mp3, mpga, bit, flac, mp4, m4a, m4p,
m4b, m4r, m4v, asf, wma, wmv, wav, wave, avi, ani, pal,
rdi, dib, rmi, rmm, webp. As you can see, the list contains many file
extensions that are not asociated with audio. This is because lot of different
file formats use the same format for tagging. File extensions are used only to
speedup the process of figuring out which tag format should be used. If that
fails or the extension is not recognized, the tag format will be figured out
from the file contents.
Supported tag formats: ID3v1, ID3v2, flac, mp4, ASF, RIFF. See
below for detailed description.
Supported tag formats (detailed):
ID3v1 (ID3v1.0, ID3v1.1, ID3v1.2)
ID3v2 (ID3v2.2, ID3v2.3, ID3v2.4)
TT2, TP1, TCO, TAL, TPA, TRK, TYE,
TDA, TIM, TLE, COM, TCR, POP and PIC.APIC, COMM, TALB, TCON, TDAT, TIT2,
TIME, TLEN, TPE1, TPOS, TRCK, TCOP, POPM and TYER.TIT2, TALB, TRCK, TPOS, TPE1, TLEN,
TCON, TDRL, COMM, TCOP, POPM and APIC.flac
TITLE, ALBUM, TRACKNUMBER,
ARTIST, GENRE, DATE, DISCNUMBER, TRACKTOTAL, DISCTOTAL,
COPYRIGHT and COMMENTmp4
moov.mvhd.moov.udta.cprt.moov.udta.meta.ilst: nam, cmt, day, ART,
trk, trkn, alb, gnre, disk, covrASF
WM/AlbumTitle, WM/Year,
WM/TrackNumber, WM/PartOfSet, WM/Genre and WM/PictureRIFF
INFO chunk: IART, ICMT, ICOP, IGNR, ICRD,
INAM, IPRD, IPRT, PRT1, PRT2.WAVE form using fmt and length of data.Other parsers:
vorbis comment