Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th August 2004, 16:58   #1  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
Avisynth Script Help!

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)
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 19th August 2004, 17:06   #2  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Usually I denoise before resizing !!!

Maybe you wanna give my favorite denoiser a try...


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 19th August 2004, 18:28   #3  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
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...
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 19th August 2004, 18:37   #4  |  Link
killingspree
Newbie Forum Mod
 
killingspree's Avatar
 
Join Date: Aug 2002
Location: way too deep in (cyber)space
Posts: 2,436
Quote:
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!
Quote:
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
Quote:
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
__________________
Search the forum, read the forum rules once more and use the search function on doom9.org before posting!
oh btw my amazon.de wishlist
killingspree is offline   Reply With Quote
Old 19th August 2004, 20:37   #5  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
Thanks for the info....

As for the vaguedenoiser filter do I just leave all the default options then encode...thanks
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 19th August 2004, 21:02   #6  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
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...


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 19th August 2004, 21:41   #7  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
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.
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 20th August 2004, 16:46   #8  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Try this here...

VagueDenoiser(Threshold = 0.75, Method = 1, NSteps = 6, ChromaT = 1.00)


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 20th August 2004, 20:06   #9  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
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)?
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 20th August 2004, 20:59   #10  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
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
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 21st August 2004, 15:13   #11  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
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

Last edited by }{KeYmAkEr*}{; 21st August 2004 at 15:52.
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 21st August 2004, 16:48   #12  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Maybe, Crop -> VagueDenoiser -> Lanczosresize -> LimitedSharpen...


Denoising rules:

- Higher threshold = more denoising = more burry but less noise

- Lower threshold = less denoising = less burry but more noise


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 21st August 2004, 18:16   #13  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
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.
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 21st August 2004, 18:46   #14  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
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...
Code:
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
__________________

Visit my IRC channel

Last edited by Soulhunter; 21st August 2004 at 18:49.
Soulhunter is offline   Reply With Quote
Old 22nd August 2004, 13:27   #15  |  Link
}{KeYmAkEr*}{
Registered User
 
Join Date: Jul 2004
Posts: 30
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.
}{KeYmAkEr*}{ is offline   Reply With Quote
Old 22nd August 2004, 15:11   #16  |  Link
killingspree
Newbie Forum Mod
 
killingspree's Avatar
 
Join Date: Aug 2002
Location: way too deep in (cyber)space
Posts: 2,436
brightness, contrast, etc:

http://www.avisynth.org/Levels



edit, or even better: http://www.avisynth.org/Tweak

cheers
__________________
Search the forum, read the forum rules once more and use the search function on doom9.org before posting!
oh btw my amazon.de wishlist
killingspree is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.