View Single Post
Old 23rd June 2019, 18:53   #1  |  Link
gonca
Registered User
 
Join Date: Jul 2012
Posts: 1,213
Need some help with a Vapoursynth script

When using an avisynth script for my encode all works
Code:
LoadPlugin("C:/Program Files (Portable)/dgdecnv/DGDecodeNV.dll")
DGSource("I:\xxxxx.dgi",  fieldop=0, fulldepth=True)

DGTelecide(mode=1, dthresh=3.5)
DGDecimate()

#####CROP#####
Crop(12, 60, -8, -60)

#####RESIZE#####
Spline64Resize(854, 370)

ConvertBits(10)
When using the vapoursynth equivalent I have problems
Vapoursynth Editor check says the script is fine but I can't even get vdub2 to load it
Code:
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin("C:/Program Files (Portable)/dgdecnv/DGDecodeNV.dll")
clip = core.dgdecodenv.DGSource(r'F:\xxxxx.dgi',  fieldop=0, fulldepth=True)

#####AVSCOMPAT#####
core.avs.LoadPlugin("C:/Program Files (Portable)/dgdecnv/DGDecodeNV.dll")

#####IVTC#####
clip = core.avs.DGTelecide(clip, mode=1, dthresh=3.5)
clip = core.avs.DGDecimate(clip)

#####CROP#####
clip=core.std.Crop(clip, left=12, right=8, top=60, bottom=60)

#####RESIZE#####
clip=core.resize.Spline36(clip=clip, width=854, height=370)

clip = core.resize.Point(clip, format=vs.YUV420P10)

clip.set_output()
Can someone help me find the problem

The reason I am trying to get the vpy script working is that when using 64 bit suptitle I get major artifacts during the appearance of the subtitle
I don't have a problem with ImageFile

Last edited by gonca; 23rd June 2019 at 18:56.
gonca is offline   Reply With Quote