Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read metadata from mp3?

Tags:

c#

metadata

mp3

I am trying to read the tags from mp3 files. I was wondering if anyone had any suggestions as to how to do this? I don't want to use a 3rd party library to handle the reading/organizing for me. The purpose of this is just for me to figure out how to read the encoded data? I know that there are primarily 2 different formats, ID3v1 and ID3v2. Really, my issue is just being able to obtain the information in a format that I can handle it. I have a couple ideas for actually storing the data I need and parsing the information once I get it. I mainly just need some guidance for how to collect the metadata in plain text.

like image 206
tcannon91 Avatar asked Jul 06 '12 21:07

tcannon91


1 Answers

Ok, I am not discouraging writing your own code (as my comment to the question may suggest). Actually the opposite, Kudos to you for wanting to develop your own library.

That said, Taglib sharp is open source and deals with both Id3v1 and id3v2 (and lots more), it should be a good place to start. I ported some parts of it to silverlight a while back, if I remember correctly it was not an overwhelming amount of code.

like image 73
Avada Kedavra Avatar answered Sep 28 '22 05:09

Avada Kedavra