Rename MP3s with year of release?

For everything that's not in any way related to PureBasic. General chat etc...
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Rename MP3s with year of release?

Post by MachineCode »

Does anyone know if there's any MP3 file renamer that can append the year of release of the song? It has to be something that can use a database, because none of my MP3s have any ID3 data. Thanks.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Rename MP3s with year of release?

Post by MachineCode »

DarkDragon wrote:Here is the manual:
http://www.bradan.eu/projects/id3tagtools/manual/
I had a read but your tool doesn't appear to do what I want. How does it rename the MP3 file with the year of release of the song? I don't want to edit ID3 tags.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Rename MP3s with year of release?

Post by DarkDragon »

Sorting by ID3-Tags is what you want.
http://www.bradan.eu/projects/id3tagtoo ... l/#sorting

You can specify the filename template and it will rename all files so they match the template.

For example if you specify this pattern:
C:\Documents and Settings\Max\My Music\Sorted\%YEAR%_*.$

it will rename all files inside the list, e.g. those mp3s:

Code: Select all

FILE          YEAR
------------------
blubb.mp3     2006
abc.mp3       2003
will end up as this

Code: Select all

C:\Documents and Settings\Max\My Music\Sorted\2006_blubb.mp3
C:\Documents and Settings\Max\My Music\Sorted\2003_abc.mp3
bye,
Daniel
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Rename MP3s with year of release?

Post by MachineCode »

I tried it, but it didn't do anything. Remember what I said in my first post:
MachineCode wrote:none of my MP3s have any ID3 data
So, I don't think your tool can help. I'll keep looking elsewhere. Thanks anyway!
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
bobobo
Enthusiast
Enthusiast
Posts: 206
Joined: Mon Jun 09, 2003 8:30 am

Re: Rename MP3s with year of release?

Post by bobobo »

사십 둘 .
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Rename MP3s with year of release?

Post by MachineCode »

MusicBrainz looks interesting. It may work if I can parse their web pages. Thanks!
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
bobobo
Enthusiast
Enthusiast
Posts: 206
Joined: Mon Jun 09, 2003 8:30 am

Re: Rename MP3s with year of release?

Post by bobobo »

I guess, Musicbrainz Picard can do what you want
사십 둘 .
User avatar
kenmo
Addict
Addict
Posts: 2054
Joined: Tue Dec 23, 2003 3:54 am

Re: Rename MP3s with year of release?

Post by kenmo »

I was about to send you a link to a MP3 program I wrote in PB years ago, with a pretty big description and a file link, and then I saw in your original post that your files don't have ID3 data 8) whoops.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Rename MP3s with year of release?

Post by MachineCode »

MusicBrainz can't do it. Seems like there's a market for this sort of app.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
bobobo
Enthusiast
Enthusiast
Posts: 206
Joined: Mon Jun 09, 2003 8:30 am

Re: Rename MP3s with year of release?

Post by bobobo »

hmm .. musicbrainz picard DOES part of the work for me

f.i.

i got a video from youtube (browsercache) and extract the music as mp3 (ffmpeg)
(some KateBushStuff)

this mp3 put in the musicbrainz picard , and there doing a a scan (Ctrl-Y) and i got the albumInfo from the
musicbrainz-databases for this mp3.
This scanning takes a kind of fingerprint of the mp3 and checks this with fingerprints in the database and
results in Info if there is info.
A 'FileSave' (CTRL-S) saves this Info as ID3-Tags in the mp3

And then you can continue with Darkdragon's Code
사십 둘 .
User avatar
bobobo
Enthusiast
Enthusiast
Posts: 206
Joined: Mon Jun 09, 2003 8:30 am

Re: Rename MP3s with year of release?

Post by bobobo »

with a file renaming script in like

Code: Select all

$if2(%albumartist%,%artist%)/%album%/ $left(%date%,4)-$num(%tracknumber%,2) %title%
picard will rename the mp3 already with a leading Release-Year
사십 둘 .
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Rename MP3s with year of release?

Post by MachineCode »

Thanks for that, bobobo. Indeed, it does do PART of the work, but it has many missing matches for me. I've got 1480 songs to fix like this, so it'll help, yes; but I just wish there were a text database of songs somewhere with ID3 data as CSV fields or something. Would make it a whole lot easier and faster. :)
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
bobobo
Enthusiast
Enthusiast
Posts: 206
Joined: Mon Jun 09, 2003 8:30 am

Re: Rename MP3s with year of release?

Post by bobobo »

the picard can deal with more than one mp3 at once..
사십 둘 .
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Rename MP3s with year of release?

Post by MachineCode »

I know, but it still misses many of my songs (no matches), which means I've got to do them manually. Very time-consuming. Each search with Picard takes a while too, about 10 seconds for me, so 10 x 1480 = over 4 hours to process it all.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply