TianyiShi2001/audiotags

Bitrate support

Closed this issue ยท 4 comments

There's currently no way of reading bitrate information for audio files.
Was that simply missed or is there a reason it's not implemented for audiotags (i.e. the underlying metadata crates don't expose that kind of information)?

The information would be provided for MP4 and FLAC files, but it would not be available in ID3 tags.

That's different from the duration, which can be both determined by the file's contents with mp4ameta and metaflac, and taken from the ID3 tag with id3.

This crate focuses on the tag of the file, not any other contents that could be used to gather additional information on the properties. Attempting to add it into here would lead to an empty implementation for ID3, which is not desirable.

Alright, thanks for the clarification.
Is there any other crate that exposes audio bitrate info that you're aware of?

Yep, I maintain one ๐Ÿ˜„. https://github.com/Serial-ATA/lofty-rs

Thanks a lot!