I’m trying to use JAudioTagger in a media player like application to yoink the meta data for each song, but I don’t see a field for track duration. I’m sure there must be one but I can’t seem to find it and a couple searches haven’t turned up anything. I’m looking at: http://www.jthink.com/jaudiotagger/tagmapping.html and at the java docs.
Does anyone have any idea? Thank you for any help!
For most formats, the length isn’t in the tag.
Many libraries (and media players), like TagLib, estimate it for you by working out the length in seconds of a few hundred kilobytes of the file (the bitrate) and multiplying up. Sometimes this goes horrendously wrong, but, a surprising portion of the time, it works out fine.