Solved

Create Avi from TBitmap

Posted on 2004-09-17
5
315 Views
Last Modified: 2010-04-05

Hi !
I receive a TBitmap every second in my app. I would like to create an avi file
out of them. I'd need a sample code which

- creates an avi file (320x240)
- adds TBitmap in a loop
- closes the avi file

The avi should be compressed. I searched EE it seems that there exist a component
but I don't have it and I don't know how to use it. A whole demo project would be nice.

Thanks
fuluppi
0
Comment
Question by:fuluppi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12088607
Take a look at Avibuild (BMP to AVI) from here http://www.efg2.com/Lab/Library/Delphi/Graphics/avibuild.zip
0
 

Author Comment

by:fuluppi
ID: 12089024
Hi !
Thanks for this hint. The source does not compile. I have no idea what to change.
fuluppi
0
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 500 total points
ID: 12089375
Here in this part change BitmapSize type from Integer to Cardinal

procedure TAniToolForm.SpeedButton1Click(Sender: TObject);
var
  i: Integer;
  pfile: PAVIFile;
  asi: TAVIStreamInfo;
  ps: PAVIStream;
  nul: Longint;

  BitmapInfo: PBitmapInfoHeader;
  BitmapInfoSize: Integer;
  BitmapBits: Pointer;
  BitmapSize: Cardinal; //<---this one
begin


F68 ;-)
0
 

Author Comment

by:fuluppi
ID: 12089418
that was a simple one ;-) thanks!
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12089426
Glad to have helped you :)

F68 ;-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 273
Mobile Keyboard covers the display of the TMemo 3 114
Delphi selector screen 2 97
enhance the following code 3 53
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question