Log in

View Full Version : VapourSynth Portable - error


speedyrazor
17th January 2016, 08:50
Hi, I am trying to get the portable Vapour synth working but just keep getting an error message, im sure its just a newbie issue.
I am on Windows 7 64bit, I have downloaded Python 3.5.1 embedded and unzipped Vapoursynth portable into that directory. I have created a script:

import vapoursynth as vs
core = vs.get_core()
ret = core.lsmas.LWLibavSource(source=r'movie.mov', format="YUV422P10")
ret = core.fmtc.resample (clip=ret, w=720, h=576, css="444", kernel="spline36")
ret = core.fmtc.matrix (clip=ret, mats="709", matd="601")
ret = core.fmtc.resample (clip=ret, css="422")
ret = core.fmtc.bitdepth (clip=ret, bits=10)
ret = core.std.AssumeFPS(ret, fpsnum=25, fpsden=1)
ret.set_output()

I cd'd into the pythoin 3.5.1 directory and run:

"C:\Program Files\python-3.5.1\VSPipe.exe" --y4m "C:\Users\myself\Desktop\script.vpy" - | "G:\ffmpeg\ffmpeg.exe" -f yuv4mpegpipe -i - -c:v prores -an output.mov

But then I get this:

Script evaluation failed:
Python exception: LoadLibraryEx failed with code 87: update windows and try again
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1489, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:26885)
File "C:\Users\myself\Desktop\script.vpy", line 3, in <module>
core.std.LoadPlugin(r'C:\Program Files\python-3.5.1\vapoursynth64\coreplugins\vslsmashsource.dll')
File "src\cython\vapoursynth.pyx", line 1381, in vapoursynth.Function.__call__
(src\cython\vapoursynth.c:25200)
vapoursynth.Error: LoadLibraryEx failed with code 87: update windows and try again

I do also have python 2.7.11 installed as I use this for other application development.
What am I doing wrong please?

speedyrazor
17th January 2016, 17:17
Sorry about that, updated, but now I am getting:

No attribute with the name fmtc exists.

sneaker_ger
17th January 2016, 17:27
Did you actually load fmtconv (http://forum.doom9.org/showthread.php?t=166504)?

poisondeathray
17th January 2016, 20:29
I have fmtconv.dll in the vapoursynth plugins64 folder to autoload, but like avisynth some people like specifying exactly what to load

EDIT: sorry, that is for the installed version. Not sure how the "portable" version works, or if you can place .dlls in a certain virtualized folder

Myrsloik
17th January 2016, 20:51
I have fmtconv.dll in the vapoursynth plugins64 folder to autoload, but like avisynth some people like specifying exactly what to load

EDIT: sorry, that is for the installed version. Not sure how the "portable" version works, or if you can place .dlls in a certain virtualized folder

You put them in vapoursynth64\plugins

Did you actually try to put it in the same path as the installed version?

speedyrazor
17th January 2016, 20:53
Sorry guys, I am new to VapourSynth. Working now.
Thanks for the help.