Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chris14

macrumors regular
Original poster
Aug 13, 2006
128
0
Hamilton, NZ
As many of you may or may not have realized, iTunes has an annoying habit of not letting one import any video files not in "iTunes friendly" formats. This confounded me as iTunes presumably used Quicktime for playing... so if Quicktime+Perian/Flip4Mac can play them, why can't iTunes? Sick and tired of having to convert AVIs and other downloaded video types for the sake of having them in iTunes, I sought out a way of fooling iTunes via tweaking the File Type / Creator settings on files so that iTunes would accept them.

Start out by choosing the app/utility of your choice. I use FileBuddy (search here for it) but any number of utilities are capable of doing the job.

I then open up File Buddy, drag the video file/s into the main window and then click "Get Info". In the resulting window, near the bottom right is a pull-down menu labelled "Type". Whatever it is currently set to (in my AVI case, it was "VfW"), change it to "MooV" and click "Save" (or "Change All" if you are dealing with multiple files). Voila! Drag the old files into iTunes and there you go!


Hopefully this has enlightened some of you as it did me! :)
Chris14
 

cazlar

macrumors 6502
Oct 2, 2003
492
11
Sydney, Australia
Nice thinking, but there are better ways, IMO, as that might confuse other apps as to what file types they really are.

1. You can use movie2itunes to make "reference movies" that just point to your avi etc. These are pretty small, and IIRC the latest version even has some smarts about TV series and will put them in TV shows without the need to re-tag them.

2. ---This doesn't seem to work, ignore!--- More advanced, but the best overall solution is to dig into the iTunes info.plist file (show package contents) and add whatever filetypes you want. So if you have Perian, iTunes can play avi for example, you just need to tell it that it can :). So open up the .plist (not sure if you need dev tools to do that or if it is still plain text), and add the appropriate extension by duplicating one of the existing entries. Simple to do if you know what you are doing, maybe too difficult for some though if they don't. If you stuff up, you might prevent iTunes launching, so backup the file (or whole app) just in case. Once edited, you need to move the app to a different folder and back (this forces the OS to re-read the info.plist and note the change). Then you should be able to drag avi files to the iTunes dock icon etc, and it is just as supported as mp4/m4v then. You may need to repeat this if you upgrade iTunes. It's been a few versions since I did this hack as I've got movies2itunes automated enough to not bother.
 

cazlar

macrumors 6502
Oct 2, 2003
492
11
Sydney, Australia
No, to all three methods. For iPod/iPhone you will actually need to convert them at this stage. These tips are to be able to use the videos in iTunes easily, after you've extended its capabilities by adding other codecs like Perian/Flip4mac/etc.
 

Chris14

macrumors regular
Original poster
Aug 13, 2006
128
0
Hamilton, NZ
Interesting point there... would it then potentially be possible to make your iPod/iPhone able to play AVI files with a third party codec? Something to look in to perhaps!
 

cazlar

macrumors 6502
Oct 2, 2003
492
11
Sydney, Australia
Hmm, I thought I'd try hacking the plist like in my above post. This does enable you to drag the avi onto the dock icon, but iTunes doesn't actually do anything with it. I'm sure it used to work... Maybe iTunes has been changed enough so this no longer does, as it checks somewhere else? I'll keep playing and see if I can get it working.

Still can't get it to work for the moment, so I tried your script. Works great, though I had to install the "change file type and creator" action before it worked. You could also probably tweak it a bit to modify whatever you drop on it rather than asking what to change in the dialog box by using "get selected finder items" rather than "ask for finder items". But otherwise great work (at least it works unlike my tip :) ).
 

Chris14

macrumors regular
Original poster
Aug 13, 2006
128
0
Hamilton, NZ
Ah, so cazlar, you had to install the action yourself before it worked correctly?
I assumed it would work whether or not this was present... apparently not? I will look into it myself too and try to find a way so that it is entirely self-contained and self-sufficient.
 

Chris14

macrumors regular
Original poster
Aug 13, 2006
128
0
Hamilton, NZ
Alrighty... thanks to cazlar pointing out my folly by using a pre-made automator action, I have re-written it from scratch via applescript. Download the below file and unzip, then open it and navigate to the movie file. Should work fine for all if I have done it correctly... please let me know if it does not.
And again, although iTunes will recognize and play the AVIs (or any other format once processed AFAIK), they will NOT play on your iPod/iPhone sorry!

iTunes-Friendly AVIs 2.0
http://www.mediafire.com/?ye3il41nhr1

Enjoy,
Chris14
 

roblawton

macrumors 6502
Oct 12, 2007
340
0
Preston, UK
So AirPlay takes whatever's playing in iTunes and streams to the Apple TV 2.0... I wonder if the Apple TV actually processes anything...

Can anyone check if this works? Mine's arriving tomorrow :)
 

Zafeer

macrumors newbie
Nov 15, 2008
25
0
Mediafire link down

@Chris14 I tried to download the script that you made, and the mediafire link is no longer active. Would you mind reuploading it, or someone that has it, can you please create a mirror with it?

Thanks
 

oakie

macrumors 6502
Oct 16, 2008
407
2
seattle
anyone have another copy of the script they'd be willing to share? the original download link is no longer working.
 

hagar

macrumors 68000
Jan 19, 2008
1,959
4,838
If you want to add AVI files to iTunes without changing them in any way, you can also use VideoDrive (http://www.aroona.net) and choose import setting 9. That will simply add any video file "directly" to iTunes. No fuss.

However, the app clearly states that while this works, it's not recommended because iTunes was not build to deal with this scenario. I have tried it with AVI files, and it works fine. No issues yet.
 

DonCanley

macrumors newbie
Jan 20, 2013
1
0
id also like the script, anyone out there have it?!

Sorry to sound redundant here, but did anyone have any luck with finding a copy of the script Chris14 created to trick iTunes into importing AVI.s, etc.?

Plz & Thank you.
 

tim123

macrumors newbie
Aug 20, 2008
7
0
Hello,

is it possible to use this trick on itunes for windows ? can i just rename the file extension from .avi to .mov and voilà ??

I don't think rename the file's extension will work. Because you need to re-encode the video with the encoder which is supported by iTunes.
 

Jonathanson51

macrumors newbie
Mar 29, 2013
1
0
You can use 3rd party Apps like OPlayer and copy/transfer your AVI using File Sharing in iTune (connect using USB cable)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.