Creating AVI file from bitmaps

G

gehho

hi,

I'm currently working on a project that reads frames out of a video
file, processes them and saves them to an AVI-file.

For extracting the frames from the source file I use the AviFileWrapper
by Corinna John. So I read the images frame by frame, process them and
would like to save them. I tried to do so with the above mentioned
AviFileWrapper, but it doesn't work. However, showing the frames in a
PictureBox works perfectly. I have tinkered on that task for a few days
now and I just can't seem to find a solution. Even the author (Corinna
John) couldn't help me at that point. Depending on which function I
use, I get different errors: NullReferenceException, other exceptions
or it simply runs into an endless loop obviously.
I found out that some videos do not work with this aviFileWrapper, so
maybe my files also do not...

So I would like to know if somebody knows of another solution to create
AVI files from bitmaps. I also already tried the AviWriter (where you
have the Mandelbrot example) By the way, the video is uncompressed RGB
and there is also no audio inserted, so this should not be the problem.

Thank you very much for your answers!

gehho.
 
R

Richard L Rosenheim

I personally have found the available documentation and examples for writing
an AVI file using DirectShow to be lacking.

Saying that, if all else fails, there is a bitmap -> AVI utility (BMP2AVI)
that might suit your purpose. Or, depending upon your budget, you might
look at the Multimedia SDK from LEADTOOLS. It supposedly should do what you
are trying to do. I personally can't say, as I have only briefly looked at
the package myself.

Richard Rosenheim
 
G

gehho

Thanks for your reply, Richard. But I have already solved the problem
using the AviWriter from René Nyffenegger at
http://www.adp-gmbh.ch/csharp/avi/write_avi.html
It doesn't work perfectly, but it satifies my purposes. Your suggested
programs wouldn't help me out as I can not say to my client to use
different software. It should be an all-in-one solution.

Anyway, thanks for your efforts.
gehho.
 

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