| |||||||
| General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Sep 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
| There seem to be a bug in the way "WMAudio Decoder DMO" decodes WMA Pro audio from WMV files. If the audio is 5.1 channels, it will allways downmix into 2 channel stereo. This is extremely annoying, the result is whenever a WMV file with 6 channel audio is played using direct show, it will be heard as 2 channel only. In doom9.org (http://forum.doom9.org/showthread.php?t=110449&page=3) they were able to find the reason. It seems that the "WMAudio Decoder DMO" has a property (_HIRESOUTPUT) that forces it to use more then 2 channels. Below is the C++ fix they proposed to Avisynth. Can this be entered to MP as well? Edit: here is the MSDN article about this issue: http://msdn.microsoft.com/library/de...directshow.asp IGraphBuilder *pGraph; HRESULT hres; IBaseFilter * pDmoFilter; hres = CoCreateInstance(CLSID_DMOWrapperFilter, NULL, CLSCTX_INPROC, IID_IBaseFilter, (void **)&pDmoFilter); IDMOWrapperFilter *pWrap; pDmoFilter->QueryInterface(IID_IDMOWrapperFilter, (void **)&pWrap); hres = pWrap->Init(CLSID_CWMADecMediaObject, CLSID_CWMADecMediaObject); pWrap->Release(); IPropertyBag *pPropertyBag = NULL; hres = pDmoFilter->QueryInterface(IID_IPropertyBag, (void**)&pPropertyBag); hres = SetHiResOutput(pPropertyBag); hres = pGraph->AddFilter(pDmoFilter, L"WMA Filter"); hres = pGraph->RenderFile(FileName, NULL); HRESULT SetHiResOutput(IPropertyBag* pBag) { HRESULT hr = S_OK; VARIANT myVar; VARIANT myVar2; VariantInit(&myVar); VariantInit(&myVar2); myVar.vt = VT_BOOL; myVar.boolVal = TRUE; myVar2.vt = VT_I4; myVar2.iVal = DSSPEAKER_DIRECTOUT; hr = pBag->Write(g_wszWMACHiResOutput, &myVar); hr = pBag->Write(g_wszWMACSpeakerConfig, &myVar2); return hr; }
__________________ AthlonXP 2800@2500mhz 2x512 Dual DDR 3200 memory GeForce 6600 AGP, DVI, 1280x720 Last edited by granx; 2006-09-18 at 20:23. |
| | |
| | #2 (permalink) |
| Portal Member Join Date: Sep 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
| Come on guys, it can't be that non interesting issue... am I the only one who play mutli channel wmv files in MP?
__________________ AthlonXP 2800@2500mhz 2x512 Dual DDR 3200 memory GeForce 6600 AGP, DVI, 1280x720 |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Sep 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
| Two weeks already without a response... I'll try a different strategy, can I manipulate the graph thru a process plugin?
__________________ AthlonXP 2800@2500mhz 2x512 Dual DDR 3200 memory GeForce 6600 AGP, DVI, 1280x720 |
| | |
| | #4 (permalink) |
| Portal Member Join Date: Aug 2005 Location: Melbourne, Australia Age: 22
Posts: 707
Thanks: 0
Thanked 0 Times in 0 Posts
| Have you tried talking to developers on IRC? It might be easier to get a response there as they probably don't have time to read every post on these forums. |
| | |
| | #5 (permalink) |
| Portal Manager Join Date: Jul 2004 Location: UK
Posts: 1,661
Thanks: 0
Thanked 22 Times in 18 Posts
Country: | got a sample file link or one you can upload?
__________________ Hardware: Core2 Duo 3.0GHz, Nvidia 8500GS (256MB), 1GB DDR2, Intel DG33TL MB, 2x FireDTV DVB-S2 cards & Nova 500-T in a Antec Fusion case with VFD & iMon remote. Software: Windows XP MCE2005, PureVideo codecs & Cyberlink PowerDVD 7.x codecs. |
| | |
| | #6 (permalink) |
| Portal Member Join Date: Jan 2007 Age: 28
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
| Did you ever resolve this? I have run into the same problem. I can get 5.1 output or spdif to my wma decoding receiver using zoomplayer or wmp11, but I want to use media portal's internal player. I posted over in the codec forum but received zero response. According to MS the wma dmo by default down samples 24bit 6 channel audio to 16bit 2 channel audio. To get it to decode the 24bit 6 channel audio the following setting needs to be set to true. MFPKEY_WMADEC_HIRESOUTPUT=true. By default this is false. http://msdn2.microsoft.com/en-us/library/aa964519.aspx Any ideas how to edit this for playback in media portal? Last edited by talbot3; 2007-02-15 at 21:08. |
| | |
| | #7 (permalink) |
| Portal Manager Join Date: Jul 2004 Location: UK
Posts: 1,661
Thanks: 0
Thanked 22 Times in 18 Posts
Country: | post a sample... DMAN
__________________ Hardware: Core2 Duo 3.0GHz, Nvidia 8500GS (256MB), 1GB DDR2, Intel DG33TL MB, 2x FireDTV DVB-S2 cards & Nova 500-T in a Antec Fusion case with VFD & iMon remote. Software: Windows XP MCE2005, PureVideo codecs & Cyberlink PowerDVD 7.x codecs. |
| | |
| | #8 (permalink) |
| Portal Member Join Date: Jan 2007 Age: 28
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
| You can download samples here: http://www.microsoft.com/windows/win...tshowcase.aspx I just downloaded the 720p amazing caves sample and confirmed it has 6 channel audio and is not protected. Media Portal downmixes the 6 channel audio to 2 channels. |
| | |
| | #9 (permalink) |
| Portal Member Join Date: Apr 2007
Posts: 222
Thanks: 6
Thanked 0 Times in 0 Posts
| Any news on this? Using SVN and having the same issue. 6-channel WMA file getting downmixed to 2-channel in MP. Working correctly in WMP 9 & 11 on same machine. Attached a 6-channel sample file. |
| | |
| | #10 (permalink) |
| Portal User Join Date: May 2007 Age: 34
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
| I get the same problem too, with a player in windows, all my file are played in 5.1, but in mediaportal, it's downmix in 2 channels. I am looking for an answer too. If somebody can help us... |
| | |
![]() |
| Bookmarks |
| Tags |
| decodes, stereo, wma, wmv |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AverTV Purity-3D Dual MCE 500 Drivers | Technifide | General Support | 10 | 2006-10-17 14:54 |
| Pinnacle PCTV Stereo recognized as 2 cards ? setup crashes | Redguy | General Support | 2 | 2006-08-15 12:22 |
| Switch between AC3 and stereo | Johan | General Support | 0 | 2006-04-25 08:07 |
| RC3: AC3 sound vs. Stereo | Uli321 | The old Bugreport Forum | 2 | 2006-04-09 17:26 |
| AC3 Filter - stereo to 5.1 works in WMP not Gspot or Graph | irrotational | OffTopic | 2 | 2005-10-18 14:57 |