/music-migration

Scripts and tools for migrating music to Apple iCloud Music Library

Primary LanguagePowerShellMIT LicenseMIT

music-migration

Scripts and tools for migrating music to Apple iCloud Music Library.

Workflow

See workflow.gv (svg)

Prerequisites

  • ffmpeg: scoop install ffmpeg
  • AtomicParsley: scoop install atomicparsley
  • ImageMagick: scoop install imagemagick

Usage

Initialize environment (adds scripts/ to PATH):

scripts/InitEnvironment.ps1

Dump codec and other metadata to a codecs.csv file:

GetAllMusicCodecs.ps1

# Remove any paths from codecs.csv that no longer exist
CleanMusicCodecCsv.ps1

Convert all lossless media files in a directory to ALAC:

ConvertToAlac.ps1

Download vgmdb.net album info and artwork (via vgmdb.info):

DownloadVgmdbAlbumInfo.ps1 -AlbumId <id>

View and apply album/track info from vgmdb.net:

GetVgmdbAlbumInfo.ps1
GetVgmdbTrackInfo.ps1
GetVgmdbTrackInfo.ps1 | ApplyVgmdbTrackInfo.ps1 -Tag -Rename

Copy to iTunes Media folder:

CopyToiTunesMedia.ps1

Move to target folder under artist/album directory:

TODO - refactor CopyToiTunesMedia script

Configuring iTunes for migration

  • Change iTunes Import Settings (Edit > Preferences) to use ALAC instead of AAC

Other potential resources

Apps

Libraries