Search Wiki:
Resource Page Description
Code samples for the Windows Media Foundation Team Blog.

This page hosts samples from the Windows Media Foundation Team Blog.

Sample Name Download Description Blog Entry
MFCopy MFCopy.zip Transcodes files from one format to another using the source reader and sink writer. http://blogs.msdn.com/mf/archive/2009/12/16/mfcopy.aspx
MFManagedEncode MFManagedEncode.zip A managed tool written in C# and XAML that converts files from one media format to another. http://blogs.msdn.com/mf/archive/2010/02/18/mfmanagedencode.aspx
MFMediaProcDump MFMediaProcDump.zip Reads media source attributes and metadata from a media file. http://blogs.msdn.com/mf/archive/2010/01/12/mfmediapropdump.aspx
MFSimpleEncode MFSimpleEncode.zip Transcodes files from one format to another using the transcode API. http://blogs.msdn.com/mf/archive/2009/12/02/mfsimpleencode.aspx

To build the samples:

  1. Install the Windows SDK for Windows 7.
  2. Install Visual Studio 2005 or Visual Studio 2008.
  3. Run the Visual Studio Registration tool:
    1. From Start, choose All Programs/Microsoft Windows SDK v7.0/Visual Studio Registration/Windows SDK Configuration Tool.
    2. In the Installed Windows SDK Versions list, select v 7.0.
    3. Click Make Current.
  4. Open the solution (.sln) file from Visual Studio and build the project.

Here are some tips for building the samples:

  • If you are using Visual Studio 2005, you may see the following error when the /WX linker option is enabled: "Fatal error LNK1103: debugging information corrupt." To resolve this error, install the following hotfix: http://support.microsoft.com/kb/949009/
  • If you are using Visual Studio 2008, the project file must be converted from Visual Studio 2005 format to Visual Studio 2008 format. Visual Studio will automatically give you the option to convert the file when you open it. After the file is converted, you cannot open it in Visual Studio 2005.

For more information about Media Foundation, see the Media Foundation SDK documentation on MSDN.


Last edited Feb 18 2010 at 10:59 PM  by ASTDC, version 8
Updating...
Page view tracker