Group:  English: Entertainment ยป microsoft.public.windowsmedia.sdk
Thread: How to decode VBR WMAudio data with Codec DMO?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

How to decode VBR WMAudio data with Codec DMO?
Haeseong Jo 04.07.2007 06:08:01
Hello,

I'm developing an encoder/decoder that compresses .WAV files to WMAudio
format with Windows Media Codec DMO.

In 1-pass and 2-pass CBR mode, it works fine, encoding and decoding both.

In 1-pass VBR mode, the encoding seems to work, but I try to decode,
IMediaObject::ProcessInput/ProcessOutput() function just returns E_FAIL.
(0x80004005)

The encoding part is like this:

pEncoder->SetVBRModeEnable();
pEncoder->SetOutputFormat(...);
pEncoder->SetInputFormat(...);
....
while (IsDataRemain) {
pMediaObject->ProcessInput(...);
pMediaObject->ProcessOutput(...);
}
....


And the decoding part:

pDecoder->SetInputFormat(...); // from pEncoder->GetOutputFormat()
pDecoder->SetOutputFormat(...);
....
while (IsDataRemain) {
pMediaObject->ProcessInput(...); // E_FAIL !!!
pMediaObject->ProcessOutput(...); // E_FAIL !!!
}
....


Any check point to decode VBR WMAudio?
Any difference between CBR and VBR?

Thanks in advance.

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net