PDA

View Full Version : How to strip leading track numbers on MP3s?


Jim_MDP
8th June 2011, 10:48 PM
BTW... this is in Windows.

I have a collection of MP3s in multiple folders each file having a leading number (1-500).

Will I need to batch these from the command line or can I find a util for this?

Googling has found the neat little Mp3tag app but all suggestions are regex and don't seem to work.

As I neither read nor write regex, I can't tell what's not working as recommended.

I'm gonna put this aside for the night so any help is appreciated.

Hugo
8th June 2011, 11:59 PM
I use Mp3tag regularly, it depends how structured the filenames are, are they something like:
1 song1.mp3
2 song2.mp3
...
13 song13.mp3
...
113 song113.mp3
Then you could use the following in the filename-filename renaming:

Old filename pattern: %1 %2
New filename pattern: %2

that will remove the numbers of the files mentioned above (there must always be a space between the number and the name, if you have files with "14-song xyz.mp3" those will get converted to "xyz.mp3")

I would suggest that you look into using ID3 tags (you can do that via the filename-id3 renaming)

That Mp3tag tool has a good preview function, you basically cannot do anything wrong with it.

Lord Emsworth
9th June 2011, 05:30 AM
I am not a Win user, so I won't be able to point you to a utility or something.

But I wonder, do you have a problem with filenames or with ID3 tags? If the former, you would ideally use something that allows you to batch rename files. As of now, you seem to be dealing with the latter, i.e. the ID3 tags.

Dogbreath
9th June 2011, 05:47 AM
If you are interested in changing the file names check out
http://portableapps.com/apps/utilities/ant_renamer_portable

madurobob
9th June 2011, 05:54 AM
I use "the godfather". Its a freeware GUI utility that lets you update file names and tags (Album, Artist, track Number, etc...) one file at a time, or apply to all files in a folder at once. I find it *very* useful when ripping the 100s of CDs I have.

http://www.jtclipper.eu/thegodfather/

Jim_MDP
9th June 2011, 11:58 AM
Well... they're going into iTunes (yeah, save it... I've got an iPod :) ), so I don't think it's the tags, but rather the filenames. And it's worse than just the leading numbers...

eg:
001 - Bob Dylan - Like A Rolling Stone.mp3


This is not going to end well. :)

DrDave
9th June 2011, 12:29 PM
I've solved similar problems by importing into Excel (e.g. from above using - as a delimiter) and then building the batch file within Excel using concatenation.

You can probably use this to edit an iTunes library file also to directly import them also with track names and albums.

elgarak
9th June 2011, 12:30 PM
Well... they're going into iTunes (yeah, save it... I've got an iPod :) ), so I don't think it's the tags, but rather the filenames. And it's worse than just the leading numbers...

eg:
001 - Bob Dylan - Like A Rolling Stone.mp3


This is not going to end well. :)
iTunes does not care (much) about the filenames. It looks into the meta-data to generate it's own meta-data that is listed in its library. If the meta-data is already reasonably set-up (with entries in the "Name" (of the file/track/piece of music", "Artist", and maybe "Album" fields), it will show up properly in the iTunes fields.

I'm also fairly certain that it will take track-/play-number from the track-number in the filename.

If the meta-data is empty, is uses the filename. It's possible that it simply puts the filename into it's "Name" field only. You will then have to edit the meta-data in iTunes manually.

iTunes itself will generate filenames with tracknumber and title in the format "xx title" (for instance, if you import/rip a CD and look-up the meta-data online).

madurobob
9th June 2011, 01:03 PM
Well... they're going into iTunes (yeah, save it... I've got an iPod :) ), so I don't think it's the tags, but rather the filenames. And it's worse than just the leading numbers...

eg:
001 - Bob Dylan - Like A Rolling Stone.mp3


This is not going to end well. :)

TheGodfather will handle that easily. One of the built in routines is to rename the selected files based on... almost any criteria you input. You can rename all files based on all available track tags, file name tags, audio file info (bitrate, duration, etc...) and folder tree.

So, if you want to remove the leading numbers you'd just need to tell TheGodfather to rename the files as Artist - Track and click "rename".

OnlyTellsTruths
9th June 2011, 02:47 PM
TheGodfather will handle that easily. One of the built in routines is to rename the selected files based on... almost any criteria you input. You can rename all files based on all available track tags, file name tags, audio file info (bitrate, duration, etc...) and folder tree.

So, if you want to remove the leading numbers you'd just need to tell TheGodfather to rename the files as Artist - Track and click "rename".

Wouldn't that only work if the ID3 info is complete? If the ID3 info isn't available you would still have to enter all of the song names manually... unless it can parse them from the old file name somehow.

madurobob
9th June 2011, 09:21 PM
Wouldn't that only work if the ID3 info is complete? If the ID3 info isn't available you would still have to enter all of the song names manually... unless it can parse them from the old file name somehow.

True. You need ID3 tags to work with. But, iTunes is going to want at a minimum Artist and Title anyway, won't it?

Anyway, there appear to be zillions of batch file renamers out there that can trim file names. In addition to Ant Renamer mentioned above:


Renamer (http://www.albert.nu/Programs/Renamer/default.asp)
1-4a Rename (http://www.1-4a.com/rename/rename-features.htm)
Bulk Rename Utility (http://www.bulkrenameutility.co.uk/Main_Intro.php)
Oscars Renamer (http://www.mediachance.com/free/renamer.htm)
File Renamer Basic (http://www.sherrodcomputers.com/products_filerenamer.cfm)


I could go on....

They all look relatively similar in terms of function. They all should pretty quickly be able to get rid of leading numbers in file names.

elgarak
9th June 2011, 09:54 PM
True. You need ID3 tags to work with. But, iTunes is going to want at a minimum Artist and Title anyway, won't it?

Anyway, there appear to be zillions of batch file renamers out there that can trim file names. In addition to Ant Renamer mentioned above:


Renamer (http://www.albert.nu/Programs/Renamer/default.asp)
1-4a Rename (http://www.1-4a.com/rename/rename-features.htm)
Bulk Rename Utility (http://www.bulkrenameutility.co.uk/Main_Intro.php)
Oscars Renamer (http://www.mediachance.com/free/renamer.htm)
File Renamer Basic (http://www.sherrodcomputers.com/products_filerenamer.cfm)


I could go on....

They all look relatively similar in terms of function. They all should pretty quickly be able to get rid of leading numbers in file names.

iTunes takes Title and Artist (and other info) from the ID3 meta-data, if present. If not, it puts the file name in its title field.

There's no need to change the file name itself.

It's easiest to get a nicely ordered iTunes library if the ID3 tags are filled out.

Whether or not the file name has a track number at the front is totally inconsequential.

As long as each file name is unique. But even if not, iTunes would produce duplicate entries, and you would have to manually resolve them.

Pantaz
9th June 2011, 11:31 PM
I'm a fan of Mp3 Tag Tools (http://massid3lib.sourceforge.net/). All kinds of options for renaming files (including correcting/changing capitalization), copying/updating tags, etc. All completely customizable.

Captain_Snort
10th June 2011, 04:21 AM
Musicbrainz Picard (http://musicbrainz.org/doc/MusicBrainz_Picard) is well worth having a look at. Will do what you want, and if the tags not complete will 'listen' to the mp3, create a footprint and compare to the database and offer suggestions.

Hugo
11th June 2011, 02:15 PM
Mp3Tag would be able to deal with those kind of names, just look at my 1st reply, for your example you would set the old patern to %1 - %2 - %3 and the new to %2 - %3 to end up with Bob Dylan - Like A Rolling Stone.mp3
You can also do a Name > ID3 conversion or ID3 > name, Mp3Tag also has a super handy preview function so you basically can't do wrong.