MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
Thread Tools Display Modes
Old 2006-09-18, 19:29   #1 (permalink)
Portal Member
 
Join Date: Sep 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts


Default WMA 5.1 in WMV decodes to stereo

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.
granx is offline   Reply With Quote
Old 2006-09-21, 16:21   #2 (permalink)
Portal Member
 
Join Date: Sep 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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
granx is offline   Reply With Quote
Old 2006-09-28, 20:28   #3 (permalink)
Portal Member
 
Join Date: Sep 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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
granx is offline   Reply With Quote
Old 2006-09-29, 07:21   #4 (permalink)
Portal Member
 
Join Date: Aug 2005
Location: Melbourne, Australia
Age: 22
Posts: 707
Thanks: 0
Thanked 0 Times in 0 Posts

My System

Default

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.
jawbroken is offline   Reply With Quote
Old 2006-10-15, 00:37   #5 (permalink)
Portal Manager
 
dman_lfc's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 1,661
Thanks: 0
Thanked 22 Times in 18 Posts

Country:

My System

Send a message via MSN to dman_lfc Send a message via Skype™ to dman_lfc
Default

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.
dman_lfc is offline   Reply With Quote
Old 2007-02-15, 20:51   #6 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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.
talbot3 is offline   Reply With Quote
Old 2007-02-16, 00:05   #7 (permalink)
Portal Manager
 
dman_lfc's Avatar
 
Join Date: Jul 2004
Location: UK
Posts: 1,661
Thanks: 0
Thanked 22 Times in 18 Posts

Country:

My System

Send a message via MSN to dman_lfc Send a message via Skype™ to dman_lfc
Default

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.
dman_lfc is offline   Reply With Quote
Old 2007-02-16, 13:29   #8 (permalink)
Portal Member
 
Join Date: Jan 2007
Age: 28
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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.
talbot3 is offline   Reply With Quote
Old 2007-05-09, 22:36   #9 (permalink)
Portal Member
 
Join Date: Apr 2007
Posts: 222
Thanks: 6
Thanked 0 Times in 0 Posts


Default

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.
phunqe is offline   Reply With Quote
Old 2007-05-21, 14:15   #10 (permalink)
Portal User
 
Join Date: May 2007
Age: 34
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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...
jimmy06 is offline   Reply With Quote
Reply

Bookmarks

Tags
decodes, stereo, wma, wmv

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

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


All times are GMT +1. The time now is 23:16.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress