banner
Workin' on Windows running on Windows Azure
Posts
 
Previous Next 

Prompted by Scott Hanselman’s recent post I thought I ought to shine a light on a little known fact about Expression Encoder 3 that is a) the installer includes the SDK and b) the SDK includes a sample PowerShell module.  It is pretty easy to get going with it.. you simply:

  1. Open *admin* cmd prompt or powershell
  2. cd "C:\Program Files (x86)\Microsoft Expression\Encoder 3\SDK\samples\EncoderPowerShellModule"
  3. msbuild
  4. close and open a new powershell.

Now, to encode a folder full of videos to H.264 for the new Zune HD you would do something like

Import-Module ExpressionEncoder

gci 'C:\users\Public\Videos\Sample Videos' | Convert-Media -H264ZuneHDAVDockPlayback -Output $home\desktop

Because the module is pipeline aware, you can just pipe files rather than some more elaborate foreach-object action.

More sample scripts listed in here:

C:\Program Files (x86)\Microsoft Expression\Encoder 3\SDK\Doc\Microsoft.Expression.Encoder.chm

BTW as a reminding, Expression Encoder Standard is available free from here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=b6c8015b-e5de-46c0-98cd-1be12eef89a8&displaylang=en

The installer is currently misslabeled as trial which should be fixed at some point.. In fact, all the functionality in there is freely usable (limitations being no codecs and screen capture limited to 10 minutes).

Comments[2]
  1. 1. Made by Oscar Calvo on 9/25/2009 7:42:00 AM

    I am getting a build error: ConvertMedia.cs(1040,49): error CS0104: 'Job' is an ambiguous reference between 'System.Management.Automation.Job' and ' Microsoft.Expression.Encoder.Job' 1 Warning(s)


  2. 2. Made by Oscar Calvo on 9/30/2009 5:24:00 AM

    To fix the error add the following text at line 11 to the file ConvertMedia.cs using Job = Microsoft.Expression.Encoder.Job;


 Name
  email (will not be shown)
 web site


Close

9/7/2010 12:12:20 AM