user351979
user351979

Reputation: 51

Opengl video texture

I'm developing an opengl application in C++ on Windows using Visual Studio 10. Currently I use a static texture on a cube but I would like to integrate a video texture.

Do you know which library I can use to open and decrypt video ?

Upvotes: 5

Views: 2523

Answers (2)

datenwolf
datenwolf

Reputation: 162297

Have a look at ffmpeg/libavformat/libavcodec or gstreamer. Threy're pretty straigtforward to use. You should use glTexSubImage2D for updating the texture date (using this doesn't do a full texture reinitialization).

Upvotes: 4

epatel
epatel

Reputation: 46041

OpenCV is a good library for this. Have a look here

http://blog.damiles.com/?p=9

and here

http://www.codeproject.com/KB/openGL/videotexture.aspx

Upvotes: 0

Related Questions