SDL-Video programming

I recently sent a mail with the following question. I am resending
it again.

Actually, I am looking for an example that gives me a general idea as to
how to play video with/without audio(ie i want to play an *.avi file{say}).
Mainly I want to pass my video buffer into sdl to play… Can anyone point
me to an example or 2 or give me a general idea as how to go about coding
for it? What I need is to code in such a way that I want to open the
display, process the avi file, go thr the decoder and output video …

Also I’ll be greatful if there’s any doc. on framebuffer support for

Thanks and Regards,