Show video-stream inside OpenGL application

Hi!

I’ve seen/read about applications displaying a videostream inside an OpenGL application/window.

Can you direct me to some sourcecode for doing this?

Are there any libraries or functions that I can find on a web-site somewhere?

-Thanks!

Torbjørn

I’ve checked out http://www.sulaco.co.za/opengl2.htm but I need sourcecode to be C or C++…

Have you looked at nehe.gamedev.net, tutor 35 is on playing AVI’s in a opengl window. C/C++ code

Originally posted by torbjorn:
I’ve checked out http://www.sulaco.co.za/opengl2.htm but I need sourcecode to be C or C++…

Thanks a lot!

-Hadn’t seen this one!

Torbjørn

The lesson #35 uses an AVI-file.

Do you know of similar code for using images from a camera (live) ?

Thanks again :slight_smile:

Torbjørn

Have you looked at SDL(sound device library) www.libsdl.org
I think they have some video support, maybe even streaming video.

Originally posted by torbjorn:
[b]The lesson #35 uses an AVI-file.

Do you know of similar code for using images from a camera (live) ?

Thanks again :slight_smile:

Torbjørn[/b]

Not yet, but soon :slight_smile:

Thanks again !!!

Torbjørn

I remember the subject of streaming video, has been on here in the past, did a quick google search and came up with the following on streaming video to opengl.

Note this example uses DirectX to capture the video stream then opengl to render it.
http://www.cs.unc.edu/~ryang/Miscellaneous/DShow/README.htm

Also on the ATI website had some stuff on video stream playback.

Originally posted by torbjorn:
[b]Not yet, but soon :slight_smile:

Thanks again !!!

Torbjørn

[/b]

Thanks again and again :slight_smile:

Your input is greatly appreciated!

I will dig into this on monday morning :slight_smile:

Torbjørn