I need to stop posting questions that late at night
But I still struggle to get similar looking picture with new ContrastMask And I have some strange artifacts.
new
oldCode:LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll") FFVideoSource("E:\SAMPLE\video\03.avi") ConvertBits(16) LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\aWarpsharpMT.dll") LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\nnedi3.dll") SeparateFields() MergeChroma(last, Spline36Resize(width/2, height).aWarpSharp2(depth=30).nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=width, fheight=height)) Weave() ColorYUV(gamma_y=-35, cont_y=46, gain_y=-10, off_y=0) #gain_y=-10 Tweak(bright=20, coring=false) #coring=false Tweak(Hue=-16) LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\vsTCanny.dll") LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\masktools2.dll") Import("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ContrastMask2.avsi") SeparateFields() ContrastMask(enhance=1.8) Weave() Tweak(cont=0.9) LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\fft3dfilter.dll") FFT3DFilter(bt=-1, sharpen=0.3, interlaced=true) ConvertBits(bits=8, dither=1) ConvertToYV12(matrix="rec601", interlaced=true)
[Attachment 82684 - Click to enlarge]
new
[Attachment 82685 - Click to enlarge]
And for some reason - today, banding in the script with old ContrastMask not look that bad So maybe I stick with it...
[Attachment 82686 - Click to enlarge]
old
Code:LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll") FFVideoSource("E:\SAMPLE\video\03.avi") LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\aWarpsharpMT.dll") LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\nnedi3.dll") SeparateFields() MergeChroma(last, Spline36Resize(width/2, height).aWarpSharp2(depth=30).nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=width, fheight=height)) Weave() ConvertToYV12(matrix="rec601", interlaced=true) LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\variableblur.dll") LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\masktools2.dll") Import("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ContrastMask.avsi") SeparateFields() even = SelectEven(last).ContrastMask(enhance=3.0) odd = SelectOdd(last).ContrastMask(enhance=3.0) Interleave(even, odd) Weave() ConvertBits(16) ColorYUV(gamma_y=-35, cont_y=46, gain_y=-10, off_y=0) #gain_y=-10 Tweak(bright=3, coring=false) #3 for ContrastMask(enhance=3.0) Tweak(cont=0.9) Tweak(Hue=-16) LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\fft3dfilter.dll") FFT3DFilter(bt=-1, sharpen=0.3, interlaced=true) ConvertBits(bits=8, dither=1)
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 91 to 101 of 101
Thread
-
Last edited by cinephil; 5th Oct 2024 at 08:34.
-
Can't make heads or tail out of your script. (doesn't make any sense to me; too unsorted and unreadable)
Since the new version I posted can't use GaussianBlur from VariableBlur it uses vsTCanny, so there are bound to be differences.
How does it look if you replace:
Code:# Apply Gaussian blur v2 = vsTCanny (v2, sigmaY=gblur)
Code:# Apply Gaussian blur v2 = vsTCanny (v2, sigmaY=gblur,mode=-1)
Code:# Apply Gaussian blur v2 = vsTCanny (v2, sigmaY=gblur, sigmaU=gblur, sigmaV=gblur, mode=-1)
mode=-1 should make it the outputs more similar.
Cu SelurLast edited by Selur; 5th Oct 2024 at 09:53.
users currently on my ignore list: deadrats, Stears555 -
This way it looks much closer to the old ContrastMask.
new+
[Attachment 82689 - Click to enlarge] -
Happy that worked, there might be other parameter to get it even closer to the old version, but I leave that to motivated others.
users currently on my ignore list: deadrats, Stears555 -
If assume that old ContrastMask used all default values for VariableBlur/GaussianBlur,
Code:GaussianBlur (clip, float "varY", float "varC", int "border", bool "integrate", int "Y", int "U", int "V", int "gfunc", int "gfuncc", int "pcr", int "pcrc", int "nthreads")
Code:v2=v2.gaussianblur(50.0,50.0+gblur)
-
v2=v2.gaussianblur(50.0,50.0+gblur)
varY=50
varC=50+gblur
=> vsTCanny should probably use:
Code:v2 = vsTCanny (v2, sigmaY=50, sigmaU=50.0+gblur, mode=-1)
users currently on my ignore list: deadrats, Stears555 -
This giving error:
[Attachment 82707 - Click to enlarge] -
No clue, my guess you would probably have to test a bit to figure out the mapping between GaussianBlur and TCannys GaussianBlur.
users currently on my ignore list: deadrats, Stears555 -
try:
Code:v2 = vsTCanny (v2, sigmaY=5, sigmaU=5+gblur, mode=-1)
users currently on my ignore list: deadrats, Stears555 -
new++
[Attachment 82709 - Click to enlarge]
It's lost even more details in dark areas. I will try later to compare GaussianBlur vs TCannys GaussianBlur on some kind test pattern. Maybe find out something useful. -
Fingers crossed.
I like:
Code:# Apply Gaussian blur v2 = vsTCanny (v2, sigmaY=50+gblur, mode=-1)
Last edited by Selur; 6th Oct 2024 at 13:57.
users currently on my ignore list: deadrats, Stears555
Similar Threads
-
AVISynth AddBorders chroma issue?
By killerteengohan in forum RestorationReplies: 8Last Post: 6th Apr 2024, 05:25 -
Strategies for movement shift
By Bencuri in forum EditingReplies: 4Last Post: 9th Aug 2023, 10:40 -
Chroma Shift creates artefacts
By phelissimo_ in forum RestorationReplies: 0Last Post: 19th Sep 2021, 06:49 -
How to properly fix this chroma abberation issue?
By elektro in forum Newbie / General discussionsReplies: 4Last Post: 10th Aug 2021, 14:39 -
Shift Filter for VirtualDub?
By anachronon in forum EditingReplies: 2Last Post: 17th Mar 2021, 17:14