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?

2 Answers 2


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.

  • Those look like the most interesting approach. Thanks!
    – Renan
    Commented Oct 1, 2012 at 17:23
  • pytagsfs.org is no longer accessible. It appears that project is not maintained since middle of 2011. Same thing with tagsfs. It would be nice to revise correct answer. Commented Dec 22, 2018 at 14:40

See if ffmpeg -i filename helps.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .