This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Reading Media File Details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Reading Media File Details" Watch "Reading Media File Details" New topic
Author

Reading Media File Details

Shyam Prasad Murarka
Ranch Hand

Joined: May 02, 2005
Posts: 209
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?


With Best Regards,
Shyam Prasad Murarka
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
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.


Ping & DNS - my free Android networking tools app
Shyam Prasad Murarka
Ranch Hand

Joined: May 02, 2005
Posts: 209
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
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
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
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
https://contributions.coremedia.com/isobox4j is another such library.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading Media File Details
 
Similar Threads
A question about codec in JMF
What about human rights in USA?
Splitting an XML file
use of Runtime.getRuntime().exec
How to read Advanced properties of wmv file