How do I get a MP3 file's details (like the author, title, album, year, etc.) with not too complicated coding?

StackOverflow https://stackoverflow.com/questions/5053616

  •  15-11-2019
  •  | 
  •  

Question

I just want a simple piece of code that can give me the author, album, year, title and genre from a mp3 file. If one can, in the form of variables so that I can work with that. All I want to do is let this information show in a label. Eg. lblArtist, lblAlbum, lblGenre, lblYear, lblTitle. If any one can give me some help, I wo

Was it helpful?

Solution

The information you want is called ID3. This site has many answers for this (in many languages). For example, How to read MP3 file tags

OTHER TIPS

MP3 tags are in ID3 format, so that is what you are after.

More related stackoverflow questions:

Personally I love the BASS library, but that does much more audio stuff, so it is only worth the effort if you want to do more (like playing, mixing, effects and such). It does those things in an excellent way though. Bass hand wrappers in many languages and platforms, including Delphi, .NET, Windows, iOS, just to name a few..

--jeroen

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top