Hi guys,
I'm a newbie on Avisynth and I have some troubles to apply filters on some videos like the two attachments files.
The first one is a classic vob file and the 2nd is a webrip file, my filters just don't work (derainbow with ChubbyRain for example).
How can I make them work ?
Thanks![]()
+ Reply to Thread
Results 1 to 8 of 8
-
-
-
BIOP Clean.vob :
SetFilterMTMode("QTGMC",2)
FFmpegSource2("BIOP Clean.vob", atrack=2)
ConvertToYV12()
AssumeTFF()
QTGMC( Preset="Slower", SourceMatch=3, Lossless=1)
tdecimate(cycle=25)
ChubbyRain(th=10, radius=10, show=false, interlaced=false)
TemporalDegrain2()
FFmpegSource2("4PL.ts", atrack=1)
ConvertToYV12()
ChubbyRain(th=10, radius=10, show=false, interlaced=false)
santiag(strh=1, strv=1, type="nnedi3", nns=1, threads=0, nsize=6, halfres=false, scaler_post="Spline36Resize")Last edited by SwaYzY; 19th Sep 2020 at 06:21.
-
Your VOB is field blended progressive, so neither QTGMC nor TDecimate are needed, and they will not be able to feed the correct video to your denoisers. So, delete those two lines, and use SRestore instead:
Code:bob(source,-0.2,0.6) restore(frate=25, omode=6)
There is also the question about whether it should be re-timed to the original 24 fps, or kept as the PAL sped-up 25 fps. The original was almost certainly shot at 24 fps. -
srestore, as mentioned by johnmeyer, seems to work well. There is some bad rainbows at 1:40
that chubbyrain didn't really help with, derainbow tones it down a little. You may get further input from
others on this
Code:mpeg2Source("C:\Users\davex\Desktop\avs_test\biop-clean.d2v") yadifmod2(mode=1, edeint=nnedi3(field=-2)) srestore() derainbow() TemporalDegrain2() spline36resize(768,576)
-
Thanks guys but i still can't derainbow the video
I have an other source where I can derainbow but i don't know which filter to use to clean these "shimmering edges?"
Code:
FFmpegSource2("BIOP PO.vob", atrack=2)
ConvertToYV12()
TIVTC_TFM()
Tdecimate()
DeRainbow(thresh=10, interlaced=false)
TemporalDegrain2() -
The new function created by StainlessS over at doom9.org gets rid of about 95% of the rainbow, except at the frame before scene changes. Here's the script I used. You'll want to tune the parameters to get the right trade off between removing rainbows and noise, and removing too much detail (typical denoiser tradeoff). You will see that the rainbow is gone from the brick in the upper left corner. Also, because of SRestore, all the fuzziness caused by the bad fields has been corrected. You will see this most prominently in the right hand holding the leash, and also around the woman's right hand (notice how her bracelet is now sharp and clear).
You can get more rainbow removal by increasing RadT. This uses more frames, but slows down the operation. You can decrease the noise reduction by reducing the two ThSAD values.
Code:source=AVISource("E:\fs.avi").KillAudio().converttoYV12(interlaced=true).AssumeTFF() bob(source,-0.2,0.6) srestore(frate=25, omode=6) output = SpotLess(ThSAD=1000,ThSAD2=1000,RadT=4,Chroma=true,BlkSz=8,OLap=4,Tm=true) return output /* Interleave( \ source \ , trim(output,1,0) \ ) */ Function SpotLess(clip c,int "RadT",int "ThSAD",int "ThSAD2",int "pel",bool "chroma", int "BlkSz",Int "Olap",bool "tm",Bool "glob",Float "bBlur") { RadT = Default(RadT,2) # Temporal radius. (MCompensate arg) ThSAD = Default(ThSAD,10000) # SAD threshold at radius 1 (Default Nearly OFF). ThSAD2 = Default(ThSAD2,10000) # Setting lower, sets SAD thresold to limit blurring effect of more distant reference frame BAD matching blocks. (MCompensate arg) Pel = Default(pel,2) # Default 2. 1, 2, or 4. Maybe set 1 for HD+. (1=precision to pixel, 2=precision to half pixel, 4=quarter pixel) Chroma = Default(chroma,True) # MAnalyse chroma arg. If set to true. Use chroma in block matching. BlkSz = Default(BlkSz,8) # Default 8. MAnalyse BlkSize. Bigger blksz quicker and perhaps better, esp for HD clips. OLap = Default(OLap, BlkSz/2) # Default half of BlkSz. Tm = Default(tm,True) # TrueMotion, Some folk swear MAnalyse(truemotion=false) is better. Glob = Default(glob,Tm) # Default Tm, Allow set MAnalyse(global) independently of TrueMotion. Bblur = Default(bblur,0.0) # Default OFF Assert(1 <= RadT,"SpotLess: 1 <= RadT") pad = max(BlkSz,8) sup = (bBlur<=0.0 ? c : c.blur(bblur)).MSuper(hpad=pad,vpad=pad,pel=pel,sharp=2) sup_rend = (bBlur<=0.0) ? sup : c.MSuper(hpad=pad,vpad=pad,pel=pel,sharp=2,levels=1) # Only 1 Level required where not MAnalyse-ing. MultiVec = sup.MAnalyse(multi=true, delta=RadT,blksize=BlkSz,overlap=OLap,search=4,chroma=Chroma,truemotion=Tm,global=Glob) MultiVec = sup.MAnalyse(multi=true, delta=RadT,blksize=BlkSz,overlap=OLap,search=4,chroma=Chroma,truemotion=Tm,global=Glob) # Need to test for OLap<1 MultiVec_re = MRecalculate(sup,MultiVec, chroma=Chroma,blksize=BlkSz/2, overlap=OLap/2,truemotion=Tm,tr=RadT) #thSAD needs should not be hard-wired like this c.MCompensate(sup_rend,MultiVec_re,tr=RadT,thSad=ThSAD,thSad2=ThSAD2) MedianBlurTemporal(radiusY=0,radiusU=0,radiusV=0,temporalradius=RadT) # Temporal median blur only [not spatial] SelectEvery(RadT*2+1,RadT) # Return middle frame }
Last edited by johnmeyer; 19th Sep 2020 at 23:17. Reason: Added pictures
Similar Threads
-
AVIsynth - Please Help!!! :(
By DiggyDre in forum RestorationReplies: 10Last Post: 14th Feb 2019, 09:13 -
Using avisynth without a GUI
By pooksahib in forum Video ConversionReplies: 31Last Post: 21st Dec 2017, 10:39 -
MCTemporalDenoise (Avisynth+ MT help)
By frank_zappa in forum RestorationReplies: 0Last Post: 31st Oct 2017, 09:21 -
MeGUI + AVIsynth
By traxstar in forum Video ConversionReplies: 5Last Post: 15th Oct 2017, 15:57 -
Need help with AVISynth script
By duffbeer in forum DVD RippingReplies: 13Last Post: 8th Sep 2016, 16:05