Log in

View Full Version : Possible to feed frames through external command line program?


Syncopator
12th July 2006, 06:02
Can AVISynth feed frames through an external command line program? Something like the following perhaps:


SaveCurrentFrame("framefile.bmp")
ExecuteCmd("c:/utilities/processbmpframe.exe framefile.bmp frameout.bmp")
LoadCurrentFrame("frameout.bmp")

and iterated over an entire input AVI?


Basically, I have an external program I'd like to use as a filter, but it wasn't written as a virtualdub or avisynth filter, it's just a command-line command that takes an input file and produces an output file. I know it'll be slow, but it would be far more space efficient than splitting it into separate files and recombining them all as a compressed AVI after processing...


--

Sync

Mug Funky
12th July 2006, 13:12
hmm... does this program support stdin input?

you might be able to pipe the avs script via avs2yuv or mplayer, then pipe the output of this program to an encoder.

it'll probably be a little messy, but will save space.