Solved

Create Avi from TBitmap

Posted on 2004-09-17
5
310 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now