473,379 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Creating AVI file from bitmaps

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.

Nov 17 '05 #1
2 15580
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
"gehho" <ab@webfactory.de> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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.

Nov 17 '05 #2
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.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
0
by: Páll Ólafsson | last post by:
Hi gurus... Well my problem might be simple to some of you but I can't figure it out. Im trying to export Report to pdf in code but I still getting the same error; "The process cannot access...
8
by: Richard Arthur | last post by:
This is a weird problem. 1) I use MediaDet to save a bitmap in a temporary file. 2) I create a bitmap using that temporary file's name. 3) I use the bitmap. 4) I want to destroy the file when...
1
by: James Dean | last post by:
In my program i create a 32ARGB bitmap. To actually create the bitmap seems very slow. In fairness the file size is very big. I support multiple bitmaps as well. I have to convert these bitmaps to...
2
by: Zyrthofar Blackcloak | last post by:
Hello everyone! I just wanted to know how I can create a font from bitmaps in memory (currently in an array), or from GDI+. I want to be able to use that font in a textbox, for example. I have...
0
by: Will Arrowsmith | last post by:
Hi All, I am aiming to create a multiframe Tiff file that I can fax using the windows fax service FAXCOMLib. I have created an array of Bitmaps (pages I want in my fax doc) and succesfully...
2
by: Mike | last post by:
Hello everybody. I am drawing a country map that consists of 149 municipality bitmaps, each around 25 Kb. I draw it onto the in-memory bitmap, then draw it on the picture box. I use C++, but...
3
by: samadams_2006 | last post by:
Hello, Suppose in VB.NET I have a file at: c:\bitmaps\image1.bmp and I want to get the "basename" (ie: image1) and the "path" (ie: c:\bitmaps\) How do I go about it? It doesn't appear...
7
by: JoeC | last post by:
I am trying to create a windows program that reads binary graphics as a resource. This has nothing to do with win32 but conversion of data with memcpy. graphic::graphic(UINT uiResID, HINSTANCE...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.