?
Solved

Video

Posted on 2002-03-27
8
Medium Priority
?
164 Views
Last Modified: 2010-04-04
Is there any way to write an application that takes an AVI file and saves each frame as a picture file ?  I presume that it can only be stored as a BMP.  If this is the case how can I convert that BMP to a Jpeg ?

I would be grateful for all advice offered regarding this.

Thanks in advance

John
0
Comment
Question by:johnclarke
8 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6898864
Hello

  To convert bmp to jpg

procedure TForm1.Button2Click(Sender: TObject);
var
  Jpg : TJpegImage;
  Bmp : TBitmap;
begin
  try
    Bmp := TBitmap.Create;
    Bmp.LoadFromFile('c:\bmp.bmp');
    Jpg := TjpegImage.Create;
    Jpg.Assign(Bmp);
    Jpg.SaveToFile('c:\jpg.jpg');
  finally
    Bmp.free;
    Jpg.Free;
  end;
end;
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 6898883
Check out the abilities of the TAnimate component on the Win32 tab. It works fine with AVI's and tells you the number of frames in it. You can seek for frames and you can select a certain frame with it. Then copy the canvas to the canvas of a TJPegImage component and save it as a JPeG. Done. (I guess...)
0
 

Author Comment

by:johnclarke
ID: 6898976
Workshop_Alex,
              Could you give me an example of this ?

Thanks in advance

John
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 9

Expert Comment

by:ginsonic
ID: 6899480
Read this for capture the avi frames into bmps:
'Here's code to get the frames into seperate bitmaps...' at

http://www.efg2.com/Lab/Library/UseNet/1999/0503a.txt
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6900239
Hello

  TAnimate will work only with AVI files that not contain sounds (silent AVI clips), also will not work with many of AVI clips that using some compression methods
0
 

Expert Comment

by:CleanupPing
ID: 9343209
johnclarke:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 7

Expert Comment

by:knightmad
ID: 9471033
Wow, Its been a long time since this comment have been visited!

johnclarke,
No comment has been added lately (19 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: PAQ/No Refund

-- Please DO NOT accept this comment as an answer ! --

Thanks,

knightmad
EE Cleanup Volunteer

Remember you (all) can object this recommendation if you disagree, just leave a post here explaining why are you objecting and what should be done instead.
Within 7 days probably this thread will be closed, so, hurry up! : )
0
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 9536932
This question is PAQed and no points refunded (of 50)

YensidMod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month14 days, 23 hours left to enroll

840 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