Solved

Video

Posted on 2002-03-27
8
154 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
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 …

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