13.01.2018, 05:29
(12.01.2018, 21:03)Selur Wrote: 1. you can copy the content of those popups using 'CTRL+C', so no need for tons of screenshots.
2. since you didn't post a debug output: What does the used avisynth script look like? I thought that SMDegrain needed removegrain onel when contrasharp as set to true or something other than '0', but seems like I overlooked a call path.
Cu Selur
Here's the vapoursynth script which works.
# Imports
import os
import sys
import ctypes
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/vsfilters/Support/OpenCL.dll")
import vapoursynth as vs
core = vs.get_core()
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/vsfilters/DenoiseFilter/KNLMeansCL/KNLMeansCL.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# Import scripts
import nnedi3_resample
import mvsfunc
import havsfunc
# Loading D:\Video\Anime\MS GUNDAM WING BD COLLECTION\GUNDAMWINGBD1\GUNDAMWINGBD1\GUNDAMWINGBD1.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="D:/Video/Anime/MS GUNDAM WING BD COLLECTION/GUNDAMWINGBD1/GUNDAMWINGBD1/GUNDAMWINGBD1.mkv", format="YUV420P8", cache=0)
# making sure input color matrix is set as 709
clip = core.resize.Point(clip, matrix_in_s="709")
# Making sure input color range is set to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# cropping the video to 1280x720
clip = core.std.CropRel(clip=clip, left=240, right=240, top=0, bottom=0)
# removing grain using SMDegrain
clip = havsfunc.SMDegrain(input=clip, tr=6, thSAD=600, thSADC=300, RefineMotion=True, contrasharp=True, interlaced=False, subpixel=3, prefilter=0, blksize=8, search=5, truemotion=False)
# denoising using KNLMeansCL
clip = core.knlm.KNLMeansCL(clip=clip, d=9)
# denoising using KNLMeansCL
clip = core.knlm.KNLMeansCL(clip=clip, d=9)
# adjusting output color from: YUV420P8 to YUV420P10 for x265Model (i420)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10)
# Output
clip.set_output()
Here's the Avisynth which does not work (even without the other filters) same settings in the GUI
SetMemoryMax(1536)
SetMTMode(5,8) # changing MT mode
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\LoadDll.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\KNLMeansCL.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\mvtools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\mt_masktools-26.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\VariableBlur.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\warpsharp.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\RgTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\aWarpSharp.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\Toon-v1.1.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\flash3kyuu_deband.dll")
LoadDll("C:\PROGRA~1\Hybrid\AVISYN~1\OpenCL.dll")
Import("C:\Program Files\Hybrid\avisynthPlugins\SMDegrain.avsi")
Import("C:\Program Files\Hybrid\avisynthPlugins\LimitedSharpenFasterMod.avs")
LoadCPlugin("C:\PROGRA~1\Hybrid\AVISYN~1\ffms2.dll")
# loading source: D:\Video\Anime\MS GUNDAM WING BD COLLECTION\GUNDAMWINGBD1\GUNDAMWINGBD1\GUNDAMWINGBD1.mkv
# input luminance scale tv
FFVideoSource("D:\Video\Anime\MS GUNDAM WING BD COLLECTION\GUNDAMWINGBD1\GUNDAMWINGBD1\GUNDAMWINGBD1.mkv",cachefile="D:\Downloads\Video\Anime\MS GUNDAM WING BD COLLECTION\GUNDAMWINGBD1\GUNDAMWINGBD1\mkv_62a98586f99b58e15d3dc3ffa1f9a0e4_41_1_0.ffindex")
# current resolution: 1920x1080
SetMTMode(2) # changing MT mode
# cropping to 1280x720
Crop(240,0,-240,0)
# current resolution: 1280x720
# color modifications
Tweak(sat=1.10)
# denoising using KNLMeansCL
SetMTMode(5) # changing MT mode
KNLMeansCL(d=10,a=9,device_type="auto")
KNLMeansCL(d=10,a=9,device_type="auto")
# grain handling
SetMTMode(2) # changing MT mode
SMDegrain(tr=6,thSAD=600,thSADC=300,RefineMotion=true,contrasharp=true,interlaced=false,subpixel=3,prefilter=0,blksize=8,search=5,Truemotion=false)
# line darkening
Toon()
# debanding
f3kdb(dither_algo=3,grainY=1,grainC=1,dynamic_grain=true,Y=32,Cb=32,Cr=32,blur_first=false)
distributor()
return last