Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

MP3::Tag - iTunes cannot read MP3::Tag(ged) file?

by gandalfrat (Initiate)
on Jun 26, 2007 at 21:56 UTC ( #623495=perlquestion: print w/replies, xml ) Need Help??

gandalfrat has asked for the wisdom of the Perl Monks concerning the following question:


Does anyone know of any specific limitations for iTunes reading ID3 tags generated by MP3::Tag?

Before I modify an MP3 with MP3::Tag, iTunes can read it. After modification of ID3v1 and/or ID3v2 tags in the MP3 file, iTunes sees no tagging information at all.

The MP3::Tag POD has reference to setting a config Item called id3v23_usync to FALSE for iTunes. This seems to have no effect on iTunes (iTunes 7.0, 7.1 or 7.2).

Modified MP3 tag information displays properly in WinXP file properties and in a freeware ID3v1/v2 tag editor.

Thanks for any advice you can offer. GR

  • Comment on MP3::Tag - iTunes cannot read MP3::Tag(ged) file?

Replies are listed 'Best First'.
Re: MP3::Tag - iTunes cannot read MP3::Tag(ged) file?
by Popcorn Dave (Abbot) on Jun 27, 2007 at 03:56 UTC
    ID3V1 tags are the last 128 bytes of text of an MP3 file so that should be fairly easy to check. The first 3 bytes of the tag are TAG followed by the rest of the information. You can find out more here .

    If you're having problems with ID3V2, that's a tougher issue since you're dealing with 4096 bytes of data ( I believe ).

    Since you say that the tags appear normal in stand alone applications, you might check an Apple message board to see if anyone else has this problem.

    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code

      The fact that I can see the data in Windows Exploder and through another freeware ID3v1/v2 editor means that the information is being written properly by MP3::Tag. What I don't know is what iTunes expects. No one on the Apple forums is going to have any idea about it and I doubt Apple dev is going to give away the farm and cough up how they've tweaked ID3 tags for their own purposes.
        Two quick points:

        1) Don't underestimate the apple forums. You'd be surprised who's lurking around in there.
        2) I tag all my mp3's with MP3::Tag (both v1 and v2 tags) and iTunes has no problem reading them. I seem to be using iTunes 7.4.1 (2), and MP3::Tag 0.94. Which versions are you using?

        In the end, including a code snippet is probably the quickest way to figure out what's going on. It'd also probably be helpful to use Data::Dumper to dump the data prior to setting the tag, and after the tag has been set, create a new tag from the file, dump that, and compare the two. Also, you could append v1 to each of the v1 tags and v2 to each of the v2's. This will allow you to see which tag you are seeing with the other tools you are using to view the tag. It may be that your v2 tag is empty, but the v1 is set, and itunes is happily showing you an empty v2 tag, while the other two apps either move on to the v1, or try the v1 first.

        Fair enough.

        Just a thought for you though, could your problem be that your files are MP3 and not AAC? Do you have a file from iTunes that you could look at in a third party tagger to see if that gives you any clues? IIRC, the ID3v2 tag is at the front, while the ID3v1 is at the end. I don't personally own an iPod so I don't know if that could be your problem or not.

        As to my suggestion of asking in an Apple group, my thinking was that there may be someone more versed in Apple that could get you going in the right direction.

        Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

        I would love to change the world, but they won't give me the source code

Re: MP3::Tag - iTunes cannot read MP3::Tag(ged) file?
by Khen1950fx (Canon) on Jun 27, 2007 at 01:39 UTC
    As for id3v23_unsync, the pod was referring to iTunes up to v6, but if you have 7 and later, then I think that you should probably stay with the default which is TRUE.
Re: MP3::Tag - iTunes cannot read MP3::Tag(ged) file?
by Anonymous Monk on Jun 27, 2007 at 01:08 UTC
    You're re breaking something, MP3::Tag is broken, or iTunes is broken. To figure it out you will have to learn about the mp3 format (even if its just finding other tools to verify mp3 tags, etc).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://623495]
Approved by TStanley
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2020-10-20 23:27 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (212 votes). Check out past polls.