background preloader

Temperature

Facebook Twitter

Monica. Tim Sneath : Extracting Metadata from Windows Media files. In this article, I'll describe how to use the Windows Media Format SDK to access the metadata embedded in Windows Media files for cataloguing purposes. Also included is two managed classes written in C# that vastly simplify the usage of this SDK. Download MediaCatalog 1.0 (35KB) Introduction Over the last year, I've been gradually filling a spare hard disk with rips of all my CDs. It's fantastic to be able to play any CD from my catalogue so easily, and it means I can hide the CDs themselves away from my young daughter's sticky fingers! The trouble is that it's difficult to extract the metadata from a Windows Media file. This SDK isn't easy to program against from managed code, however - it's pretty grungy COM interop. Using MediaCatalog I've divided up the managed library into a high-level API and a low-level API. Low-Level API To access the low-level API, you instantiate an object of type MetadataEditor, passing the constructor the filename of the media file you're interested in.

Developer Resources. Zone.