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.

Where is song metadata stored - library or in-file?

Hi. I'm interested in finding out which metadata is stored in the iTunes Library databases and which is embedded within the song files themselves. My reason being that we have all our music networked, but we have individual iTunes Libraries: I don't want to change info for my wife!


I know already, from looking at other discussion, that some metadata, such as artwork, can be stored either in the file itself, or in files associated with my library, and possibly in both, depending on how the data was acquired. I believe, for example, that Rating is only stored in my Library, because my wife's iPod doesn't recognise my ratings.


What I would like to see is a list of all the metadata (i.e. all the fields that can be viewed as columns in iTunes), and whether this data is stored in the Library, in the Song File, in Either, or is duplicated in both.


Any help would be appreciated!


Cheers!

iTunes 10 for Windows-OTHER, Windows 7

Posted on Feb 16, 2012 9:37 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 17, 2012 2:03 AM

It has been a while since I worked on my SortDateAdded script but this is a pretty comprehensive list of the properties that are available with all iTunes media files and where they are stored


The following properties are only stored in the database:

  • Date Added (Can't be edited)
  • (Store) Downloaded Art
  • Enabled (Ticked)
  • Unplayed
  • Album Rating
  • (Track) Rating
  • Played Count
  • Played Date
  • Skipped Count
  • Skipped Date
  • Volume Adjustment
  • EQ
  • Start Time
  • Finish Time
  • Remember Bookmark Position
  • Bookmark Time
  • Exclude From Shuffle
  • Media Kind
  • Playlist Membership


The following properties are usually stored in tags, but not for file types: .mid.mov.mpeg.mpg.pdf.wav

  • Embedded Art
  • Track Number
  • Track Count
  • Disc Number
  • Disc Count
  • Year
  • (Part of a) Compilation
  • Part Of Gapless Album
  • Name
  • Artist
  • Album Artist
  • Album
  • Composer
  • Comment
  • Genre
  • Grouping


These additional properties not stored in the file for file types: .aif.mid.mov.mpeg.mpg.pdf.wav

  • Video Kind
  • Season Number
  • Episode Number
  • EpisodeID
  • Show
  • Description
  • Sort Name
  • Sort Artist
  • Sort Album Artist
  • Sort Album
  • Sort Composer
  • Sort Show


Date Modified is a property of the file rather than its tag.


I assume Duration is a fixed property stored in the header for audio & video files, even when they don't have a tag.


I haven't tested it yet (I wrote the script before I had access to iBooks) but I would assume that most, if not all, of the tag properties are also internalised for Books (.epub).


In general iTunes won't notice if a file is modified by another instance of iTunes or a third party tagging tool unless it has reason to access the tag, e.g. during playback, in which case it will update itself with the current details stored in the tags.


Note also that file types than can have an embedded tag to store metadata don't have to have one. Some can also have more than one which, together with inconsistencies in the way iTunes manages multiple tags, can mean that an update with one library might not be reflected in another.


If you are using a single media folder to support multiple libraries then probably the most useful tip is to disable the Keep iTunes Media folder organised option in each library, otherwise an edit in one library can make tracks go missing for another.


tt2

6 replies
Question marked as Top-ranking reply

Feb 17, 2012 2:03 AM in response to section2i

It has been a while since I worked on my SortDateAdded script but this is a pretty comprehensive list of the properties that are available with all iTunes media files and where they are stored


The following properties are only stored in the database:

  • Date Added (Can't be edited)
  • (Store) Downloaded Art
  • Enabled (Ticked)
  • Unplayed
  • Album Rating
  • (Track) Rating
  • Played Count
  • Played Date
  • Skipped Count
  • Skipped Date
  • Volume Adjustment
  • EQ
  • Start Time
  • Finish Time
  • Remember Bookmark Position
  • Bookmark Time
  • Exclude From Shuffle
  • Media Kind
  • Playlist Membership


The following properties are usually stored in tags, but not for file types: .mid.mov.mpeg.mpg.pdf.wav

  • Embedded Art
  • Track Number
  • Track Count
  • Disc Number
  • Disc Count
  • Year
  • (Part of a) Compilation
  • Part Of Gapless Album
  • Name
  • Artist
  • Album Artist
  • Album
  • Composer
  • Comment
  • Genre
  • Grouping


These additional properties not stored in the file for file types: .aif.mid.mov.mpeg.mpg.pdf.wav

  • Video Kind
  • Season Number
  • Episode Number
  • EpisodeID
  • Show
  • Description
  • Sort Name
  • Sort Artist
  • Sort Album Artist
  • Sort Album
  • Sort Composer
  • Sort Show


Date Modified is a property of the file rather than its tag.


I assume Duration is a fixed property stored in the header for audio & video files, even when they don't have a tag.


I haven't tested it yet (I wrote the script before I had access to iBooks) but I would assume that most, if not all, of the tag properties are also internalised for Books (.epub).


In general iTunes won't notice if a file is modified by another instance of iTunes or a third party tagging tool unless it has reason to access the tag, e.g. during playback, in which case it will update itself with the current details stored in the tags.


Note also that file types than can have an embedded tag to store metadata don't have to have one. Some can also have more than one which, together with inconsistencies in the way iTunes manages multiple tags, can mean that an update with one library might not be reflected in another.


If you are using a single media folder to support multiple libraries then probably the most useful tip is to disable the Keep iTunes Media folder organised option in each library, otherwise an edit in one library can make tracks go missing for another.


tt2

Jul 1, 2012 3:39 AM in response to Ryan Torchia

Hi Ryan, the details above were extracted from a script called SortDateAdded that I originally wrote for this thread two years ago. I will have tested the behavior of the current build of iTunes for Windows at that time. I don't actually recall the result of every test I performed in detail. Given they are principally values associated with video files so not really relevant for mp3 files, it is just possible that I missed something. Looking at my library now I can find test audio files in AAC, AIFF, ALAC & MP3 formats. The only one with data currently in the Show field is the AAC file, so perhaps I incorrectly assumed that mp3 files would behave in a similar fashion.


Retesting now I can confirm your finding that neither Show, Sort Show, Season No., Episode No., or Episode ID are preserved in an mp3 file removed from iTunes and then reimported. I will update my script accordingly.


For what it is worth the earlier post also leaves out other details such as which properties cannot be set for pdf, iTunes LP and iTunes Extras.


tt2

Feb 16, 2012 4:33 PM in response to section2i

Section 2i,


I haven't seen a list like that, but here are the tricky parts that can be confusing to people:


The song-related metadata such as Title, Artist and Album are stored in the file itself, except for WAV files, in which case iTunes Stores it in the library.


Artwork is stored in the file if it was added via Get Info, but in the library if it was added via "Get Album Artwork."


Rating is stored in the library. Other players, such as Windows Media Player, store rating in the file, but even if it is there iTunes will not see it.

Jun 30, 2012 5:47 PM in response to Ryan Torchia

Ryan Torchia wrote:


Show, Sort Show, Season Number, Episode ID, and Episode Number do not appear to be stored in the file for mp3s (using v2.4 tags). If I add values, remove the file from the library, then re-add the file, those values are lost.

Ryan,

That is not surprising, since those are tags normally used for shows, not for songs. I'd guess the v2.x standards for MP3s don't even support them, but if you want to check it out, the list is in this Wikipedia article.

Jun 30, 2012 8:42 PM in response to ed2345

I mentioned that mainly in response to the post immediately above, which listed them as being written to mp3s (albeit indirectly, by saying they were excluded from other formats).


Interestingly enough, the Description tag, which is included under the Video tab, is written to mp3s (in the subtitle/description tag). The other tags could be written to the TXXX or COMM tags if needed. Sort Composer is also written to mp3 tags, but there's no official frame in the spec for it.

Where is song metadata stored - library or in-file?

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