Log in

View Full Version : Avisynth and Python


potter3366
24th June 2010, 12:47
It's possible to integrate Avisynth inside Python script. I'd like to manipulate video with sensors (play, play it backwards, forwards depending on sensor values).
Can someone advise me some examples or links about Avisynth with Python?

Thanks!

7ekno
24th June 2010, 12:58
Have a look at the AvsP project, it's Avisynth and Python (not sure if source is available, but worth asking!) ...

7ek

Zarxrax
24th June 2010, 17:15
Yea, either grab the original AvsP (http://avisynth.org/qwerpoi/), or my AvsP mod (http://forum.doom9.org/showthread.php?t=153248). (doesn't matter which)
Source is included in the "src" folder of the application.
The files that you will be most interested in are "avisynth.py" & "pyavs.py" & maybe "pyavs_avifile.py"

In order for everything to work properly, you may need to ensure that you are using Python 2.5.x, rather than 2.6.x

It may only be an issue with the gui components, but avsp definitely has some issues with the newer builds of python.
If you wanna compile avsp you also need to make sure you have wxpython 2.6.3.3 for python 2.5 (very important that its this version)