Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 61 to 90 of 142
Thread
-
-
THANKS poisondeathray! Now LSFmod is loading.
But in older version of MeGUI/AviSynth+ not loading mlrt_ncnn, so I need to use MeGUI-6666.2308_x64 again -
-
Last edited by cinephil; 14th Sep 2024 at 12:21.
-
Sadly with LSFmod I'm not get the look I wanted. So I trying the other way with WarpDeRing. But get this error
[Attachment 82238 - Click to enlarge]
Code:LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll") FFVideoSource("E:\VR.5\SAMPLE\video\05-5D[JP]+.avi") #FFVideoSource("E:\VR.5\SAMPLE\video\video-film.avi") #FFVideoSource("E:\VR.5\SAMPLE\video\03-Sisters[JP].avi") #crop(6, 0, -8, 0) ColorYUV(gamma_y=-35, cont_y=48, gain_y=-10, off_y=0) #adjust gamma and contrast Tweak(bright=16, coring=false) #adjust brightness Tweak(Sat=1.2, startHue=80, endHue=135) # "red" pixels (boost up) Tweak(Sat=1.2, startHue=325, endHue=15) # "blue" pixels (boost up) LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\fft3dfilter.dll") FFT3DFilter(bt=-1, sharpen=0.7, interlaced=true) #FFT3DFilter(bt=1, sigma=0.3, plane=0, bw=16, bh=16, ow=8, oh=8, ncpu=4, sharpen=0.6, interlaced=true) #FFT3DFilter(bt=1, sigma=0.7, plane=3, bw=16, bh=16, ow=8, oh=8, ncpu=4, sharpen=0.9, interlaced=true) LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\nnedi3.dll") LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\FillBorders.dll") Import("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\Zs_RF_Shared.avsi") Import("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\WarpDeRing.avsi") SeparateFields() warpdering() Weave() ConvertBits(32) ConvertToPlanarRGB(matrix="Rec709", interlaced=true) #SeparateFields() #LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\mlrt_ncnn.dll") #mlrt_ncnn(network_path="1x_BleedOut_Compact_300k_net_g.onnx") #Weave() ConvertBits(8) ConverttoYv12(matrix="Rec709", interlaced=true)
Code:# WarpDeRing v1.0 by mirkosp # HBD mod 1.1 # # Uses aWarpSharp2's flattening to clean out ringing/smaller halos, # then runs some masks to preserve the edges and avoid the thinning. # This is nothing really new but it kind of just works, so eh. # Calling the filter more times in a row is probably more effective than toying with the parameters. # Only really tested out with a DVD, probably only works as intended on SD sources. # For HD, it might need some more mt_expand() in the owarp clip (I don't think, though). # Oh, and it's for newer and minor stuff, like downscaled HD sources released only on DVD and so on. # Don't expect this to work on Trigun. Or, well, I guess it could work, but... you know the deal. # # strength is the warpsharpening depth, so higher values nail more things # tmax and tmin work out the hysteresis mask for the final masking pass # # Requirements: # # awarpsharp2 http://forum.doom9.org/showthread.php?t=147285 # mt_masktools https://github.com/tp7/masktools # nnedi3 http://web.missouri.edu/~kes25c/ # fillmargins http://www.avisynth.nl/users/warpenterprises/ # function warpdering(clip c, int "strength", int "tmax", int "tmin") { sisavs26 = !(VersionNumber() < 2.60) strength = default(strength,6) tmax = default(tmax,10) tmin = default(tmin,7) c addborders(4,4,4,4) fillmargins(4,4,4,4) warp = awarp4(nnedi3_rpow2(rfactor=2).nnedi3_rpow2(rfactor=2),asobel(thresh=255).ablur(),depth=strength) owarp = mt_merge(last,warp,sisavs26 ? vsTEdgeMask(threshY=0,threshU=0,threshV=0).mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().blur(1) : tedgemask(valon=-1).mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().blur(1),true,u=3,v=3) mt_merge(owarp,last,mt_hysteresis(sisavs26 ? vstedgemask(threshy=tmax) : tedgemask(threshy=tmax),sisavs26 ? vstedgemask(threshy=tmin) : tedgemask(threshy=tmin)).blur(1),true,u=3,v=3) crop(4,4,-4,-4) } function warpdering_faster(clip c, int "strength", int "tmax", int "tmin") { sisphbd = AvsPlusVersionNumber > 2294 sischbd = sisphbd ? c.BitsPerComponent() > 8 : false strength = default(strength,6) tmax = default(tmax,10) tmin = default(tmin,7) c addborders(4,4,4,4) fillmargins(4,4,4,4) warp = awarp4(nnedi3_rpow2(rfactor=2).Spline36Resize(width*4, height*4, 0.25, 0.25),asobel(thresh=255).ablur(),depth=strength, chroma=1) owarp = mt_merge(last,warp,sischbd ? vsTEdgeMask(threshY=0,threshU=0,threshV=0, u=1, v=1).mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().blur(1) : TEMmod(threshY=0,chroma=0).mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().blur(1),true,u=1,v=1) mt_merge(owarp,last,mt_hysteresis(sischbd ? vstedgemask(threshy=tmax, u=1, v=1) : sischbd ? vstedgemask(threshy=tmax, u=1, v=1) : TEMmod(threshy=tmax,chroma=0),TEMmod(threshy=tmin,chroma=0)).blur(1),true,u=1,v=1) crop(4,4,-4,-4) Mergechroma(c) }
-
Do you have new version of FillBorders.dll or old version of FillMargins ?
https://github.com/Asd-g/AviSynth-FillBorders/releases -
Not sure, it works for me
How about simple colorbars with warpdering ? Do you get same error ?
Code:colorbars(pixel_type="YV12") warpdering()
-
Try explicitly filling in the values, such as fillmargins(clip=c, left=4, top=4, right=4, bottom=4)
-
If I use it like this in the script:
Code:warpdering(fillmargins(clip=c, left=4, top=4, right=4, bottom=4))
[Attachment 82242 - Click to enlarge]
If like this:
Code:warpdering(fillmargins(left=4, top=4, right=4, bottom=4))
-
I meant edit line 31 in warpdering.avsi to say fillmargins(clip=c, left=4, top=4, right=4, bottom=4) , save it
In the script you still call with warpdering()
What avs version are you using ? If you don't know
Code:version()
Do you have a clean plugins folder ? could there be conflicting functions or plugins with same name that autoloaded ? If so , clean out the plugins folder -
I cleaned the folders (leaving archived plugins inside) and after loading MeGUI - it auto-downloaded plugins and wiped out archives, that was left in folders
So I returned the needed plugins.
The one that able to give error messages:
[Attachment 82243 - Click to enlarge]
New error is:
[Attachment 82244 - Click to enlarge] -
fillmargins has an argument named clip, so I don't know what that error message is about, but try omitting the clip argument, just explicitly enter the left,top,right,bottom , save it
Code:fillmargins(left=4, top=4, right=4, bottom=4)
Code:FillMargins (clip, int "left", int "top", int "right", int "bottom", int "y", int "u", int "v")
Also update your avs+ version, avs+ 3.5 r3106 is a few years old and incompatible with things like avs-mlrt . Hundreds of bug fixes since then -
The error the same
[Attachment 82245 - Click to enlarge]
If I replace it with the new one (avs+ 3.7.3 r4003) - it crashing on the loading script attempt and not give error messages.
Guess I'm not in luck with the fight against halos and ghosts -
No idea, might be a megui issue. I can't reproduce the error with avs+ only
Not sure if it will make a difference, but I'm using r4066 from here
http://forum.doom9.org/showthread.php?t=181351 -
It's a bad thing that some part of the Histogram sink in 0-16 area? Or it's just a noise in there?
Code:LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll") FFVideoSource("E:\VR.5\SAMPLE\video\05-5D[JP]-endT.avi") ConvertBits(16) ColorYUV(gamma_y=-35, cont_y=46, gain_y=-10, off_y=0) Tweak(bright=10, coring=false) Tweak(Hue=-16) Tweak(sat=1.1) 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) Histogram("levels") TurnRight().Histogram().TurnLeft()
[Attachment 82331 - Click to enlarge] -
Yes and no. In that particular case the data below Y=16 is just overshoots from over sharpening or compression artifacts around the bright white text. What you want to avoid is significant parts of the picture falling below that level. In that shot the black background is a little above Y=16.
-
It is not named argument - it is simply first argument in a call and it must be clip (source clip to process). So in AVS it is either 'last' auto-argument in a script or user-provided clip (of any name).
Like
my_clip=ColorBars()
FillMargins(my_clip, left=5)
should work the same (in simple example)
ColorBars()
FillMargins(left=5)
as standard AVS filters. Sometime filter do not accept name=value method (that allow to provide arguments in any order) and require arguments to be in order as compiled.
See sources where AddFunction() is located - it have list of all agruments (and names if persent) - https://github.com/Asd-g/AviSynth-FillBorders/blob/e641c36e99f8d55b6e58b7f82e5ba282588...rders.cpp#L759 First param is c - it is unnamed param of clip-type. If param have name it is encoded as [name]type . -
-
Is there a version of ContrastMask filter that works in 16 Bit depth? I have good result with it, but since it works only in 8 Bit depth - I ended up with banding in histogram
-
Assuming ContrastMask, is this script:
Code:function ContrastMask(clip v, float "gblur", float "enhance") { enhance = default (enhance, 10.0) tvcolor = default (tvcolor, true) gblur = default (gblur, 20.0) enhance = (enhance>=0.0 && enhance<=10.0) ? float(enhance*0.1) : 1.0 v2=v.Tweak(sat=0) v2=v2.invert() v2=v2.gaussianblur(50.0,50.0+gblur) photoshop_overlay=mt_lutxy(v,v2,"x 127.5 > y 255 x - 127.5 / * x 255 x - - + y x 127.5 / * ? ") merged=overlay(v,photoshop_overlay,opacity=enhance) return merged }
try:
Code:function ContrastMask(clip v, float "gblur", float "enhance") { enhance = default(enhance, 10.0) gblur = default(gblur, 20.0) enhance = (enhance >= 0.0 && enhance <= 10.0) ? float(enhance * 0.1) : 1.0 # Get the bit depth and scaling factors bit_depth = v.BitsPerComponent() max_val = pow(2, bit_depth) - 1 half_max_val = max_val / 2.0 # Convert to grayscale and invert v2 = v.Tweak(sat=0) v2 = v2.Invert() # Apply Gaussian blur v2 = vsTCanny (v2, sigmaY=gblur, mode=-1) # Construct the expression for mt_lutxy expr = "x {} > y {} x - {} / * x {} x - - + y x {} / * ?".format(half_max_val, max_val, half_max_val, max_val, half_max_val) # Apply the contrast mask effect photoshop_overlay = mt_lutxy(v, v2, expr) # Merge the original and overlay clips merged = Overlay(v, photoshop_overlay, opacity=enhance) return merged } # requires: https://github.com/Asd-g/AviSynth-vsTCanny and https://github.com/pinterf/masktools
Code:ClearAutoloadDirs() SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE) LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\LSMASHSource.dll") LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\vsTCanny.dll") LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\masktools2.dll") Import("F:\Hybrid\64bit\Avisynth\avisynthPlugins\mtmodes.avsi") # Load source LWLibavVideoSource("G:\TestClips&Co\files\10bit Test.mkv", cache=false, format="YUV420P10", prefer_hw=0, repeat=true) org = last # Apply ContrastMask ContrastMask(enhance=2.5) StackHorizontal(org, last) # Set output fps and prefetch AssumeFPS(25, 1) PreFetch(16) return last
Here's also Vapoursynth variant if someone needs it-
Cu SelurLast edited by Selur; 5th Oct 2024 at 10:04. Reason: Avisynth: mode=-1, link to Vapoursynth version
users currently on my ignore list: deadrats, Stears555 -
Thanks, Selur.
But I have some error:
[Attachment 82675 - Click to enlarge]
Code:LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll") FFVideoSource("E:\VR.5\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() 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() even = SelectEven(last).ContrastMask(enhance=3.0) odd = SelectOdd(last).ContrastMask(enhance=3.0) Interleave(even, odd) Weave() ColorYUV(gamma_y=-35, cont_y=46, gain_y=-10, off_y=0) #gain_y=-10 Tweak(bright=3, coring=false) 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) ConvertToYV12(matrix="rec601", interlaced=true)
-
You are using Avisynth+, right?
https://avisynthplus.readthedocs.io/en/master/avisynthdoc/syntax/syntax_internal_funct...ng.html#format
if not, replace that line with:
Code:expr = f"x {half_max_val} > y {max_val} x - {half_max_val} / * x {max_val} x - - + y x {half_max_val} / * ?"
users currently on my ignore list: deadrats, Stears555 -
Hmm... I getting this line in the histogram, that not was there before. And some color bars on the black border from MergeChroma/aWarpSharp, that was eliminating with old ContrastMask. Can it be fixed?
[Attachment 82676 - Click to enlarge]
Code:LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll") FFVideoSource("E:\VR.5\SAMPLE\video\03-Sisters[US].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() 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.2) Weave() ColorYUV(gamma_y=-35, cont_y=46, gain_y=-10, off_y=0) #gain_y=-10 Tweak(bright=16, coring=false) 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) ConvertToYV12(matrix="rec601", interlaced=true) Histogram("levels") Histogram("color2") TurnRight().Histogram().TurnLeft()
-
The horizontal line is the midpoint indicator for histogram() - it's normal . It might have displayed slightly differently in older avs versions. You can test it yourself on a black synthetic video, it's still there
Code:blankclip(pixel_type="YV12") turnright() histogram() turnleft()
And some color bars on the black border from MergeChroma/aWarpSharp, that was eliminating with old ContrastMask. Can it be fixed?
You can crop() the borders and add clean borders back with addborders() near the end of the script
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