drewnoakes / metadata-extractor-dotnet

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Other
934 stars 165 forks source link

Skip leading ID3v2 data in MP3 files to allow processing #314

Closed jbraendle closed 2 years ago

jbraendle commented 2 years ago

Fixes #285

Hi, I took a look at the issue and found, that the sample file has ID3V2 tags at the start of the file. I added support for this form of a mp3 file by skipping the ID3V2 tag before reading the meta data. I also changed the MpegAudioTypeChecker class to recognize the ID3V2 tags as mp3 file. I've shortend the sample file to create a unit test case.

Kind regards Jürgen Brändle