Hacking Windows 7 Media Center

Using AC3Filter in Media Center

by Michael Healy @ 6:00 am on February 24th, 2009 in codecs, windows 7 with 30 Comments

AC3Filter Logo One of the main problems encountered by those who use SPDIF output on their Media Center is the inability to control volume through the PC. The most common solution is to control the volume through the receiver but this means using a different remote (or worse getting up to turn the knob!). A solution to this problem is to use AC3Filter to control the gain of the SPDIF output. This will allow you to artificially change the volume of the digital output through Windows.

The first step to using AC3Filter to control SPDIF volume is to download and install the latest version of AC3Filter from ac3filter.net. Unfortunately, AC3Filter doesn’t currently support x64 operating systems and only comes in an x86 package. Next we need to follow the same steps as for installing FFDShow to work with Media Center and Media Player.

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 AC3Filter in Media Center/Player for music, 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”.  This will disable the native filter and can be reversed by changing the file name back at any time.

mpd3mod.dll

To enable AC3Filter 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 AC3Filter. 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 AC3FIlter. Right click the entry and select “Copy CLSID to Clipboard”.

AC3Filter in Filter 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

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 AC3Filter 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.

If you have any trouble (or success!)  getting this hack to work be sure to post a comment below!

30 Comments


ZZDEZ
Comment #148 from ZZDEZ [Reply]

Great Hack, Thank you!
It works great for with MP3 and Live TV, Is there any way to play WAV DTS files with AC3 Filter ?
With Vista, AC3 Filter can do this and it works fine, but not with Windows7…
I have tried many things, but nothing works.
Anyone have an Idea?

Comment left March 9, 2009 at 9:02 am Permanent Link

MHealy
Comment #149 from MHealy [Reply]

Which version of the Windows 7 beta are you using? There are number of problems reported with the sound system in the Windows 7 betas that are reported to be fixed or in the process of being fixed in later betas. Hopefully, all of the sound issues will be fixed before release or through driver releases.

I’d tend to think if it worked in Vista but is broken in W7 that it’s related to the sound issues in the beta.

Comment left March 9, 2009 at 1:44 pm Permanent Link

ZZDEZ
Comment #150 from ZZDEZ [Reply]

Thank you MHealy.
I use the 7000 build with the 2.17 Realtek drivers that are compatible with Windows7. I have tried to see what media DTS sound I can play or not:

-With an mkv movie in DTS, I have sound only if I use ACFilter that recode in Dolby Digital.
-With a DVD movie in DTS, I have directly DTS sound.
-With a Wav DTS music File, I have no sound. AC3Filter don’t run with this file type, but worked before in Vista.

I have tried to see with graphstudio, and it works if I use: DTSMusicFile.Wav > Wav Parser > AC3Filter >Default DirectSound Device.

But with Graphstudio, I can only play single files, and I search a way to configure AC3Filter for all DTS WAV files.

I don’t know if Filter Manager can be used for this. I have not FFDshow Installed, just Haali Media Splitter for MKV.

Comment left March 10, 2009 at 1:32 am Permanent Link

MHealy
Comment #151 from MHealy [Reply]

This appears to be the same problem I’ve encountered in W7 beta 7000 with DTS audio and AC3Filter. I believe it’s a problem with sound management in the 7000 beta. I’m going to be testing build 7048 later this afternoon and I’ll check to see if the problem still exists.

The best solution I have found up to this point is to edit the output types in the digital sound output properties and disable all of them. Then set AC3Filter to PCM output, depending on your hardware (sound card and reciever) you may be able to send the raw stream to the reciever to be decoded as DTS.

Comment left March 10, 2009 at 6:31 am Permanent Link

ZZDEZ
Comment #138 from ZZDEZ [Reply]

I have a Gigabyte P35-DQ6 motherboard and I use the embedded soundcard Realtek ALC889A, and you’re right, I can play DTS Wav files if I configure my soundcard with these settings: 24bits 44100, but if I do this, I cannot use the DTS Connect option.

This feature is really excellent to convert all 2 way sounds files to 5.1 DTS, but with DTS connect enabled, I can only play DTS Wav’s with AC3Filter, and under Windows 7, AC3Filter won’t work…

Under Vista, all worked fine! With these settings: DTS connect enabled + DTS Wav’s played with AC3 Filter…I hope you understand better the problem.

For sure, I can use the 24bits 44100 settings to play my Wav’S DTS files, but I must every time go to the settings to disable the DTS connect feature and I don’t want to keep it disabled.

I’m curious to see what happened with the 7048 build, and I will install it tomorrow too.

Thank you very much MHealy..

Comment left March 11, 2009 at 10:49 am Permanent Link

Anonymous
Comment #139 from Anonymous [Reply]

Hello ALl,

I have done this trick in Windows 7 build 7057 and it works fine in WMC but if i try to play any vidoes or MP3 in WMC or WMP it does not work and i receive a DRM error

Comment left March 18, 2009 at 6:33 pm Permanent Link

MHealy
Comment #140 from MHealy [Reply]

This hack likely will not work with media that has been encoded with DRM. Unfortunately, there will likely be no solution for this problem due to the nature of DRM.

If the files you’re trying to play don’t contain DRM double check your codec setup using Graphstudio. The problem likely lies with codecs if DRM isn’t the issue, try raising the priority of AC3Filter. If the problem is still there after trying these let me know.

Comment left March 18, 2009 at 7:03 pm Permanent Link

David
Comment #141 from David [Reply]

I am using Windows 7 7057 x86 with a Radeon 4550 wth HDMI output and using this via Sony AVR for all sounds – stereo , lpcm , DD and DTS which all seem to pass thru ok ( except no sound from center channel using lpcm with PDVD for some strange reason )
The problem I have is live TV in MC the audio is slightly ahead of the video – will either AC3 filter or FFDshow fix this ?
Can I just install it to work or do I have to do the hack aswell ?
Would the Vista Media Center Decoder Utility do the same thing as your hack ?
http://mediacenterexpert.blogspot.com/2006/07/vista-media-center-decoder-utility.html
Also I would like to convert stereo mp3s to surround sound ( amp can do this for me using SPDIF but not usig HDMI )

Comment left March 19, 2009 at 11:08 am Permanent Link

MHealy
Comment #142 from MHealy [Reply]

All of those things should be possible using either AC3Filter or FFDShow audio. I find using FFDShow to be simpler than AC3Filter and it’s my preffered codec, you can find a guide to using FFDShow Audio right here. There is also a guide to FFDShow Audio settings here that should help you get it set up.

You will need to apply the registry setting noted in the guide to use the codec with live TV, otherwise the default Microsoft codec will be used.

Comment left March 19, 2009 at 12:33 pm Permanent Link

David
Comment #143 from David [Reply]

Does Damien’s Mediacontrol do the same type of hack because I get ” Use FFDShow Yes/No ” windows appearing when playing some videos

Comment left March 19, 2009 at 12:53 pm Permanent Link

MHealy
Comment #144 from MHealy [Reply]

I’m not sure as I’ve never gotten Media Control to work 100% correctly on x64 bit systems. I prefer to control my codec setup directly on both x32 and x64 systems. I’m unsure exactly what Media Control modifies to take control of playback on Media Center.

Comment left March 19, 2009 at 1:56 pm Permanent Link

Dustin
Comment #145 from Dustin [Reply]

It’s a no-go for me. I was hoping that changing audio decoders for Live TV would change an issue I’m having on my extender end with HD audio (the audio stream cuts out every 5-10 seconds, making listening unbearable). I followed all the steps in this hack to the letter, but all I get in Media Center is a decoder error. What gives? (P.S., I am using built 7057 x64).

Comment left March 22, 2009 at 11:17 pm Permanent Link

MHealy
Comment #146 from MHealy [Reply]

The media foundation pipeline was changed in version 7057. I’m working on cracking it but haven’t quite got it yet. It seems MS is going to great lengths to keep people from using their own codecs in any MS apps.

Comment left March 23, 2009 at 5:45 am Permanent Link

Dustin
Comment #147 from Dustin [Reply]

Hey, thanks for the quick update!

Comment left March 23, 2009 at 8:08 am Permanent Link

David
Comment #137 from David [Reply]

I tried this hack with both ffdshow and ac3filter and they worked well with both mp3 and live TV

AC3 Filter works better for the audio delay as there is a slider for before and after a fixed point in time whereas in FFDShow you can only enter positive numbers for audio delay

My m2ts files no longer work with this hack it states “error – media center cannot open the file”

Also DD and DTS are no longer passing through

Any ideas ?

Basically I want the following –
stereo pcm to be mixed for surround sound
DD and DTS to passthrough as bitstream
True HD etc to be converted to mlpcm
Live tv audio to be delayed
With all my videos playing normally

What settings should I choose ?

Comment left March 26, 2009 at 11:19 am Permanent Link

vinicius.vbf
Comment #1046 from vinicius.vbf [Reply]

Easier way to add AC3 Filter or any other DirectShow to Windows 7 / Windows Media Player 12 / WMP 12:

1 – Get the filter CLSID
2 – Add a new subkey to the branch
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\FilterExceptions
(Set your user as key owner first in order to obtain access to create a new subkey). The name of the new subkey should be the filter CLSID (with the brackets {}).
3 – Play with the filter merits using your favorite software (I use GSpot).

Done!

Comment left May 13, 2009 at 11:54 pm Permanent Link
@Reply #10137 from SuperCurro [Reply]

I’m trying to play DVD DTS sound with WMC or WMP, and it doesnt sound. With other formats there is not problem.

I have tried all tricks, is there any more?

Comment left April 23, 2010 at 12:02 pm Permanent Link
Comment #1749 from djroketboy [Reply]

This works great, for everything except MS VC1 WMA 10 (5.1) in MCE, any idea’s?

DVD’s, DiVX play fine…

Also is there any way to differentiate between what you want to use? I personally just like my mp3’s in stereo not DD.

Comment left June 20, 2009 at 11:54 am Permanent Link

Dmitry
Comment #3222 from Dmitry [Reply]

I’ve done everything as per post (latest AC3, renamed dll, new clsid), but as a result : media center says it can’t play the video and media player throws error c00d11b1. It simply doesn’t want to accept any other decoder CLSID except the original one.
What else am i missing?

Comment left September 13, 2009 at 12:06 pm Permanent Link

danielle
Comment #3321 from danielle [Reply]

i downloaded ac3filter and it took control over all my other oulets of sound, and th sound would occasionally stop working so i would have to restart it which is not why i wanted it, so i unistalled it, but windows media player stopped working, the only thing i think i need to set it back to my orignial settings is old data code for the PreferredMPEG2AudioDecoderCLSID
i am hoping this will make it so i can watch tv again

Comment left September 17, 2009 at 5:51 pm Permanent Link

McArty
@Reply #3401 from McArty [Reply]

You can reinstall ac3filter, go in ac3 filter properties to the tab system and check the option “prefer other decoders”. Anyway, before touching the regedit, you should always do a backup…, maybe u could try system restore.

Comment left September 20, 2009 at 6:27 pm Permanent Link

McArty
Comment #3400 from McArty [Reply]

Thx! The trick worked for me, The channel ProSieben was giving me noise insead the sound, and after your hack now its working perfect.
Thx again.

Comment left September 20, 2009 at 6:23 pm Permanent Link

Yihaa
Comment #4778 from Yihaa [Reply]

I followed the instructions to the letter. After I restarted windows mp or mc both media player and media center generate a runtime error. You see the AC3 filter tray icon appear and dissappear for several times before the runtime message appears. When I change the mp3dmod.dll.bak back to it’s original name everything works fine again.

Can anyone tell me what i’m doing wrong here?

thanks.

Yihaa

Comment left November 13, 2009 at 5:59 am Permanent Link

Mitch
Comment #4866 from Mitch [Reply]

Hey, I have followed this hack to the T. But if I attempt to playback a HD WMV of Indiana Jones, Im still geting n reaction from AC3 Filter. I can only ssume this hack is not for the filesIm trying to play.

Cn anyne help point me in the right direction?

Comment left November 16, 2009 at 4:05 am Permanent Link

Mike
@Reply #6671 from Mike [Reply]

to Mitch this doesn’t seem to work for hd wmv’s for whatever reason. I’m waiting just like you. Anyone know how to make WMA (HD WMV’s) work using this hack?

Comment left January 15, 2010 at 12:36 pm Permanent Link

Bryon Howley
Comment #6690 from Bryon Howley [Reply]

It seems that with the latest AC3Filter there is no need for any hack to get DTS working. All of my .mkv’s have DTS audio and all are working correctly in WMP and WMC.

All I have installed for this is:
1: Latest Divx for .mkv thumbnail support
2: Matroska Splitter
3: Latest AC3Filter v1.63b

With no other codecs installed I can play all of my .mkv, .m2ts and indeed all of my media from Media Player and Media Center!

Comment left January 16, 2010 at 5:00 am Permanent Link

Billy
Comment #6744 from Billy [Reply]

I think you are missing the post’s point? My DTS and DD works but my remote cannot control the volume….this is the problem…

Comment left January 18, 2010 at 2:41 pm Permanent Link

Nathan
Comment #7772 from Nathan [Reply]

You are the man, i looked all over to find a way for my win 7 to play dolby digital (i think it’s a driver issue for my sound card) and so far this is working perfect, thanks!!!

Comment left February 16, 2010 at 9:36 pm Permanent Link
Comment #11579 from Timbo [Reply]

I got it to work and it seems OK but seems to have a negative effect on my video which is generally pixelated and occasionally stutters. Any ideas and if not how do I reverse this change?

Comment left May 26, 2010 at 6:39 am Permanent Link

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!