Erase and rewrite MP3 ID3 tags

10,335

Solution 1

Picard is an amazing program, highly recommend it. +1 to ssweeny's rec.

However, if you just want to rewrite all existing tags, I think Ex Falso (apt link) and id3convert (apt) will better suit your needs. You might be able to do this all in Ex Falso, but I like knowing the original tags were removed.

Incidentally, Ex Falso has a plugin to tag via MusicBrainz just like Picard.

Process

  1. Use Ex Falso to rename all your files using the fields you want to keep (tip: hit "Preview", then "Save").
  2. Delete all your tags: find . -type f -iname '*.mp3' -exec id3convert -s {} \;
  3. Check to see tags are really gone: id3info example.mp3
  4. Use Ex Falso to retag based on the file names or MusicBrainz.

Ex Falso renaming files

Solution 2

You can also use id3v2 if you are familiar with the shell.

idv3 is a command to add/modify/remove/view ID3V2 tags, convert/list ID3V2 tags and also supports ID3V1.

To install, type:

sudo apt-get install id3v2

To list the tag already present in a file:

id3v2 -l some_file.mp3

To set the artist on a file:

id3v2 -a "The name of the artist" some_file.mp3

For more information:

man id3v2

Solution 3

For a task like this I recommend MusicBrainz Picard (apt link)

It allows easy manipulation of MP3 tags, and will even query the MusicBrainz database and update/correct your tags.

Solution 4

Give a chance to "Ex-Falso", which features both "replacing" and "add to existint" tags. It is easy to use and with a few clics you can do some useful tasks, like: Edit Tags, Tags from Path, Rename Files and Track Numbers.

Information about this software can be reached by clicking the next link: http://code.google.com/p/quodlibet/

A screenshot is placed here for your convenience:

enter image description here

Share:
10,335

Related videos on Youtube

Iain Lane
Author by

Iain Lane

I'm a free software developer. Mostly I work on Linux distributions, focussing up until now on the desktop and everything that makes that up.

Updated on September 17, 2022

Comments

  • Iain Lane
    Iain Lane over 1 year

    Background

    I have a Squeezebox, and am running the Server on my (Natty) machine. This server scans my music directory and adds all files found therein to the server's library, to be streamed over the network to the devices.

    Problem

    There's a problem though — not all of my files are recognised due to the server's tag parser being buggy. I've filed a bug upstream about this.

    Question

    To fix this problem, I'd like to erase and rewrite the ID3 tags on my MP3s. Ideally I don't want any of the tags to change. Do you know of a program or script which can do this? Somehow iterate over all of my files and save their metadata, then erase it from the file leaving just the audio before writing it back. I'm trying to avoid writing a script to do this myself (although I will do if nobody knows a program/can come up with one). Hopefully this clean rewrite will then be accepted by the server. If not, well, at least we tried.

    • Admin
      Admin about 13 years
      you could also give EasyTag a try. sudo apt-get install easytag.
  • Iain Lane
    Iain Lane about 13 years
    Cheers, I'm going to mark this as the answer — it did what I asked for, but unfortunately that didn't fix the problem :( Silly Squeezebox
  • djeikyb
    djeikyb about 13 years
    Maybe it's a problem with tags written at the end vs beginning of the file? I don't know if ExFalso lets you choose, but I know Foobar2k does. You could install fb2k in wine, strip the tags again, and experiment with the order.
  • Iain Lane
    Iain Lane about 13 years
    I just used mp3gain to normalise the mp3s (and thereby rewrite the data), and now they work. Oh well.