Windows Media Foundation and Windows 7

Windows 7 Logo Windows 7 introduces some additional functionality to a feature that was added in Windows Vista, Windows Media Foundation. The goal of the Windows Media Foundation is to ease control of media playback for developers. The idea is to remove the need for individual codecs and instead rely on a single Windows package for media playback, much like DirectX does for game platforms.

In Windows 7, as noted on Microsoft MSDN, there have been some additional changes made to the Windows Media Foundation framework.

What's New in Windows 7

Microsoft Media Foundation was introduced in Windows Vista as the replacement for DirectShow. Of course, DirectShow is still supported in Windows 7, but developers are encouraged to use Media Foundation in their new digital media applications.

The improvements to Media Foundation can be summarized as follows:

  • Better format support, including MPEG-4
  • Support for capture devices and hardware codecs
  • A simplified programming model
  • Improvements to the platform

We are all fairly well aware that Windows 7 includes native support for certain formats, such as H.264, and it does this through the use of Windows Media Foundation. Media Center and Windows Media Player have both been updated to use this new framework in Windows 7. The benefit is added support for a number of codecs out of the box.

There is, however, a downside to this new implementation. The protected pipeline used in this new framework doesn’t allow outside access to user installed codecs for native formats by default. For instance, if you wanted to use FFDShow to decode avi files, which are natively supported by WMF. This means much like the (often indefinite) wait for x64 codecs and splitters users will once again be put to the sidelines to wait for updated decoders that use WMF.

Media Foundation Process Chart

Current work-arounds for this situation have led users to renaming system files and other chicanery in order to get their favorite codecs working through Media Center. In more recent versions of Windows 7’s beta, however, the ability to accomplish this hack has been crippled. The consensus seems to be that as of beta 7057, the rename hack no longer works.

It seems that once again users may be forced to wait on new solutions to the codec problem that have already been hard suffered for Windows Vista Media Center users. It seems we may once again be at the whim of those gracious programs who take it upon themselves to better Microsoft’s meager implementations and give us a little more control of our media.

Expect updates on Windows Media Foundation and Windows 7 Media Center in the near future. Keep up to date on the situation by subscribing to the Hack7MC RSS Feed or by following on Twitter.

FFDShow Video in Media Center

logoThere are many choices in the world of codecs (used to play back video and audio on the pc). One of the most popular is FFDShow. While there is already a guide on using FFDShow Audio in Media Center there is the other half to consider as well: FFDShow Video. While we are able to get FFDShow audio to work in all parts of the Media Center including live TV, FFDShow Video isn’t quite as forgiving.

While you can’t use FFDShow Video in live or recorded TV on Media Center, it is possible to use it for just about anything else. The video side of FFDShow offers a wide range of compatibility for playing back the most popular video file formats. It also offers the ability to fine tune and adjust the video output to get the best quality picture.

body of lies

Getting FFDShow to play your movies in Media Center is relatively simple. Just download the latest FFDShow tryouts (and x64 SVN if you’re running Windows 7 x64) and install the package(s). If your movie collection includes MKV files, follow the directions in this guide for MKVs with FFDShow.

Once installed FFDShow should take over playing your media back in most situations. You can double check using this guide on checking codecs with Graphstudio. If for some reason FFDShow has not taken over playing your video files, increase the merit of the codec from the video decoder configuration in the start menu. Slide the control all the way to the right, apply the settings and recheck Graphstudio to confirm this worked.

FFDShow Video Merit

Once FFDShow Video is handling the video output it’s time to tweak the settings from inside the video decoder configuration. This can be found in the start menu under FFDShow and FFDShow64, choose the appropriate one for your system. Configuring both is a good practice to normalize playback all around for your system if you run an x64 version of Windows. Once inside you can see a slew of available options.

FFDShow Video Settings

Some of these options can use quite a bit of processing power (cpu) and currently FFDShow doesn’t support video hardware acceleration (and likely never will). If you have the horsepower to handle it, however, you can improve the quality of all your compressed videos to some extent.

fear and loathing

The settings in the video portion of FFDShow will, to some degree, be subjective. Each user will have to adjust settings to find what works best for their preferences and hardware. Typically, users will focus on post processing, picture properties and blur & noise reduction. These three settings pages can improve the sharpness and contrast of videos in many cases.

Post processing can be used to decrease the amount of blocking (the appearance of pixilated areas) by selecting the checkbox in the navigation pane or the top of the settings page. This filter will require a lot of processing power, however, with the amount of power required being dependant on the resolution of the video. Using post processing on high definition content is recommended only for the highest spec’d machines.

FFDShow Postprocessing

Picture properties can be used to do basic color correction. You can increase or decrease the gamma, brightness and contrast as well as correcting the colors of your output. Adjusting luminance gain and offset can refine the contrast and brightness respectively improving the output quality of videos that seem washed out or dull. Adjusting the gamma can improve the brightness of the video. There is also a full compliment of controls for adjusting the color output.

babylon a.d.

Blur and noise reduction can help to clear up any unwanted noise or static in the picture from compression.  You can also find controls to soften the picture which can be helpful if the video has pixilation around the edges of objects. If the opposite is the problem and the video isn’t clear enough, enabling the settings under the sharpen option can clear it up.

Hopefully this short guide has gotten you on your way to using FFDShow Video for your movies and videos in Media Center. Much of the process will be fine tuning each setting to get the best picture from your hardware and also suited to your tastes. Look for more on FFDShow and other codecs in the future on Hack7MC.

Have any tips on FFDShow settings? Let us know in the comments below!

10 Steps to a Better Media Center

10 Steps to a Better Media Center

Setting up your Windows 7 Media Center is easy, making it your own can be easy too. Here are 10 simple steps you can take to make your Media Center experience more complete, more personal, more enjoyable.

  1. Add ClearQAM to Your TV Listings
  2. Add Custom Apps to Your Extras Library
  3. Do It Better – Add Apps with Custom Icons and Details
  4. Add MKVs to Your Movie Library
  5. Use A Better Movie Library – Media Browser
  6. Expand Your Sound from Stereo to Surround
  7. Play Your Music in FLAC
  8. Check Your Local Weather
  9. Listen To Online Radio through Shoutcast
  10. Add Boxee Streaming TV to Your Media Center

These 10 simple hacks will create a better Media Center for you and your family to enjoy. Don’t forget to check back to Hack7MC to get the latest hacks for your Windows 7 Media Center.

Keep in touch: Bookmark Hack7MC on Del.icio.us, subscribe to the RSS Feed or even Follow along on Twitter.

MKVs for Minimalists on Windows 7

FFDShow Installer Logo Sure there’s nothing wrong with codec packs, Shark007 and CCCP are wonderful products, but there is something to be said for keeping it simple as well. This guide will take you through the minimum steps to install a nice clean setup with the minimum software required to play MKVs and many other less popular codecs as well. For this setup we are going to install only FFDShow and Gabest’s MKV splitters for x86 and x64 if that’s what your running.

Step One: Download a copy of FFDShow Tryouts from here. Those running an x64 version will also need the x64 SVN here. Install the right ones for your system, the latest versions will work.

Step Two: Download Gabest’s Matroska Splitters. There is a version of Gabest’s with an installer for x86 here and x64 here. To install simply extract to your C:\ root drive and right-click to run “gabest_splitter_enable.cmd” as administrator. You should receive one confirmation on x86 and two for x64 versions.  To uninstall simply run “gabest_splitter_remove.cmd” as administrator.

Step Three: Enable viewing of MKV files in Windows Media Player and Windows Media Center by downloading either the x86 registry file or x64 registry file and double-click to add it to your registry. Allow it to be added when prompted. Restart your machine.

That’s all there is to it, this will take you from a clean install to playing MKVs and more in no time at all. For details on using FFDShow Audio settings for your live TV and DVDs in Media Center check this article.

Media Center Movie Library

If you have trouble viewing your MKVs in Windows Media Center or Windows Media Player, try deleting your “C:\Users\YOUR-USERNAME\AppData\Local\Microsoft\Media Player\CurrentDatabase_371.wmdb” file. To enable this file to be deleted you will need to stop the WMPNetworkSvc service from the task manager (ctrl-alt-delete).

Simple FFDShow Audio Settings

Following up on this article on getting Media Center to use FFDShow Audio instead of the default Windows 7 codecs let’s take a look at some of the settings available in FFDShow Audio Decoder.

Let’s start with how to check if FFDShow is in fact being used or not.  The simplest way to check is to enable the system tray icon which will appear any time the FFDShow Audio Decoder is being used and also allows easy access to configuration options. To enable this feature enter the properties for FFDShow Audio Decoder from the start menu and select “Tray, dialog and paths”. Here you should see an option to set no icon or a choice of two different styles of icon to be displayed while FFDShow is running.

FFDShow TrayIcon

FFDShow has a large number of settings editable from this properties window. Most of them will be a matter of taste per user but there are a few common tweaks that most people are interested in. The first is expanding stereo audio in surround audio for files that don’t natively support surround such as MP3. To do this select the Mixer settings on the left and in the Output speakers configuration dropdown box select your speaker setup.  If you have a subwoofer you should also enable the LFE checkbox. At the bottom there are two checkboxes to “Expand stereo to center” and “Expand stereo to surround”. Checking these options will enable surround sound for any audio file encoded in stereo format.

FFDShow Mixer Settings

In this window it is also possible to do what is called “normalization” across the channels.  This will even out the output of each of the channels to an equal level so one channel is not drastically louder than the others at any point.

Another popular feature is the ability to normalize the overall volume output, similar to what some televisions are capable of.  This can reduce louder portions of a movie or a change in volume between commercial and show. To enable this select “Volume” from the left, make certain the volume box is checked and also check the “Normalize” checkbox. The Max. amplification box allows the setting of the maximum difference in volume, anything outside this range will be altered.

FFDShow Volume Settings

Also included is a built in equalizer similar to what can be found in many audio applications or home theater systems allowing the level of certain frequencies to be raised or lowered.  This can take some experimentation and always dependant on the preference of the user.

FFDShow Equalizer Settings

The last feature to be covered here is another simple one, allowing the swapping of channels between speakers. This setting allows for the permanent reassignment of a channel to a certain speaker. This is similar to the options set in the mixer, however these settings don’t detect the original audio channels and always assign the change.  The mixer will only up mix from stereo audio sources.

FFDShow Audio Channel Swap

FFDShow is a powerful tool that can provide anyone with the best listening experience but this is a subjective decision so it requires everyone to tweak the settings a little differently. With a little time and playing anyone can find the right sound for them. With these tips and this guide on using FFDShow Audio Decoder in Media Center you’ll be on your way to a better sounding Media Center in no time.

Using FFDShow Audio in Media Center

Warning: This hack modifies system files and may cause instability in certain Windows applications under atypical situations. It has been tested to the extent described in the article but not beyond.

When you’re done setting up FFDShow Audio check out this guide on setting up FFDShow Video as well.

Many enthusiasts prefer the ability to set their favorite codec for use in Media Center rather than the defaults. Unfortunately, this is more difficult than simply installing the chosen codec as you normally would. Windows 7 Media Center will default to the native codecs regardless of codec settings.

The fix for this situation is to install the desired codec, in this case FFDShow, then rename a system file to disable the native codec. First, download a copy of FFDShow Tryouts from the Sourceforge site right here. Follow the basic installation steps but make sure to enable FFDShow to be used for all available codecs when the option is presented. Windows 7 x64 users should download and install both the latest beta and the 64-bit SVN.

FFDShow Install

Enabling FFDShow for all audio codec types will lower the chance of instability in Windows 7 default applications such as Media Player. If you are confident in your codec setup you can most likely skip this and use your desired codecs.

Next you will need to have the “Take Ownership” registry hack we’ve used before in changing our Media Center theme. You can download the registry file to enable this menu here. Once you have the .reg file downloaded double-click to install the registry fix and permit it to change the registry when prompted.

To enable FFDShow to play your mp3 files in the music section, open Windows Explorer and navigate to “C:\Windows\system32\” and locate the file name “MP3DMOD.DLL”. Right-click to bring up the menu and choose “Take Ownership” then rename the file “MP3DMOD.DLL.bak”. Windows 7 x64 users will need to repeat this step for the C:\Windows\SysWOW64\" folder as well. This will disable the native filter and can be reversed by changing the file name back at any time.

MP3MOD.dll System Files

To enable FFDShow for live television and other formats using the MPEG2 codec inside of Media Center there is also a registry entry that needs to be changed. First we need to find the CLSID for FFDShow. To do that download Radlight’s Filter Manager right here. Extract the files to any location and run the exe file inside. Inside this program expand DirectShow Filters and scroll down to FFDShow Audio Decoder. Right click the entry and select “Copy CLSID to Clipboard”.

FFDShow Audio in Fitler Manager

Next, open regedit in Administrator mode: using the start menu type regedit then press ctrl-shift-enter. Then navigate to “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ CurrentVersion\MediaCenter\Decoder”. Inside there should be two strings, right-click “PreferredMPEG2AudioDecoderCLSID” and choose “Modify..”. Then enter the CLSID that you’ve copied from FilterManager in the box and press ok.

FFDShow Audio Media Center Registry Values

Media Center will need to be restarted before the changes will take effect but that should set your music, live television and most anything in Media Center to use FFDShow Audio instead of the native codecs included in Windows 7. The stability of this hack has not been tested outside of systems using purely Media Center as the user interface and may carry unintended consequences, perform at your own risk.

Check out this article for more detailed information on using the FFDShow codecs to tweak your sound and video settings in Media Center, including enabling surround sound for your stereo music files. Stay in touch using the Hack7MC RSS feed or follow along on Twitter!

Don't forget to check out this guide on setting up FFDShow Video in Media Center once you're done here!

Hack7MC Has Moved!

Hack7MC has left Blogspot for a new home. Following the original address @ http://www.hack7mc.com will take you to the new home page.