Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent iTunes from seeing MP3 song files as videos Apps
The iTunes 4.9 update includes some code that may make MP3s created in apps other than iTunes appear to be QuickTime movies. If this is the case, then album art may not be added and the normal MP3 data will also not appear in the listing for the song. This is due to incorrect type and creator codes for the file(s) in question. More specifically, if the files have a type of MPEG, then iTunes thinks they're video files.

iTunes' MP3 files are given a type of MPG3 and a creator code of hook (note that these are case-sensitive). So if you have MP3 files which appear in your iTunes library listing as QuickTime movies, use a utility like DropCT (or a hundred others) to change their type and creator codes. Then launch iTunes, sort by kind, do a Show Info on the first QuickTime file in the list, and press Command-right arrow (or click Next) repeatedly until you move through all of the 'bad' files. As you move through them, they will magically be corrected as iTunes loads the file and realizes they are now 'good' files.

Note that you may, instead of the above process, do a "convert to MP3," which will give the newly-created files the proper type and creator codes. However, this may yield a lower quality file due to transcoding.

[robg adds: If you have the Developer Tools installed, you can use SetFile to change the type and creator codes. I tested this hint with an MP3 without any type/creator information, and it worked just fine. So it's just those files which have been tagged with MPEG that will cause issues ... but I don't know which apps might be doing this.]
    •    
  • Currently 3.00 / 5
  You rated: 5 / 5 (6 votes cast)
 
[19,159 views]  

Prevent iTunes from seeing MP3 song files as videos | 13 comments | Create New Account
Click here to return to the 'Prevent iTunes from seeing MP3 song files as videos' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Why re-encode?!
Authored by: Lou Kash on Jul 19, '05 10:12:04AM
Note that you may, instead of the above process, do a "convert to MP3," which will give the newly-created files the proper type and creator codes. However, this may yield a lower quality file due to transcoding.
Why that?!
Re-encoding MP3 files is the very last thing you would want to do.

You can strip the type/creator codes completely by using e.g. FileUtilsCM.plugin from Abracode.
On an OS X machine the type/creator codes for MP3 are rather useless unless you want to share your MP3 files with an OS 9 Mac.
(To reveal an iTunes file in Finder, select it in iTunes and press command-R.)

If the data structure of the MP3 file itself or of the ID3 tag is corrupted, check the file with MP3 Trimmer.
With MP3 Trimmer you can repair, edit, split or join MP3 files without re-encoding them, i.e. without any loss of quality!

[ Reply to This | # ]
Why re-encode?!
Authored by: Voxel on Jul 19, '05 06:56:21PM

Actually, you don't even need correct types and creators for iTunes in OS 9. You can drag any types of files to the OS 9 iTunes icon, and it will open them based on the file extension (ie: .mp3). Same goes for the open dialog, since it will show files that have any type and creator but have an .mp3 extension.



[ Reply to This | # ]
Why re-encode?!
Authored by: barryjaylevine on Jul 20, '05 02:07:11AM

That's why I indicated it was not the best thing to do in my original post.

---
-----
Two things in this world aren't overrated: Macintosh and Lemon Meringue Pie.



[ Reply to This | # ]
Prevent iTunes from seeing MP3 song files as videos
Authored by: Aloha on Jul 19, '05 10:16:34AM

Since downloading the latest versions of Quicktime and iTunes, iTunes doesn't recognize MP3 files on my desktop and won't let me import them. Any ideas? Many thanks!



[ Reply to This | # ]
Prevent iTunes from seeing MP3 song files as videos
Authored by: Lou Kash on Jul 19, '05 11:37:51AM

I guess it's related. Get FileUtilsCM and check if the files have "TVOD" as Creator code (i.e. QuickTime). If they have, strip it and they should import fine.

It's not necessarily an iTunes 4.9 problem, by the way, I've seen it with earlier versions as well.



[ Reply to This | # ]
Hint breaks a lot of things...
Authored by: stet on Jul 20, '05 12:25:50AM
Of course, by reimporting the songs, you'll lose
  • Ratings
  • Playcounts
  • Added dates
  • (apparently) any changes to ID3 tags
  • The songs will be removed from any playlists they are in

    [ Reply to This | # ]
  • Hint breaks a lot of things...
    Authored by: barryjaylevine on Jul 20, '05 02:13:09AM

    Actually, it breaks nothing as there is no "reimporting" going on. The change to the type and creator (although creator may not even be necessary) is made to the songs -already- in the iTunes library and the process to then get iTunes to recognize the change (and correct the display of the songs' ID3 tag data) is simply to "get info" on each song which simply updates the library's db with the tags already present in the files.

    We're not reimporting anything; we're correcting what's already there.

    ---
    -----
    Two things in this world aren't overrated: Macintosh and Lemon Meringue Pie.



    [ Reply to This | # ]
    Hint breaks a lot of things...
    Authored by: Lou Kash on Jul 20, '05 07:02:03AM

    If re-encoding is the last thing you want to do, then re-importing is definitely the *second* to last thing to do... ;)

    iTunes isn't "Ă¼ber-intelligent" but it isn't that dumb either.
    If you replace the original file with a new one, iTunes will accept all the new tags from the file but it will leave any existing ones intact, with the exception of the cover art which always has to be written directly *into* the mp3/AAC file.

    In other words:
    Let's say you have a corrupted MP3 file which shows up in iTunes with all its tags and cover art but it doesn't play right.

    You repair the MP3 with MP3 Trimmer which strips *all* metadata (ID3 tags incl. cover art) from the file, leaving only the blank audio file.

    Then you replace the old file with the repaired file. By "replacing" you indeed have to actually *delete* or at least rename the old file, while giving the old name to the repaired file, otherwise iTunes might still track the old one; even in Trash.
    iTunes will now still show all tags and existing track info for the repaired file except for the cover art. The iTunes metadata are not written to the ID3 tags of the file automatically, however. You need to change (temporarily) at least one tag in iTunes to do so, e.g. by adding a character (e.g. a space) to the track's name and then deleting it again (which you can do pretty fast by selecting the track in iTunes and pressing Enter > Down Arrow > Space > Enter (now the ID3 tag gets written to the file) > Enter (again) > Down Arrow > Backspace (to remove the extra space at the end of the track's name) > Enter). That will write all compatible tags back to the file except for the cover art which you need to add manually (or by using any of those hunderds of helper apps/AppleScripts out there).

    Note that using the Convert ID3 Tags command from the iTunes Advanced menu will write all tags *except* the Track Name tag, if the MP3 file didn't have any ID3 tags at all. (If you ever use that command, make sure to select ID3 Tag v2.3!) Again, the Track Name tag will be written only after you have altered it using the method described above.

    If you only *edit* an MP3 file using MP3 Trimmer without stripping the metadata, all you need to do is simply replace the original file. No need to reimport either, iTunes will treat the new file like it were the original file, only updating its new length.

    Trust me, I've done it more than thousand times already... :)
    (I'm DJ, so I need to alter MP3s quite often.)



    [ Reply to This | # ]
    Hint breaks a lot of things...
    Authored by: drewk on Aug 15, '05 07:05:20PM
    If one only changes the type and creator code (with DropCT or 'setfile') then this hint does NOT change the data of the MP3 file. It only changes the sidecar "resource fork" part. Any existing MP3 tags are unchanged and will become visible in iTunes. If the file is copied to *nix or dumbdows, the MP3 file is completely unchanged.
    Don't reimport however...

    andrew

    [ Reply to This | # ]
    Prevent iTunes from seeing MP3 song files as videos
    Authored by: ppatoray on Jul 20, '05 06:50:44AM

    This doesn't work for me. Can anyone else confirm that it works for them?

    On my system, iTunes 4.9 is converting the "Kind" column to for any file that I do a "Get Info" for. When opening the info window, the "Kind" column is immediately converted from "MPEG audio file" to "QuickTime movie file" in the main iTunes window. It isn't actually converting or changing the file itself, just the information shown in the column "Kind". Can anyone else confirm this, or is it just something on my system?



    [ Reply to This | # ]
    Real men use PyObjC
    Authored by: caek on Jul 20, '05 09:21:38AM
    If you fancy giving your Python a workout, you could do worse than use the method described in this PythonMac post.

    [ Reply to This | # ]
    Real men use PyObjC
    Authored by: caek on Jul 20, '05 09:21:42AM
    If you fancy giving your Python a workout, you could do worse than use the method described in this PythonMac post.

    [ Reply to This | # ]
    Prevent iTunes from seeing MP3 song files as videos
    Authored by: drewk on Aug 15, '05 05:48:02PM
    If you have a lot of files, it might be easier to do this from the Terminal. Assuming you have developer tools installed, you can do this change in two steps.

    1) Fire up Terminal
    2) Type:
    $cd [path to root of directories with MP3 files to change, usually ~/Music] 
    $find . -iname "*.mp3" -exec /Developer/Tools/setfile -c "hook" -t "MPG3" {} \;
     



    [ Reply to This | # ]