How to find MP3 files without ID3 tags?

2

I have a lot of mp3 files without any ID3 tag information. This is very annoying, because my iPod does not show them correctly.
My Banshee shows them as "unknown artist" and the title. I would like to find them all in a bunch to batch update them.

Is there an easy way to do this?

fisotemp

Posted 2011-01-21T20:15:22.100

Reputation: 21

Answers

1

Here's a bash one-liner:

find . -iname "*.mp3" -exec bash -c \
    'soxi "{}" | grep -q "^Artist" || echo "{}"' \;

This finds all mp3 files, uses soxi* to check their metadata, and echos the filename if there is no "Artist" tag (if grep fails to find anything).

You can change Artist to what ever tag you care about (e.g. Title, Album, etc.). Run soxi on a properly-tagged file to see the available options.

* You may need to install libsox-fmt-mp3 (or similar) on top of sox to make soxi work with mp3 files [thanks dirkt!].

naught101

Posted 2011-01-21T20:15:22.100

Reputation: 911

1I just tried this in Debian, and found I have to install libsox-fmt-mp3 on top of sox to make soxi work with mp3 files. – dirkt – 2016-09-27T04:57:34.677

1In addition to soxi, you can use any other id3 program, e.g. id3tool, id3mtag, id3v2 with a similar one-liner (though the argument to grep will be different). – dirkt – 2016-09-27T05:02:19.797

@dirkt: I guess id3v2 is the most likely to be available on any given system, yeah? But it doesn't seem to have consistent output across files... ahh, because it reports id3v1 and id3v2 tags very differently... – naught101 – 2016-09-27T06:27:58.017

I've no idea what is to be "most likely" installed, not even on Debian, and not at all on other distros. In the end, it doesn't matter - just use the one that works best for what you want to do. – dirkt – 2016-09-27T07:26:32.340

1

You can use Windows Explorer or any of the taggers mentioned by studiohack for this. Basically, get a list of all your MP3s loaded into an application that will let you sort on (for example) Title.

Aw, just saw your Linux tag. You may be able to do the same thing using similar tools in whatever window manager you are using; it probably depends on what version of Linux you are using.

To do it in Explorer:

  1. Press Windows Key -> F, or Start Menu -> Search -> For files or folders (in WinXP; it's slightly different in newer OSes)
  2. Search for files named "*.mp3" (without the quotes), on whatever hard drive stores your MP3s
  3. When the search is done, make sure the Title column is showing (right click on the column header and check the "Title" checkbox if it is not). Then click the Title column header to sort.
  4. All the files at the top of the list, with no title, are untagged.

Now I wonder what you plan to do with all of these files. If you're just going to delete them, you can do it from there. If you want to keep them and tag them, then you can use one of the taggers. Some or all of them provide a way to set the MP3 tags from the filename, if you want to quickly get them tagged.

Sometimes files with no tags were downloaded incompletely or are corrupted, so it could be that your player is having problems with them because they are not valid MP3 files.

stone

Posted 2011-01-21T20:15:22.100

Reputation: 1 187

Nope, there are not similar tools integrated in the Window Manager for Linux; Linux has its own tools. – dirkt – 2016-09-27T05:00:12.020

A quick Google search shows there are hundreds of different Linux window managers. But you are sure that none of them can sort by mp3 tags? – stone – 2016-09-28T01:05:14.603

KDE can. Right click the column headers, and in Audio there are options for Artist, Album, Duration, and Track. – naught101 – 2016-09-29T04:10:43.883

Clever trick to see those that aren't tagged! Thank you! – Xeon06 – 2013-03-29T20:47:56.023

0

From Lifehacker: Six Best MP3 Tagging Tools:

http://lifehacker.com/5266613/six-best-mp3-tagging-tools

Among the list are:

  • Mp3Tag - this one supports batch editing of MP3 tags.
  • MediaMonkey
  • TuneUp
  • ID3-TagIT
  • MusicBrainz Picard
  • Foobar2000

studiohack

Posted 2011-01-21T20:15:22.100

Reputation: 13 125

You've seen the "linux" tag? – dirkt – 2016-09-27T05:00:33.557

2I don't search for a tagger, but for a command, an application to find files without a tag – fisotemp – 2011-01-21T20:28:00.893

1True, but those tools will likely allow you to sort and/or filter by one or more tags. With that, you can find files w/o artist tag and then update -- which is the end goal you described in your question. – Doug Harris – 2011-01-21T21:46:05.337

Agreed, not only are the taggers the best way to get the list, but they can perform the next step as well. Just having a list of filenames won't be much use. – stone – 2011-01-21T22:26:39.873

1Don't bother with the rest, just go with MusicBrainz Picard. It's crossp-platform and open-source and it will do a great job identifying and ret-tagging (and renaming, moving, if you want) your files. Can't recommend it more. – Pat – 2012-07-25T03:39:55.613