-1

I have been trying to extract the Image, Author, date, etc from a MP3 file, but failed.

Is there a way to obtain Image and other information from a (audio) file in java/javafx?

vhu
  • 12,244
  • 11
  • 38
  • 48
Yehia Hesham
  • 13
  • 1
  • 5

1 Answers1

0

There are a lot of librarys for this problem: Look javamusictag

As example from this Documentation you can read the mp3-Info by Tags like:

File sourceFile;

MP3File mp3file = new MP3File(sourceFile);

You can also read specific tags:

ID3v1_1 tag = new ID3v1_1(sourceFile);
ID3v1 tag = new ID3v1(sourceFile);
ID3v2_4 tag = new ID3v2_4(sourceFile);
ID3v2_3 tag = new ID3v2_3(sourceFile);
ID3v2_2 tag = new ID3v2_2(sourceFile);
Lyrics3v2 tag = new Lyrics3v2(sourceFile);
Lyrics3v1 tag = new Lyrics3v1(sourceFile);
MrT
  • 594
  • 2
  • 17
  • i dont know why my answer is voted down. This question shows no code and the user wants that this community produce code snippets he can use. My answer shows a documentation of using a library for his needs. So why is this answer is voted down? – MrT Jul 28 '15 at 06:54
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – greg-449 Jul 28 '15 at 07:19
  • Okay if you said so - i improved the answer. – MrT Jul 28 '15 at 08:56