You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{core,PyScript}from'vapoursynth-ts'// Like you would in the Python bindingsconstsource=core.lsmas.LibavSMASHSource('./haruhi_01.mkv')// can also import a Python scriptconstmyscript=newPyScript('./haruhi_01.vpy')constmyscript2=newPyScript('./haruhi_01v2.vpy')// Boring!!constcomp=core.std.StackVertical([myscript.getOutput(0).clip,myscript2.getOutput(0).clip])// Way better 👍constbitOfGrain=comp.grain.Add(10,15)// Way more betterer 👍👍constlottaOfGrain=comp.grain.Add({var: 26,uvar: 12})source.setOutput(0)comp.setOutput(1)bitOfGrain.setOutput(2)lottaOfGrain.setOutput(3)
Specifying core flags
import{core,CoreCreationFlags,setCoreCreationFlags}from'vapoursynth-ts'// Has to be set before any call to core has been donesetCoreCreationFlags(CoreCreationFlags.DisableAutoLoading,CoreCreationFlags.DisableLibraryUnloading,CoreCreationFlags.EnableGraphInspection)constclip=core.std.BlankClip()