MarkF

As a general rule, iTunes (the application, not the store) and Apple Music (the application that has replaced iTunes on macOS, not the subscription service) organizes its music library on disk in the same way that a B2 wants its music: Artist folders, containing Album folders, containing tracks. This is true no matter how you can search or display the music in the iTunes or Music application interface.

The easy way, therefore, to copy your iTunes or Apple Music files -- the ones you actually own, either by purchasing them or by ripping CDs; subscription files you have downloaded for "offline use" are probably encrypted and cannot be used outside of the Apple Music application -- is to find and copy the Library folder structure.

There is only one reason we need to run the application: to look in its Preferences in order to locate where on the disk it keeps the actual music library.

While there are similarities between iTunes (which is still the program that runs on Microsoft Windows) and Apple Music (on current versions of macOS), I have split out the Windows and Mac steps in order to show appropriate screen images for each.

iTunes on MS-Windows:
Run iTunes, and on the Edit menu click on Preferences.
iTunes-Edit-Prefs (cropped).png

In the Preferences window that pops up, click on Advanced.
iTunes-Prefs-Advanced(edited).jpg

Note that the option "Keep iTunes Media folder organized" is checked; I believe this has been the default setting for a long time (at least since 2003). The path that you need is shown as the "iTunes Media folder location"; navigate to it in the Windows Explorer (some people call it File Manager).

You can now close iTunes, as we will be working in the Explorer.

Under the iTunes Media folder is a folder called Music; inside that are the artist folders, containing album folders, and finally tracks.
iTunesMedia-Music-XP.png
(here you can see tracks in the right-hand pane, and in the left-hand pane you can see they are in the album "It's Not Me, It's You", under the artist Lily Allen. The Address bar shows the artists are the top level under the Music folder in iTunes Media.)

You can right-click on the Music folder and select Properties to find out how big it is.


Apple Music on macOS:
Launch Music, and on the menubar under Music click on Preferences. In the Preferences window that pops up, click on Files.
Mac Music Prefs Files(edited).jpg

Note that the option "Keep Music Media folder organized" is checked; I believe this has been the default setting for a long time (at least since iTunes in 2003). The path that you need is shown as the "Music Media folder location"; navigate to it in the Finder.

You can now close Apple Music, as we will be working in the Finder.

In this example, the Music Media folder is called "iTunes Music", because that is where the files were when macOS was upgraded and Music replaced iTunes. Inside that are the artist folders, containing album folders, and finally tracks.
Mac iTunesMusic.png

You can right-click on the iTunes Music folder and select Get Info to find out how big it is.

Final steps, on either platform:
If you have a USB drive big enough to hold the entire music folder, just drag (copy) the whole folder to the USB drive. At the very least you will have a backup copy that way.

If you use a thumb drive (also called "USB stick"), usually they come from the factory formatted to FAT32, which is what the B2 wants. It won't use anything else. If you have a different USB drive with nothing on it that you want to keep, the B2 can format it for you -- formatting erases everything already there, so be careful if it has files. Then if you copy the iTunes or Music library folder to it, the B2 will be able to read it directly and you should be able to Import directly from the USB drive.


Some things to be aware of if you have a Mac:
Macs have an annoying habit (well, it's annoying to the rest of us) of storing information in files in two "forks" -- a data fork, which in this case contains the actual music, and a resource fork, which contains some information used by macOS (and nothing else). On a Mac-native file system -- HFS, HFS+, AFS -- they occupy one file. On other file systems -- FAT32, ext4 -- they get split into two files. Viewed from a Mac they still look like one file, but when you get those files over to the B2 you will probably see filenames starting with ._ (dot underscore), and they'll all be really small. Those are the resource forks for the corresponding data files. The B2 has a "clean up" function on the menus to get rid of them for you. (Settings > Maintenance > Cleanup)

The B2 can play MP3 files; it can play M4A files; it can play WAV, FLAC, and ALAC files (but you are unlikely to find WAV or FLAC on a Mac or from Apple, as Apple chose to use AIFF instead of WAV and ALAC instead of FLAC). It's possible to convert AIFF or other formats if you need to. (On a Mac I would use XLD, which is freeware.)

Nothing but your iTunes account can decrypt M4P files, which are Apple's DRM protected files. iTunes could burn audio CDs from them, which effectively strips the DRM; maybe Music can do the same. M4P files will not be playable on a B2.


Rob H.
Hi Mark,

Thanks for this. It should help prospective B2 purchasers with Macs considerably.  Just one point though:

"Nothing but your iTunes account can decrypt M4P files, which are Apple's DRM protected files." - Fortunately, I have found that this is not actually the case.

I use a third-party app called 'Tuneskit Audio Converter' (other apps may also do this) on my Mac to convert my purchased music (M4P) to either Flac or MP3.  It took me a little while to arrive at the best (simplest) way to do this on this app, but having done that it's now a straightforward  process for me to move my purchased music to my B2 via NAS, all from the Mac. This doesn't require usb sticks or burning CDs and takes a max of a few minutes per album. Once done I then Scan disk on the B2 to reflect the changes.

BTW:
I also use Aiseesoft Video Converter for Mac to go the other way and convert B2 Flac albums to ALAC for use in Apple Music (again, other Apps may also do this, but I already had this one).  Again, using the B2 NAS feature is a godsend as everything is done easily via the Mac.  With these I now have complete flexibility and can listen to all my B2 music on my iPhone or iPad wherever I like.   

I hope this allays any potential Apple users fears about purchasing a B2.

Rob 
 
Reply 1 0
MarkF
Rob H. wrote:
Just one point though:

"Nothing but your iTunes account can decrypt M4P files, which are Apple's DRM protected files." - Fortunately, I have found that this is not actually the case.

I use a third-party app called 'Tuneskit Audio Converter' (other apps may also do this) on my Mac to convert my purchased music (M4P) to either Flac or MP3.  It took me a little while to arrive at the best (simplest) way to do this on this app, but having done that it's now a straightforward  process for me to move my purchased music to my B2 via NAS, all from the Mac. This doesn't require usb sticks or burning CDs and takes a max of a few minutes per album. Once done I then Scan disk on the B2 to reflect the changes. 


Tuneskit is either using iTunes (to play the file) and capturing the output as it is sent to the DAC inside the Mac (or Windows) hardware -- I have used at least two other products to do the same thing -- and re-encoding it, or they have figured out how to "crack" the FairPlay DRM used by Apple, and still need your iTunes (store) account keys (which they can probably get by looking for an appropriate plist or registry entry, as appropriate). If they're cracking FairPlay, Apple's lawyers are probably on their trail even as we type.

Either way, after you have converted an M4P file, by whatever means, it's not an M4P file anymore, and my statement is still true. If you have M4P files in your music library, the B2 cannot play them. You will have to make them into something unencrypted first. *That* was my point.
Reply 1 0
Rob H.
Mark, I am sorry to have apparently touched a nerve. I wasn't implying any criticism of your points, however I took the statement to imply that it is not  possible to play 'purchased' Apple music files on the B2, hence my post.  
Reply 0 0
MarkF
Rob H. wrote:
Mark, I am sorry to have apparently touched a nerve. I wasn't implying any criticism of your points, however I took the statement to imply that it is not  possible to play 'purchased' Apple music files on the B2, hence my post.  

You haven't touched a nerve, and I understood your point.
My concern is with the possibility that, having transferred files directly from an iTunes library to a B2, someone might wonder why some of their files don't play while others do. That is why, after covering the mechanics of transferring the files, I mentioned which filetypes can be played, and one that is definitely -- not merely likely -- to be problematic.

I have some old m4p files that needed conversion. I also have some aax files (Audible audiobooks); those have a similar problem: they use DRM so they are tied to one's Audible account. If you can break the DRM, or otherwise convert them to unprotected files, then there is no problem, but in the format the vendor supplies, the B2 can't play them even if you copy the files there.
Reply 0 0
Ken
Can you drag and drop the iTunes file (artist) on the Mac across to B2 using Nas on the Mac web ui. Is that the easiest way to transfer your iTunes cd collection to the B2?
Reply 0 0
MarkF
Ken wrote:
Can you drag and drop the iTunes file (artist) on the Mac across to B2 using Nas on the Mac web ui. Is that the easiest way to transfer your iTunes cd collection to the B2?

Probably. I haven't tried it.

A few things to be aware of:
 - NAS transfers, especially if the B2 is using wifi, feel quite slow. Large transfers will take a while -- be patient. (I'm judging tby the NAS transfers I've done from a Windows 10 computer.)
 - The Mac will drop files starting with ._ (dot-underscore) all over the B2's music directory as it does the transfers, because the B2 isn't using a Mac-native filesystem. The Mac won't show them to you, but they'll be there. There will probably be some .DS_Store files created in some directories, too. The B2's cleanup function will get rid of them for you (Settings > Maintenance > Cleanup).
 - You absolutely must run the B2's Scan Disk function after doing the NAS transfer, because otherwise the Brennan application software won't know about the added or changed files.
Reply 0 0
Daniel Taylor
Ken,
You mentioned doing "NAS on the Mac web ui."  I'm not sure really what you meant by that.  NAS is a yes.  But you can't drag and drop into or out of the B2's WebUI.
Reply 0 0
MarkF
Quote:
You mentioned doing "NAS on the Mac web ui."  I'm not sure really what you meant by that.  NAS is a yes.  But you can't drag and drop into or out of the B2's WebUI.

Ah, I overlooked those extra words -- @Ken ,  Daniel is correct to point out that you cannot drag things into or out of the web interface. You will have to use a Finder window.
Reply 0 0
Rob H.
Ken,
As Daniel says, you can't drag and drop in or out of the B2 web-ui or itunes/music from your Mac.
However, assuming you have the B2's NAS function set up on your Mac, the B2s music is viewable as 'Artist/Album/Tracks' folder structure through Finder on your Mac, not the Brennan web-ui.  
To transfer an artist's music purchased from iTunes in Apple Music to the B2 requires a file conversion from M4P to FLAC or MP3 via a third-party app, as per my earlier response to this thread.  Apple and Brennan do not provide this conversion. I tend to work at the album rather than artist level in the converting app and when complete after a minute or so, I can drag or copy the album to the B2 artist's folder in Finder. Note that Drag and drop and Copy and Paste alone without conversion won't work.  
As already highlighted, any such changes to the B2's music library will need a subsequent Scan Disk to be incorporated permanently.   
Reply 0 0
hippyengineer
Mark F
 
thanks very helpful, now I know I can do it, I’ll get on and buy a Brennan player
Reply 0 0
MarkF
Note that the B3 does not (yet?) have the "cleanup" function on its menus, so when you copy your Apple Music library to a FAT32-formatted USB drive, before you disconnect the drive from your Mac you should run the dot_clean command on the USB drive. Apple has lots of information about dot_clean: it's their own tool.
 
Otherwise you will get all those annoying and unneeded resource forks cluttering up your Brennan system.
 
Reply 0 0
brefe
In order to avoid MAC to create the ._ file on NAS devices I followed this post and worked for me:
 
Reply 0 0
joe u
I know from reading this thread that you can transfer your itunes library to a B2 but my question is if there is a duplicate album on I tunes will it overwrite the one on B2, write a completely new one, give you a choice or what?  
Reply 0 0
MarkF
I know from reading this thread that you can transfer your itunes library to a B2 but my question is if there is a duplicate album on I tunes will it overwrite the one on B2, write a completely new one, give you a choice or what?  
If you're doing it with Import from a USB, or Upload via the web, it will just overwrite.
If you are doing it via NAS, it will do whatever your operating system does.
Reply 0 0
Reply