Solved

Video

Posted on 2002-03-27
8
151 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:mnasman
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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 22

Expert Comment

by:mnasman
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

12 Experts available now in Live!

Get 1:1 Help Now