Question

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

Was it helpful?

Solution

You can try Entagged Library for getting metadata from media files

OTHER TIPS

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.

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

mplayer -identify -frames 0 filename
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top