Solved

Video

Posted on 2002-03-27
8
155 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi parse string to params 3 156
Reconfigure Delphi Install? 2 65
Why can't I create any project with my delphi EXE file? 6 45
DBCtrlGrid, Delphi, Scroll 7 33
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…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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