Log in

View Full Version : VapourSource: vapoursynth script importer for avisynth


Chikuzen
31st July 2013, 04:02
VapourSource is a source filter of avisynth2.6 to import vapoursynth script.
You could treat vpy more easily than AVISource and HBVFWSource, since this does not use Video for Windows.

binary: VapourSource-0.0.4.zip (https://github.com/chikuzen/VapourSource/releases/download/0.0.4/VapourSource-0.0.4.zip)
sourcecode: https://github.com/chikuzen/VapourSource/

requirements:
-avisynth2.6/Avisynth+r1569 or greater
-vapoursynth r30 or later
-Microsoft Visual C++ 2015 Redistributable Package
-Windows Vista sp2 or later

https://dl.dropboxusercontent.com/u/19797864/forum/vapoursource_00.jpg

EDIT: 2016-05-07 update to 0.0.4

sneaker_ger
31st July 2013, 12:38
Thx.

P.S.: you'd usually want to put fmtc.bitdepth at the end of your script (referring to your screenshot)

pbristow
4th August 2013, 23:53
OOH! What a clever idea! Allows us to combine the best of both worlds (in a limited but still bound-to-be-useful fashion), and provides an easy way to start tinkering with VS for us old-fashioned folks who haven't quite dared tackle it yet. :)

Chikuzen
6th August 2013, 12:50
update to 0.0.2

* fix vertical flip issue on COMPATBGR32.
* allow to input RGB24 clip.

Chikuzen
7th May 2016, 11:58
update to 0.0.4

- VS2010 to VS2015
- update avisynth.h, VapourSynth.h and VSScript.h
- add 64bit binary

MysteryX
19th June 2018, 00:14
Does this allow to load a x64 Vapoursynth script within a x86 Avisynth script?

jackoneill
19th June 2018, 11:50
Does this allow to load a x64 Vapoursynth script within a x86 Avisynth script?

Nope.

32 bit Avisynth -> 32 bit VapourSynth
64 bit Avisynth -> 64 bit VapourSynth

(It links to VSScript.dll.)

Boulder
3rd August 2020, 16:30
Is it possible to use Vapoursource so that the Vapoursynth part gets the video data from the Avisynth part?

Something like this:
DGSource("C:\Share\av2004.dgi",cb=12,cl=8,cr=8)
clp = QTGMC("very slow")
vs = """
from vapoursynth import core
clp = core.cas.CAS(clp, sharpness=0.25)
"""
VSEval(source=vs)

DJATOM
3rd August 2020, 20:01
Not really. But you can use avsw.Eval inside vapoursynth to process something by avs script (declaring inputs from vapoursynth that can be used inside avisynth block of code) and then output result into vapoursynth.
clip = core.your.Source(file)
avs_script_part = """
clip
your avs code here
"""
clip2 = core.avsw.Eval(avs_script_part, clips=[clip], clip_names=["clip"])
clip2.set_output()

Myrsloik
3rd August 2020, 20:43
Is it possible to use Vapoursource so that the Vapoursynth part gets the video data from the Avisynth part?

Something like this:
DGSource("C:\Share\av2004.dgi",cb=12,cl=8,cr=8)
clp = QTGMC("very slow")
vs = """
from vapoursynth import core
clp = core.cas.CAS(clp, sharpness=0.25)
"""
VSEval(source=vs)

Now I'm curious why you want to mix things. Why not abandon the avisynth peasants?

videoh
4th August 2020, 01:07
DGSource() has native Vapoursynth support so I wonder the same thing.

Boulder
4th August 2020, 05:21
MVTools in Avisynth is slightly ahead of the Vapoursynth port, in particular the ability to use a low bitdepth analysis clip for the vectors and process in high bitdepth is a big plus performance-wise. Also the SAD calculation with different chroma weighting is useful.
Are there any caveats in using avsproxy with MVTools (other than that I would have to install the x86 version of Avisynth+ and necessary plugins)?

ChaosKing
4th August 2020, 07:55
avsproxy only supports 8bit video, so you'll need to use stacked format for 10, 16, 32 bit video etc. x86 + 8bit only are the only "restrictions" I'm aware of.

EDIT
With avsproxy I mean avsw.Eval()

Boulder
4th August 2020, 08:07
avsproxy only supports 8bit video
Ah, of course, thank you. That would make things a bit complicated as well.

ChaosKing
4th August 2020, 08:35
Well its just 2-3 commands more

In VS you'd use fmtc.stack16tonative() and maybe fmtc.nativetostack16() if you go back to avs
In avs ConvertToStacked()

Milardo
2nd May 2022, 02:30
Hi, so does this allow one use a vapoursynth script within avisynth? Or is it the other way?

Reel.Deel
2nd May 2022, 03:12
Hi, so does this allow one use a vapoursynth script within avisynth? Or is it the other way?

VapourSource is for AviSynth and lets you import a VS script. Latest version is here:https://github.com/Beatrice-Raws/VapourSource/releases

VS_AvsReader (https://github.com/chikuzen/VS_AvsReader) is the other way around; import an AVS script in VapourSynth. Since VS is able to load AVS plugins, I would think that this plugin is obsolete.