Quantcast Sansgrip Filters: Improve Picture Quality Using "Addnoise" Filter - Page 5 - digitalFAQ.com Forums [Archives]
  #81  
11-13-2002, 01:49 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Here's my latest test with Blockbuster AND NoMoSmooth filters, also from SansGrip. @SansGrip, I can't thank you enough
And I in turn am very grateful for your extensive testing. I'm glad you're playing with NoMoSmooth now -- I think it's got great potential, even though I've not had much feedback on Doom9.

Quote:
Originally Posted by kwag
This is an excelent sample showing the removal of DCT blocks on the background. Look carefully at the background wall.
Yes, the filtered version is much better. I still find it a little too sharp on my monitor, but I'm guessing it's much less noticible when viewed on a TV. I'm going to have to burn a disc with these test clips of yours .

Quote:
Originally Posted by kwag
Also, look at the file size difference after applying the NoMoSmooth filter.
In future tests would you be able to do one more encode, with just NoMoSmooth and no Blockbuster? I'm very curious to know how much NoMoSmooth helps compression.

Quote:
Originally Posted by kwag
It's a combination of Temporal and Spatial filter. So you may now discard TemporalSmoother and (probably) Convolution3D
I've not used either since, though NoMoSmooth still has a way to go and needs a lot of testing to get it as good as possible with really useful parameters. It has its own Doom9 thread, in case people want to check it out.

Quote:
Originally Posted by kwag
I made some changes ( Expect many changes, until I find the optimal settings, but we're close )
You'll want to play with the NoMoSmooth parameters some. Since it's received such little testing I don't even know how much the motion threshold needs to be varied from source to source, but I'm fairly sure the temporal_* and spatial_* parameters will need to be changed depending on the noise level of the source material.

I'm hoping that a set of "standard" values will be agreed upon which can then be incorporated into a C3D-style preset parameter.

Quote:
Originally Posted by kwag
I also used the default value of 1 for luminance, instead of 1.5, as I had posted before.
From the latest clip I'd say this is still a tiny bit too much, since there's still quite a bit of movement in the wall. I've found that with very careful tweaking of the variances one can eliminate the DCT blocks while minimizing noticible movement. But obviously this is something that depends very much on the source material.

Quote:
Originally Posted by kwag
Feedback welcome
Very impressive stuff. I had no idea Blockbuster would be this effective when I started writing it .

Thanks again for your persistence. Testers like yourself really make it easier for the developer to improve the code, and knowing someone is testing the limits of the filter makes one actually want to stare at the source for a dozen more hours improving it .
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #82  
11-13-2002, 01:57 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Holomatrix
Sorry to interject, but why do you use BiLinear resize and not the new Lanczos?
You might be interested in this post on Doom9, in which I compare the range compression of various resizers. These results suggest that it might be best always to use Lanczos then achieve the desired softening through a separate filter.

On the other hand I respect Kwag's opinion greatly, and I tend to believe him when he suggests that perceived quality is superior with bilinear and a selective sharpen.
Reply With Quote
  #83  
11-13-2002, 01:58 PM
Holomatrix Holomatrix is offline
Free Member
 
Join Date: Aug 2002
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, thanks. This is the script I am going to try in DVD2SVCD:
[AVISYNTH_BlockbusterBilinearResizeNoMoSmooth]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
2=LoadPlugin(!Blockbuster.dll)
3=LoadPlugin(!NoMoSmooth.dll)
4=Blockbuster( method="noise", detail_min=1, detail_max=3, lv=1.5 )
5=Blockbuster( method="sharpen", detail_min=4, detail_max=99,
strength=^StrengthValue )
6=NoMoSmooth()
!Blockbuster.dll=C:\Program Files\DVD2SVCD\Blockbuster\Blockbuster.dll
^StrengthValue=20
!NoMoSmooth.dll=C:\Program Files\DVD2SVCD\NoMoSmooth\NoMoSmooth.dll

Should I put some values in for NoMoSmooth or just leave as is?
Thanks
Reply With Quote
  #84  
11-13-2002, 02:01 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by black prince
I use lanczosResize and didn't realize this was happening. I am going to switch to bilinearResize.
Lanczos provides the same kind of sharpness achieved with a bicubic 0/0.75 but mostly without the sometimes very evident artifacts. That said it can still be too much on occasion, especially when the source is very sharp to begin with.

You might also want to try a compromise, such as bicubic 0/0.5 or 0.33/0.33. The latter was declared "most preferred" after tests conducted by the algorithm designers on human subjects .
Reply With Quote
  #85  
11-13-2002, 02:47 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
Hi SansGrip,

SansGrip wrote:
Quote:
Lanczos provides the same kind of sharpness achieved with a bicubic 0/0.75 but mostly without the sometimes very evident artifacts. That said it can still be too much on occasion, especially when the source is very sharp to begin with.

You might also want to try a compromise, such as bicubic 0/0.5 or 0.33/0.33. The latter was declared "most preferred" after tests conducted by the algorithm designers on human subjects .
My encodes with lanczosresize and blockbuster-noise-sharpen may be why
my picture quality seems too sharp. Since I encode from DVD source
720x480 shouldn't I use bilinearResize going to 352x240? I believe
bilinearResize and Blockbuster-noise-sharpen produce a more pleasing
picture image in my opinion. NoMoSmooth is using default settings, so
I'll wait for Kwag to tweak this filter.

-black prince
Reply With Quote
  #86  
11-13-2002, 03:05 PM
Holomatrix Holomatrix is offline
Free Member
 
Join Date: Aug 2002
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, ran my test clip, looks good but I see to much Mosquito noise, should I make a change to my script? or add the UnDot filter?
Thanks
Reply With Quote
  #87  
11-13-2002, 03:55 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Holomatrix
Ok, ran my test clip, looks good but I see to much Mosquito noise, should I make a change to my script? or add the UnDot filter?
Thanks
What template did you use? What resolution? CQ_VBR value?

-kwag
Reply With Quote
  #88  
11-13-2002, 05:45 PM
Holomatrix Holomatrix is offline
Free Member
 
Join Date: Aug 2002
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Shoot, sorry, I ran it through DVD2SVCD and used CCE, forgot to change the encoder to TMPEG. I will set it up using your LBR 352 X 480 (CVD) template settings and see how it goes. By the way would these settings work with your 1 CD 704 X 480 settings? I loved the sharpness and crispness I got with this template but ofcourse lots of blocks. Would these filters remove the blocks but keep the sharpness at this resoulution?
Thanks
Reply With Quote
  #89  
11-13-2002, 06:11 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Holomatrix
Shoot, sorry, I ran it through DVD2SVCD and used CCE, forgot to change the encoder to TMPEG. I will set it up using your LBR 352 X 480 (CVD) template settings and see how it goes. By the way would these settings work with your 1 CD 704 X 480 settings? I loved the sharpness and crispness I got with this template but ofcourse lots of blocks. Would these filters remove the blocks but keep the sharpness at this resoulution?
Thanks
You'll see blocks only on high speed scenes on the 704x480, depending on your source. But with the filter, it works a lot better. If your DVD player supports bitrates around 3,000Kbps, go ahead and change the MAX bitrate to 3,000-3,500 and you'll get a blockless picture. Maybe a tweak on the spatial parameters on the NoMoSmooth filter would help to blurr high speed motion, and make the blocks unnoticeable
I'm playing with that as we speak

-kwag
Reply With Quote
  #90  
11-13-2002, 09:28 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
@ Kwag:

Kwag wrote:

Here's the script I used for the sample:

LoadPlugin("C:\encoding\MPEG2DEC.dll")
LoadPlugin("C:\encoding\nomosmooth.dll")
LoadPlugin("C:\encoding\blockbuster.dll")
mpeg2source("K:\TEST\VIDEO_TS\movie.d2v")
BilinearResize(336,192,45,0,630,480)

NoMoSmooth()

######## Auto Strength, proportional strength depending on resolution #####
## Remove only one "#" on front of the resolution that matches your encoding.


BB_Resolution = 352*240
#BB_Resolution = 352*480
#BB_Resolution = 528*480
#BB_Resolution = 544*480
#BB_Resolution = 704*480

BB_StrengthConstant = 352 * 240 * 20 # Base strength
StrengthValue = round (BB_StrengthConstant / BB_Resolution)
Blockbuster( method="noise", detail_min=1, detail_max=10, lv=1 ) # Apply noise if complexity is <= 10%.
Blockbuster( method="sharpen", detail_min=20, detail_max=90, strength=StrengthValue) # Sharpen only if complexity is >= 20% AND <=90%.

##
################## End Auto Strength ####################

AddBorders(8,24,8,24)


I made some changes ( Expect many changes, until I find the optimal settings, but we're close )
If you look at the script, I changed the "noise" method to feed noise up to a complexity level of 10. I also used the default value of 1 for luminance, instead of 1.5, as I had posted before. Then I changed the "sharpen" method to start at a complexity level of 20. Why?, because we don't want to sharpen low lit things close to the boundaries of the DCT blocks on dark scenes. So I started the sharpen filter from 20 up to 90, and left the last ~10% ( 91 to 99 ) untouched. Why?, so that the sharpest edges, highest frequencies, don't get sharpened at all. So this should kill some high frequency "Mosquito Effect"

Feedback welcome


how can i "turn" this to load in dvd2s(K)vcd?
and
how can i load the new templates in dvd2s(K)vcd?


thanks in advance!
Reply With Quote
  #91  
11-13-2002, 10:03 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jorel
how can i "turn" this to load in dvd2s(K)vcd?
and
how can i load the new templates in dvd2s(K)vcd?


thanks in advance!
Not sure if DVD2SVCD can do computations, like in avisynth. You're going to have to edit the "dvd2svcd.ini" file, and add a section for your filters.

-kwag
Reply With Quote
  #92  
11-13-2002, 10:42 PM
LadyMiles LadyMiles is offline
Free Member
 
Join Date: Sep 2002
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
For some reason I haven't been able to download your test samples. I keep getting bad link errors i.e. "The page cannot be displayed"

In any case are you using your monitor as the quality standard ? With one of your old scripts from yesterday, fiddler on the roof looked okay on my monitor but great on my tv, except in a few dark areas (a lot of blocks on a sun rising scene) . Also that annoying periodic speed up or slow down thing with my dvd player stopped, is that due to the new GOP structure ?
I think I am going to try your new filters on crouching tiger hidden dragon.
Reply With Quote
  #93  
11-13-2002, 10:49 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi LadyMiles,

Are you trying to download the samples from this thread? http://www.kvcd.net/forum/viewtopic....r=asc&start=30

I just tried, with "Right Click, save as..." on a link, and it works.

-kwag
Reply With Quote
  #94  
11-13-2002, 11:12 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Quote:
Originally Posted by jorel
how can i "turn" this to load in dvd2s(K)vcd?
and
how can i load the new templates in dvd2s(K)vcd?


thanks in advance!
Not sure if DVD2SVCD can do computations, like in avisynth. You're going to have to edit the "dvd2svcd.ini" file, and add a section for your filters.

-kwag
ok Kwag ,but
this script i can't make.
it's confuse for me.
Reply With Quote
  #95  
11-14-2002, 02:52 AM
VILLA21 VILLA21 is offline
Free Member
 
Join Date: Oct 2002
Location: Greece
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
jorel
"...ok Kwag ,but
this script i can't make.
it's confuse for me..."

It"s already posted by Dagaar on page 5 of this thread. Have a look there...
__________________
The aRt oF FaLLing ApaRt
Reply With Quote
  #96  
11-14-2002, 06:02 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by VILLA21
jorel
"...ok Kwag ,but
this script i can't make.
it's confuse for me..."

It"s already posted by Dagaar on page 5 of this thread. Have a look there...

ok,thanks,
but what about this posted by Kwag?

BB_Resolution = 352*240
#BB_Resolution = 352*480
#BB_Resolution = 528*480
#BB_Resolution = 544*480
#BB_Resolution = 704*480
BB_StrengthConstant = 352 * 240 * 20 # Base strength
StrengthValue = round (BB_StrengthConstant / BB_Resolution)
Blockbuster( method="noise", detail_min=1, detail_max=10, lv=1 ) # Apply noise if complexity is <= 10%.
Blockbuster( method="sharpen", detail_min=20, detail_max=90, strength=StrengthValue) # Sharpen only if complexity is >= 20% AND <=90%.


how can i put this it in the script?
it's possible?
thanks in advance!
Reply With Quote
  #97  
11-14-2002, 08:31 AM
VILLA21 VILLA21 is offline
Free Member
 
Join Date: Oct 2002
Location: Greece
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
jorel,
BB_StrengthConstant = 352 * 240 * 20 # Base strength
StrengthValue = round (BB_StrengthConstant / BB_Resolution)

The above 2 lines calculate the right Strength value for a given resolution.
Eg for 352x240 it"s 20.
Calculate this value manually for your resolution and set it in the Frameserver tab.
__________________
The aRt oF FaLLing ApaRt
Reply With Quote
  #98  
11-14-2002, 05:05 PM
LadyMiles LadyMiles is offline
Free Member
 
Join Date: Sep 2002
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Is blockbuster good for anime ? If not what filters should be used.
Reply With Quote
  #99  
11-14-2002, 06:47 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by LadyMiles
Is blockbuster good for anime ? If not what filters should be used.
I've never encoded anime, but my tentative guess is if there's blocks in the encode it might work -- maybe with different settings.

I have a pretty strong hunch it would work well on solid-colour cartoons, though.
Reply With Quote
  #100  
11-14-2002, 11:08 PM
Holomatrix Holomatrix is offline
Free Member
 
Join Date: Aug 2002
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by VILLA21
jorel,
BB_StrengthConstant = 352 * 240 * 20 # Base strength
StrengthValue = round (BB_StrengthConstant / BB_Resolution)

The above 2 lines calculate the right Strength value for a given resolution.
Eg for 352x240 it"s 20.
Calculate this value manually for your resolution and set it in the Frameserver tab.
How do I Calculate the value? What would my script look like, using that whole script, for a 352 X 480 resolution?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
""""""Por favor me ajude" ficoboy Conversão e Codificação de Vídeo (Português) 49 08-24-2004 05:35 PM
Quais os codec's? """"""" ficoboy Conversão e Codificação de Vídeo (Português) 1 05-11-2004 10:14 AM
SansGrip's Filters: "I stopped working on the filters." SansGrip Avisynth Scripting 8 04-28-2004 07:38 PM
CQ con Tok "automatico" o CQ_VBR "manual" r1racing1 Convertir y Codificar Video (Español) 4 11-27-2003 05:14 PM
SansGrip Filters: How To Use "Overscan" together with Letterbox Jellygoose Avisynth Scripting 7 02-11-2003 05:57 AM

Thread Tools



 
All times are GMT -5. The time now is 05:48 AM  —  vBulletin © Jelsoft Enterprises Ltd