Quantcast Sansgrip Filters: Fluxsmooth - digitalFAQ.com Forums [Archives]
  #1  
11-16-2002, 10:13 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
Here's a new spatio-temporal smoother I wrote today based on ideas that came to me developing NoMoSmooth.

The source code is available. Here's the description from the documentation:

Quote:
One of the fundamental properties of noise is that it's random. One of the fundamental properties of motion is that it's not. This is the premise behind FluxSmooth, which examines each pixel and compares it to the corresponding pixel in the previous and last frame. Smoothing occurs if both the previous frame's value and the next frame's value are greater, or if both are less, than the value in the current frame.

I like to call this a "fluctuating" pixel, then I like to wipe that pixel from existence by averaging it with its neighbours. This is (by default) done in a spatio-temporal manner, in that for each fluctuating pixel its 8 immediate spatial neighbours as well as its 2 temporal neighbours (the abovementioned corresponding pixel from the previous and next frames) are considered for inclusion in the average. If the value of each pixel is within the specified threshold, it is included. If not, it isn't.

This filter seems to remove almost all noise from low-noise sources (such as DVD) and a lot of noise from high-noise sources (such as cable TV captures), while maintaining a good amount of detail.

The speed at which it operates depends upon the amount of noise in the clip.
As usual your mileage may vary. This filter is unrelated to flux capacitors, which enable one to travel temporally.

Edit: Removed links to old version.
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
  #2  
11-17-2002, 01:01 AM
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 SansGrip,

So this filter supercedes NoMoSmooth?

Thanks,
-kwag
Reply With Quote
  #3  
11-17-2002, 01:04 AM
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 SansGrip
This filter is unrelated to flux capacitors, which enable one to travel temporally.
Remember, on the latest version, we don't need to accelerate to 88MPH

-kwag
Reply With Quote
  #4  
11-17-2002, 01:32 AM
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
To keep up with the tradition , here's a sample with FluxSmooth+Blockbuster:
http://mpeg.0catch.com/test6-flux-smooth-LBR.m1v
I use default parameters with the filter ( FluxSmooth() )
Sample encoded with the LBR template at CQ_VBR value of 27. Average bit rate is 610Kbps. It's 11 seconds, and file size is 932KB.

-kwag
Reply With Quote
  #5  
11-17-2002, 02:03 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
help please,the links to download don't work SansGrip,help.

Reply With Quote
  #6  
11-17-2002, 02:05 AM
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
help please,the links to download don't work SansGrip,help.

I posted a link for you in your previous post.

-kwag
Reply With Quote
  #7  
11-17-2002, 10:59 AM
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
So this filter supercedes NoMoSmooth?
Nope. NoMo is motion adaptive, Flux isn't.

In other words, with NoMo you can use very strong spatial smoothing on areas of motion to improve compressibility (though you will very occasionally notice some artifacts if you look carefully). Flux is just a "noise remover".

Flux should be a lot more gentle than NoMo if maintaining detail is a priority.
Reply With Quote
  #8  
11-17-2002, 10:59 AM
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
Remember, on the latest version, we don't need to accelerate to 88MPH
I think NoMo could do with some acceleration...
Reply With Quote
  #9  
11-17-2002, 11:00 AM
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 jorel
help please,the links to download don't work SansGrip,help.
I've had several posts about this from Doom9 too. They all work fine for me. The server must've gone down for a while.
Reply With Quote
  #10  
11-17-2002, 01:21 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
Here's version 0.2 with a minor bugfix, some optimizations, and support for Avisynth 2.5/YV12. I also changed the defaults as I found them too high.

Edit: Removed links to old version.
Reply With Quote
  #11  
11-17-2002, 01:22 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
To keep up with the tradition , here's a sample with FluxSmooth+Blockbuster
How do you find it compares to other tests, wrt both quality and file size?
Reply With Quote
  #12  
11-17-2002, 05:40 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 SansGrip
Quote:
Originally Posted by kwag
To keep up with the tradition , here's a sample with FluxSmooth+Blockbuster
How do you find it compares to other tests, wrt both quality and file size?
I like the FluxSmooth+Blockbuster better than NoMoSmooth+Blockbuster.
The file size difference is almost none. In a 1 minute, 30 second file prediction test, the difference is 16KB larger on the NoMoSmooth+Blockbuster. And that's negligible. However, I can see a MUCH better artifact reduction with the FluxSmooth+Blockbuster.
Here's a sample of what the complete 120 minute movie looks like on one CD-R. I encoded it last night with FluxSmooth+Blockbuster: http://mpeg.0catch.com/test7-fluxsmooth-blockbuster.m1v

-kwag
Reply With Quote
  #13  
11-17-2002, 06:37 PM
edmund edmund is offline
Free Member
 
Join Date: Oct 2002
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
hey kwag what does your script look like??
Reply With Quote
  #14  
11-17-2002, 06:54 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 edmund
hey kwag what does your script look like??
Like this ( the one I'm using on the LBR ) :

FluxSmooth()

######## 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%.

# The last ~10% is left untouched (pass-through), to avoid sharpening highest frequency components ( Peak artifacts, sharpest edge, etc. )
##
################## End Auto Strength ####################



-kwag
Reply With Quote
  #15  
11-17-2002, 07:14 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
However, I can see a MUCH better artifact reduction with the FluxSmooth+Blockbuster.
That's interesting. What settings? The defaults for 0.1 were quite strong. How do you find Flux wrt speed?

Quote:
Originally Posted by kwag
Here's a sample of what the complete 120 minute movie looks like on one CD-R. I encoded it last night with FluxSmooth+Blockbuster
That looks really good. I had no idea you could get such good results on a single disc...
Reply With Quote
  #16  
11-17-2002, 07:31 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 SansGrip
Quote:
Originally Posted by kwag
However, I can see a MUCH better artifact reduction with the FluxSmooth+Blockbuster.
That's interesting. What settings? The defaults for 0.1 were quite strong. How do you find Flux wrt speed?
I used the default. Just FluxSmooth()
But I didn't do any benchmarks . Sorry!, I'm so amazed at the results, that I really don't care about encoding speed .
I'm encoding on a P4 @1.6Ghz, and at 352x240, it's about .9 real-time.

Quote:
Originally Posted by kwag
Here's a sample of what the complete 120 minute movie looks like on one CD-R. I encoded it last night with FluxSmooth+Blockbuster
Quote:
That looks really good. I had no idea you could get such good results on a single disc...
I have to encode "The Green Mile" ( 180 minutes ) with the LBR AND your filters
Last time I did, it looked good, considering it was encoded for one CD-R , but your filters were not around. That should be a good "stress" test to put your filters through
Also," Pearl Harbor" is also ~180 minutes, and was also encoded on one CD-R. I'll pull out my "Green Mile" tonight and run it again with your filters.
We'll see the results late late tonight or tomorrow

-kwag
Reply With Quote
  #17  
11-17-2002, 07:46 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
I used the default. Just FluxSmooth()
Ok, well, when you do your next encode you might want to specify the old defaults as parameters then:

FluxSmooth(temporal_threshold=7, spatial_threshold=7)

Quote:
Originally Posted by kwag
I have to encode "The Green Mile" ( 180 minutes ) with the LBR AND your filters
hehehe I'm going to have to try an encode with LBR. I've not played with it yet.
Reply With Quote
  #18  
11-17-2002, 07:53 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 SansGrip
Quote:
Originally Posted by kwag
I used the default. Just FluxSmooth()
Ok, well, when you do your next encode you might want to specify the old defaults as parameters then:

FluxSmooth(temporal_threshold=7, spatial_threshold=7)
Will do. Just starting the rip now

Quote:
Originally Posted by kwag
I have to encode "The Green Mile" ( 180 minutes ) with the LBR AND your filters
Quote:
hehehe I'm going to have to try an encode with LBR. I've not played with it yet.
When you do, don't use the default CQ_VBR setting. Use the file prediction formula to adjust it, so that space and quality are optimized.
And let us know your results

-kwag
Reply With Quote
  #19  
11-17-2002, 08:11 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
@SansGrip

why don't you put the FluxSmooth-01.zip here,please?
i can't download it from your link!
Reply With Quote
  #20  
11-17-2002, 08:12 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
When you do, don't use the default CQ_VBR setting. Use the file prediction formula to adjust it, so that space and quality are optimized.
Ok, I'll do a search for that.

By the way, I just did a couple of test clips with the 528x480 template (the first of yours I've ever tried) with FluxSmooth and Blockbuster and it looks fantastic. I'm going to read up on the formula and do a two-disc of American Pie .

By the way, I'm playing these on my Panasonic CV52 and the clips worked just fine. I've had bad luck with VBR movies in the past, though, with corruption problems around what I believe to be the middle of the disc. I'm thinking this might have something to do with the minimum bitrate... What do you think?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
SansGrip Filters: FluxSmooth 1.1a released SansGrip Avisynth Scripting 21 08-05-2004 04:04 PM
SansGrip Filters: New fluxsmooth ak47 Avisynth Scripting 8 07-26-2004 05:10 PM
SansGrip Filters: Access violation with Fluxsmooth Holomatrix Avisynth Scripting 15 01-08-2003 05:26 PM
SansGrip Filters: FluxSmooth AND NomoSmooth ? Jellygoose Avisynth Scripting 4 11-24-2002 05:12 PM
SansGrip Filters: Blockbuster/fluxsmooth problem Yoda Avisynth Scripting 1 11-22-2002 09:24 PM

Thread Tools



 
All times are GMT -5. The time now is 01:00 AM  —  vBulletin Jelsoft Enterprises Ltd