Jump to content
  • Advertisement
Sign in to follow this  
Nailer

Grabbing pixel data from a movie file for use as texture

This topic is 4105 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!