Reputation: 51
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
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
Reputation: 46041
OpenCV is a good library for this. Have a look here
and here
http://www.codeproject.com/KB/openGL/videotexture.aspx
Upvotes: 0