Video with SDL

I am looking for an example that gives me a general idea as to how to play
video with audio sync. Mainly I want to pass my video buffer into sdl to
play… Can anyone point me to an example or 2? What I need is to code in
such a way that I want to open the display, process the 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,