Advertisement

Silverlight and Media Encoding

While you may not personally work with a lot of media solutions in your Silverlight application, it is nice to know the quality is there when you need it.  Silverlight supports the VC-1 codec for media which provides a standards implementation for high quality media.  I would imagine that most developers probably don’t know/care what all that means.  But if you are deploying a high-touch media solution (i.e., online TV, etc.) you want that high quality.

Our resident media expert, Ben Waggoner, just put up a great (and detailed) post about some ‘high-touch encoding’ techniques he uses and does some comparisons to some media outputs with FLV files as well.  There are some gory details for tweaks in the media outputs, much of which I won’t pretend to understand as an expert, but as a geek they seem to make sense :-).

One of the most compelling comparisons Ben notes is the quality from the VP6 (what FLV uses) and the VC-1 codec in a particular image…notice the shirt texture difference.  The VC-1 output in this sample is much more close to the original source.

FLV:

VC-1:

Ben admits in some areas he’s not sure why there is such a difference (i.e., the FLV is darker it appears as well).  It is an interesting article to read and he provides all the details, sample files and implementation for you to examine.  A lot of the things he shows for the tweak settings are a part of Encoder 2 which is to release soon.

  1. 4/30/2008 10:51 AM | # re: Silverlight and Media Encoding
    Wow, I have got to explore Silverlight more closely. It would be nice to see the difference in file sizes for steaming purposes.
  2. 4/30/2008 10:54 AM | # re: Silverlight and Media Encoding
    @eric: yes, the files are available on ben's post to examine. i'd be interested to also see comparisons of *streaming* quality (rather than progressive download) with ultra tweaked settings...perhaps some hd comparisons as well.
  3. 5/1/2008 12:17 AM | # re: Silverlight and Media Encoding
    Wow... this is definately very cool. I had a lot of problems with FLV's and media encoding. Sometimes during development I would have to change the orientation of the image just to make it look good (even though it messed up the design a bit - but it was the lesser of the two evils).

    A couple of images on the Die Young link on this blog post http://footheory.com/blogs/donnfelker/archive/2008/05/01/by-far-the-coolest-flash-app-i-ve-ever-played-with.aspx show up real nasty looking because of this exact problem.

    Interesting stuff. Good post.
  4. 5/6/2008 11:48 AM | # re: Silverlight and Media Encoding
    @donn: thanks for the link, i'm sure all encoding gets better the more you tweak it.
  5. 5/7/2008 4:30 PM | # re: Silverlight and Media Encoding
    I have tried VC-1 and Adobe H-264 codecs. I'm using Silverlight since the beginning.
    I want to present a sample to compare.

    Please check my site is www.arabul.tv which is encoded using H-264 codec at 800 kb/s.

  6. 5/7/2008 6:25 PM | # re: Silverlight and Media Encoding
    @gokhan: wow, great design!
  7. 5/15/2008 3:14 AM | # re: Silverlight and Media Encoding
    I'm having difficulty playing media in my Silverlight 2 application.

    I have implemented players using "MediaElement" (embedded as part of main Page xaml) as well as the "MediaPlayer" (separate Silverlight control) and both exhibit the same symptoms i.e. playing audio and video slowly.

    Both players can find and play the appropriate media files, but it's as if every part is being repeated three times.

    Any hints/tips greatly appreciated.
    Thanks,
    Alan
  8. 6/11/2008 9:17 AM | # re: Silverlight and Media Encoding
    Gokhan is a fucking liar, that web site is not his. That belongs to a person whose name is Enis!

 
Please add 7 and 8 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)