|
|
Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
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.
|
|
|