Simply uploading a .WMV file to a SharePoint will not play via Silverlight. You will receive a ‘Media failed to load’ error message at the bottom of the Silverlight display window. The following post will walk you through the steps on how to encode your Windows Media Video and then how to publish that file to your SharePoint 2010 site.
What you’ll need:
- Your .WMV file recording
- Microsoft Expression Encoder 4 – download
- Optional Service Pack 1 – download
- Microsoft Expression Encoder 4 SharePoint 2010 plugin – download
Restrictions: .WMV files longer than 10 minutes. The reason for this is that the free version of Expression Encoder 4 limits video to 10 minutes; however, if you have the Encoder Pro version then there no time restrictions.
Once you have the downloads installed, it’s time to get started!
-
Start Expression Encoder. The default Load a new project screen will appear. Choose Silverlight Project.

- Now to import your .WMV file. From Expression Encoder: File -> Import and browse to your .WMV file and then choose Open. Note: you can also drag and drop the file into Encoder.
- At the bottom of Expression you’ll see a line item showing the name of your imported file and that Expression is Analyzing the file.
- Once that is done you will see the details of your imported file.

- Within the right hand columns find the Output section with a few categories below it.
- Thumbnail: Here you can specify which frame to use as the thumbnail of the video. In my case it was simply the first slide in the PowerPoint deck.

- Job Output: Here you will tell Encoder the local directory to save the encoded output and the option to preview the Silverlight video result in a browser.

- Publish: In the Publish To section select SharePoint 2010 and check the box for Publish after encode. Now enter in your SharePoint Server address, Asset Library (this is the library name, not a URL address, took me forever to realize this part), and authentication method. Once you have done that simply click Authenticate and if all is well you’ll see a green dot. That is all for the Output section of Encoder.

- Another handy section you might change is the Template section. This is where you can change the way the Silverlight controls display from the dropdown menu. By default there are 16, but you can get more online if you desire.

- OK, now that we have all of our settings the way we want them, we are ready to finally Encode. (I say finally, but it’s really not that difficult).
- Simply look down in the bottom left corner and click the Encode button

- After that you’ll see the progress pie graph.

- Once that is done you’ll have a local copy of the .WMV file and it will publish that file to the SharePoint destination that you defined earlier in Step #8. Also, if you flagged Preview in Browser in Step #7 then your default browser will open and display the Silverlight video.
- Navigate to your Asset Library where you published the video, find your file and click play to view the Silverlight video.

- Reward yourself with a coffee break, great job! J
Thanks for the details – very helpful. Does this work if I wish to encode (using expression 4) a video into a Silverlight template with subtitles and wish to publish it via Sharepoint 2010?
I have yet to test the publishing direct to Sharepoint bit (awaiting password from a colleague;-) but when I encode a video into a Silverlight template with subtitles locally it gives me a folder full of .XAPs and .DAT as well as the WMV. When we tried to upload to sharepoint it appears it was only looking for one file (ie the WMV).
I am hoping that publishing to Sharepoint via Expression will sort this out as I need subtitles (which the user can turn on and off) on my video.
Thanks
Terry,
Good question, I’m not sure since I’ve never done that before. If you figure it out feel free to post back here what you did, so that it may help others. Good luck!
Brian