You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Any software that can rebuild iTunes songs lost to Unknown Artist/ Unknown Album

iTunes sent 80% of my songs (about 20000 songs of 475GB) into Unknown Artist/ Album folder. My songs were ripped in .WAV and .AIFF formats and residing in 1.5 TB external hard disk. I realise how to rebuild them manually (through 'locate and search' but it will take eternity to complete. I don’t have backup copy of my music file and I can’t re-import (ripping) them from the CDs.

Is there software that can rebuild songs from this Unknown artist/ album folder back to the Artist/Album folders on iTunes Media/Music/.... (or to any specified directory/folder).

All my itunes library files, music metadata are intact. Artwork, Album, Artist name and track number and song names, genres etc are showing on itunes GUI. This problem should be technically solvable by a program. Any help or pointer in the right direction will be appreciated.

Posted on Jan 2, 2012 3:17 PM

Reply
45 replies

Jan 7, 2012 5:11 PM in response to turingtest2

1428 songs were recovered with FindTracks using iTunes Library #1. And they were returned properly into \Music\Artist\Album and Music\Compilations\Album


I passed the remaining Unknown songs to FindTracks using iTunes Library #2 and the 1542 recovered songs were returned into a mix of \iTunes Media\Artist\Album and iTunes Media\Music\Artist\Album. Can you please limit FindTracks search and return within the following paths:

  • <Media Folder>\Music
  • <Media Folder>\Music\<Album Artist>
  • <Media Folder>\Music\<Album Artist>\<Album>
  • <Media Folder>\Music\<Artist>
  • <Media Folder>\Music\<Artist>\<Album>
  • <Media Folder>\Music\<Album>
  • <Media Folder>\Music\Compilations\<Album>
  • <Media Folder>\Music\Unknown Artist\Unknown Album


I guess that might avoid the return of some wild potential matches which required me to choose one of them before FindTracks continued. A max of 7 potential matches was provided and in some instances none actually matched (since the max was 7). 7 is quite wild. What identifiers in addition to tracknumber and songname did you use? size (+/-)?, tracklength (+/-)?, trackcount (i.e. 1 of 15)?, discnumber (i.e. 1 of 1, 1of 2)?

Jan 6, 2012 9:25 AM in response to turingtest2

Yeah it worked!. I had to close the itunes, Reset to Default C:\ and back in with the designated F:\iTunes Media. It seems there is no other easy way to reconnect or refresh the link other than that.


Though I have just tried on 1 album, it should work on the rest. I have learnt a few other things that publications and community members can't teach anyone unless one actually tried them out. I know I'm not through yet but I have a good glimpse of hope.


I remain grateful.

Jan 7, 2012 5:31 PM in response to thelovelyman

Since, in principle, you're only interested in picking up stuff from the Unknown Artist\Unknown Album folder, use this folder as the root for the search. Will avoid all the blind alleys. About to sleep or I'd test it out but that ought to work. The matching is all done on filename using something called Soundex coding. Again too tired to go into detail now, but it does seem that I could use the filesize property to exclude false matches in a future version..


tt2

Jan 2, 2012 5:28 PM in response to thelovelyman

The downside with WAV files as a media format is that they don't retain tag information. AIFF files however ought to contain a tag which can hold details such as track number, name, artist & album even if some more esoteric fields aren't preserved.


If iTunes wasn't managing your file & folder names when whatever "accident" happened then most of the important information could have been recovered from the paths, but if I read you right the tracks are no longer connected to iTunes and have also been jumbled up in the Unknown Artist\Unknown Album folder. You can't undo that loss of data. The tools that could identify the tracks from their audio fingerprints, such as MusicBrainz Picard, won't work since they can't write the information to a non-existent tag.


Offhand I don't think there is any easy way back from the mess.... 😟


tt2

Jan 3, 2012 9:29 AM in response to turingtest2

@ turingtest2: Thanks.


I am thinking since it is possible to manually rebuild the jumbled songs (through 'locate and search') back into the appropriate itunes Artist/ Album folder, there should be a way to automate the manual process.


I just need a written code that can search the songs in the Unknown Artist/ Album and match the songs with the itunes Library database (which I believe are still intact) and restore it for me (instead of me doing it manually). At least I rebuilt one album manually....and I think rebuilding one album wouldnt have been possible if required tags or metadata info necessary are lost.


The logic needed (which is subject refining) is:


Pick a song in the Unkown Artist/ Unknown Album folder,

Get the song's information (i.e. name of song, size in MB, length of play, date modified, song format ie. .wav or .aiff);

Match the information with that in the itunes database (size, length of play, song format, album name, artist name);

return the matched song to the corresponding Artist/ album to a specified location/directory

Repeat

End


That is pretty much what I did manually.


I am not looking for a tool that will use any database (or tags) outside what is residing on my computer. I need someone who can put my logic into a code. And if there is something that i have not put into consideration for my logic to work, I like someone to enlighten me e.g if iTunes had protected its Library database from being searched with a written code.


If my logic can work and the itunes database can be searched, I want to believe someone somewhere must have written and use such a code. And if not someone can write it. Programmers, where are you?

Jan 3, 2012 10:10 AM in response to thelovelyman

thelovelyman wrote:


Programmers, where are you?


Well I'm here. I was about to say that I still wasn't optimistic but as long as the files are in a ## <Name> format that gives us a fighting chance. The number of occassions when a given combination of track number and track name appears on more than one album isn't that high, but it certainly happens. Thankfully I've just discovered that I I can read the size of the missing file from the database, even if I can't read the last known location, so chances are that there is something I can do after all. I shall need to think about it a bit...


tt2

Jan 3, 2012 10:54 AM in response to thelovelyman

Any chance you could scan through your Unknown Artist\Unknown Album folder looking for duplicates and throw some examples back at me. Filenames that are almost the same as another but end with " 1.<ext>", " 2.<ext>" etc. I'm just testing out a modification of my existing FindTracks script which makes it look for missing tracks in the Unknown Artist\Unknown Album folder as well as the usual locations. There's some fuzzy matching logic that needs fine tuning and it might help to see some real world examples.


tt2

Jan 3, 2012 4:31 PM in response to turingtest2

Thanks for your time.


Have you tried to rebuild (ie. play) any song having exclamation ! mark against it? Give it a try. That's if you have not deleted the Unknown Artist/Unknown album folder. You will be able to play the rebuilt song but will still have the directory as Letter:/Unknown Artist/Unknown Album/Songname.wav. The fact that it can be played suggests it can be rebuilt into its Artist/Album folder which is still showing on the itunes GUI (hence in the itunes library database)


How to play the song:

Click on the song having ! mark

It will ask if you want to locate the song. Click yes.

Locate the folder form Computer/User/... Music/Unknown...

Search for the song by its name (a few letters may be enough).

Hover over the song to ensure it has same size (kB or MB) and track lenght with that itunes GUI.

Double click on the song. The ! marks dissappears and it will start playing.

Note that using 'Get Info' shows that the song is now located on Letter:/Unknown Artist/Unknown/Songname.wav folder

The song is lost again when you close itunes.


I dont think duplicate song (e.g love1.wav and love2.aiff) can pose much problem. RINSE and TUNEUP trial version program have given logic on how to eliminate duplicates.


Note: if you hover on some songs in the Unknown folder there can be a difference of 0.01 sec in track length of same song in the iTunes GUI.



Itunes organised RULE is a combination of :

iTunes/iTunes Media/Music/Artist Name/Album Name/songs

AND

Itunes/Itunes Media/Music/Compilations/Album/songs.. (for Album that has more than one ARTISTS)


The LOST song destination is:

Itunes/iTunes Media/Music/UNKNOWN ARTIST/ UNKNOWN ALBUM/songs (same applies for Compilation albums)


The song is not actually lost. It is simply not organised into the rule which itunes will naturally play.

Jan 4, 2012 12:25 PM in response to thelovelyman

If the tracks are obviously duplicates of the same song in both the iTunes GUI and the folder that isn't so much of a problem. I was thinking more of this scenario:


User uploaded file


Where what should be three potentially different takes of the same song also have the same track number on their respective albums. As a result, following a similar accident to yours, they would be called "04 Ziggy Stardust.wav", "04 Ziggy Stardust 2.wav" & "04 Ziggy Stardust 3.wav". Using the size to confim the identity is easy enough to do by eye and I could implement that in my script at some point, but I'm thinking I need to turn off the fuzzy pattern matching system that could test for there being more than one potential match in the same folder as with 20,000 files it would run too slowly. Instead I've tweaked the script so that only look for a single precise match in the Unknown Artist\Unknown Album folder for the sake of efficiency.


The result of running the revised script on the selection above would be that all three tracks would be connected to the same file (if iTunes doesn't move them after they have been reconnected) or they might be connected in the wrong order. Just in case, use the Find Duplicates tool first, put the library in name order, and manually relink any same track name & number occurrences. Also take a backup copy of your iTunes Library.itl file before you proceed any further.


I've done tweaking and testing the new build of FindTracks which should now be able to sort things out for you. I strongly recommend you disable the option to "Keep iTunes Media folder organized" for now. You can re-enable it once the script has done its work so that iTunes can reorganize the files back in their proper folders, then disable it again to avoid a similar problem in future. I have a script called ConsolidateByMoving that you can use on selected items instead. I also suggest you take a look at my User Tip on backing up.


Select a few broken tracks for the first pass, say no to the first prompt, confirm the media folder then check each "correction" before it happens. If that's good try a larger batch on automatic. Still good? Set the rest in motion and give it some time.


tt2

Any software that can rebuild iTunes songs lost to Unknown Artist/ Unknown Album

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.