Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

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

HTVi
TV Discussion Newsgroups

How to decode VBR WMAudio data with Codec DMO?
Haeseong Jo 7/4/2007 6:08:01 AM
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
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen