View Full Version : [load video]How to
11-18-2008, 07:53 AM
I'm looking for help because i would like to know how to load a video in OpenGl and then to use it as texture.
Is there a particular library or method to do this?
Thanks for the help, I'll wait for a reply!
11-18-2008, 08:46 AM
There is different video formats.For mpeg movie type seelibmpeg2 (http://libmpeg2.sourceforge.net/).I don't see a tutorial on the web site,maybe there is some example programs with source code that come with the package. When you will be able to load the movie frames, look at this thread (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Main=48108&Number=246505)to make the streaming efficient under OpenGL.
11-19-2008, 07:59 AM
If I remember well, Quicktime on Windows and Mac OS X can do that.
11-20-2008, 01:41 AM
well, I use linux as env and it seems that libmpeg library runs on it. But I explain better what I want to do before using it.
My real purpose is to load a video to obtain fotograms for a program that use glut and glew libraries and to apply to each fotogram something that is made in my code. Does libmpeg library let me do this? Or Not? What can I do to solve this problem? Loading a video with libmpeg, do I obtain fotograms that could be processed?Does anybody know if I could find example code?
Thanks in advance!
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.