Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Create Avi from TBitmap

Posted on 2004-09-17
5
Medium Priority
?
319 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 23

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 23

Accepted Solution

by:
Ferruccio Accalai earned 2000 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 23

Expert Comment

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

F68 ;-)
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

636 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