Sign in to follow this  
Knuckler

VFW AVIStreamRead failure with MP3 audio

Recommended Posts

I have an AVI that has audio encoded in mp3 format by something called "lame 3.98". I'm using the VFW AVI library. Opening the avi and reading its format works, but when I try to read the data of the audio, everything breaks down with AVIStreamRead. If I'm using PCM-16 audio encoded data, the data will be read, but If I using mp3 or mpeg2 audio data AVIStreamRead fails and returns "-2147204921" which doesn't compare to any of the error messages. Does anyone know of a solution? I'd really prefer not to have to use uncompressed audio as it's too big.

Share this post


Link to post
Share on other sites
Thanks. I just found that AVIStreamRead returns an error or crashes on audio encoded in mp3, mpeg2, aac, and Dobly ac3. It works fine with wav, and wma!!!! and I'll leave it that =)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this