Search MP3/Ogg files by tags/parameters from the command line

audiofilesfindmp3ogg

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?

Best Answer

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.

Related Question