15.06.2024, 22:13
I seem to be getting errors on the mod size - I've tried lots of different size combinations, but none will allow me to load the preview window. Any help?
u n r e c o g n i z e d t r a n s f e r c h a r a c t e r i s t i c s ( 5 / 0 / 0 = > 0 / 0 / 0 ) . M a y n e e d t o s p e c i f y a d d i t i o n a l c o l o r s p a c e p a r a m e t e r s .
# setting color transfer (709), if it is not set.
if validate.transferIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Transfer=1)
def transferIsInvalid(clip: vs.VideoNode) -> bool:
frame = clip.get_frame(0)
value = frame.props.get('_Transfer', None)
return value in [None, 0, 2, 3] or value not in vs.TransferCharacteristics.__members__.values()
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P10, matrix_s="470bg", range_s="limited")
# removing grain using SMDegrain
clip = smdegrain.SMDegrain(input=clip, tr=1, interlaced=True, subpixel=3, dct=1, tff=True)
clip = smdegrain.SMDegrain(input=clip, tr=1, interlaced=True, subpixel=3, dct=1, tff=True)
# Input preparation for Interlacing
if not interlaced:
inputP = input
else:
inputP = input.std.SeparateFields(tff=tff)
# Input preparation for Interlacing
if not interlaced:
inputP = input
else:
inputP = input.std.SeparateFields(tff=tff)
h = h/2
Quote:It is strange, I have used SMDegrain on several interlaced projects already, but this one is a problem.Before Hybrid deinterlaced automatically before applying SMDegrain, but since SMDegrain has a tff-option and should handle interlaced content I changed it a while ago to use not deinterlace before it, but depending on the settings SMDegrain seems to not work properly.
Quote:I am still getting the "Failed to Initialize VapourSynth Environment" error message,Update to 2024.06.16.1