How do you read MP3 ID Tags and Ogg Tags in C#?

G

Grant Stanley

Hello,

I'm writing a program in C# that needs to read the ID3 tags from MP3 files
and also the ID Tags from Ogg files.
Does anyone know how to do this? also does anyone know of any example code.

The only thing I've found only reads MP3 tags and it uses the windows xp
shell32.dll file. But i'd prefer code that will read it directly using
another dll file.

Thanks for any help,
Grant
 
J

Jon Skeet [C# MVP]

Grant Stanley said:
I'm writing a program in C# that needs to read the ID3 tags from MP3 files
and also the ID Tags from Ogg files.
Does anyone know how to do this? also does anyone know of any example code.

The only thing I've found only reads MP3 tags and it uses the windows xp
shell32.dll file. But i'd prefer code that will read it directly using
another dll file.

I suggest you look on www.wotsit.org to try to find the file format.
The Ogg format is certainly available (see the developer's web site if
it's not on wotsit), and I seem to remember that wotsit had MP3 stuff.
 
M

Mitchell S. Honnert

I can't help with the OGG tags, but I've written a free, yet comprehensive
ID3 tag editing .NET library called UltraID3Lib. It supports ID3 v1.0,
v1.1, and v2.3 tags. UltraID3Lib was written from the ground up in fully
managed code and implements most of the ID3 v2.3 standard's seventy-four
Frames as individual classes with properties specific to the data that Frame
contains.

You could also use the Windows Media Player SDK to read/edit ID3 tag
information, although I don't have any links any more or know if it supports
OGG. You'd also have to write or find a .NET wrapper as the DLL supplied in
the SDK is unmanaged code. I preferred managed code and a finer control
over the tags than what I found in the WMP SDK when testing it, hence the
creation of UltraID3Lib.

If you are interested in UltraID3Lib, please go to
www.hundredmilessoftware.com and click on the UltraID3Lib menu option on the
left. More details and download instructions are available there. Again,
UltraID3Lib is free.

- Mitchell S. Honnert
 
G

Grant Stanley

Hey,

Your library looks really good, so i'll probably use it.

Now all I need is something for Ogg files. The only ogg stuff I can find is
in C or C++, which would mean having to rewriting it, which I don't really
want to do.

Grant
 
M

Mitchell S. Honnert

Your library looks really good, so i'll probably use it.
Thanks. Let me know if you have any problems. I've been testing it out for
quite a while, but if you do happen to find any issues, let me know the
details and I'll implement a resolution.
Now all I need is something for Ogg files. The only ogg stuff I can find is
in C or C++, which would mean having to rewriting it, which I don't really
want to do.
I've been toying with the idea of making UltraID3Lib more generic i.e.
structuring it in such a way that I could more easilly add in other tag
formats such as OGG or WMA. I had a look at the OGG tag format today and it
didn't look like it'd be difficult at all to implement. I'm pretty sure I'd
add OGG support first. I will of course post any updates to
www.hundredmilessoftware.com.

- Mitchell S. Honnert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top