drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.55k stars 479 forks source link

Unable to detect mp3 files #545

Closed adholland closed 3 years ago

adholland commented 3 years ago

Currently using 2.16.0 version of metadata-extractor. Ability to detect the file types works as expected other than mp3 files. I've attempted to detected numerous different mp3 files without success, with the library returning an 'Unknown' file type.

The following image shows the intial mp3 bytes via intellij: - image

this from another mp3 file: - image

adholland commented 3 years ago

@drewnoakes please advise on the above issue. I've taken the latest version hoping this would resolve the issue, but unfortunately it still seems that the library is unable to detect mp3 files.

payton commented 3 years ago

@adholland, in addition to the screenshots/beginning bytes, it would be helpful if you could provide a sample file to reproduce this with.

drewnoakes commented 3 years ago

It looks like these are MP3 files with leading ID3 data, which is not currently supported. There's another issue tracking ID3 support I believe (on a phone right now).

payton commented 3 years ago

Ah, right #328

payton commented 3 years ago

Will close this as a duplicate.

To reiterate, this request is being tracked in #328

The file is not being identified as an MP3 due to leading ID3 data.