View Full Version : Media Player Classic Home Cinema (MPC-HC) - DXVA!
gngn
7th October 2009, 13:22
Has anyone been able to pinpoint when that regression was introduced into the code? This is one of the reasons why I suggested putting development builds on SourceForge. It helps tracking down the origins of bugs.
http://forum.doom9.org/showthread.php?p=1324741#post1324741
clsid
7th October 2009, 14:03
Based on that useful info I suspect that the bug was added in revision 1236.
Casimir666
7th October 2009, 21:42
Recently update player to the new version.
Why "Position subtitles relative to video frame" option doesn't work for ass subs anymore?
Based on that useful info I suspect that the bug was added in revision 1236.
Could you try with this build and tell me :
http://www.mediafire.com/download.php?ydmdrcnvy9n
Darth Viorel
7th October 2009, 21:47
Could you try with this build and tell me :
http://www.mediafire.com/download.php?ydmdrcnvy9n
The bug is gone with that version, thx.
littleD
7th October 2009, 21:53
Bug.
When watching in MPC -HC an avisynth script with dgdecode source, the process stay even when closing player. I have to close it manually (multi instances) as it is making troubles when turning off windows. Tested 1290 build.
EDIT: Script have to be paused (once is enough) during playback.
sneaker_ger
7th October 2009, 22:12
The bug is gone with that version, thx.
Yep, seems to work fine here too. Thx.
lititude
8th October 2009, 16:53
Can MPC-HC open MPEG2 stream from url such as http:// xx. xx. xx. xx: port ?
Now VLC can.
shiloto
8th October 2009, 18:11
Im having a problem.
After i reinstalled k-lite with latest MPC-HC i cant make the default decoder for h264 mpcvideodecoder.
Using windows 7 rtm. Tryed the windows 7 tweak tools - doesnt detect the mpc codec at all.
Tryed chaning the CLSID trough the registry. Still doesnt help.
Player still uses the MS DVT-DVD decoder. When i enabled ffdshow for h264 it works fine
EDIT:
Now i have seen that when i watch standard 720p tv show it uses mpcdecoder
But when i try to play transformers 2 prestige it uses the MS decoder
Any idea why
clsid
8th October 2009, 19:08
That file probably contains a H.264 stream that is not compatible with the DXVA decoder of MPC-HC.
albain
8th October 2009, 20:20
Hi,
here is a patch (http://damienbt.free.fr/MPCHC_AudioRenderer_Wasapi.diff) for MPC-HC that brings WASAPI support (exclusive mode) on the MPC Audio renderer
Here is a sample binary file (.ax) (http://damienbt.free.fr/MpcAudioRendererFilter.ax)
I forced it to WASAPI exclusive mode with the useWASAPI bool.
All the UI configuration needs to be made : WASAPI vs directsound, and select which device to use for WASAPI and fo directsound modes
Spec-Chum
8th October 2009, 23:19
Hi,
here is a patch (http://damienbt.free.fr/MPCHC_AudioRenderer_Wasapi.diff) for MPC-HC that brings WASAPI support (exclusive mode) on the MPC Audio renderer
Here is a sample binary file (.ax) (http://damienbt.free.fr/MpcAudioRendererFilter.ax)
I forced it to WASAPI exclusive mode with the useWASAPI bool.
All the UI configuration needs to be made : WASAPI vs directsound, and select which device to use for WASAPI and fo directsound modes
Thanks Albain, I'm afraid to say I lost all the work I did on mine when my HDD went click, click, boom!
However, I've updated yours to register as an audio renderer so is now selectable through MPC's options page directly. However, I had to comment out the new KSDATAFORMATs as I couldn't get it to compile with them in, I have the latest W7 SDK (at least, I think I do :) )
I've tested it with AC3 and DTS and my amp shows the correct logos for both, but I can't test HD audio. Can anyone try my new ax file and report back on HD please?
Get the new .ax file here (http://www.mediafire.com/?sharekey=f23b64e279fec79ea0f2f20c509059d9cc2ece46ebfc746a947708e37b913e74)
Thanks
rica
9th October 2009, 01:10
I've tested it with AC3 and DTS and my amp shows the correct logos for both, but I can't test HD audio. Can anyone try my new ax file and report back on HD please.
Sure:
http://forum.doom9.org/showthread.php?p=1332746#post1332746
_ _ _ _ _
albain
9th October 2009, 08:06
Thanks Albain, I'm afraid to say I lost all the work I did on mine when my HDD went click, click, boom!
However, I've updated yours to register as an audio renderer so is now selectable through MPC's options page directly. However, I had to comment out the new KSDATAFORMATs as I couldn't get it to compile with them in, I have the latest W7 SDK (at least, I think I do :) )
I've tested it with AC3 and DTS and my amp shows the correct logos for both, but I can't test HD audio. Can anyone try my new ax file and report back on HD please?
Get the new .ax file here (http://www.mediafire.com/?sharekey=f23b64e279fec79ea0f2f20c509059d9cc2ece46ebfc746a947708e37b913e74)
Thanks
Thanks, can you provide the updated patch ?
I would like to add some debug traces
whurlston
9th October 2009, 08:52
Thanks Albain, I'm afraid to say I lost all the work I did on mine when my HDD went click, click, boom!
However, I've updated yours to register as an audio renderer so is now selectable through MPC's options page directly. However, I had to comment out the new KSDATAFORMATs as I couldn't get it to compile with them in, I have the latest W7 SDK (at least, I think I do :) )
I've tested it with AC3 and DTS and my amp shows the correct logos for both, but I can't test HD audio. Can anyone try my new ax file and report back on HD please?
Get the new .ax file here (http://www.mediafire.com/?sharekey=f23b64e279fec79ea0f2f20c509059d9cc2ece46ebfc746a947708e37b913e74)
Thanks
It didn't work for HD audio for me:
I still get the additional WMAudio filters auto inserted into the graph. ffdshow does not connect directly to the audio renderer. My setup matches yours except I have a 4670.
Edit:
GOT IT!
I was using the renderer build that was posted in the MPC-HC thread. I switched back to albain's build posted in this thread.
ffdshow bitstream build 9
albain's MPC-HC audio renderer build
16 bit only checked.
IEC61937 unchecked.
Result:
My 4670 lights up the TrueHD icon on my RX-V863. (I swear it looked and felt like Christmas).
Just a buzzing sound but I didn't expect audio. We were only trying to get it to connect at the moment right?
JimboAlmeida
9th October 2009, 10:10
This is surely a good thread. I think that the reviews shared here are worth passing through.
THX-UltraII
9th October 2009, 10:38
passing through.:d:d:d
Spec-Chum
9th October 2009, 11:00
Thanks, can you provide the updated patch ?
I would like to add some debug traces
Sure (http://www.mediafire.com/?sharekey=f23b64e279fec79ea0f2f20c509059d9cc2ece46ebfc746a947708e37b913e74)
Not sure why I can't compile with the KSDATAFORMAT parts. I suspect that's why mine forces WM decoders into the path.
I will say tho, using the internal MPC-HC AC3 and DTS decoders I do get sound from my amp (Denon 2805) with my build.
boyumeow
9th October 2009, 11:50
@boyumeow
your widescreen-monitor has a width to height ratio of 16:10 whilst most widescreen-broadcasts has a 16:9 ratio.
So either you will have to stretch the image, or you will have to live with black bars above and beneath the picture.
Living with black bars is ok with me, but m I suppose to be able to visual the black bars? Cause I do not sees them, it just that my animes or movies just stretch to the fullest (maybe 16:9) but due to my screen (16:10), it just misses the top & bottom or the left & right. Thanks.
Edit: Sorry for my question, I just find out which setting was making it that way and corrected it (Video Frame==>touch window from inside), thanks.
Casimir666
9th October 2009, 16:15
Sure (http://www.mediafire.com/?sharekey=f23b64e279fec79ea0f2f20c509059d9cc2ece46ebfc746a947708e37b913e74)
Not sure why I can't compile with the KSDATAFORMAT parts. I suspect that's why mine forces WM decoders into the path.
I will say tho, using the internal MPC-HC AC3 and DTS decoders I do get sound from my amp (Denon 2805) with my build.
You need to install Win7 SDK, and then use "Windows SDK configuration tool" to integrate is with VS2008. Be careful, you have to switch your regional settings to US because this tools is buggy (http://blogs.msdn.com/windowssdk/archive/2009/08/21/windows-sdk-configuration-tool-may-report-an-error-when-os-display-format-is-not-english.aspx).
mark0077
9th October 2009, 18:17
Hi, sorry for hijacking thread, but as there is alot of discussion here and in the ffdshow thread around side versus rear channels.
My question is, for a 5.1 speaker configuration, with a 7.1 sound card, in windows vista or windows 7 even, what is the "correct" setup to choose in both audio card settings, and physical outputs. Should I be using physical rear, or physical side outputs.
My XONAR gives audio from both rear and sides, in whatever physical config I use, even in 5.1 config setting in its control panel because there is no way to stop this card upmixing unfortunately. It tries to get too smart so its hard to figure out whether I should be using side or rear outputs.
tetsuo55
9th October 2009, 18:39
Hi, sorry for hijacking thread, but as there is alot of discussion here and in the ffdshow thread around side versus rear channels.
My question is, for a 5.1 speaker configuration, with a 7.1 sound card, in windows vista or windows 7 even, what is the "correct" setup to choose in both audio card settings, and physical outputs. Should I be using physical rear, or physical side outputs.
My XONAR gives audio from both rear and sides, in whatever physical config I use, even in 5.1 config setting in its control panel because there is no way to stop this card upmixing unfortunately. It tries to get too smart so its hard to figure out whether I should be using side or rear outputs.Left Surround Side and Right Surround Side should be used.
The physical rear are Left Surround back and Right Surround back, these are only available in 7.1 mode (but the Left Surround back is available in 6.1 mode too)
In 5.1 setup the side surrounds should be moved slightly to the back of the listening point
See this post for more info: http://forum.doom9.org/showthread.php?p=1306597#post1306597
mark0077
9th October 2009, 18:48
tyvm.... have it correct, these HDAV Deluxe cards have terrible drivers to be honest. Simple 5.1 channel audio has never gone straight to my 5.1 speakers with out some rear channel bleeding.
It doesn't happen with WASAPI though, only directsound. I am still unsure if this is mpc-hc and ffdshow outputting rear side to rear back instead, and this card just "upmixing" that so that I hear out of my rear side channels, or just the HDAV drivers being bad as I originally thought.
tetsuo55
9th October 2009, 18:56
tyvm.... have it correct, these HDAV Deluxe cards have terrible drivers to be honest. Simple 5.1 channel audio has never gone straight to my 5.1 speakers with out some rear channel bleeding.
It doesn't happen with WASAPI though, only directsound. I am still unsure if this is mpc-hc and ffdshow outputting rear side to rear back instead, and this card just "upmixing" that so that I hear out of my rear side channels, or just the HDAV drivers being bad as I originally thought.did you set the windows control panel to 5.1 (and did you do the same in the soundcard driver panel)
mark0077
9th October 2009, 19:07
Ya... same problems with vista. Mark_A_W has the same problems I believe, with channel upmixing anyways. Simple stereo gets upmixed to 5.1 (thats definitely a driver problem, and can be gotten around for me by disabling the GX function).
My problem is when watching 5.1 content, or 5.1 files in any software like winamp / mpc-hc. In channel tests, the side right can be heard slightly from the side left (like 10% in the side left). Same for side left test, it can be heard slightly in side right.....
With WASAPI from reclock, this effect is no longer heard. I just get confused whether my tests (THX Surround Tests) are designed for rear rather than side channels (visually they show side channels (SL and SR) and so I doubt this is the problem), or mpc-hc, or ffdshow or windows, or my drivers are causing the problem. Very hard to diagnose.
As I say I can get around it by using WASAPI but still not happy that I can't get proper 5.1 output from channel tests..... Any ideas how to diagnose what the problem is? Thought windows 7 RC would solve it but no luck.
Strange thing is that windows and hdav control panel channel tests don't show the problem. Seems to be limited to directsound output from software.
EDIT: Looking at ffdshows mixer when playing the thx surround tests, shows BackL and BackR are active, with SideL and SideR not being active...... At least this might indicate its not the drivers.... The mixer shows this with both mpc-hc AND ffdshow being the decoder. This happens with many of my DVD's, all show back L and R active, not Side L and R.
ffdshow mixer is set to "3/0/2 - 5 channels" with LFE channels on, everything else off. I think this is incorrect, this seems to assume (by looking at the mixer visually) that 3/0/2 means back L and R should be used. (the opposite to what tetsuo said, as selecting 6 or 7 channels visually enables the side L and R)
mpc-hc ac3 decoder settings are set to "3 Front + 2 rear". There is no "3 Front + 2 side". Is this a mistake / omission?
Mercury_22
9th October 2009, 21:01
For those using 5.1 Speakers DON'T use "5.1 Surround" in Windows's Speakers Setup use "7.1 Surround" and connect your "Surround Speakers" to the REAR OUT connector of your sound card !
Why ? Because the "5.1 Surround" in Windows's Speakers Setup can go either way depending on the DRIVERS :
If a
>> system vendor has set the pin config values of the integrated HD
>> Audio device to indicate that the 5.1 device uses side speakers
>> then we expose that to the OS when it asks the driver through the
>> channel config property request but if the system vendor uses the
>> pin config sequence values in the multi-channel device association
>> to indicate that the 5.1 system has rear speakers the HD Audio
>> class driver will expose that to the OS as the channel mask for
>> that device instead. (http://www.freelists.org/post/wdmaudiodev/Vista-51-speaker-mode-question,7)
The reason for not distinguishing between the back-speaker and side-speaker configurations in either case is that home users tend not to distinguish between these speaker positions—the placement of furniture in the room might be the primary factor in determining whether a pair of speakers ends up beside or behind the listener. Forcing users to recognize the subtle differences between these alternate configurations would complicate the user interface for little benefit. (http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/PinConfig.doc)
Read the entire doc here Pin Configuration Guidelines for High Definition Audio Devices (http://www.microsoft.com/whdc/device/audio/PinConfig.mspx)
But you don't have to take my word for this use any other decoder or player (e.g. TotalMedia Theatre or PowerDVD) and play any of these test files
Test 5.1 AC3 (Dolby Digital) (http://www.tfm.ro/win32-projects/test-avi-ac3/)
Test 7.1 E-AC3 (Dolby Digital Plus) (http://sharebee.com/69772daa)
Test 7.1 Dolby TrueHD (http://www.megaupload.com/?d=7P9P81CW)
Test 7.1 DTS-HD HR (http://sharebee.com/abf92989)
Test 7.1 LPCM (http://www.megaupload.com/?d=0HM2JCEP)
or any Demo Disc from Dolby or DTS or any calibration disc or... and see for yourself
P.S. And maybe connect something, (e.g. Headphones) to the the SIDE OUT connector of your sound card if your drivers are using auto JACK DETECTION.
This is NOT USUALLY NECESSARY but it might help with some cards / drivers
mark0077
10th October 2009, 00:31
Thanks alot. Will try it out. I wonder how this knowledge can reach the masses. Cheers
rt87
10th October 2009, 02:09
I don't see how they are going to add a lot of the features people want, without getting sued.
Simple answer: Because it is China.
Hi,
here is a patch (http://damienbt.free.fr/MPCHC_AudioRenderer_Wasapi.diff) for MPC-HC that brings WASAPI support (exclusive mode) on the MPC Audio renderer
Here is a sample binary file (.ax) (http://damienbt.free.fr/MpcAudioRendererFilter.ax)
I forced it to WASAPI exclusive mode with the useWASAPI bool.
All the UI configuration needs to be made : WASAPI vs directsound, and select which device to use for WASAPI and fo directsound modes
Any chance adding Kernel Streaming for XP?
THX-UltraII
10th October 2009, 06:57
Simple answer: Because it is China.
Any chance adding Kernel Streaming for XP?
skip XP and go to W7, believe me!
tetsuo55
10th October 2009, 07:45
skip XP and go to W7, believe me!Exactly
Mangix
10th October 2009, 08:25
but what if you don't like either Vista or 7?
tetsuo55
10th October 2009, 08:37
but what if you don't like either Vista or 7?You'll get used to it (but please don't use vista)
THX-UltraII
10th October 2009, 10:45
DO NOT use Vista and if your a HTPC freak go with Windows7.
pirlouy
10th October 2009, 11:06
I've just discovered (in MPC-HC Goth Sync thread) that with Windows 7, Aero caused me judders (when using 50Hz) and audio lags (when using 24Hz) . Reclock and Goth Sync wasn't able to correct this...
So Aero is not that perfect. And it seems without Aero, I have tearing when watching some videos... Tearing I can avoid if I use D3D in MPC.
yesgrey
10th October 2009, 12:35
but what if you don't like either Vista or 7?
If you use the classic theme it doesn't look too much different. Unfortunatelly, in the last RC, it's still a little buggy, but I hope that it will be improved in the retail build...
wOxxOm
10th October 2009, 13:59
any chance of implementing audio/subtitle language preference options (not for DVD but for all the containers) just like in Haali's splitter: eng,jpn etc...?
btw seems like changing playback speed (2x etc) doesn't speedup natively displayed subtitles
irishrobbie
10th October 2009, 14:03
is there a way where i can have the scale to 16:9 tv function in pan and scan by using a hotkey.thanks in advance
DigitalDeviant
10th October 2009, 14:22
but what if you don't like either Vista or 7?
Then get used to software eventually not supporting your OS and developers ignoring your requests to fix things that break on an outdated OS.
hdboy
10th October 2009, 16:00
Get the new .ax file here (http://www.mediafire.com/?sharekey=f23b64e279fec79ea0f2f20c509059d9cc2ece46ebfc746a947708e37b913e74)
Thanks
pardon my ignorance, but how do I use this? I registered the ax, and added it to external filters. I do see MPC audio renderer in the filters menu when playing. however, I'm getting bad audio de-sync and seeking often causes mpc to hang. using svn 1296, win7 RTM 32bit
Dark Eiri
10th October 2009, 16:20
but what if you don't like either Vista or 7?
Really? Using XP now must feel exactly like using Windows 95 by the time XP was released. Even my sluggish netbook runs Windows 7 faster than it runs Windows XP. Move on, people.
albain
10th October 2009, 17:40
Hi, XP does not have any WASAPI layer, only Vista or 7 do
About the new audio renderer, I have a question about how works MPC HC : if I set MPC renderer as default, MPCHC will try to load it but only once.
If the media type is refused, it will switch back to directsound renderer.
Graphstudio does not have the same behaviour : it will try the first (and same) mediatype (which is basic and lacks of information, which is the reason why the wasapi renderer will refuse it) and it will try others (more detailed) types which will be accepted.
Do you know how to fix this ?
Otherwise, there is (at least) one bug in it : the memory is not freed correctly. Don't know why
I also made some changes : for example the initialization of the service should not be remade in case of reconnection (so in case of change of media type)
clsid
10th October 2009, 19:00
That behavior is most likely related to the fact the MPC uses its own filter graph manager. So that might need some changes for negotiating media types. See FGManager.cpp.
Keiyakusha
10th October 2009, 21:12
pardon my ignorance, but how do I use this? I registered the ax, and added it to external filters. I do see MPC audio renderer in the filters menu when playing. however, I'm getting bad audio de-sync and seeking often causes mpc to hang. using svn 1296, win7 RTM 32bit
I think you should wait for new build compiled with new renderer. And choose that renderer in "output" menu but not in external filters. However it probably should work from external filters too, but you sure that you downloaded right filter and not buggy one? Also I don't see much point to do both - registering filter and putting it in external filters...
As for me, I'm not sure which one I should download so I will wait for new revision ^_^
Mangix
11th October 2009, 00:07
Really? Using XP now must feel exactly like using Windows 95 by the time XP was released. Even my sluggish netbook runs Windows 7 faster than it runs Windows XP. Move on, people.
actually on my computer, Windows XP feels very fast. 7 felt alright but slower. It also uses around 3 times more memory and on my 2GB and that's a bit unacceptable. My video games run faster, I get EAX/A3D without needing to use emulators that don't work, and other minor details.
my question was was originally if kernel streaming was going to be implemented in this renderer. but whatever.
Snowknight26
11th October 2009, 04:55
Any chance of removing the need for an exclusive file lock? I hate having to switch to Haali Media Splitter just so MPC-HC can even open a file that's being written to by another program.
hoborg
11th October 2009, 10:11
BTW, XP+WMR9 is only one combination alow you to play DVDs using DXVA (using PDVD9 decoder) with working navigation.
tetsuo55
11th October 2009, 11:03
actually on my computer, Windows XP feels very fast. 7 felt alright but slower. It also uses around 3 times more memory and on my 2GB and that's a bit unacceptable. My video games run faster, I get EAX/A3D without needing to use emulators that don't work, and other minor details.
my question was was originally if kernel streaming was going to be implemented in this renderer. but whatever.Its not using more memory, its using less.
However the memory management system works completely different, and memory is reserved (but empty) for applications and services.
If any application needs more memory than is reserved and/or free, reserved memory will be given to the application until no more memory can be given (and at that point the swapfile gets used)
This is one of the main reasons why 7 feels so much faster on older low ram systems
Any chance of removing the need for an exclusive file lock? I hate having to switch to Haali Media Splitter just so MPC-HC can even open a file that's being written to by another program.
Dev's have not been able to work around this, can you provide as much information about this as possible (other GLP open source applications that can bypass te file lock would help)
yesgrey
11th October 2009, 12:58
One question: the code for the new audio renderer is included in the trunk? I want to take a look at it and need to know where it is.
Edit: I've updated the source from svn and it's in the Trunk.
my question was was originally if kernel streaming was going to be implemented in this renderer.
I think a better option would be ASIO support. That would work with both XP, Vista and 7, and would be a really nice feature.:)
There are some general free ASIO drivers based on Kernel streaming for soundcards that don't have native ASIO support (ASIO4All).
I will take a look at the code, maybe I could add it, but probably it would be a lot easier and faster if one of the current developers agrees with the idea and adds it himself...;)
Shakey_Jake33
11th October 2009, 13:22
The SVN 1299 build on XvidVideo.RU claims to have the WASAPI renderer added - how do you select this? It does not seem to be under the Audio Renderers dropbox.
hdboy
11th October 2009, 16:09
Its not using more memory, its using less.
However the memory management system works completely different, and memory is reserved (but empty) for applications and services.
If any application needs more memory than is reserved and/or free, reserved memory will be given to the application until no more memory can be given (and at that point the swapfile gets used)
that's the theory anyway. in reality, with the same work load, win7 hits the paging file much sooner than XP on my 3GB ram. If I turn off the swap file, win7 will throw up out of memory error and apps will crash much faster than XP. so the memory is not just being reserved or used for caching. it is actually being used.
sorry, don't mean to hijack the thread, but I keep hearing about how win7 is faster or more memory efficient than XP, and I just don't see it. not to say that it doesn't have other advantages, but those aren't it. it may feel faster due to the app caching and preloading, but benchmarks show win7 is slightly slower on execution of office/game/etc apps. when people say win7 is faster, I think what they mean is "my spanking new install of win7 on my freshly built i7 smokes my 5yo install of XP with a zillion app and device driver installs/uninstalls". well guess what? new install of EVERY MS OS feels fast (excerpt maybe for Vitsta LOL).
so what I'm saying is: don't be so quick to dismiss XP. it's a perfectly good working OS. XP's win explorer is also better than win7. I mean, have you noticed that win7 doesn't even show free disk space on the status bar, despite it taking up 3x the space it used too? or if you choose more than 15 files, you have to click more details to see the total file size? or how about if you want to include/exclude subfolders in search, there's no handy checkbox any more? you actually have to go into search options menu and change it every time. I could go on, but I won't.
yesgrey
11th October 2009, 16:48
If anyone wants to consider ASIO, here (http://www.steinberg.net/en/company/3rd_party_developer/sdk_download_portal.html) is the official ASIO SDK. You'll need to create an account to download it, but it's all free.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.