video capturing

how go i make a opengl application which captures the AVI data directly from a digi/webcam and plays it on the screen with least possible time lag…??

it can be done using directx / VB / VF etc.

but how do i do it with opengl ?

i think there is a tutorial about avi’s in OpenGL at


The current version of GL (1.3) doesnt have fancy abilities like getting data from a capture card directly into frame buffer or texture memory.

I havent read much about GL 2.0, but I think it will provide such solutions.

If you want to read a AVI file, then that’s a different story. GL doesn’t care about image format. Its your job to read them and give them uncompressed or S3_compressed to GL.


I want to know this too. Is there a ‘DevIL’ like library, for motion picture data, where you can do this?