I wrote a script to rename all my music files with preceding disk and track numbers here. The script ran fine, but there were a few niggles and skipped files. So after a bit of polish, here’s the updated script (and what I changed). Continue reading “PowerShell: Renaming And Sorting All My Music Files, Updated”
PowerShell : Renaming And Sorting All My Music Files
We have a large collection of MP3s and FLACs and most of the time they all work great. I’ve spent quite a bit of time getting their metadata correct so the various players we have all play them in the correct order as they use their Disc and Track number metadata to sort them.
However my wife’s and I’s cars both can read music from SD cards. This is great as they’re a lot faster to process than phone libraries over Bluetooth but the downside is that the only sorting they do is via the filename. This means every album plays it’s tracks in alphabetical order.
Ideally to fix this what I want is a script to rename each music file according to it’s Disc Number, Track Number and Title metadata. The script I wrote to do exactly that follows, with some explanations after. Continue reading “PowerShell : Renaming And Sorting All My Music Files”
The Geek Lifecycle
I was thinking about how when I got into one thing as a child it often got me interested in something else. So how to did I get from Lego bricks to System Design, PowerShell and Sci-Fi?
What we need, is a flow chart! To the Bat-Publisher! (below the line).
Tagging MP3 Files in PowerShell
One of my main familial duties is as CD-Ripping monkey. Once we get a CD I need to convert it into a format friendly for the various streamers, phones, players, alarm-clocks and secret digital diaries (yes, really). This usually just involves ripping an album to Flac and MP3 and uploading it to the file-server.
Some audio-books and multi-CD albums are more difficult though; the more CDs there are the more chance that iTunes or the FreeDB databases have mismatches of metadata between the discs (maybe CD #1s album title is “Status Quo Greatest Hits CD1′ and CD#9s album title is ‘Status Quo – Greatest Hits (CD 9)’). Clearly mismatched metadata is a crime against humanity and I can’t leave it uncorrected.
You can only imagine how diabolical the Harry Potter Unabridged audiobooks are; each has 25+ CDs with with 50-70 files per disc. When we get a new-one they often sit on my desk for days, taunting me while I choke back a sob and try not to remember the manual corrections required the last time I converted one.
This time my PowerShell-fu is strong and it comes to the rescue with some automatic tagging. The details are below.
Moron rock : ONLY rock
Rocksmith is awesome. So many great songs to learn and play; Muse, Rolling Stones, Jack White etc.So how come I spent so much time learning this;
That’s a rhetorical question by the way. I wonder if you can disable comments…