View Full Version : Avisynth Script Help!
}{KeYmAkEr*}{
19th August 2004, 16:58
Hello
I'm encoding a dvd source but it has a lot of noise in it and it slightly flicker...thats why I'm using the denoising filters.
If I have the order of any of the pluins let me know or anything else to tweak it...thanks
------------------
# Created with Gordian Knot
#
# http://gknot.doom9.org
# PLUGINS
LoadPlugin("F:\PROGRA~1\GordianKnot\AviSynthPlugins\dgdecode.dll")
#LoadPlugin("F:\PROGRA~1\GordianKnot\AviSynthPlugins\decomb.dll")
#LoadPlugin("F:\PROGRA~1\GordianKnot\AviSynthPlugins\Convolution3d.dll")
LoadPlugin("F:\PROGRA~1\GordianKnot\AviSynthPlugins\FluxSmooth.dll")
#LoadPlugin("F:\PROGRA~1\GordianKnot\AviSynthPlugins\SimpleResize.dll")
LoadPlugin("F:\PROGRA~1\GordianKnot\AviSynthPlugins\MSharpen.dll")
# SOURCE
mpeg2source("C:\Movie.d2v")
# CROPPING
crop(0,56,720,364)
# RESIZING
LanczosResize(720,304)
# DENOISING: choose one combination (or none)
# medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
FluxSmooth(7,7)
# SHARPEN
MSharpen(15,100,true,false,false)
# BORDERS
#AddBorders(left,top,right,bottom)
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
# FOOL CCEnc
empty = BlankClip()
AudioDub(last,empty):devil:
Soulhunter
19th August 2004, 17:06
Usually I denoise before resizing !!!
Maybe you wanna give my favorite denoiser (http://bag.hotmail.ru/vague/vaguedenoiser.dhtml) a try... :rolleyes:
Bye
}{KeYmAkEr*}{
19th August 2004, 18:28
Thanks 4 that....
What are the advantages or disadvantages of putting denoising before resizing?
In GordianKnot it says it will take longer if you do this?
So will it be crap if you resize than denoise...
killingspree
19th August 2004, 18:37
Originally posted by }{KeYmAkEr*}{
What are the advantages or disadvantages of putting denoising before resizing?
well the denoiser has got more information to work with so it'll yield better results - or in other words more detail will be preserved!
In GordianKnot it says it will take longer if you do this?
well the denoiser has more information to process so it takes more (cpu) time
So will it be crap if you resize than denoise...
no it will work aswell - a little faster, but also a little less detail, most likely no noticeable difference though (imho)
kr
steVe
}{KeYmAkEr*}{
19th August 2004, 20:37
Thanks for the info....
As for the vaguedenoiser filter do I just leave all the default options then encode...thanks
Soulhunter
19th August 2004, 21:02
Originally posted by }{KeYmAkEr*}{
As for the vaguedenoiser filter do I just leave all the default options then encode...thanks Dont know ya source !!!
But I like to set the chroma threshold 25-50 % higher than the luma threshold... :o
Bye
}{KeYmAkEr*}{
19th August 2004, 21:41
My source is just a Normal NTSC DVD progressive.
Could you give an example of the script: (e.g VagueDenoiser(threshold=0.8,method=1,nsteps=6,chromaT=0.8)
I want to use light or medium denoising.
Soulhunter
20th August 2004, 16:46
Try this here...
VagueDenoiser(Threshold = 0.75, Method = 1, NSteps = 6, ChromaT = 1.00)
Bye
}{KeYmAkEr*}{
20th August 2004, 20:06
Wicked thanks 4 that !
If I'm already using undot in my avisynth script will it make any difference if I have it enabled on the xvid decoder options (deblocking)?
Soulhunter
20th August 2004, 20:59
Originally posted by }{KeYmAkEr*}{
Wicked thanks 4 that !
If I'm already using undot in my avisynth script will it make any difference if I have it enabled on the xvid decoder options (deblocking)?
Two different pair of shoes...
If you need undot to clean the (input) source, use it !!!
If you see blocks in you encode while playback, use deblocking... ;)
Bye
}{KeYmAkEr*}{
21st August 2004, 15:13
So I don't need to add this for VagueDenoiser (debug, interlaced,wavelet,Wiener,wratio,percent)
Whats the lowest threshold that I should put in? Threshold=0.50 or lower seems to have a less blurry effect and more detail but a tad bit more grain.
I noticed this VagueDenoiser also helps with flickering in this film so its all good!Thanks
------
Also due to the blurry effect after using this filter is it a good idea to use a sharpening filter e.g MSharpen before Lanczos resize or after?
I noticed that using a MSarpen after Lanczos resize that the image becomes edgy...step effect
Soulhunter
21st August 2004, 16:48
Maybe, Crop -> VagueDenoiser -> Lanczosresize -> LimitedSharpen... (http://forum.doom9.org/showthread.php?s=&threadid=74900&perpage=&pagenumber=4) :D
Denoising rules:
- Higher threshold = more denoising = more burry but less noise
- Lower threshold = less denoising = less burry but more noise
Bye
}{KeYmAkEr*}{
21st August 2004, 18:16
How do I get LimitedSharpen to work on my avisynth script?
I've got MaskTools-v1.5.1 ....loaded the MaskTools.dll iinto avisynth script.
Put this after Lanczos Resize:
LimitedSharpen(ss_x=2.0,ss_y=2.0,Smode=2,strength=100,Lmode=1,overshoot=1,wide=false,soft=false,radius=1,edgemode=0)
But it goes there's no function named LimitedSharpen?
Is there a LimitedSharpen.dll somewhere that i forgot to download?
Ohh....and the link to the LimitedSharpen Samples seems to be down.
Soulhunter
21st August 2004, 18:46
The link is right, but mf's forum is down atm... :(
You have to load the LimitedSharpen.avs as well !!!
Save LimitedSharpen as avs and place it in ya plugins folder, then...
LoadPlugin("C:\Blah\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Blah\AviSynth 2.5\plugins\WarpSharp.dll")
Import("C:\Blah\AviSynth 2.5\plugins\LimitedSharpen.avs")
Mpeg2Source("C:\Movie.d2v")
Crop(0,56,720,364)
VagueDenoiser(Threshold = 0.75, Method = 1, NSteps = 6, ChromaT = 1.00)
LanczosResize(720,304)
LimitedSharpen(ss_x=2.0,ss_y=2.0,Smode=2,strength=100,Lmode=1,overshoot=1,wide=false,soft=false,radius=1,edgemode=0)
Bye
}{KeYmAkEr*}{
22nd August 2004, 13:27
Thanks for the help but it looks a little dull and dark...
is there a good way to brighten the hue,saturation,brightness etc?
I'll probably use VagueDenoiser(Threshold = 0.25) Don't like it too blurred
After Lanczos resize MSharpen (threshold = 25) as well.
killingspree
22nd August 2004, 15:11
brightness, contrast, etc:
http://www.avisynth.org/Levels
:)
edit, or even better: http://www.avisynth.org/Tweak
cheers
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.