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

iTunes app on two different computer to same media library?

I have read a lot of information about an iTunes Media Library on a AEBS NAS USB drive, but much of it is dated or not precisely related to my question.


I have two computers (Computer A and B) both within my home which I use at different times and purposes. But in all cases, I would like to have my iTunes Media Library available to both computers while I am working. Currently my iTunes Llibrary resides on the internal drive of Computer A. I know that I can do home sharing, but that seems to share music only, but I have video and pictures that I also want to see on both computers.


1. I want to place my Computer A iTunes Media Library (contains music, video, apps) and it points to pictures on Computer A on to a USB 3.0 drive connected to AEBS as well as copies of all the pictures.

2. I then want to connect Computer A iTunes app to this NAS based iTunes Media Library and Computer B iTunes app to the same NAS based iTunes Media Library. When I open iTunes on either computer the full digital assets should be available to me.


QUESTIONS:

1. Will this work and what kinds of problems and difficulties will I run into? What happens when I am syncing several devices to this NAS library (iPhone, iPad, iPod touch)

2. Since this will contain important media, what is the best practices backup strategy for this NAS drive.


Thanks

Posted on Nov 20, 2013 9:29 AM

Reply
22 replies

Nov 20, 2013 1:03 PM in response to e2photo

I can't answer all your questions but I see a problem. A key part is the library file which is a single file. If iTunes on one computer has it open (and when it is open iTunes constantly changes it with playcount updates, etc.) your second computer will not also be able to open the file. You'd probably get a message about the file already being open in another application.


You could create two library files, one on each computer, but then you'd have to keep them independently up to date. They can share the same media.

Nov 20, 2013 5:33 PM in response to Limnos

Hi Limnos

Thanks... but I have been told by the folks at the Apple Store that this will work. The fact that I am posting here should say that I am worried by the responses from the Apple Store!! I have been told that the play number and play lists are stored on the respective computers.


Nonetheless, I know that I can link my iTunes App using the ALT(Option) key on launch and point the app to the file iTunes Library.itl file and everything comes with it.


I have 6 albums and 4 files in my iTunes Media Library folder

Folders include

Album Artwork

Automatically Add to iTunes (empty)

iPod Games (contains two folders, iQuix and Klondike, both folders are empty)

iTunes Music (seems to contain all of the actual files, music plus video)

Mobile Applications (contains Apps that I have downloaded)

Previous iTunes Libraries (a bunch of files, some of which have the .itl extensions)


Files include

iTunes Library Extras.itbd

iTunes Library Genius.itbd

iTunes Library.itl

iTunes Library.xml

iTunes Music Library.xml.


I think most of the structure are sort of understanable, but what is contained in itl and .xml files. Is this were play lists, number of plays stored.


I believe that if I am told the file is in use and I can not access the file, that would be ok. But if I corrupted the database, that probably would not be ok.


Thanks

Steven

Nov 20, 2013 8:13 PM in response to e2photo

If they are saying the play counts etc. are stored on each computer then we are talking about each computer having its own set of library files. iTunes works with two main sets of files. One set is the all your media files. The other one is the main library file (iTunes Library.itl) which tells the application what music you have in your collection, where the files are located, playlists, metadata like albums and artist which exist in both the files and in the library file, and metadata such as playcount which is only present in the library file.


All those other files in your list are part of the library file structure, but the critical one is iTunes Library.itl.


I mentioned having two library files as an option, but then you have to maintain each one. If you add a new file to one computer but forget to do so on the other then the file will be present on your media drive but it will not appear in library 2. Likewise, if you create a playlist in one library you will have to do it on the otehr ocmputer too (presuming you want the same library content and structure on each computer).


I believe that if I am told the file is in use and I can not access the file, that would be ok.

Sure, but then you cannot have two users working with the library simultaneously. You need to be very scenario specific when asking questions here as major decisions can be based upon small details. If you are one person using two computers then you can shut down iTunes when you move to another computer. If there's multiple users trying to use the library at the same time then I strongly suspect you will get the error message.


It sounded to me like you wanted just a single library file which would work but only if only one iTunes is running at any one time.

Nov 21, 2013 4:49 AM in response to Limnos

Thanks. I am getting there


First, do you know what is in the iTunes Library.xml file approximately?


I had defaulted to the single library model because I figured that was the only way it would work, but it sounds like I could have two different library files on separate machines, but they point to a single media library. Does that mean two different computers access the same media at the same time (a very unlikely scenario on my part, but just curious)



Two library file option

So how does one go about configuring each machines unique library to point to the single media library residing on the NAS?


I understand that in this scenario, in the event that one computer downloads some music, the second computer will not know about it. I assume that the second computer will see that the music was downloaded and I will be able to added the music to the second computer (but does this add a second file of the music or just a link the copy that resides in the media folder?)


Likewise, if on computer 2 I add video content, computer 1 will not know about the video content. How does computer 1 make that video content visible?


I really appreciate your help.

Nov 21, 2013 7:03 AM in response to e2photo

First, do you know what is in the iTunes Library.xml file approximately?

What are the iTunes library files? - http://support.apple.com/kb/HT1660


More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management


What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html


Where are my iTunes files located? - http://support.apple.com/kb/ht1391


The .xml file is a mostly but not completely identical library file in a format readable to applications that can use .xml You could open it in a text editor if you wished and it would be somewhat understandable. The .itl file can only be read by iTunes.


I had defaulted to the single library model because I figured that was the only way it would work, but it sounds like I could have two different library files on separate machines, but they point to a single media library. Does that mean two different computers access the same media at the same time (a very unlikely scenario on my part, but just curious)

Yes, the two library files would point to the same media collection. I believe a media file could be played by two computers at the same time (but don't have a setup to try it) because it isn't really being opened by an application for editing, just read. Perhaps if both people got info on a file at the same time and both were trying to change the metadata such as track name at the same time it might present problems because then the file is open for editing.


Two library file option

So how does one go about configuring each machines unique library to point to the single media library residing on the NAS?

I have zero experience with NAS but I believe it is just like having an external drive. You would need to relocate your media to the NAS using the links below. Now you have your library files (the .itl, .xml, a few other organizational files and folders) on an internal and the media files on the NAS. I am not sure at this stage but in moving the media it may have left the files on the internal drive so you'd want to get rid of those media folders since they are no longer being used. Now copy the trimmed iTunes folder from one computer to the other. At this stage the iTunes folder should just be library files (I avoid calling a media collection a media "library" since this is confusing in iTunes; the library is the library file). When you start iTunes on the second computer the library is already configured from the first computer to look for the media files on the NAS.


iTunes 11 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH12165 - more information at: https://discussions.apple.com/thread/5036221?answerId=22026652022#22026652022


Note when using NAS. The NAS must be up and active before starting iTunes or iTunes will not be able to find your files and will give you a bunch of broken links. Nor will it start looking for them again when you turn on the NAS except one by one as you try to play them and it suddenly finds that particular file is there after all. iTunes has a quick look for the files as you start it and won't look again until you try to either edit or play a file. To get rid of hte broken links in bulk you will have to quit iTunes, wake the NAS, then start iTunes again (or use a script that is horribly slow if we're talking telling iTunes to re-check file links for a whole library).


I understand that in this scenario, in the event that one computer downloads some music, the second computer will not know about it. I assume that the second computer will see that the music was downloaded and I will be able to added the music to the second computer (but does this add a second file of the music or just a link the copy that resides in the media folder?)

Again I don't have hands-on experience with this. I can only say what I think might happen and if you find something isn't working as we thought then we'll have to modify methods. I am presuming you are leaving your preferences set to default. iTunes will now be storing media on the NAS but organized as it would as if it was on the internal. When you add media on one computer it will place the media in the correct folder. If you go to that folder from computer 2 and drag it to an iTunes window it may just see there is already a file in the correct location and you're fine with no duplicate. If it places a second copy in the folder then there may be ways to get around this, perhaps by holding down the option key while dragging the file which normally tells iTunes to add an item to the library but use the file where it is currently located (which in your case would be okay since it is located in the right place already).


I would think this would work for movies too. I have zero movies in my iTunes library so again I can't speak from experience.


If you do this you might wish to check the Dougscripts web site. It will require diligence on your part to keep both libraries up to date. I recall there is a script you can run which will browse a folder you select and add files to your library that are in the folder that are not already in the library. I don't know if it will work down folder levels which is what you would really need, or it just looks at one level in the folder and not search a while library folder and subfolders.

Nov 21, 2013 9:00 AM in response to Limnos

My experience has been different versions of iTunes will not play nicely with a shared library. The easy solution is to have iTunes running on one computer (for fun, we'll call it your master or server). Turn on Sharing in that iTunes preferences. On the second computer (slave or workstation), it's copy of iTunes would simply access the shared library from the master, with the option to update play counts.


Yes, I know the OP noted they 'can' share, but from their post, they seem unaware that everything can be shared. Music, Videos, pictures via iPhoto sharing. It's all there.

Nov 21, 2013 9:46 AM in response to Paul Vail

Thanks Paul and Limnos,


I use Aperture and Final Cut Pro X. Can those be used to share. Would rather not have to invoke another program. I drop my video into my iTunes library and I use the Share Photo feature that is in iTunes, but have not found a share method for the videos. So iTunes will let me share photos and music, but not video (perhaps I am missing something)


A bit of an update.


I have placed my entire iTunes folder onto a NAS drive connected via an AEBS. I have pointed my iTunes App on each computer to that NAS iTunes library linking it with the ALT key/start iTunes strategy.


I have tested both computers and streaming a 27 minute 1080p video to my TV via Apple TV works thus far from either computer.


AND, if one iTunes App is open, you get a message saying that the library or drive is locked and you can not connect.

Nov 21, 2013 10:01 AM in response to e2photo

Again no experience with either app.


Yes, as I suspected, iTunes will of course open the library from any computer but you can only have it open by one at a time. You don't have that issue where each computer has its own library file but then you have all the updating issues unless you don't care about that (for example where each computer is used by a different person with their own music tastes and you just share media).


Another point as Paul Vail observed, each computer must have the same version of iTunes. No running iTunes 10 on one and iTunes 11 on another (but I'm guessing that is not the case from your report that the library would open from both computers).

Nov 21, 2013 12:27 PM in response to e2photo

Um, no. the other two programs are editors, not intended as servers. iTunes (and iPhoto) were engineered to share as an option. Your tunes and movies are stored in iTunes libraries. As mentioned before, you can share from one iTunes to others (or iOS devices such as AppleTV/ipod/ipad/iphone). The shared content is accessed from within the appropriate apps on the other devices -- not pointing those apps or applicatioins to the folder containing your library, but rather handshaking with the iTunes (or iPhoto) running on the server/master machine.


Edit your content in FCP, export the final product, import that into iTunes and enjoy. I would NOT recommend having iTunes on each computer on the network accessing a centralized sharepoint such as your NAS independently. The support files in the iTunes library will be at risk.

Nov 22, 2013 8:36 AM in response to Paul Vail

Thanks again!


Paul, as I understand the share option, Computer 1 needs to be one with iTunes running to share its library with Computer 2. Is that a correct understanding?


If only one iTunes can have the library files open at a time, I am not sure I understand why the NAS is at risk (presumably from corruption). Can you comment further?


I am sort of thinking of implementing the following strategy

1. Make a complete copy of Computer 1 iTunes Folder

2. Place it on the Computer 2 and point the iTunes Application to this new iTunes folder

3. Both computers will be maintained with identical software

4. From this point forward, both computers will diverge in content, but they are routinely backed up on separate devices.

5. Music downloaded from iTunes on either machine will be available to both machines so I can keep the music library essentially the same. (iTunes account is the same)

6. Manually, I will need to add/move new video clips and pictures created/stored on Computer 1 over to Computer 2.


This approach seems like the least risky in terms of iTunes Library corruption, but the most difficult in terms of maintaining identity.


What about placing the pictures on the NAS and pointing both iTunes to those picture files? To the best of my knowledge, the picture files are not stored within the library, only the references to the location of those picture files.


Thoughts?

May 1, 2014 10:01 AM in response to e2photo

In case anyone finds this thread, I'll add a bit about my recent experience with sharing an iTunes library between multiple Macs by storing the iTunes files and media on a Synology NAS.


  1. I set up my Synology NAS, which is pretty simple to do.
  2. Copied over my whole iTunes library over to the NAS
  3. I set up all my Macs to automount the NAS using the instructions here:http://useyourloaf.com/blog/2011/01/24/using-the-mac-os-x-automounter.html
  4. Now, I did the option-click startup of iTunes to choose which library to use. I browsed to the automount that I set up in step 3 and found my way to the iTunes Library.xml on the NAS


Step 3 is the hardest part if you're not familiar with setting up automounts. I'm now pretty familiar with the process. 🙂


I set this up yesterday on two different Macs. I have one iMac with iTunes running all the time since it acts as the hub for our Apple TVs. I have a MacBook Air that is also connected from which I basically just play music while I work.


So far I have not seen any problems, though as I said, I've only been running this since last night. I tried to see if play counts and ratings would update on the iMac as I played songs from the MacBook Air, but that does not happen. I suspect that those types of changes will not be reflected on the iMac until I restart iTunes on the iMac. For me, that's not a big deal since, again, the iMac is basically just running iTunes to share its content with Apple TVs.


I'll post an update if anything terrible or unexpected happens.

May 1, 2014 10:21 AM in response to e2photo

After playing around a bit, I have found that whichever computer opens iTunes first will stay in charge of writing to the iTunes Library.xml file until it quits. So if I open iTunes on my iMac first, and then open iTunes on my Air, any activity on my Air is completely ignored. That includes play counts and ratings, but more importantly it includes adding or deleting items from the library.


So if I decide to rip some new music or download music from the iTunes Store on a Mac that did not open the iTunes library first, then none of those changes will be saved. When I quit and restart iTunes, it will not show that new music. The music itself is of course there on the NAS, but the library XML doesn't have a record of it.


So just a word of warning to anyone who wants to share an iTunes library on a NAS and expects to be able to do significant manipulation of the library from all computers. It will likely get messy unless you decide on one computer acting as the "master" and always make sure that its the first to start up iTunes.


For my particular situation, this works fine. For others, it may not.

May 1, 2014 10:44 AM in response to Alex Kim

Alex Kim wrote:


So just a word of warning to anyone who wants to share an iTunes library on a NAS and expects to be able to do significant manipulation of the library from all computers. It will likely get messy unless you decide on one computer acting as the "master" and always make sure that its the first to start up iTunes.

To go back a bit earlier, it works fine if you have one iTunes folder on the NAS and every computer uses that one iTunes folder.

Only one compuer can open the iTunes library at a time.

When you open iTunes and any computer, all changes will be refelcte on all othere computers (when you open iTunes on those computers.


The issue comes if the iTunes library.itl file is on each computer. Changes are not reflected on other computers.


The music itself is of course there on the NAS, but the library XML doesn't have a record of it.

iTunes does not care about the iTunes library.xml file. It is created only so other apps can access iTunes.

May 1, 2014 10:52 AM in response to Chris CA

Yeah, I made a mistake in my previous posts. Anywhere I wrote "iTunes library.xml" I actually meant to write "iTunes library.itl". I copy/pasted the text from earlier in the thread and wasn't paying close enough attention to what I grabbed.


To go back a bit earlier, it works fine if you have one iTunes folder on the NAS and every computer uses that one iTunes folder.

Only one compuer can open the iTunes library at a time.


I guess this is the part that wasn't clear to me before trying things out myself. I find that any number of computers can open the iTunes library at a time, but only the first one will actually be able to modify it. If you just want to play what's in the library, it works fine (for me so far).

May 1, 2014 11:43 AM in response to Alex Kim


I guess this is the part that wasn't clear to me before trying things out myself. I find that any number of computers can open the iTunes library at a time, but only the first one will actually be able to modify it. If you just want to play what's in the library, it works fine (for me so far).

So each computer at the same time, is using the same iTunes library.itl stored on the NAS?

And it can be opened multiple times (using the iTunes Server on the NAS)?


iTunes library = iTunes folder (with iTunes library.itl, etc. and all iTunes media, regardless of where it is located).

iTunes media folder = By default, contains the media in iTunes and by default is located inside the iTunes folder.

iTunes app on two different computer to same media library?

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