Jump to content
  • Advertisement
Sign in to follow this  
LTKeene

Drawing "into" a video stream?

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

Hello all, sorry for the bizarre subject heading, here's what I mean: I'm currently doing some drawing in a Windows Form app using Managed DirectX (DX9). I'd like to capture what I'm drawing as a video. The length of the video is not known a prior...in other words the app starts drawing and it should record the animation as a video until the user clicks Stop. Is it possible to use DX9 to draw to the screen and then draw to a video so-to-speak? Or is this completely the wrong way to go about it? Thanks in advance, L

Share this post


Link to post
Share on other sites
Advertisement
DirectX doesn't have anything like that. The easiest way would be to save each "frame" as a BMP file, and then use a program like VirtualDub to create an. AVI file from the frames.

Apart from that, you'll probably end up having to save each frame as a bitmap in memory, and then using a video library to append the frame to the video.

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!