Skip to content

Herring's Fishbait

Family, Cool Stuff and Assorted Geekery; the finer things in life. Updated when I have something interesting to write :)

  • Home
  • Powershell
    • All PowerShell
    • Scripts
  • Gaming
    • All Gaming
    • Apocalypse Maybe
    • LAN Party Game List
  • Diary Entries
    • All Diary Entries
    • Days Out
    • Holidays
      • All Holidays
      • Australia 2013
      • Iceland 2015
      • California 2016
    • LAN Yarns
    • Tales from IT
  • Bazaar of the Strange And Unusual
  • About

Tag: Metadata

Posted on April 8, 2016April 8, 2016

PowerShell: Querying, Formatting and Exporting Tags on Picture Files

One of the many Sisyphean tasks my wife performs is keeping the all the metadata tags of our digital photographs up to date.  She meticulously keeps tabs on the tags she’s used but with the sheer number of photos, new photos being added and the children starting to take photos too it’s a pretty time-consuming task.

So;  what she needs is a list of all the tags used on each picture file (including ones missing with tags) in an easily sortable format.

Being the caring husband that I am I started spending some time solving that problem with PowerShell.

Of course, she might have been happier with me doing all the ironing for a week so she can focus fully on sorting the pictures out but this is a)  more efficient and b) a solution that she can re-use (teach a woman to (photograph) fish etc) and so is a better use of our time.

At least, that’s my excuse and I’m sticking to it. Continue reading “PowerShell: Querying, Formatting and Exporting Tags on Picture Files”

Posted on April 3, 2015July 1, 2015

PowerShell : Getting All File Metadata from a Folder

I noticed my wife going through some photos manually tracking which tags were used to classify different subjects so I wondered if I could write a little PowerShell that could return all the file metadata on a set of files (or the contents of a folder).  That would enable me to list out all the tags we’ve used on our photo collection, filter them and generally get an idea about the organisation.

After a quick Google I found a great script here from Microsoft but there were a few additional things I wanted it to do;

  • Return the information in a stream of objects so I can use the pipeline.
  • Accept input from the pipeline.
  • Use either a path to a file or a path to a folder;  if the latter is provided recurse through all the sub-directories.
  • Get more than 266 file properties.  In fact, assume we don’t know how many file properties are going to be listed on the file and get them all.

Updated script and explanation follows! Continue reading “PowerShell : Getting All File Metadata from a Folder”

Posted on October 27, 2014October 27, 2014

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.

Continue reading “Tagging MP3 Files in PowerShell”

Recent Posts

  • Favourite Video Game Music, Pt1
  • Apocalypse Maybe: A D&D Campaign Log. Part 18: Push It Good…. Push It Real Good.
  • Apocalypse Maybe: A D&D Campaign Log. Part 17: Funghis, Leggy Girls and Narak Exposition
  • Apocalypse Maybe: A D&D Campaign Log. Part 16: Derro Indemnity
  • Painting Miniatures: First Attempts (Core Space)

Most Popular

  • PowerShell: Synchronizing a Folder (and Sub-Folders)
  • XCOM 2: Legendary Ironman Guide / Tips
  • Fixes for the "Steam Stuck at a Blank Screen" Issue
  • PowerShell : Get Folder Size on Disk, One-Line Command
  • PowerShell: Check if an Email Address is Valid
  • Mission : Survive ~30 hours without sleep.
  • LAN Yarns : Warcraft 3 Maginot Line
  • PowerShell: Setting Exchange Send-As Permissions without Using the Add-ADPermission cmdlet
  • PowerShell: Finding Invalid Mailboxes in Exchange
  • Simple PowerShell to get a Computer's Specification

Interesting Read

The Equality Trust

Top Posts & Pages

  • PowerShell: Synchronizing a Folder (and Sub-Folders)
  • XCOM 2: Legendary Ironman Guide / Tips
  • Fixes for the "Steam Stuck at a Blank Screen" Issue
  • PowerShell : Get Folder Size on Disk, One-Line Command
  • PowerShell: Check if an Email Address is Valid
  • Mission : Survive ~30 hours without sleep.
  • LAN Yarns : Warcraft 3 Maginot Line
  • PowerShell: Setting Exchange Send-As Permissions without Using the Add-ADPermission cmdlet
  • PowerShell: Finding Invalid Mailboxes in Exchange
  • Simple PowerShell to get a Computer's Specification

Recent Posts

  • Favourite Video Game Music, Pt1
  • Apocalypse Maybe: A D&D Campaign Log. Part 18: Push It Good…. Push It Real Good.
  • Apocalypse Maybe: A D&D Campaign Log. Part 17: Funghis, Leggy Girls and Narak Exposition
  • Apocalypse Maybe: A D&D Campaign Log. Part 16: Derro Indemnity
  • Painting Miniatures: First Attempts (Core Space)

Categories

  • Books (3)
  • Diary Entries (85)
    • Days Out (31)
    • Holidays (40)
      • Australia 2013 (12)
      • Brecon Beacons 2015 (1)
      • California 2016 (18)
      • Iceland 2015 (7)
    • Tales from IT (10)
  • Family (5)
  • Films (7)
  • Gaming (87)
    • Board Gaming (5)
    • Hearthstone (3)
    • LAN Yarns (6)
    • Marvel Heroes Online (2)
    • MechWarrior:Online (1)
    • Painting (1)
    • Role Playing (19)
      • Dungeons and Dragons (18)
        • Apocalypse Maybe (18)
    • Starcraft (3)
  • Kickstarter (5)
  • Music (6)
    • Guitar (1)
  • Pets (2)
  • Reviews (7)
  • Technology (96)
    • Exchange (8)
    • Hardware (4)
    • Office 365 (7)
    • Powershell (75)
      • Tutorials (3)
    • UNIX (1)
    • Virtual Reality (1)
    • Windows (8)
  • Uncategorized (3)
Blog at WordPress.com.
  • Follow Following
    • Herring's Fishbait
    • Join 62 other followers
    • Already have a WordPress.com account? Log in now.
    • Herring's Fishbait
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar