02.05.2026, 10:19
Yeah, writing "requires mod 2" was silly... Anyway, mod 16 doesn't work either: for some reason QTGMC works with initial clip resolution instead of padded one
clip = core.std.AddBorders(clip=clip, left=0, right=0, top=0, bottom=10) # add borders to archive mod 16 for custom section - 720x496
# adjusting color format to YUV422P8 for custom section
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P8)
[clip] = beforeDeinterlace(clip)
clip = core.std.CropRel(clip=clip, left=0, right=0, top=0, bottom=10) # removing borders for custom section - 720x486
# clip current meta; color space: YUV422P8, bit depth: 8, resolution: 720x486, fps: 29.97, color matrix: 170m, yuv luminance scale: limited, scanorder: top field first, full height: true
clip = core.std.AddBorders(clip=clip, left=0, right=0, top=0, bottom=2) # add borders to archive mod 4 (vsQTGMC) - 720x488
# Deinterlacing using QTGMC
clip = qtgmc.QTGMC(Input=clip, Preset="Medium", InputType=0, TFF=True, TR2=0, SourceMatch=1, Lossless=0, opencl=True) # new fps: 59.94
clip = core.std.Crop(clip=clip, left=0, right=0, top=0, bottom=2) # removing added borders from mod requirement (vsQTGMC) - 720x486
