<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Misc : Tag</title><link>http://powershell.com/cs/media/g/modules-misc/tags/Tag/default.aspx</link><description>Tags: Tag</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Reading and Writing MPEG Tags and Attributes</title><link>http://powershell.com/cs/media/p/9129.aspx</link><pubDate>Tue, 25 Jan 2011 13:57:45 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:9129</guid><dc:creator>Tobias</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;MPTag provides a wrapper around the taglib-sharp.dll which is freely available and allows you to read and write multimedia tag information (&lt;a target="_blank" href="http://taglib-sharp.sourcearchive.com/"&gt;http://taglib-sharp.sourcearchive.com/&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Simply unzip the package (you may want to right-click the zip file first and open its property dialog to remove download restrictions automatically applied by IE). Next, you can import the module into PowerShell:&lt;/p&gt;
&lt;p&gt;Import-Module c:\somepath\mptag&lt;/p&gt;
&lt;p&gt;This will automatically load the dll and provides you with the function Get-MediaInfo. It will return an object with media information for your media files. Call it like this:&lt;/p&gt;
&lt;p&gt;$m = Get-MediaInfo c:\folder\video_or_music_file.xyz&lt;/p&gt;
&lt;p&gt;Media information contained in $m now gets you all the info you want:&lt;/p&gt;
&lt;p&gt;$m&lt;br /&gt;$m.Tag&lt;br /&gt;$m.Properties&lt;br /&gt;$m.Properties.Codecs&lt;/p&gt;
&lt;p&gt;You can even change information in $m and write it back using $m.Save() to change multimedia file attributes.&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.91.29/MPTag.zip" length="94106" type="application/x-zip-compressed" /></item></channel></rss>