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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.avi file alternative 1

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
GB

Getting increasingly frustrated by the inconsistent behaviour of the OleClass MSComCtl2.Animation control in displaying and playing .avi files, decided to convert the files to .gif format.

I used Jasc Software's Animation Shop which is the sister product bundled with the excellent Paint Shop Pro.

File > Open... (ensuring you have all files as 'Type of file') and select the .avi file to convert - there is no documented way of importing an .avi file

Accept defaults in the next dialog and you will see the animation as being in n frames.

If the background colour of the frames is not transparent, ie alternate white and grey squares, select Animation > Replace Colour..., select radio button 'All frames', click with the mouse on the background colour of the first frame which will replace the old colour value in the 'Replace Colour' dialog, and select radio button 'Transparent opacity', and click OK.

File > Save As... and select 'Save as type:' to be *.gif and name the file.

In the following wizard, accept all defaults.

If you have VFP 8.0, the native Image control will run the animated .gif - if not a web search for 'marchoso.ocx' should provide a download source for the freeware ActiveX control that will also play animated .gifs.



FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommandertm.com
PDFcommandertm.co.uk


 
great tip sir chris! just would like to add there is also GIF98.DLL which is also a free download (people may just google). this is actually what i did when am having problems with the "flying papers" avi to simulate windows copy. i converted it to gif using the same graphics editing software and used the GIF98.DLL. it's just another way of skinning the cat [tongue] peace! [peace]

kilroy [trooper]
philippines

"Illegitimis non carborundum!"
-Gen. Joseph Stilwell
 
Btw/

You can also use a sub-classed Web browser control.

Darrell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top