AVI Audio Playback

Started by Dave,

Dave

I have now managed to seperate the audio streams from AVI (DivX) and now i want to playback the audio using bass lib, but its not working.

Is it possible to playback audio streams from video files in bass?

For people who have winamp 2.81, try adding a video file to the playlist and playing it, you will see it dosent playback the video but you can hear the audio (its MP3).

I using VB for this btw. I have figured out how i will sync audio with video so i can use bass lib (hopefully) for movie playback.


Dave

really need a reply on this one guys!

It has to be possible some way or another...

Ian @ un4seen

Need more details on how you are separating the audio from the AVI file, and what type of data you have from the separation. If you've got MP3/2/1 data, then you can play that using a custom file stream (BASS_StreamCreate + STREAMFILEPROC). If you've got PCM sample data, you can use a standard custom stream (BASS_StreamCreate + STREAMPROC).

Btw, are you sure you weren't using some video file plugin in Winamp? I only have a few AVI files, but Winamp 2.8 couldn't play any of them using it's default MPEG audio decoder.

Dave

Hi Ian,

first off thanks for the reply.

I would also like to appologise Winamp 2.81 dosent playback audio from AVI files.

I dont want to try and give you a long drawn out description of how to extract the audio stream. But i have some excellent links:

http://www.divx-digest.com/software/terabits_avi_info.htmlhttp://avicodec.duby.info/

Download the source code for the first program and look into this, this should prove very usful for your understanding.

I am writing the player for my codec in VB, because i prefer VB for work like this, so hence the source code being in this format (above).

If you can get audio playback working for video files, this will be a for sure purchase of a commercial license of Bass Lib..

- Dave