Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any utility to search MP3/Ogg files by tags (or other characteristics) from the command line? (e.g. finding all audio files longer than 10 minutes with genre set to 'Rock').

I found this, which suggests using mp3info, but it's only for MP3 files and the proposed solution isn't the most elegant thing. Any other suggestions?

share|improve this question
up vote 3 down vote accepted

There are many FUSE-based "Media File Systems". tagsfs or pytagsfs might fit your needs, not sure if it's readily available, though (e.g. there's no official Debian package as far as I can see).

Be aware that traversing the resulting (virtual) file systems is not advisable; i.e. just ls your query, don't find.

share|improve this answer
Those look like the most interesting approach. Thanks! – Renan Oct 1 '12 at 17:23

See if ffmpeg -i filename helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.