
Leave a comment below if you use this in an interesting way. I’m using this weekly to tag a single file, but this could just as easily be used to bulk tag (or retag) MP3s, or move MP3s around based on information in their properties.Įnjoy. Save() method to write those changes back to your MP3 file. Once you’ve set whichever properties you want to set, use the. That’s not something that’s specific to taglib or MP3 files, that’s a PowerShell thing. Properties that have both “get” and “set,” like “Grouping” are read and write. Properties with only a “get” in their definition, like “IsEmpty” are read-only.

Here are a couple of properties to compare: Most, but not all, of the properties can be written to.

Mp3tag change album name full#
To get the full list of properties you can get and set, issue this command: I’m only setting a few properties, but there are many more. $pic = ::createfrompath( "c:\Dropbox\Netcasts\Todd Netcast 1 - 480.jpg") $ = "Netcast 185 - Growing Old with Todd" $media = ::Create((resolve-path ".\Netcast 185 - Growing Old with Todd.mp3")) Again, I used a relative path, but an absolute path works too ::LoadFrom( (Resolve-Path ".\Common\taglib-sharp.dll")) I used a relative path so I could off using the Resolve-Path cmdlet
Mp3tag change album name code#
Here’s roughly the code I used to tag the MP3 for Netcast 185. It allowed me to easily add both the text and picture information I needed. I was able to find a library, Taglib, that did the job. Fortunately PowerShell can wedge its way into all kinds of places. I was surprised that I couldn’t find one. I spent some time trying to find a way to edit MP3 tags in PowerShell natively. Time to bring out the big guns, PowerShell. So I have had to import the MP3 into Windows Media Player and add the cover art that way. I’m way too pretty to not be on the cover art of my MP3. Windows will let you manually tag the text fields of an MP3 file in Explorer, but you can’t add cover art that way. But it doesn’t tag the MP3 files it produces. The program I use to produce my Netcast, Camtasia, is fantastic, absolutely fantastic.

One piece of that is putting all the tags on the MP3 files. Because of that I’ve tried automate as much of the production as I can. As the years have gone by I’ve tried to improve the Netcast, but that almost always means I spend more time producing it. Not only am I the star, I’m also the writer, director, producer, and janitor. As most of you know, I do a wildly successfully weekly SharePoint Netcast.
