Log in

View Full Version : Can I Distribute VapourSynth Without Python?


MysteryX
28th May 2018, 16:05
Quick question. Is it possible to distribute VapourSynth on another computer without also installing the Python Runtimes?

Avisynth doesn't have such dependency -- and in my case, it would mean installing .NET Framework AND Python + FFMPEG and a bunch of other stuff would make a fairly bulky installation. Would prefer to reduce that if possible.

Also SVP is written on Python but doesn't require Python runtimes.

DJATOM
28th May 2018, 17:36
You can run VS in portable mode, without actual python3 installation. Just download desired embeddable python3 release (https://www.python.org/ftp/python/3.6.5/python-3.6.5-embed-amd64.zip), extract into certain folder, extract portable VS there, put plugins into .\vapoursynth64\plugins\ and add site-packages path if you need some extra scripts in environment - edit python36._pth for that.
Your application (you also can run vspipe) must start from that folder.

MysteryX
28th May 2018, 23:08
Aren't there also ways to embed prerequisites into the DLL? I could find several tools like pyInstaller but I'm not sure which method is best, and whether it needs to be done at compile-time or can be done afterwards.