Sign in to follow this  

Grabbing pixel data from a movie file for use as texture

This topic is 3742 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I'm making a video texture system for a Nvida Scenegraph based application. The scenegraph itself will be doing the OpenGL code for me, so all I have to do to make a texture, and use it is: Set the creation flags on the texture object in a manner so that the data will be streamed and not accumulate in memory. TextureImage::createImage( width, height, depth , Image::IMG_RGBA, Image::IMG_UNSIGNED_BYTE, pixels ); then call the TextureImage::demandUpload() every time I want to update the texture. This is all fine and dandy, I do however have no idea how could get this data from a video file. I have looked a bit on ffmpeg, and OpenCV, and searched around for approximately 6 hours without any luck. I did find NeHe's tutorial on how to play .avi files, but my system needs to support as many formats as possible. If anyone had any tips on how to use ffmpeg, or know about any other framework suitable for accomplishing my goal I would be very greatful.

Share this post


Link to post
Share on other sites

This topic is 3742 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this