Jump to content
  • Advertisement
Sign in to follow this  
Gink

Taking SS's from movie images

This topic is 4808 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

Heres the thing I want to do - I want to watch a clip of something ( like a movie trailer or whatever) and I want to save at least 8-12 images per second from the actual movie. Anyone know how to achieve this or do i need to use printscreen 100-200 times to do this?

Share this post


Link to post
Share on other sites
Advertisement
NeHe lesson 35 shows how to play an AVI.
Part of the process involves getting a Bitmap back from the decoder.
Once you have the bitmap data for each frame, you just have to pick how
many frames you want to save and how many to discard. Then look for a tutorial on saving an image to a TGA or bmp.

-If it is a .mov file, I believe Quicktime has a way of exporting a movie as a set of .jpg's

-If the movie can't be played like in lesson 35, then I believe there are win32 api commands
that let you get hold of the desktop context, and then GetPixels off it.
That would act just like printscreen, and you would have to crop the images.
The other issue with this is that programs like MediaPlayer like to use hardware overlays.
This means that you may not be able to capture the images.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!