Solved

Video

Posted on 2002-03-27
8
153 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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