Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading Media File Details

 
Shyam Prasad Murarka
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,
I want to make a Media Organizer which allows a user to edit his music file details as one of the features.
For that I need to know how to access those details (like Title, Artist, Genre).
I went through Java Media Framework and seriously all I understood was that it provides a player for playing media files.
Is JMF the package that will provide me with classes and methods to access those details?
If not, then which is it?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMF encapsulates generic playback and editing capability, so I don't think it supports functionality that only a few file formats have. (I'm assuming you're talking about MP3).

A quick Google search finds several Java implementations purporting to be able to read and write ID3 tags.
 
Shyam Prasad Murarka
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Rancher,
Thank you very much for the links. You guessed it right, I was looking for MP3 tags itself. But I did not want third-party API's. Instead I wanted to develop my own library. Luckily I followed a link to www.id3.org where I can learn about the tagging in detail.

I am guessing I will have to use the Java Sound API for this. Isn't it?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think the Sound API supports ID3 tags, either, so a 3rd party library -either of your own making or from someone else- seems like the way to go.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://contributions.coremedia.com/isobox4j is another such library.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic