video from static images

C

cronusf

Hello,

I have a program that renders an animation. I would like the program
to be able to save this animation to a popular video file. Is there
a .NET API for doing this? I looked into DirectShow, but I could not
determine if it can be used to capture data from the screen.
 
C

cronusf

As far as whether it supports screen capture, it doesn't. But if your own
program is generating the animation, it should be simple enough to divert
the images being displayed to the screen to a source filter for a video
compression graph in DirectShow.

Thanks for your reply. My own program is generating the animation and
this is probably what I want to do. If you are familiar with this,
can you elaborate more on what needs to be done or at least give the
DShow interface names so I can start looking them up on MSDN?

Is a source filter basically an array of images?


[...]
 
I

Israel

Thanks for your reply.  My own program is generating the animation and
this is probably what I want to do.  If you are familiar with this,
can you elaborate more on what needs to be done or at least give the
DShow interface names so I can start looking them up on MSDN?

I would also look at the DirectShowLib stuff on SourceForge.
http://sourceforge.net/project/showfiles.php?group_id=136334

We've been using that with C# for a couple of years now without
problems. Most of the code is in C# but we have a few custom filters
written in C++. As long as you have some familiarity with C++ and COM
you can easily create a source filter to take a series of bitmaps from
your application and pump them through the filter. I would look into
using the ASFWriter fitler to start with for creating .wmv files since
there are examples for that and it works pretty well. The examples
that come with direct show SDK already have a simple bitmap array
pumper and I believe a sample graph that dumps to .wmv format.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top