File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Reading Media File Details Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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: 32765
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.


Android appsImageJ pluginsJava web charts
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: 32765
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: 32765
https://contributions.coremedia.com/isobox4j is another such library.
 
 
subject: Reading Media File Details
 
Threads others viewed
use of Runtime.getRuntime().exec
How to read Advanced properties of wmv file
What about human rights in USA?
Splitting an XML file
A question about codec in JMF
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture