Log in

View Full Version : AVS in Delphi


dimzon
26th April 2004, 12:47
Hi!
Can anybody help me (post code snippet) for such puposes:

Open AVS File
Determinate frame count
MoveTo frame by frame index
Store frame as 24bit bitmap

Shalcker
26th April 2004, 15:12
AviSynth uses VFW (Video For Windows), so you can open .avs script like you open any .avi using VFW.

Example can be found here - http://swiss.torry.net/video.htm (look at second item - Compressed AVI Read/Write Units)

stax76
26th April 2004, 16:09
you can check out Gordian Knot source code but you must know the GPL license if you want to reuse code, the Win32 API is called avifile and I think there are delphi units or something like this (I'm clueless about Delphi, unfortunately (it's good to know many languages, I'll have to learn...))

aquaplaning
27th April 2004, 10:28
have a look at the "AVS Compare" code. it contains delphi code to call the avisynth.dll and is able to do the things you are looking for.

get it from:
http://aquaplaning.20m.com/

esby
30th April 2004, 11:15
you could look for a vfw unit
and use it too...

esby