Welcome to irritatedVowel.com Sign in | Help

POKE 53280,0: Pete Brown's Blog

Silverlight, WPF, Woodworking, .NET Programming, CNC, Nature, and other topics.

Pete Brown writes on a number of topics including Silverlight, WPF, .NET, woodworking and working as a consultant in the DC area. On most forums, Pete goes by the name Psychlist1972. Pete has worked at Applied Information Sciences (AIS) since 1996 where he currently performs as a lead architect and project manager.

Subscribe to my feed

Add to Technorati Favorites
Applied Information Sciences - My Employer

Community Events



World Domination

who's online

Networks


View Pete Brown's profile on LinkedIn

AddThis Social Bookmark Button

Expression Encoder SDK Now Available

This one almost slipped past me.

Lots of folks have asked about ways to automate encoding videos for Silverlight applications both on the client and on the server.

Ben Waggoner just announced that Expression Encoder 2 includes a .NET object model for automation.

The code in the SDK example looks really simple and straight-forward:

static void Main(string[] args)
{
    MediaItem mediaItem = new MediaItem(@"C:\Users\Public\Videos\Sample Videos\Bear.wmv");

    // Create a job and the media item for the video we wish
    // to encode.
    Job job = new Job();
    job.MediaItems.Add(mediaItem);

    // Set up the progress callback function
    job.EncodeProgress 
        += new EventHandler<EncodeProgressEventArgs>(OnProgress);

    // Set the output directory and encode.
    job.OutputDirectory = @"C:\output";
    
    job.Encode();
}

static void OnProgress(object sender, EncodeProgressEventArgs e)
{
    Console.WriteLine(e.Progress);
}

I haven't tried it out yet, but it looks like it would work in both server and client scenarios as they provide a number of examples including console and wpf. If you give it a spin, let me know how it works for you.

  Add to Technorati Favorites
Posted: Friday, June 06, 2008 10:57 AM by Pete.Brown

Comments

Einar said:

Do you know how the licensing model for the Expression Encoder is? It's not free like the Windows Media Encoder, right? So it will not enable people to use this SDK without buying one Expr. Media Encoder license per server/workstation I guess ...or am I wrong?
# June 6, 2008 3:35 PM

Christopher Steen said:

ASP.NET The difference between ID, ClientID and UniqueID [Via: Atanas Korchev ] New AJAX Control Toolkit...
# June 7, 2008 6:03 AM

Christopher Steen said:

Link Listing - June 6, 2008
# June 7, 2008 6:04 AM

Community Blogs said:

On the heels of yesterday's 17 links, there's 11 today, and at least one other hidden away. I've
# June 9, 2008 6:12 AM

Kevin LaChapelle said:

Expression Encoder Express is free like Windows Media Encoder. Download the trial from http://www.microsoft.com/Expression/products/overview.aspx?key=encoder and after the trial period is over it will become Express and continue to work in a feature limited mode.
# July 8, 2008 6:03 PM

Mohan B V said:

Can we use expression encoder 2 sdk in ASP.net applications to capture video and stream it to windows media server?
# July 11, 2008 3:50 AM

Kevin LaChapelle said:

The current v2 SDK does not support the live streaming parts of Encoder. That is something on the feature list for an upcoming release.
# July 15, 2008 5:20 PM

Vikas kumar said:

I am unable to encode Live Recording (from Hardware device like Camera, Microphone, Headphone, etc.). And also found no any help about this topic. While it rund fine in the newer version of Expression Encoder editor
# August 8, 2008 9:50 AM

Sergio said:

Hi, so to build an application using SDK that schedule some video sequences, video can be file (avi, wmv..ecc..ecc or streaming)...which way do Have I to follow? I can't add media file and streaming video to the "job"?
# September 23, 2008 8:06 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Enter the text you see in the image:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS