开发者

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

开发者 https://www.devze.com 2023-02-12 16:29 出处:网络
I just want a simple piece of code that can give m开发者_JAVA技巧e 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 wa

I just want a simple piece of code that can give m开发者_JAVA技巧e 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


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


  • How to Read / Write ID3 Tags in MP3 Files 1 - 2 - 3
  • Your first MP3 Delphi player
  • ID3v2 Library is a component for use in Win32
  • James Webb ID3v2.3.0 & ID3v2.4.0 Delphi library
  • PBB Player ( pbb-player ) - ID3v2adv.pas

Related Stackoverflow:

  • Extract Album Art from mp3 and display in an Image with Delphi?
  • How to edit mp3 file details (Delphi)


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

More related stackoverflow questions:

  • Universal MP3 and WMA tag reader for Delphi
  • FAQ tagged ID3

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

0

精彩评论

暂无评论...
验证码 换一张
取 消