7

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?

3

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 Oct 1 '12 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. – Sergey Karpushin Dec 22 '18 at 14:40
3

See if ffmpeg -i filename helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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