Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TAviWriter Component and AVIs from Jpegs

Status
Not open for further replies.

ajbufort

Programmer
Apr 4, 2004
50
US
Hi Guys,

Trying to use TAviWriter ( in a program I am writing in order to save a series of jpegs out as an AVI. When I view the resulting movie, however, the colors are splotchy and everything is just plain crappy. What factors might be affecting this? My jpegs in themselves look great before I try to turn them into an AVI. Using simple code like this in a procedure which gets called repeatedly:

Code:
if ( SavingAsAVI ) then
begin
  aviBMP := TBitmap.Create;
  jpegAVI := TJpegImage.Create;
  jpegAVI.LoadFromFile(PicturePathName);
  aviBMP.Assign(jpegAVI);

  AviWriter.Bitmaps.Add(aviBMP);
  jpegAVI.Free;
end;

Anyone have any idea what the deal is? Do I have to use a special CODEC or something? If so, how do I use that with TAviWriter?

Thanks,

-Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top