views:

197

answers:

3

Hi,

As a "learn Groovy" project, I'm developing a site to manage my media collection (MP3, MP4, AVI, OGG) and I wasn't able to find any open source library to retrieve meta data from this files. I was thinking of something like Linux's file command. I've found few libraries on Java that do one or the other (like mp3info), but not a total solution even for just music files. Does such a library exists? Will this become another hobby project? Thanks for the answers

A: 

You can try Entagged Library for getting metadata from media files

Alexey Ogarkov
Very interesting. Seems like they are already doing what I want to achieve except for the movie files. Thanks. I'll keep this question open for a few more days anyway.
Ubersoldat
A: 

If you're willing to exec an external process, ExifTool can extract metadata from just about every file format ever invented. Dispite the name, it can pull metadata from more than just jpgs with exif tags.

basszero
There are many tools that I know of that can achieve this... but not in Java
Ubersoldat
A: 

As a last resort, you could use a dump from mplayer:

mplayer -identify -frames 0 filename
Liam
That's the sort of thing I would prefer to avoid.
Ubersoldat